mtproto

package module
v0.0.0-...-7ea7507 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2022 License: MIT Imports: 24 Imported by: 3

README

telegram

MTProto implementation in Golang with example tool.

install

$ go get -v -u github.com/ronak/mtproto

Library

This library is in alpha phase and function are subjected to change.

documentation not ready yet

MTProto documentation

License

MIT License

Documentation

Index

Constants

View Source
const (
	PEER_TYPE_USER    = "USER"
	PEER_TYPE_CHAT    = "CHAT"
	PEER_TYPE_CHANNEL = "CHANNEL"
)
View Source
const (
	DIALOG_TYPE_CHAT    = "CHAT"
	DIALOG_TYPE_USER    = "USER"
	DIALOG_TYPE_CHANNEL = "CHANNEL"
)
View Source
const (
	USER_STATUS_OFFLINE    = "OFFLINE"
	USER_STATUS_ONLINE     = "ONLINE"
	USER_STATUS_RECENTLY   = "RECENTLY"
	USER_STATUS_LAST_WEEK  = "LAST_WEEK"
	USER_STATUS_LAST_MONTH = "LAST_MONTH"
)

User related constants

View Source
const (
	MESSAGE_TYPE_EMPTY     = "EMPTY"
	MESSAGE_TYPE_NORMAL    = "NORMAL"
	MESSAGE_TYPE_SERVICE   = "SERVICE"
	MESSAGE_TYPE_FORWARDED = "FORWARDED"

	MESSAGE_ACTION_CHAT_CREATED         = "CHAT_CREATED"
	MESSAGE_ACTION_CHAT_EDIT_TITLE      = "CHAT_EDIT_TITLE"
	MESSAGE_ACTION_CHAT_EDIT_PHOTO      = "CHAT_EDIT_PHOTO"
	MESSAGE_ACTION_CHAT_DELETE_PHOTO    = "CHAT_DELETE_PHOTO"
	MESSAGE_ACTION_CHAT_ADD_USER        = "CHAT_ADD_USER"
	MESSAGE_ACTION_CHAT_DELETE_USER     = "CHAT_DELETE_USER"
	MESSAGE_ACTION_CHAT_JOINED_BY_LINK  = "CHAT_JOINED_BY_LINK"
	MESSAGE_ACTION_CHAT_MIGRATE_TO      = "CHAT_MIGRATE_TO"
	MESSAGE_ACTION_CHANNEL_CREATED      = "CHANNEL_CREATED"
	MESSAGE_ACTION_CHANNEL_MIGRATE_FROM = "CHANNEL_MIGRATE"
	MESSAGE_ACTION_GAME_SCORE           = "GAME_SCORE"
	MESSAGE_ACTION_HISTORY_CLEAN        = "HISTORY_CLEAN"
	MESSAGE_ACTION_PHONE_CALL           = "PHONE_CALL"

	MESSAGE_ENTITY_UNKNOWN      = "UNKNOWN"
	MESSAGE_ENTITY_HASHTAG      = "HASHTAG"
	MESSAGE_ENTITY_URL          = "URL"
	MESSAGE_ENTITY_MENTION      = "MENTION"
	MESSAGE_ENTITY_MENTION_NAME = "MENTION_NAME"
	MESSAGE_ENTITY_EMAIL        = "EMAIL"
	MESSAGE_ENTITY_BOLD         = "BOLD"
	MESSAGE_ENTITY_ITALIC       = "ITALIC"
	MESSAGE_ENTITY_CODE         = "CODE"
	MESSAGE_ENTITY_BOT_COMMAND  = "BOT_COMMAND"
	MESSAGE_ENTITY_PRE          = "PRE"
	MESSAGE_ENTITY_TEXT_URL     = "TEXT_URL"

	MESSAGE_MEDIA_TYPE_EMPTY    = "EMPTY"
	MESSAGE_MEDIA_TYPE_PHOTO    = "PHOTO"
	MESSAGE_MEDIA_TYPE_VIDEO    = "VIDEO"
	MESSAGE_MEDIA_TYPE_GEO      = "GEO"
	MESSAGE_MEDIA_TYPE_CONTACT  = "CONTACT"
	MESSAGE_MEDIA_TYPE_DOCUMENT = "DOCUMENT"
	MESSAGE_MEDIA_TYPE_AUDIO    = "AUDIO"
)

Message Related Constants

View Source
const (
	CONTACT_TYPE_IMPORTED = "IMPORTED"
	CONTACT_TYPE_POPULAR  = "POPULAR"
	CONTACT_TYPE_PHONE    = "PHONE"
)
View Source
const (
	CHANNEL_DATA_EMPTY   int = 0x00
	CHANNEL_DATA_REGULAR int = 0x01
	CHANNEL_DATA_FULL    int = 0x02
)
View Source
const (
	CHAT_TYPE_EMPTY          = "EMPTY"
	CHAT_TYPE_CHAT           = "CHAT"
	CHAT_TYPE_CHAT_FORBIDDEN = "CHAT_FORBIDDEN"
)
View Source
const (
	UPDATE_TYPE_NEW_MESSAGE                    = "NewMessage"
	UPDATE_TYPE_CHANNEL_NEW_MESSAGE            = "ChannelNewMessage"
	UPDATE_TYPE_READ_CHANNEL_INBOX             = "ReadChannelInbox"
	UPDATE_TYPE_READ_CHANNEL_OUTBOX            = "ReadChannelOutbox"
	UPDATE_TYPE_CHANNEL_TOO_LONG               = "ChannelTooLong"
	UPDATE_TYPE_READ_HISTORY_INBOX             = "ReadHistoryInbox"
	UPDATE_TYPE_READ_HISTORY_OUTBOX            = "ReadHistoryOutbox"
	UPDATE_TYPE_USER_PHOTO                     = "UserPhoto"
	UPDATE_TYPE_EDIT_MESSAGE                   = "EditMessage"
	UPDATE_TYPE_EDIT_CHANNEL_MESSAGE           = "EditChannelMessage"
	UPDATE_TYPE_CONTACT_LINK                   = "ContactLink"
	UPDATE_TYPE_DRAFT_MESSAGE                  = "DraftMessage"
	UPDATE_TYPE_SAVED_GIFS                     = "SavedGIFs"
	UPDATE_TYPE_MESSAGE_ID                     = "MessageID"
	UPDATE_TYPE_DELETE_MESSAGES                = "DeleteMessages"
	UPDATE_TYPE_CONTACT_REGISTERED             = "ContactRegistered"
	UPDATE_TYPE_USER_BLOCKED                   = "UserBlocked"
	UPDATE_TYPE_CHANNEL_READ_MESSAGES_CONTENTS = "ChannelReadMessagesContents"
	UPDATE_TYPE_USER_TYPING                    = "UserTyping"
	UPDATE_TYPE_CHAT_PARTICIPANT_ADD           = "ChatParticipantAdd"
	UPDATE_TYPE_CHAT_PARTICIPANT_ADMIN         = "ChatParticipantAdmin"
	UPDATE_TYPE_CHAT_PARTICIPANT_DELETE        = "ChatParticipantDelete"
	UPDATE_TYPE_CHAT_USER_TYPING               = "ChatUserTyping"
)
View Source
const (
	UPDATE_DIFFERENCE_EMPTY    = "EMPTY"
	UPDATE_DIFFERENCE_COMPLETE = "COMPLETE"
	UPDATE_DIFFERENCE_SLICE    = "SLICE"
	UPDATE_DIFFERENCE_TOO_LONG = "TOO_LONG"
)
View Source
const (
	DEBUG_LEVEL_NETWORK         = 0x01
	DEBUG_LEVEL_NETWORK_DETAILS = 0x02
	DEBUG_LEVEL_DECODE          = 0x04
	DEBUG_LEVEL_DECODE_DETAILS  = 0x08
)

Variables

This section is empty.

Functions

func GenerateMessageId

func GenerateMessageId() int64

func GenerateNonce

func GenerateNonce(size int) []byte

Types

type Channel

type Channel struct {
	Flags             ChannelFlags
	ID                int32
	AccessHash        int64
	Title             string
	About             string
	Username          string
	Photo             TL // ChatPhoto
	Date              int32
	Version           int32
	PinnedMessageID   int32
	RestrictionReason string
	AdminRights       ChannelAdminRights  // flags_14?ChannelAdminRights
	BannedRights      ChannelBannedRights // flags_15?ChannelBannedRights
	Counters          ChannelCounters
	// contains filtered or unexported fields
}

func NewChannel

func NewChannel(input TL) *Channel

input:

  1. TL_channelFull:
  2. TL_channelForbidden:
  3. TL_channel

func (*Channel) GetInputPeer

func (ch *Channel) GetInputPeer() TL

func (*Channel) GetPeer

func (ch *Channel) GetPeer() TL

type ChannelAdminRights

type ChannelAdminRights struct {
	ChangeInfo     bool // flags_0?true
	PostMessages   bool // flags_1?true
	EditMessages   bool // flags_2?true
	DeleteMessages bool // flags_3?true
	BanUsers       bool // flags_4?true
	InviteUsers    bool // flags_5?true
	InviteLink     bool // flags_6?true
	PinMessages    bool // flags_7?true
	AddAdmins      bool // flags_9?true
}

type ChannelBannedRights

type ChannelBannedRights struct {
	UntilDate    int32
	ViewMessages bool // flags_0?true
	SendMessages bool // flags_1?true
	SendMedia    bool // flags_2?true
	SendStickers bool // flags_3?true
	SendGifs     bool // flags_4?true
	SendGames    bool // flags_5?true
	SendInline   bool // flags_6?true
	EmbedLinks   bool // flags_7?true
}

type ChannelCounters

type ChannelCounters struct {
	Admins       int32
	Kicked       int32
	Banned       int32
	Unread       int32
	Participants int32
}

type ChannelFlags

type ChannelFlags struct {
	Creator         bool // flags_0?true
	Left            bool // flags_2?true
	Editor          bool // flags_3?true
	Broadcast       bool // flags_5?true
	Verified        bool // flags_7?true
	Megagroup       bool // flags_8?true
	Restricted      bool // flags_9?true
	Democracy       bool // flags_10?true
	Signatures      bool // flags_11?true
	Min             bool // flags_12?true
	AdminRightsSet  bool //flags_14
	BannedRightsSet bool //flags_15
}

type ChannelParticipantFilter

type ChannelParticipantFilter struct{}

type ChannelUpdateDifference

type ChannelUpdateDifference struct {
	Empty        bool
	TooLong      bool
	Flags        int32
	Final        bool
	Pts          int32
	Timeout      int32
	NewMessages  []Message
	OtherUpdates []IUpdate
}

type Chat

type Chat struct {
	Type         string
	ID           int32
	Username     string
	Title        string
	Photo        *ChatProfilePhoto
	Participants int32
	Members      []ChatMember
	Date         int32
	Left         bool
	Version      int32
	AccessHash   int64
	Address      string
	Venue        string
	CheckedIn    bool
	// contains filtered or unexported fields
}

func NewChat

func NewChat(input TL) (chat *Chat)

NewChat input:

  1. TL_chatEmpty
  2. TL_chatForbidden
  3. TL_chat
  4. TL_chatFull:

func (*Chat) GetInputPeer

func (ch *Chat) GetInputPeer() TL

func (*Chat) GetPeer

func (ch *Chat) GetPeer() TL

type ChatMember

type ChatMember struct {
	UserID    int32
	InviterID int32
	Date      int32
}

type ChatProfilePhoto

type ChatProfilePhoto struct {
	PhotoSmall FileLocation
	PhotoBig   FileLocation
}

func NewChatProfilePhoto

func NewChatProfilePhoto(input TL) (photo *ChatProfilePhoto)

NewChatProfilePhoto input :

  1. TL_chatPhotoEmpty
  2. TL_chatPhoto

type Contact

type Contact struct {
	ClientID  int64
	Firstname string
	Lastname  string
	Phone     string
	UserID    int32
	Mutual    bool
}

Contact

func NewContact

func NewContact(in TL) (contact *Contact)

func (*Contact) GetInputContact

func (c *Contact) GetInputContact() TL

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) FlaggedDouble

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

func (*DecodeBuf) FlaggedInt

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

func (*DecodeBuf) FlaggedLong

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

func (*DecodeBuf) FlaggedObject

func (m *DecodeBuf) FlaggedObject(flags, f int32) (r TL)

func (*DecodeBuf) FlaggedString

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

func (*DecodeBuf) FlaggedStringBytes

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

func (*DecodeBuf) FlaggedVector

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

func (*DecodeBuf) Flags

func (m *DecodeBuf) Flags() int32

func (*DecodeBuf) Int

func (m *DecodeBuf) Int() int32

func (*DecodeBuf) Long

func (m *DecodeBuf) Long() int64

func (*DecodeBuf) Object

func (m *DecodeBuf) Object() (r TL)

func (*DecodeBuf) ObjectGenerated

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

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 Dialog

type Dialog struct {
	Type           string
	Pts            int32
	PeerID         int32
	PeerAccessHash int64
	TopMessageID   int32
	UnreadCount    int32
	NotifySettings interface{}
}

func NewDialog

func NewDialog(input TL) (d *Dialog)

NewDialog returns a pointer to Dialog struct input : TL_dialog

func (*Dialog) GetInputPeer

func (d *Dialog) GetInputPeer() TL

GetInputPeer returns either of the struct below:

  1. TL_inputPeerChat
  2. TL_inputPeerChannel
  3. TL_inputPeerUser

type Document

type Document struct {
	ID         int64
	AccessHash int64
	Date       int32
	Mimetype   string
	Size       int32
	Thumb      *PhotoSize
	DcID       int32
	Version    int32
	// contains filtered or unexported fields
}

Document

func NewDocument

func NewDocument(in TL) (d *Document)

func (*Document) GetInputFileLocation

func (d *Document) GetInputFileLocation() TL_inputDocumentFileLocation

type DraftMessage

type DraftMessage struct {
	Flags    int32
	ReplyTo  int32
	Body     string
	Date     int32
	Entities []MessageEntity
}

func NewDraftMessage

func NewDraftMessage(input TL) *DraftMessage

NewDraftMessage input:

  1. TL_draftMessage
  2. TL_draftMessageEmpty

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 FileLocation

type FileLocation struct {
	DC       int32
	VolumeID int64
	LocalID  int32
	Secret   int64
}

FileLocation

func NewFileLocation

func NewFileLocation(in TL) (fl *FileLocation)

func (*FileLocation) GetInputFileLocation

func (f *FileLocation) GetInputFileLocation() TL_inputFileLocation

type GeoPoint

type GeoPoint struct {
	Longtitude float32
	Latitude   float32
}

type IMessageMedia

type IMessageMedia interface {
	GetType() string
}

func NewMessageMedia

func NewMessageMedia(input TL) IMessageMedia

NewMessageMedia input:

  1. TL_messageMediaPhoto
  2. TL_messageMediaContact
  3. TL_messageMediaDocument

type IUpdate

type IUpdate interface {
	GetType(IUpdate) string
	GetInt32(IUpdate, string) (int32, bool)
	GetString(IUpdate, string) (string, bool)
	GetMap(IUpdate) map[string]interface{}
}

func NewUpdate

func NewUpdate(input TL) IUpdate

NewUpdate input :

  1. TL_updateNewMessage
  2. TL_updateNewChannelMessage

type MTProto

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

func NewMTProto

func NewMTProto(appId int64, appHash, authkeyfile, dcAddress string, debug int32) (*MTProto, error)

func (*MTProto) Auth_CheckPhone

func (m *MTProto) Auth_CheckPhone(phonenumber string) bool

func (*MTProto) Auth_SendCode

func (m *MTProto) Auth_SendCode(phonenumber string) (string, error)

func (*MTProto) Auth_SignIn

func (m *MTProto) Auth_SignIn(phonenumber string, hash, code string) (TL_auth_authorization, error)

func (*MTProto) Auth_SignIn2FA

func (m *MTProto) Auth_SignIn2FA(phonenumber string, hash, code string, password string) (TL_auth_authorization, error)

func (*MTProto) Channels_GetChannels

func (m *MTProto) Channels_GetChannels(in []TL) []Channel

func (*MTProto) Channels_GetFullChannel

func (m *MTProto) Channels_GetFullChannel(channelID int32, accessHash int64) *Channel

func (*MTProto) Channels_GetMessages

func (m *MTProto) Channels_GetMessages(channel TL, ids []int32) []Message

func (*MTProto) Channels_GetParticipants

func (m *MTProto) Channels_GetParticipants(channel TL, offset, limit int32) []User

func (*MTProto) Channels_JoinChannel

func (m *MTProto) Channels_JoinChannel(channelID int32, accessHash int64)

func (*MTProto) Connect

func (m *MTProto) Connect() error

func (*MTProto) Contacts_GetContacts

func (m *MTProto) Contacts_GetContacts(hash int32) ([]Contact, []User, error)

func (*MTProto) Contacts_ImportContacts

func (m *MTProto) Contacts_ImportContacts(contacts []TL)

func (*MTProto) Disconnect

func (m *MTProto) Disconnect() error

func (*MTProto) GetDcAddress

func (m *MTProto) GetDcAddress(dcID int32) string

func (*MTProto) Messages_GetChats

func (m *MTProto) Messages_GetChats(chatIDs []int32) []Chat

func (*MTProto) Messages_GetDialogs

func (m *MTProto) Messages_GetDialogs(
	offsetID, offsetDate, limit int32, offsetInputPeer TL,
) ([]Dialog, map[int32]User, map[int32]Chat, map[int32]Channel, map[int32]Message, int)

func (*MTProto) Messages_GetFullChat

func (m *MTProto) Messages_GetFullChat(chatID int32) *Chat

func (*MTProto) Messages_GetHistory

func (m *MTProto) Messages_GetHistory(inputPeer TL, limit, min_id, max_id int32) ([]Message, int32)

func (*MTProto) Messages_GetMessages

func (m *MTProto) Messages_GetMessages(msgIDs []int32) (map[int32]Message, map[int32]User, map[int32]Chat)

func (*MTProto) Messages_ImportChatInvite

func (m *MTProto) Messages_ImportChatInvite(hash string) *Chat

func (*MTProto) Messages_ReadHistory

func (m *MTProto) Messages_ReadHistory(inputPeer TL, maxID int32) (Pts, PtsCount int32)

func (*MTProto) Messages_SendMessage

func (m *MTProto) Messages_SendMessage(text string, inputPeer TL, reply_to int32)

func (*MTProto) Updates_GetChannelDifference

func (m *MTProto) Updates_GetChannelDifference(inputChannel TL, pts, limit int32) *ChannelUpdateDifference

func (*MTProto) Updates_GetDifference

func (m *MTProto) Updates_GetDifference(pts, qts, date int32) *UpdateDifference

func (*MTProto) Updates_GetState

func (m *MTProto) Updates_GetState() *UpdateState

func (*MTProto) Upload_GetCdnFile

func (m *MTProto) Upload_GetCdnFile(fileToken []byte, offset, limit int32) []byte

func (*MTProto) Upload_GetFile

func (m *MTProto) Upload_GetFile(in TL, offset, limit int32) []byte

func (*MTProto) Users_GetFullSelf

func (m *MTProto) Users_GetFullSelf() (User, error)

type Message

type Message struct {
	Flags         MessageFlags
	Type          string
	ID            int32
	From          int32
	To            *Peer
	Date          int32
	Body          string
	MediaType     string
	Action        *MessageAction
	ForwardHeader *MessageForwardHeader
	Entities      []MessageEntity
	Views         int32
	Media         interface{}
}

func NewMessage

func NewMessage(input TL) (m *Message)

NewMessage input

  1. TL_message
  2. TL_messageService

type MessageAction

type MessageAction struct {
	Type      string
	Title     string
	ChatID    int32
	ChannelID int32
	GameID    int64
	GameScore int32
	UserID    int32
	UserIDs   []int32
	Photo     *Photo
}

func NewMessageAction

func NewMessageAction(input TL) (m *MessageAction)

NewMessageAction input:

  1. TL_messageActionEmpty
  2. TL_messageActionChannelCreate
  3. TL_messageActionChannelMigrateFrom
  4. TL_messageActionChatCreate
  5. TL_messageActionChatAddUser
  6. TL_messageActionChatDeleteUser
  7. TL_messageActionChatDeleteUser
  8. TL_messageActionChatEditPhoto
  9. TL_messageActionChatEditTitle
  10. TL_messageActionChatJoinedByLink
  11. TL_messageActionChatMigrateTo
  12. TL_messageActionGameScore
  13. TL_messageActionHistoryClear
  14. TL_messageActionPinMessage
  15. TL_messageActionPhoneCall

type MessageEntity

type MessageEntity struct {
	Type   string
	Offset int32
	Length int32
	Url    string

	UserID int32
	// contains filtered or unexported fields
}

func NewMessageEntity

func NewMessageEntity(input TL) (e *MessageEntity)

type MessageFlags

type MessageFlags struct {
	Out         bool // flags_1?true
	Mentioned   bool // flags_4?true
	MediaUnread bool // flags_5?true
	Silent      bool // flags_13?true
	Post        bool // flags_14?true
}

type MessageForwardHeader

type MessageForwardHeader struct {
	From        int32
	Date        int32
	ChannelID   int32
	ChannelPost int32
	Author      string
}

func NewMessageForwardHeader

func NewMessageForwardHeader(input TL) (fwd *MessageForwardHeader)

type MessageMediaContact

type MessageMediaContact struct {
	MessageMediaCore
	Firstname string
	Lastname  string
	UserID    int32
	Phone     string
}

type MessageMediaCore

type MessageMediaCore struct{}

func (MessageMediaCore) GetType

func (mm MessageMediaCore) GetType() string

type MessageMediaDocument

type MessageMediaDocument struct {
	MessageMediaCore
	Caption  string
	Document Document
}

type MessageMediaPhoto

type MessageMediaPhoto struct {
	MessageMediaCore
	Caption string
	Photo   Photo
}

type Peer

type Peer struct {
	Type string
	ID   int32
}

Peer

func NewPeer

func NewPeer(in TL) (p *Peer)

type Photo

type Photo struct {
	ID         int64
	AccessHash int64
	UserID     int32
	Date       int32
	Caption    string
	Geo        *GeoPoint
	Sizes      []*PhotoSize
	// contains filtered or unexported fields
}

Photo

func NewPhoto

func NewPhoto(in TL) (photo *Photo)

type PhotoSize

type PhotoSize struct {
	Type     string
	Location *FileLocation
	Width    int32
	Height   int32
	Size     int32
}

PhotoSize

func NewPhotoSize

func NewPhotoSize(in TL) (ps *PhotoSize)

func (*PhotoSize) GetInputFileLocation

func (p *PhotoSize) GetInputFileLocation() TL_inputFileLocation

type TL

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

type TL_MT_message

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

type TL_accountDaysTTL

type TL_accountDaysTTL struct {
	Days int32
}

type TL_account_authorizations

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

type TL_account_changePhone

type TL_account_changePhone struct {
	Phone_number    string
	Phone_code_hash string
	Phone_code      string
}

type TL_account_checkUsername

type TL_account_checkUsername struct {
	Username string
}

type TL_account_confirmPhone

type TL_account_confirmPhone struct {
	Phone_code_hash string
	Phone_code      string
}

type TL_account_deleteAccount

type TL_account_deleteAccount struct {
	Reason string
}

type TL_account_getAccountTTL

type TL_account_getAccountTTL struct {
}

type TL_account_getAuthorizations

type TL_account_getAuthorizations struct {
}

type TL_account_getNotifySettings

type TL_account_getNotifySettings struct {
	Peer TL // InputNotifyPeer
}

type TL_account_getPassword

type TL_account_getPassword struct {
}

type TL_account_getPasswordSettings

type TL_account_getPasswordSettings struct {
	Current_password_hash []byte
}

type TL_account_getPrivacy

type TL_account_getPrivacy struct {
	Key TL // InputPrivacyKey
}

type TL_account_getTmpPassword

type TL_account_getTmpPassword struct {
	Password_hash []byte
	Period        int32
}

type TL_account_getWallPapers

type TL_account_getWallPapers struct {
}

type TL_account_noPassword

type TL_account_noPassword struct {
	New_salt                  []byte
	Email_unconfirmed_pattern string
}

type TL_account_password

type TL_account_password struct {
	Current_salt              []byte
	New_salt                  []byte
	Hint                      string
	Has_recovery              TL // Bool
	Email_unconfirmed_pattern string
}

type TL_account_passwordInputSettings

type TL_account_passwordInputSettings struct {
	Flags             int32
	New_salt          []byte
	New_password_hash []byte
	Hint              string
	Email             string
}

type TL_account_passwordSettings

type TL_account_passwordSettings struct {
	Email string
}

type TL_account_privacyRules

type TL_account_privacyRules struct {
	Rules []TL // PrivacyRule
	Users []TL // User
}

type TL_account_registerDevice

type TL_account_registerDevice struct {
	Token_type int32
	Token      string
}

type TL_account_reportPeer

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

type TL_account_resetAuthorization

type TL_account_resetAuthorization struct {
	Hash int64
}

type TL_account_resetNotifySettings

type TL_account_resetNotifySettings struct {
}

type TL_account_sendChangePhoneCode

type TL_account_sendChangePhoneCode struct {
	Flags int32
	// Allow_flashcall	bool // flags_0?true
	Phone_number   string
	Current_number TL // flags_0?Bool
}

type TL_account_sendConfirmPhoneCode

type TL_account_sendConfirmPhoneCode struct {
	Flags int32
	// Allow_flashcall	bool // flags_0?true
	Hash           string
	Current_number TL // flags_0?Bool
}

type TL_account_setAccountTTL

type TL_account_setAccountTTL struct {
	Ttl TL // AccountDaysTTL
}

type TL_account_setPrivacy

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

type TL_account_tmpPassword

type TL_account_tmpPassword struct {
	Tmp_password []byte
	Valid_until  int32
}

type TL_account_unregisterDevice

type TL_account_unregisterDevice struct {
	Token_type int32
	Token      string
}

type TL_account_updateDeviceLocked

type TL_account_updateDeviceLocked struct {
	Period int32
}

type TL_account_updateNotifySettings

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

type TL_account_updatePasswordSettings

type TL_account_updatePasswordSettings struct {
	Current_password_hash []byte
	New_settings          TL // account_PasswordInputSettings
}

type TL_account_updateProfile

type TL_account_updateProfile struct {
	Flags      int32
	First_name string
	Last_name  string
	About      string
}

type TL_account_updateStatus

type TL_account_updateStatus struct {
	Offline TL // Bool
}

type TL_account_updateUsername

type TL_account_updateUsername struct {
	Username string
}

type TL_auth_authorization

type TL_auth_authorization struct {
	Flags        int32
	Tmp_sessions int32
	User         TL // User
}

type TL_auth_bindTempAuthKey

type TL_auth_bindTempAuthKey struct {
	Perm_auth_key_id  int64
	Nonce             int64
	Expires_at        int32
	Encrypted_message []byte
}

type TL_auth_cancelCode

type TL_auth_cancelCode struct {
	Phone_number    string
	Phone_code_hash string
}

type TL_auth_checkPassword

type TL_auth_checkPassword struct {
	Password_hash []byte
}

type TL_auth_checkPhone

type TL_auth_checkPhone struct {
	Phone_number string
}

type TL_auth_checkedPhone

type TL_auth_checkedPhone struct {
	Phone_registered TL // Bool
}

type TL_auth_codeTypeCall

type TL_auth_codeTypeCall struct {
}

type TL_auth_codeTypeFlashCall

type TL_auth_codeTypeFlashCall struct {
}

type TL_auth_codeTypeSms

type TL_auth_codeTypeSms struct {
}

type TL_auth_dropTempAuthKeys

type TL_auth_dropTempAuthKeys struct {
	Except_auth_keys []int64
}

type TL_auth_exportAuthorization

type TL_auth_exportAuthorization struct {
	Dc_id int32
}

type TL_auth_exportedAuthorization

type TL_auth_exportedAuthorization struct {
	Id    int32
	Bytes []byte
}

type TL_auth_importAuthorization

type TL_auth_importAuthorization struct {
	Id    int32
	Bytes []byte
}

type TL_auth_importBotAuthorization

type TL_auth_importBotAuthorization struct {
	Flags          int32
	Api_id         int32
	Api_hash       string
	Bot_auth_token string
}

type TL_auth_logOut

type TL_auth_logOut struct {
}

type TL_auth_passwordRecovery

type TL_auth_passwordRecovery struct {
	Email_pattern string
}

type TL_auth_recoverPassword

type TL_auth_recoverPassword struct {
	Code string
}

type TL_auth_requestPasswordRecovery

type TL_auth_requestPasswordRecovery struct {
}

type TL_auth_resendCode

type TL_auth_resendCode struct {
	Phone_number    string
	Phone_code_hash string
}

type TL_auth_resetAuthorizations

type TL_auth_resetAuthorizations struct {
}

type TL_auth_sendCode

type TL_auth_sendCode struct {
	Flags int32
	// Allow_flashcall	bool // flags_0?true
	Phone_number   string
	Current_number TL // flags_0?Bool
	Api_id         int32
	Api_hash       string
}

type TL_auth_sendInvites

type TL_auth_sendInvites struct {
	Phone_numbers []string
	Message       string
}

type TL_auth_sentCode

type TL_auth_sentCode struct {
	Flags int32

	Phone_code_hash string
	Next_type       TL // flags_1?auth_CodeType
	Timeout         int32
	// contains filtered or unexported fields
}

type TL_auth_sentCodeTypeApp

type TL_auth_sentCodeTypeApp struct {
	Length int32
}

type TL_auth_sentCodeTypeCall

type TL_auth_sentCodeTypeCall struct {
	Length int32
}

type TL_auth_sentCodeTypeFlashCall

type TL_auth_sentCodeTypeFlashCall struct {
	Pattern string
}

type TL_auth_sentCodeTypeSms

type TL_auth_sentCodeTypeSms struct {
	Length int32
}

type TL_auth_signIn

type TL_auth_signIn struct {
	Phone_number    string
	Phone_code_hash string
	Phone_code      string
}

type TL_auth_signUp

type TL_auth_signUp struct {
	Phone_number    string
	Phone_code_hash string
	Phone_code      string
	First_name      string
	Last_name       string
}

type TL_authorization

type TL_authorization struct {
	Hash           int64
	Flags          int32
	Device_model   string
	Platform       string
	System_version string
	Api_id         int32
	App_name       string
	App_version    string
	Date_created   int32
	Date_active    int32
	Ip             string
	Country        string
	Region         string
}

type TL_bad_server_salt

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

type TL_boolFalse

type TL_boolFalse struct {
}

type TL_boolTrue

type TL_boolTrue struct {
}

type TL_botCommand

type TL_botCommand struct {
	Command     string
	Description string
}

type TL_botInfo

type TL_botInfo struct {
	User_id     int32
	Description string
	Commands    []TL // BotCommand
}

type TL_botInlineMediaResult

type TL_botInlineMediaResult struct {
	Flags int32
	Id    string

	Photo        TL // flags_0?Photo
	Document     TL // flags_1?Document
	Title        string
	Description  string
	Send_message TL // BotInlineMessage
	// contains filtered or unexported fields
}

type TL_botInlineMessageMediaAuto

type TL_botInlineMessageMediaAuto struct {
	Flags        int32
	Caption      string
	Reply_markup TL // flags_2?ReplyMarkup
}

type TL_botInlineMessageMediaContact

type TL_botInlineMessageMediaContact struct {
	Flags        int32
	Phone_number string
	First_name   string
	Last_name    string
	Reply_markup TL // flags_2?ReplyMarkup
}

type TL_botInlineMessageMediaGeo

type TL_botInlineMessageMediaGeo struct {
	Flags        int32
	Geo          TL // GeoPoint
	Reply_markup TL // flags_2?ReplyMarkup
}

type TL_botInlineMessageMediaVenue

type TL_botInlineMessageMediaVenue struct {
	Flags        int32
	Geo          TL // GeoPoint
	Title        string
	Address      string
	Provider     string
	Venue_id     string
	Reply_markup TL // flags_2?ReplyMarkup
}

type TL_botInlineMessageText

type TL_botInlineMessageText struct {
	Flags int32
	// No_webpage	bool // flags_0?true
	Message      string
	Entities     []TL // MessageEntity
	Reply_markup TL   // flags_2?ReplyMarkup
}

type TL_botInlineResult

type TL_botInlineResult struct {
	Flags int32
	Id    string

	Title        string
	Description  string
	Url          string
	Thumb_url    string
	Content_url  string
	Content_type string
	W            int32
	H            int32
	Duration     int32
	Send_message TL // BotInlineMessage
	// contains filtered or unexported fields
}

type TL_bots_answerWebhookJSONQuery

type TL_bots_answerWebhookJSONQuery struct {
	Query_id int64
	Data     TL // DataJSON
}

type TL_bots_sendCustomRequest

type TL_bots_sendCustomRequest struct {
	Custom_method string
	Params        TL // DataJSON
}

type TL_cdnConfig

type TL_cdnConfig struct {
	Public_keys []TL // CdnPublicKey
}

type TL_cdnFileHash

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

type TL_cdnPublicKey

type TL_cdnPublicKey struct {
	Dc_id      int32
	Public_key string
}

type TL_channel

type TL_channel struct {
	Flags int32
	// Creator	bool // flags_0?true
	// Left	bool // flags_2?true
	// Editor	bool // flags_3?true
	// Broadcast	bool // flags_5?true
	// Verified	bool // flags_7?true
	// Megagroup	bool // flags_8?true
	// Restricted	bool // flags_9?true
	// Democracy	bool // flags_10?true
	// Signatures	bool // flags_11?true
	// Min	bool // flags_12?true
	Id                 int32
	Access_hash        int64
	Title              string
	Username           string
	Photo              TL // ChatPhoto
	Date               int32
	Version            int32
	Restriction_reason string
	Admin_rights       TL // flags_14?ChannelAdminRights
	Banned_rights      TL // flags_15?ChannelBannedRights
}

type TL_channelAdminLogEvent

type TL_channelAdminLogEvent struct {
	Id      int64
	Date    int32
	User_id int32
	Action  TL // ChannelAdminLogEventAction
}

type TL_channelAdminLogEventActionChangeAbout

type TL_channelAdminLogEventActionChangeAbout struct {
	Prev_value string
	New_value  string
}

type TL_channelAdminLogEventActionChangePhoto

type TL_channelAdminLogEventActionChangePhoto struct {
	Prev_photo TL // ChatPhoto
	New_photo  TL // ChatPhoto
}

type TL_channelAdminLogEventActionChangeStickerSet

type TL_channelAdminLogEventActionChangeStickerSet struct {
	Prev_stickerset TL // InputStickerSet
	New_stickerset  TL // InputStickerSet
}

type TL_channelAdminLogEventActionChangeTitle

type TL_channelAdminLogEventActionChangeTitle struct {
	Prev_value string
	New_value  string
}

type TL_channelAdminLogEventActionChangeUsername

type TL_channelAdminLogEventActionChangeUsername struct {
	Prev_value string
	New_value  string
}

type TL_channelAdminLogEventActionDeleteMessage

type TL_channelAdminLogEventActionDeleteMessage struct {
	Message TL // Message
}

type TL_channelAdminLogEventActionEditMessage

type TL_channelAdminLogEventActionEditMessage struct {
	Prev_message TL // Message
	New_message  TL // Message
}

type TL_channelAdminLogEventActionParticipantInvite

type TL_channelAdminLogEventActionParticipantInvite struct {
	Participant TL // ChannelParticipant
}

type TL_channelAdminLogEventActionParticipantJoin

type TL_channelAdminLogEventActionParticipantJoin struct {
}

type TL_channelAdminLogEventActionParticipantLeave

type TL_channelAdminLogEventActionParticipantLeave struct {
}

type TL_channelAdminLogEventActionParticipantToggleAdmin

type TL_channelAdminLogEventActionParticipantToggleAdmin struct {
	Prev_participant TL // ChannelParticipant
	New_participant  TL // ChannelParticipant
}

type TL_channelAdminLogEventActionParticipantToggleBan

type TL_channelAdminLogEventActionParticipantToggleBan struct {
	Prev_participant TL // ChannelParticipant
	New_participant  TL // ChannelParticipant
}

type TL_channelAdminLogEventActionToggleInvites

type TL_channelAdminLogEventActionToggleInvites struct {
	New_value TL // Bool
}

type TL_channelAdminLogEventActionToggleSignatures

type TL_channelAdminLogEventActionToggleSignatures struct {
	New_value TL // Bool
}

type TL_channelAdminLogEventActionUpdatePinned

type TL_channelAdminLogEventActionUpdatePinned struct {
	Message TL // Message
}

type TL_channelAdminLogEventsFilter

type TL_channelAdminLogEventsFilter struct {
	Flags int32
}

type TL_channelAdminRights

type TL_channelAdminRights struct {
	Flags int32
}

type TL_channelBannedRights

type TL_channelBannedRights struct {
	Flags int32
	// View_messages	bool // flags_0?true
	// Send_messages	bool // flags_1?true
	// Send_media	bool // flags_2?true
	// Send_stickers	bool // flags_3?true
	// Send_gifs	bool // flags_4?true
	// Send_games	bool // flags_5?true
	// Send_inline	bool // flags_6?true
	// Embed_links	bool // flags_7?true
	Until_date int32
}

type TL_channelForbidden

type TL_channelForbidden struct {
	Flags int32
	// Broadcast	bool // flags_5?true
	// Megagroup	bool // flags_8?true
	Id          int32
	Access_hash int64
	Title       string
	Until_date  int32
}

type TL_channelFull

type TL_channelFull struct {
	Flags int32
	// Can_view_participants	bool // flags_3?true
	// Can_set_username	bool // flags_6?true
	// Can_set_stickers	bool // flags_7?true
	Id                    int32
	About                 string
	Participants_count    int32
	Admins_count          int32
	Kicked_count          int32
	Banned_count          int32
	Read_inbox_max_id     int32
	Read_outbox_max_id    int32
	Unread_count          int32
	Chat_photo            TL   // Photo
	Notify_settings       TL   // PeerNotifySettings
	Exported_invite       TL   // ExportedChatInvite
	Bot_info              []TL // BotInfo
	Migrated_from_chat_id int32
	Migrated_from_max_id  int32
	Pinned_msg_id         int32
	Stickerset            TL // flags_8?StickerSet
}

type TL_channelMessagesFilter

type TL_channelMessagesFilter struct {
	Flags int32
	// Exclude_new_messages	bool // flags_1?true
	Ranges []TL // MessageRange
}

type TL_channelMessagesFilterEmpty

type TL_channelMessagesFilterEmpty struct {
}

type TL_channelParticipant

type TL_channelParticipant struct {
	User_id int32
	Date    int32
}

type TL_channelParticipantAdmin

type TL_channelParticipantAdmin struct {
	Flags int32
	// Can_edit	bool // flags_0?true
	User_id      int32
	Inviter_id   int32
	Promoted_by  int32
	Date         int32
	Admin_rights TL // ChannelAdminRights
}

type TL_channelParticipantBanned

type TL_channelParticipantBanned struct {
	Flags int32
	// Left	bool // flags_0?true
	User_id       int32
	Kicked_by     int32
	Date          int32
	Banned_rights TL // ChannelBannedRights
}

type TL_channelParticipantCreator

type TL_channelParticipantCreator struct {
	User_id int32
}

type TL_channelParticipantSelf

type TL_channelParticipantSelf struct {
	User_id    int32
	Inviter_id int32
	Date       int32
}

type TL_channelParticipantsAdmins

type TL_channelParticipantsAdmins struct {
}

type TL_channelParticipantsBanned

type TL_channelParticipantsBanned struct {
	Q string
}

type TL_channelParticipantsBots

type TL_channelParticipantsBots struct {
}

type TL_channelParticipantsKicked

type TL_channelParticipantsKicked struct {
	Q string
}

type TL_channelParticipantsRecent

type TL_channelParticipantsRecent struct {
}

type TL_channelParticipantsSearch

type TL_channelParticipantsSearch struct {
	Q string
}

type TL_channels_adminLogResults

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

type TL_channels_channelParticipant

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

type TL_channels_channelParticipants

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

type TL_channels_checkUsername

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

type TL_channels_createChannel

type TL_channels_createChannel struct {
	Flags int32
	// Broadcast	bool // flags_0?true
	// Megagroup	bool // flags_1?true
	Title string
	About string
}

type TL_channels_deleteChannel

type TL_channels_deleteChannel struct {
	Channel TL // InputChannel
}

type TL_channels_deleteMessages

type TL_channels_deleteMessages struct {
	Channel TL // InputChannel
	Id      []int32
}

type TL_channels_deleteUserHistory

type TL_channels_deleteUserHistory struct {
	Channel TL // InputChannel
	User_id TL // InputUser
}

type TL_channels_editAbout

type TL_channels_editAbout struct {
	Channel TL // InputChannel
	About   string
}

type TL_channels_editAdmin

type TL_channels_editAdmin struct {
	Channel      TL // InputChannel
	User_id      TL // InputUser
	Admin_rights TL // ChannelAdminRights
}

type TL_channels_editBanned

type TL_channels_editBanned struct {
	Channel       TL // InputChannel
	User_id       TL // InputUser
	Banned_rights TL // ChannelBannedRights
}

type TL_channels_editPhoto

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

type TL_channels_editTitle

type TL_channels_editTitle struct {
	Channel TL // InputChannel
	Title   string
}

type TL_channels_exportInvite

type TL_channels_exportInvite struct {
	Channel TL // InputChannel
}
type TL_channels_exportMessageLink struct {
	Channel TL // InputChannel
	Id      int32
}

type TL_channels_getAdminLog

type TL_channels_getAdminLog struct {
	Flags         int32
	Channel       TL // InputChannel
	Q             string
	Events_filter TL   // flags_0?ChannelAdminLogEventsFilter
	Admins        []TL // InputUser
	Max_id        int64
	Min_id        int64
	Limit         int32
}

type TL_channels_getAdminedPublicChannels

type TL_channels_getAdminedPublicChannels struct {
}

type TL_channels_getChannels

type TL_channels_getChannels struct {
	Id []TL // InputChannel
}

type TL_channels_getFullChannel

type TL_channels_getFullChannel struct {
	Channel TL // InputChannel
}

type TL_channels_getMessages

type TL_channels_getMessages struct {
	Channel TL // InputChannel
	Id      []int32
}

type TL_channels_getParticipant

type TL_channels_getParticipant struct {
	Channel TL // InputChannel
	User_id TL // InputUser
}

type TL_channels_getParticipants

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

type TL_channels_inviteToChannel

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

type TL_channels_joinChannel

type TL_channels_joinChannel struct {
	Channel TL // InputChannel
}

type TL_channels_leaveChannel

type TL_channels_leaveChannel struct {
	Channel TL // InputChannel
}

type TL_channels_readHistory

type TL_channels_readHistory struct {
	Channel TL // InputChannel
	Max_id  int32
}

type TL_channels_readMessageContents

type TL_channels_readMessageContents struct {
	Channel TL // InputChannel
	Id      []int32
}

type TL_channels_reportSpam

type TL_channels_reportSpam struct {
	Channel TL // InputChannel
	User_id TL // InputUser
	Id      []int32
}

type TL_channels_setStickers

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

type TL_channels_toggleInvites

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

type TL_channels_toggleSignatures

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

type TL_channels_updatePinnedMessage

type TL_channels_updatePinnedMessage struct {
	Flags int32
	// Silent	bool // flags_0?true
	Channel TL // InputChannel
	Id      int32
}

type TL_channels_updateUsername

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

type TL_chat

type TL_chat struct {
	Flags int32
	// Creator	bool // flags_0?true
	// Kicked	bool // flags_1?true
	// Left	bool // flags_2?true
	// Admins_enabled	bool // flags_3?true
	// Admin	bool // flags_4?true
	// Deactivated	bool // flags_5?true
	Id                 int32
	Title              string
	Photo              TL // ChatPhoto
	Participants_count int32
	Date               int32
	Version            int32
	Migrated_to        TL // flags_6?InputChannel
}

type TL_chatEmpty

type TL_chatEmpty struct {
	Id int32
}

type TL_chatForbidden

type TL_chatForbidden struct {
	Id    int32
	Title string
}

type TL_chatFull

type TL_chatFull struct {
	Id              int32
	Participants    TL   // ChatParticipants
	Chat_photo      TL   // Photo
	Notify_settings TL   // PeerNotifySettings
	Exported_invite TL   // ExportedChatInvite
	Bot_info        []TL // BotInfo
}

type TL_chatInvite

type TL_chatInvite struct {
	Flags int32
	// Channel	bool // flags_0?true
	// Broadcast	bool // flags_1?true
	// Public	bool // flags_2?true
	// Megagroup	bool // flags_3?true
	Title              string
	Photo              TL // ChatPhoto
	Participants_count int32
	Participants       []TL // User
}

type TL_chatInviteAlready

type TL_chatInviteAlready struct {
	Chat TL // Chat
}

type TL_chatInviteEmpty

type TL_chatInviteEmpty struct {
}

type TL_chatInviteExported

type TL_chatInviteExported struct {
	Link string
}

type TL_chatParticipant

type TL_chatParticipant struct {
	User_id    int32
	Inviter_id int32
	Date       int32
}

type TL_chatParticipantAdmin

type TL_chatParticipantAdmin struct {
	User_id    int32
	Inviter_id int32
	Date       int32
}

type TL_chatParticipantCreator

type TL_chatParticipantCreator struct {
	User_id int32
}

type TL_chatParticipants

type TL_chatParticipants struct {
	Chat_id      int32
	Participants []TL // ChatParticipant
	Version      int32
}

type TL_chatParticipantsForbidden

type TL_chatParticipantsForbidden struct {
	Flags            int32
	Chat_id          int32
	Self_participant TL // flags_0?ChatParticipant
}

type TL_chatPhoto

type TL_chatPhoto struct {
	Photo_small TL // FileLocation
	Photo_big   TL // FileLocation
}

type TL_chatPhotoEmpty

type TL_chatPhotoEmpty struct {
}

type TL_client_DH_inner_data

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

type TL_config

type TL_config struct {
	Flags int32
	// Phonecalls_enabled	bool // flags_1?true
	Date                     int32
	Expires                  int32
	Test_mode                TL // Bool
	This_dc                  int32
	Dc_options               []TL // DcOption
	Chat_size_max            int32
	Megagroup_size_max       int32
	Forwarded_count_max      int32
	Online_update_period_ms  int32
	Offline_blur_timeout_ms  int32
	Offline_idle_timeout_ms  int32
	Online_cloud_timeout_ms  int32
	Notify_cloud_delay_ms    int32
	Notify_default_delay_ms  int32
	Chat_big_size            int32
	Push_chat_period_ms      int32
	Push_chat_limit          int32
	Saved_gifs_limit         int32
	Edit_time_limit          int32
	Rating_e_decay           int32
	Stickers_recent_limit    int32
	Stickers_faved_limit     int32
	Tmp_sessions             int32
	Pinned_dialogs_count_max int32
	Call_receive_timeout_ms  int32
	Call_ring_timeout_ms     int32
	Call_connect_timeout_ms  int32
	Call_packet_timeout_ms   int32
	Me_url_prefix            string
	Suggested_lang_code      string
	Lang_pack_version        int32
	Disabled_features        []TL // DisabledFeature
}

type TL_contact

type TL_contact struct {
	User_id int32
	Mutual  TL // Bool
}

type TL_contactBlocked

type TL_contactBlocked struct {
	User_id int32
	Date    int32
}

type TL_contactLinkContact

type TL_contactLinkContact struct {
}

type TL_contactLinkHasPhone

type TL_contactLinkHasPhone struct {
}

type TL_contactLinkNone

type TL_contactLinkNone struct {
}

type TL_contactLinkUnknown

type TL_contactLinkUnknown struct {
}

type TL_contactStatus

type TL_contactStatus struct {
	User_id int32
	Status  TL // UserStatus
}

type TL_contacts_block

type TL_contacts_block struct {
	Id TL // InputUser
}

type TL_contacts_blocked

type TL_contacts_blocked struct {
	Blocked []TL // ContactBlocked
	Users   []TL // User
}

type TL_contacts_blockedSlice

type TL_contacts_blockedSlice struct {
	Count   int32
	Blocked []TL // ContactBlocked
	Users   []TL // User
}

type TL_contacts_contacts

type TL_contacts_contacts struct {
	Contacts    []TL // Contact
	Saved_count int32
	Users       []TL // User
}

type TL_contacts_contactsNotModified

type TL_contacts_contactsNotModified struct {
}

type TL_contacts_deleteContact

type TL_contacts_deleteContact struct {
	Id TL // InputUser
}

type TL_contacts_deleteContacts

type TL_contacts_deleteContacts struct {
	Id []TL // InputUser
}

type TL_contacts_exportCard

type TL_contacts_exportCard struct {
}

type TL_contacts_found

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

type TL_contacts_getBlocked

type TL_contacts_getBlocked struct {
	Offset int32
	Limit  int32
}

type TL_contacts_getContacts

type TL_contacts_getContacts struct {
	Hash int32
}

type TL_contacts_getStatuses

type TL_contacts_getStatuses struct {
}

type TL_contacts_getTopPeers

type TL_contacts_getTopPeers struct {
	Flags int32
	// Correspondents	bool // flags_0?true
	// Bots_pm	bool // flags_1?true
	// Bots_inline	bool // flags_2?true
	// Phone_calls	bool // flags_3?true
	// Groups	bool // flags_10?true
	// Channels	bool // flags_15?true
	Offset int32
	Limit  int32
	Hash   int32
}

type TL_contacts_importCard

type TL_contacts_importCard struct {
	Export_card []int32
}

type TL_contacts_importContacts

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

type TL_contacts_importedContacts

type TL_contacts_importedContacts struct {
	Imported        []TL // ImportedContact
	Popular_invites []TL // PopularContact
	Retry_contacts  []int64
	Users           []TL // User
}
type TL_contacts_link struct {
	My_link      TL // ContactLink
	Foreign_link TL // ContactLink
	User         TL // User
}

type TL_contacts_resetSaved

type TL_contacts_resetSaved struct {
}

type TL_contacts_resetTopPeerRating

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

type TL_contacts_resolveUsername

type TL_contacts_resolveUsername struct {
	Username string
}

type TL_contacts_resolvedPeer

type TL_contacts_resolvedPeer struct {
	Peer  TL   // Peer
	Chats []TL // Chat
	Users []TL // User
}
type TL_contacts_search struct {
	Q     string
	Limit int32
}

type TL_contacts_topPeers

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

type TL_contacts_topPeersNotModified

type TL_contacts_topPeersNotModified struct {
}

type TL_contacts_unblock

type TL_contacts_unblock struct {
	Id TL // InputUser
}

type TL_crc_bad_msg_notification

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

type TL_dataJSON

type TL_dataJSON struct {
	Data string
}

type TL_dcOption

type TL_dcOption struct {
	Flags int32
	// Ipv6	bool // flags_0?true
	// Media_only	bool // flags_1?true
	// Tcpo_only	bool // flags_2?true
	// Cdn	bool // flags_3?true
	// Static	bool // flags_4?true
	Id         int32
	Ip_address string
	Port       int32
}

type TL_dh_gen_ok

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

type TL_dialog

type TL_dialog struct {
	Flags int32
	// Pinned	bool // flags_2?true
	Peer                  TL // Peer
	Top_message           int32
	Read_inbox_max_id     int32
	Read_outbox_max_id    int32
	Unread_count          int32
	Unread_mentions_count int32
	Notify_settings       TL // PeerNotifySettings
	Pts                   int32
	Draft                 TL // flags_1?DraftMessage
}

type TL_disabledFeature

type TL_disabledFeature struct {
	Feature     string
	Description string
}

type TL_document

type TL_document struct {
	Id          int64
	Access_hash int64
	Date        int32
	Mime_type   string
	Size        int32
	Thumb       TL // PhotoSize
	Dc_id       int32
	Version     int32
	Attributes  []TL // DocumentAttribute
}

type TL_documentAttributeAnimated

type TL_documentAttributeAnimated struct {
}

type TL_documentAttributeAudio

type TL_documentAttributeAudio struct {
	Flags int32
	// Voice	bool // flags_10?true
	Duration  int32
	Title     string
	Performer string
	Waveform  []byte
}

type TL_documentAttributeFilename

type TL_documentAttributeFilename struct {
	File_name string
}

type TL_documentAttributeHasStickers

type TL_documentAttributeHasStickers struct {
}

type TL_documentAttributeImageSize

type TL_documentAttributeImageSize struct {
	W int32
	H int32
}

type TL_documentAttributeSticker

type TL_documentAttributeSticker struct {
	Flags int32
	// Mask	bool // flags_1?true
	Alt         string
	Stickerset  TL // InputStickerSet
	Mask_coords TL // flags_0?MaskCoords
}

type TL_documentAttributeVideo

type TL_documentAttributeVideo struct {
	Flags int32
	// Round_message	bool // flags_0?true
	Duration int32
	W        int32
	H        int32
}

type TL_documentEmpty

type TL_documentEmpty struct {
	Id int64
}

type TL_draftMessage

type TL_draftMessage struct {
	Flags int32
	// No_webpage	bool // flags_1?true
	Reply_to_msg_id int32
	Message         string
	Entities        []TL // MessageEntity
	Date            int32
}

type TL_draftMessageEmpty

type TL_draftMessageEmpty struct {
}

type TL_encryptedChat

type TL_encryptedChat struct {
	Id              int32
	Access_hash     int64
	Date            int32
	Admin_id        int32
	Participant_id  int32
	G_a_or_b        []byte
	Key_fingerprint int64
}

type TL_encryptedChatDiscarded

type TL_encryptedChatDiscarded struct {
	Id int32
}

type TL_encryptedChatEmpty

type TL_encryptedChatEmpty struct {
	Id int32
}

type TL_encryptedChatRequested

type TL_encryptedChatRequested struct {
	Id             int32
	Access_hash    int64
	Date           int32
	Admin_id       int32
	Participant_id int32
	G_a            []byte
}

type TL_encryptedChatWaiting

type TL_encryptedChatWaiting struct {
	Id             int32
	Access_hash    int64
	Date           int32
	Admin_id       int32
	Participant_id int32
}

type TL_encryptedFile

type TL_encryptedFile struct {
	Id              int64
	Access_hash     int64
	Size            int32
	Dc_id           int32
	Key_fingerprint int32
}

type TL_encryptedFileEmpty

type TL_encryptedFileEmpty struct {
}

type TL_encryptedMessage

type TL_encryptedMessage struct {
	Random_id int64
	Chat_id   int32
	Date      int32
	Bytes     []byte
	File      TL // EncryptedFile
}

type TL_encryptedMessageService

type TL_encryptedMessageService struct {
	Random_id int64
	Chat_id   int32
	Date      int32
	Bytes     []byte
}

type TL_error

type TL_error struct {
	Code int32
	Text string
}
type TL_exportedMessageLink struct {
	Link string
}

type TL_fileLocation

type TL_fileLocation struct {
	Dc_id     int32
	Volume_id int64
	Local_id  int32
	Secret    int64
}

type TL_fileLocationUnavailable

type TL_fileLocationUnavailable struct {
	Volume_id int64
	Local_id  int32
	Secret    int64
}

type TL_foundGif

type TL_foundGif struct {
	Url          string
	Thumb_url    string
	Content_url  string
	Content_type string
	W            int32
	H            int32
}

type TL_foundGifCached

type TL_foundGifCached struct {
	Url      string
	Photo    TL // Photo
	Document TL // Document
}

type TL_game

type TL_game struct {
	Flags       int32
	Id          int64
	Access_hash int64
	Short_name  string
	Title       string
	Description string
	Photo       TL // Photo
	Document    TL // flags_0?Document
}

type TL_geoPoint

type TL_geoPoint struct {
	Long float64
	Lat  float64
}

type TL_geoPointEmpty

type TL_geoPointEmpty struct {
}

type TL_help_appUpdate

type TL_help_appUpdate struct {
	Id       int32
	Critical TL // Bool
	Url      string
	Text     string
}

type TL_help_getAppChangelog

type TL_help_getAppChangelog struct {
	Prev_app_version string
}

type TL_help_getAppUpdate

type TL_help_getAppUpdate struct {
}

type TL_help_getCdnConfig

type TL_help_getCdnConfig struct {
}

type TL_help_getConfig

type TL_help_getConfig struct {
}

type TL_help_getInviteText

type TL_help_getInviteText struct {
}

type TL_help_getNearestDc

type TL_help_getNearestDc struct {
}

type TL_help_getSupport

type TL_help_getSupport struct {
}

type TL_help_getTermsOfService

type TL_help_getTermsOfService struct {
}

type TL_help_inviteText

type TL_help_inviteText struct {
	Message string
}

type TL_help_noAppUpdate

type TL_help_noAppUpdate struct {
}

type TL_help_saveAppLog

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

type TL_help_setBotUpdatesStatus

type TL_help_setBotUpdatesStatus struct {
	Pending_updates_count int32
	Message               string
}

type TL_help_support

type TL_help_support struct {
	Phone_number string
	User         TL // User
}

type TL_help_termsOfService

type TL_help_termsOfService struct {
	Text string
}

type TL_highScore

type TL_highScore struct {
	Pos     int32
	User_id int32
	Score   int32
}

type TL_importedContact

type TL_importedContact struct {
	User_id   int32
	Client_id int64
}

type TL_initConnection

type TL_initConnection struct {
	Api_id           int32
	Device_model     string
	System_version   string
	App_version      string
	System_lang_code string
	Lang_pack        string
	Lang_code        string
	Query            TL
}

type TL_inlineBotSwitchPM

type TL_inlineBotSwitchPM struct {
	Text        string
	Start_param string
}

type TL_inputAppEvent

type TL_inputAppEvent struct {
	Time float64

	Peer int64
	Data string
	// contains filtered or unexported fields
}

type TL_inputBotInlineMessageGame

type TL_inputBotInlineMessageGame struct {
	Flags        int32
	Reply_markup TL // flags_2?ReplyMarkup
}

type TL_inputBotInlineMessageID

type TL_inputBotInlineMessageID struct {
	Dc_id       int32
	Id          int64
	Access_hash int64
}

type TL_inputBotInlineMessageMediaAuto

type TL_inputBotInlineMessageMediaAuto struct {
	Flags        int32
	Caption      string
	Reply_markup TL // flags_2?ReplyMarkup
}

type TL_inputBotInlineMessageMediaContact

type TL_inputBotInlineMessageMediaContact struct {
	Flags        int32
	Phone_number string
	First_name   string
	Last_name    string
	Reply_markup TL // flags_2?ReplyMarkup
}

type TL_inputBotInlineMessageMediaGeo

type TL_inputBotInlineMessageMediaGeo struct {
	Flags        int32
	Geo_point    TL // InputGeoPoint
	Reply_markup TL // flags_2?ReplyMarkup
}

type TL_inputBotInlineMessageMediaVenue

type TL_inputBotInlineMessageMediaVenue struct {
	Flags        int32
	Geo_point    TL // InputGeoPoint
	Title        string
	Address      string
	Provider     string
	Venue_id     string
	Reply_markup TL // flags_2?ReplyMarkup
}

type TL_inputBotInlineMessageText

type TL_inputBotInlineMessageText struct {
	Flags int32
	// No_webpage	bool // flags_0?true
	Message      string
	Entities     []TL // MessageEntity
	Reply_markup TL   // flags_2?ReplyMarkup
}

type TL_inputBotInlineResult

type TL_inputBotInlineResult struct {
	Flags int32
	Id    string

	Title        string
	Description  string
	Url          string
	Thumb_url    string
	Content_url  string
	Content_type string
	W            int32
	H            int32
	Duration     int32
	Send_message TL // InputBotInlineMessage
	// contains filtered or unexported fields
}

type TL_inputBotInlineResultDocument

type TL_inputBotInlineResultDocument struct {
	Flags int32
	Id    string

	Title        string
	Description  string
	Document     TL // InputDocument
	Send_message TL // InputBotInlineMessage
	// contains filtered or unexported fields
}

type TL_inputBotInlineResultGame

type TL_inputBotInlineResultGame struct {
	Id           string
	Short_name   string
	Send_message TL // InputBotInlineMessage
}

type TL_inputBotInlineResultPhoto

type TL_inputBotInlineResultPhoto struct {
	Id string

	Photo        TL // InputPhoto
	Send_message TL // InputBotInlineMessage
	// contains filtered or unexported fields
}

type TL_inputChannel

type TL_inputChannel struct {
	Channel_id  int32
	Access_hash int64
}

type TL_inputChannelEmpty

type TL_inputChannelEmpty struct {
}

type TL_inputChatPhoto

type TL_inputChatPhoto struct {
	Id TL // InputPhoto
}

type TL_inputChatPhotoEmpty

type TL_inputChatPhotoEmpty struct {
}

type TL_inputChatUploadedPhoto

type TL_inputChatUploadedPhoto struct {
	File TL // InputFile
}

type TL_inputDocument

type TL_inputDocument struct {
	Id          int64
	Access_hash int64
}

type TL_inputDocumentEmpty

type TL_inputDocumentEmpty struct {
}

type TL_inputDocumentFileLocation

type TL_inputDocumentFileLocation struct {
	Id          int64
	Access_hash int64
	Version     int32
}

type TL_inputEncryptedChat

type TL_inputEncryptedChat struct {
	Chat_id     int32
	Access_hash int64
}

type TL_inputEncryptedFile

type TL_inputEncryptedFile struct {
	Id          int64
	Access_hash int64
}

type TL_inputEncryptedFileBigUploaded

type TL_inputEncryptedFileBigUploaded struct {
	Id              int64
	Parts           int32
	Key_fingerprint int32
}

type TL_inputEncryptedFileEmpty

type TL_inputEncryptedFileEmpty struct {
}

type TL_inputEncryptedFileLocation

type TL_inputEncryptedFileLocation struct {
	Id          int64
	Access_hash int64
}

type TL_inputEncryptedFileUploaded

type TL_inputEncryptedFileUploaded struct {
	Id              int64
	Parts           int32
	Md5_checksum    string
	Key_fingerprint int32
}

type TL_inputFile

type TL_inputFile struct {
	Id           int64
	Parts        int32
	Name         string
	Md5_checksum string
}

type TL_inputFileBig

type TL_inputFileBig struct {
	Id    int64
	Parts int32
	Name  string
}

type TL_inputFileLocation

type TL_inputFileLocation struct {
	Volume_id int64
	Local_id  int32
	Secret    int64
}

type TL_inputGameID

type TL_inputGameID struct {
	Id          int64
	Access_hash int64
}

type TL_inputGameShortName

type TL_inputGameShortName struct {
	Bot_id     TL // InputUser
	Short_name string
}

type TL_inputGeoPoint

type TL_inputGeoPoint struct {
	Lat  float64
	Long float64
}

type TL_inputGeoPointEmpty

type TL_inputGeoPointEmpty struct {
}

type TL_inputMediaContact

type TL_inputMediaContact struct {
	Phone_number string
	First_name   string
	Last_name    string
}

type TL_inputMediaDocument

type TL_inputMediaDocument struct {
	Flags       int32
	Id          TL // InputDocument
	Caption     string
	Ttl_seconds int32
}

type TL_inputMediaDocumentExternal

type TL_inputMediaDocumentExternal struct {
	Flags       int32
	Url         string
	Caption     string
	Ttl_seconds int32
}

type TL_inputMediaEmpty

type TL_inputMediaEmpty struct {
}

type TL_inputMediaGame

type TL_inputMediaGame struct {
	Id TL // InputGame
}

type TL_inputMediaGeoPoint

type TL_inputMediaGeoPoint struct {
	Geo_point TL // InputGeoPoint
}

type TL_inputMediaGifExternal

type TL_inputMediaGifExternal struct {
	Url string
	Q   string
}

type TL_inputMediaInvoice

type TL_inputMediaInvoice struct {
	Flags       int32
	Title       string
	Description string
	Photo       TL // flags_0?InputWebDocument
	Invoice     TL // Invoice
	Payload     []byte
	Provider    string
	Start_param string
}

type TL_inputMediaPhoto

type TL_inputMediaPhoto struct {
	Flags       int32
	Id          TL // InputPhoto
	Caption     string
	Ttl_seconds int32
}

type TL_inputMediaPhotoExternal

type TL_inputMediaPhotoExternal struct {
	Flags       int32
	Url         string
	Caption     string
	Ttl_seconds int32
}

type TL_inputMediaUploadedDocument

type TL_inputMediaUploadedDocument struct {
	Flags       int32
	File        TL // InputFile
	Thumb       TL // flags_2?InputFile
	Mime_type   string
	Attributes  []TL // DocumentAttribute
	Caption     string
	Stickers    []TL // InputDocument
	Ttl_seconds int32
}

type TL_inputMediaUploadedPhoto

type TL_inputMediaUploadedPhoto struct {
	Flags       int32
	File        TL // InputFile
	Caption     string
	Stickers    []TL // InputDocument
	Ttl_seconds int32
}

type TL_inputMediaVenue

type TL_inputMediaVenue struct {
	Geo_point TL // InputGeoPoint
	Title     string
	Address   string
	Provider  string
	Venue_id  string
}

type TL_inputMessageEntityMentionName

type TL_inputMessageEntityMentionName struct {
	Offset  int32
	Length  int32
	User_id TL // InputUser
}

type TL_inputMessagesFilterChatPhotos

type TL_inputMessagesFilterChatPhotos struct {
}

type TL_inputMessagesFilterDocument

type TL_inputMessagesFilterDocument struct {
}

type TL_inputMessagesFilterEmpty

type TL_inputMessagesFilterEmpty struct {
}

type TL_inputMessagesFilterGif

type TL_inputMessagesFilterGif struct {
}

type TL_inputMessagesFilterMusic

type TL_inputMessagesFilterMusic struct {
}

type TL_inputMessagesFilterMyMentions

type TL_inputMessagesFilterMyMentions struct {
}

type TL_inputMessagesFilterMyMentionsUnread

type TL_inputMessagesFilterMyMentionsUnread struct {
}

type TL_inputMessagesFilterPhoneCalls

type TL_inputMessagesFilterPhoneCalls struct {
	Flags int32
}

type TL_inputMessagesFilterPhotoVideo

type TL_inputMessagesFilterPhotoVideo struct {
}

type TL_inputMessagesFilterPhotoVideoDocuments

type TL_inputMessagesFilterPhotoVideoDocuments struct {
}

type TL_inputMessagesFilterPhotos

type TL_inputMessagesFilterPhotos struct {
}

type TL_inputMessagesFilterRoundVideo

type TL_inputMessagesFilterRoundVideo struct {
}

type TL_inputMessagesFilterRoundVoice

type TL_inputMessagesFilterRoundVoice struct {
}

type TL_inputMessagesFilterUrl

type TL_inputMessagesFilterUrl struct {
}

type TL_inputMessagesFilterVideo

type TL_inputMessagesFilterVideo struct {
}

type TL_inputMessagesFilterVoice

type TL_inputMessagesFilterVoice struct {
}

type TL_inputNotifyAll

type TL_inputNotifyAll struct {
}

type TL_inputNotifyChats

type TL_inputNotifyChats struct {
}

type TL_inputNotifyPeer

type TL_inputNotifyPeer struct {
	Peer TL // InputPeer
}

type TL_inputNotifyUsers

type TL_inputNotifyUsers struct {
}

type TL_inputPaymentCredentials

type TL_inputPaymentCredentials struct {
	Flags int32
	// Save	bool // flags_0?true
	Data TL // DataJSON
}

type TL_inputPaymentCredentialsSaved

type TL_inputPaymentCredentialsSaved struct {
	Id           string
	Tmp_password []byte
}

type TL_inputPeerChannel

type TL_inputPeerChannel struct {
	Channel_id  int32
	Access_hash int64
}

type TL_inputPeerChat

type TL_inputPeerChat struct {
	Chat_id int32
}

func NewChatInputPeer

func NewChatInputPeer(chatID int32) TL_inputPeerChat

type TL_inputPeerEmpty

type TL_inputPeerEmpty struct {
}

type TL_inputPeerNotifyEventsAll

type TL_inputPeerNotifyEventsAll struct {
}

type TL_inputPeerNotifyEventsEmpty

type TL_inputPeerNotifyEventsEmpty struct {
}

type TL_inputPeerNotifySettings

type TL_inputPeerNotifySettings struct {
	Flags int32
	// Show_previews	bool // flags_0?true
	// Silent	bool // flags_1?true
	Mute_until int32
	Sound      string
}

type TL_inputPeerSelf

type TL_inputPeerSelf struct {
}

type TL_inputPeerUser

type TL_inputPeerUser struct {
	User_id     int32
	Access_hash int64
}

func NewUserInputPeer

func NewUserInputPeer(userID int32, accessHash int64) TL_inputPeerUser

type TL_inputPhoneCall

type TL_inputPhoneCall struct {
	Id          int64
	Access_hash int64
}

type TL_inputPhoneContact

type TL_inputPhoneContact struct {
	Client_id  int64
	Phone      string
	First_name string
	Last_name  string
}

type TL_inputPhoto

type TL_inputPhoto struct {
	Id          int64
	Access_hash int64
}

type TL_inputPhotoEmpty

type TL_inputPhotoEmpty struct {
}

type TL_inputPrivacyKeyChatInvite

type TL_inputPrivacyKeyChatInvite struct {
}

type TL_inputPrivacyKeyPhoneCall

type TL_inputPrivacyKeyPhoneCall struct {
}

type TL_inputPrivacyKeyStatusTimestamp

type TL_inputPrivacyKeyStatusTimestamp struct {
}

type TL_inputPrivacyValueAllowAll

type TL_inputPrivacyValueAllowAll struct {
}

type TL_inputPrivacyValueAllowContacts

type TL_inputPrivacyValueAllowContacts struct {
}

type TL_inputPrivacyValueAllowUsers

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

type TL_inputPrivacyValueDisallowAll

type TL_inputPrivacyValueDisallowAll struct {
}

type TL_inputPrivacyValueDisallowContacts

type TL_inputPrivacyValueDisallowContacts struct {
}

type TL_inputPrivacyValueDisallowUsers

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

type TL_inputReportReasonOther

type TL_inputReportReasonOther struct {
	Text string
}

type TL_inputReportReasonPornography

type TL_inputReportReasonPornography struct {
}

type TL_inputReportReasonSpam

type TL_inputReportReasonSpam struct {
}

type TL_inputReportReasonViolence

type TL_inputReportReasonViolence struct {
}

type TL_inputStickerSetEmpty

type TL_inputStickerSetEmpty struct {
}

type TL_inputStickerSetID

type TL_inputStickerSetID struct {
	Id          int64
	Access_hash int64
}

type TL_inputStickerSetItem

type TL_inputStickerSetItem struct {
	Flags       int32
	Document    TL // InputDocument
	Emoji       string
	Mask_coords TL // flags_0?MaskCoords
}

type TL_inputStickerSetShortName

type TL_inputStickerSetShortName struct {
	Short_name string
}

type TL_inputStickeredMediaDocument

type TL_inputStickeredMediaDocument struct {
	Id TL // InputDocument
}

type TL_inputStickeredMediaPhoto

type TL_inputStickeredMediaPhoto struct {
	Id TL // InputPhoto
}

type TL_inputUser

type TL_inputUser struct {
	User_id     int32
	Access_hash int64
}

type TL_inputUserEmpty

type TL_inputUserEmpty struct {
}

type TL_inputUserSelf

type TL_inputUserSelf struct {
}

type TL_inputWebDocument

type TL_inputWebDocument struct {
	Url        string
	Size       int32
	Mime_type  string
	Attributes []TL // DocumentAttribute
}

type TL_inputWebFileLocation

type TL_inputWebFileLocation struct {
	Url         string
	Access_hash int64
}

type TL_invoice

type TL_invoice struct {
	Flags int32
	// Test	bool // flags_0?true
	// Name_requested	bool // flags_1?true
	// Phone_requested	bool // flags_2?true
	// Email_requested	bool // flags_3?true
	// Shipping_address_requested	bool // flags_4?true
	// Flexible	bool // flags_5?true
	Currency string
	Prices   []TL // LabeledPrice
}

type TL_invokeAfterMsg

type TL_invokeAfterMsg struct {
	Msg_id int64
	Query  TL
}

type TL_invokeAfterMsgs

type TL_invokeAfterMsgs struct {
	Msg_ids []int64
	Query   TL
}

type TL_invokeWithLayer

type TL_invokeWithLayer struct {
	Layer int32
	Query TL
}

type TL_invokeWithoutUpdates

type TL_invokeWithoutUpdates struct {
	Query TL
}

type TL_keyboardButton

type TL_keyboardButton struct {
	Text string
}

type TL_keyboardButtonBuy

type TL_keyboardButtonBuy struct {
	Text string
}

type TL_keyboardButtonCallback

type TL_keyboardButtonCallback struct {
	Text string
	Data []byte
}

type TL_keyboardButtonGame

type TL_keyboardButtonGame struct {
	Text string
}

type TL_keyboardButtonRequestGeoLocation

type TL_keyboardButtonRequestGeoLocation struct {
	Text string
}

type TL_keyboardButtonRequestPhone

type TL_keyboardButtonRequestPhone struct {
	Text string
}

type TL_keyboardButtonRow

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

type TL_keyboardButtonSwitchInline

type TL_keyboardButtonSwitchInline struct {
	Flags int32
	// Same_peer	bool // flags_0?true
	Text  string
	Query string
}

type TL_keyboardButtonUrl

type TL_keyboardButtonUrl struct {
	Text string
	Url  string
}

type TL_labeledPrice

type TL_labeledPrice struct {
	Label  string
	Amount int64
}

type TL_langPackDifference

type TL_langPackDifference struct {
	Lang_code    string
	From_version int32
	Version      int32
	Strings      []TL // LangPackString
}

type TL_langPackLanguage

type TL_langPackLanguage struct {
	Name        string
	Native_name string
	Lang_code   string
}

type TL_langPackString

type TL_langPackString struct {
	Key   string
	Value string
}

type TL_langPackStringDeleted

type TL_langPackStringDeleted struct {
	Key string
}

type TL_langPackStringPluralized

type TL_langPackStringPluralized struct {
	Flags       int32
	Key         string
	Zero_value  string
	One_value   string
	Two_value   string
	Few_value   string
	Many_value  string
	Other_value string
}

type TL_langpack_getDifference

type TL_langpack_getDifference struct {
	From_version int32
}

type TL_langpack_getLangPack

type TL_langpack_getLangPack struct {
	Lang_code string
}

type TL_langpack_getLanguages

type TL_langpack_getLanguages struct {
}

type TL_langpack_getStrings

type TL_langpack_getStrings struct {
	Lang_code string
	Keys      []string
}

type TL_maskCoords

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

type TL_message

type TL_message struct {
	Flags int32
	// Out	bool // flags_1?true
	// Mentioned	bool // flags_4?true
	// Media_unread	bool // flags_5?true
	// Silent	bool // flags_13?true
	// Post	bool // flags_14?true
	Id              int32
	From_id         int32
	To_id           TL // Peer
	Fwd_from        TL // flags_2?MessageFwdHeader
	Via_bot_id      int32
	Reply_to_msg_id int32
	Date            int32
	Message         string
	Media           TL   // flags_9?MessageMedia
	Reply_markup    TL   // flags_6?ReplyMarkup
	Entities        []TL // MessageEntity
	Views           int32
	Edit_date       int32
	Post_author     string
}

type TL_messageActionChannelCreate

type TL_messageActionChannelCreate struct {
	Title string
}

type TL_messageActionChannelMigrateFrom

type TL_messageActionChannelMigrateFrom struct {
	Title   string
	Chat_id int32
}

type TL_messageActionChatAddUser

type TL_messageActionChatAddUser struct {
	Users []int32
}

type TL_messageActionChatCreate

type TL_messageActionChatCreate struct {
	Title string
	Users []int32
}

type TL_messageActionChatDeletePhoto

type TL_messageActionChatDeletePhoto struct {
}

type TL_messageActionChatDeleteUser

type TL_messageActionChatDeleteUser struct {
	User_id int32
}

type TL_messageActionChatEditPhoto

type TL_messageActionChatEditPhoto struct {
	Photo TL // Photo
}

type TL_messageActionChatEditTitle

type TL_messageActionChatEditTitle struct {
	Title string
}
type TL_messageActionChatJoinedByLink struct {
	Inviter_id int32
}

type TL_messageActionChatMigrateTo

type TL_messageActionChatMigrateTo struct {
	Channel_id int32
}

type TL_messageActionEmpty

type TL_messageActionEmpty struct {
}

type TL_messageActionGameScore

type TL_messageActionGameScore struct {
	Game_id int64
	Score   int32
}

type TL_messageActionHistoryClear

type TL_messageActionHistoryClear struct {
}

type TL_messageActionPaymentSent

type TL_messageActionPaymentSent struct {
	Currency     string
	Total_amount int64
}

type TL_messageActionPaymentSentMe

type TL_messageActionPaymentSentMe struct {
	Flags              int32
	Currency           string
	Total_amount       int64
	Payload            []byte
	Info               TL // flags_0?PaymentRequestedInfo
	Shipping_option_id string
	Charge             TL // PaymentCharge
}

type TL_messageActionPhoneCall

type TL_messageActionPhoneCall struct {
	Flags    int32
	Call_id  int64
	Reason   TL // flags_0?PhoneCallDiscardReason
	Duration int32
}

type TL_messageActionPinMessage

type TL_messageActionPinMessage struct {
}

type TL_messageActionScreenshotTaken

type TL_messageActionScreenshotTaken struct {
}

type TL_messageEmpty

type TL_messageEmpty struct {
	Id int32
}

type TL_messageEntityBold

type TL_messageEntityBold struct {
	Offset int32
	Length int32
}

type TL_messageEntityBotCommand

type TL_messageEntityBotCommand struct {
	Offset int32
	Length int32
}

type TL_messageEntityCode

type TL_messageEntityCode struct {
	Offset int32
	Length int32
}

type TL_messageEntityEmail

type TL_messageEntityEmail struct {
	Offset int32
	Length int32
}

type TL_messageEntityHashtag

type TL_messageEntityHashtag struct {
	Offset int32
	Length int32
}

type TL_messageEntityItalic

type TL_messageEntityItalic struct {
	Offset int32
	Length int32
}

type TL_messageEntityMention

type TL_messageEntityMention struct {
	Offset int32
	Length int32
}

type TL_messageEntityMentionName

type TL_messageEntityMentionName struct {
	Offset  int32
	Length  int32
	User_id int32
}

type TL_messageEntityPre

type TL_messageEntityPre struct {
	Offset   int32
	Length   int32
	Language string
}

type TL_messageEntityTextUrl

type TL_messageEntityTextUrl struct {
	Offset int32
	Length int32
	Url    string
}

type TL_messageEntityUnknown

type TL_messageEntityUnknown struct {
	Offset int32
	Length int32
}

type TL_messageEntityUrl

type TL_messageEntityUrl struct {
	Offset int32
	Length int32
}

type TL_messageFwdHeader

type TL_messageFwdHeader struct {
	Flags        int32
	From_id      int32
	Date         int32
	Channel_id   int32
	Channel_post int32
	Post_author  string
}

type TL_messageMediaContact

type TL_messageMediaContact struct {
	Phone_number string
	First_name   string
	Last_name    string
	User_id      int32
}

type TL_messageMediaDocument

type TL_messageMediaDocument struct {
	Flags       int32
	Document    TL // flags_0?Document
	Caption     string
	Ttl_seconds int32
}

type TL_messageMediaEmpty

type TL_messageMediaEmpty struct {
}

type TL_messageMediaGame

type TL_messageMediaGame struct {
	Game TL // Game
}

type TL_messageMediaGeo

type TL_messageMediaGeo struct {
	Geo TL // GeoPoint
}

type TL_messageMediaInvoice

type TL_messageMediaInvoice struct {
	Flags int32
	// Shipping_address_requested	bool // flags_1?true
	// Test	bool // flags_3?true
	Title          string
	Description    string
	Photo          TL // flags_0?WebDocument
	Receipt_msg_id int32
	Currency       string
	Total_amount   int64
	Start_param    string
}

type TL_messageMediaPhoto

type TL_messageMediaPhoto struct {
	Flags       int32
	Photo       TL // flags_0?Photo
	Caption     string
	Ttl_seconds int32
}

type TL_messageMediaUnsupported

type TL_messageMediaUnsupported struct {
}

type TL_messageMediaVenue

type TL_messageMediaVenue struct {
	Geo      TL // GeoPoint
	Title    string
	Address  string
	Provider string
	Venue_id string
}

type TL_messageMediaWebPage

type TL_messageMediaWebPage struct {
	Webpage TL // WebPage
}

type TL_messageRange

type TL_messageRange struct {
	Min_id int32
	Max_id int32
}

type TL_messageService

type TL_messageService struct {
	Flags int32
	// Out	bool // flags_1?true
	// Mentioned	bool // flags_4?true
	// Media_unread	bool // flags_5?true
	// Silent	bool // flags_13?true
	// Post	bool // flags_14?true
	Id              int32
	From_id         int32
	To_id           TL // Peer
	Reply_to_msg_id int32
	Date            int32
	Action          TL // MessageAction
}

type TL_messages_acceptEncryption

type TL_messages_acceptEncryption struct {
	Peer            TL // InputEncryptedChat
	G_b             []byte
	Key_fingerprint int64
}

type TL_messages_addChatUser

type TL_messages_addChatUser struct {
	Chat_id   int32
	User_id   TL // InputUser
	Fwd_limit int32
}

type TL_messages_affectedHistory

type TL_messages_affectedHistory struct {
	Pts       int32
	Pts_count int32
	Offset    int32
}

type TL_messages_affectedMessages

type TL_messages_affectedMessages struct {
	Pts       int32
	Pts_count int32
}

type TL_messages_allStickers

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

type TL_messages_allStickersNotModified

type TL_messages_allStickersNotModified struct {
}

type TL_messages_archivedStickers

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

type TL_messages_botCallbackAnswer

type TL_messages_botCallbackAnswer struct {
	Flags int32
	// Alert	bool // flags_1?true
	// Has_url	bool // flags_3?true
	Message    string
	Url        string
	Cache_time int32
}

type TL_messages_botResults

type TL_messages_botResults struct {
	Flags int32
	// Gallery	bool // flags_0?true
	Query_id    int64
	Next_offset string
	Switch_pm   TL   // flags_2?InlineBotSwitchPM
	Results     []TL // BotInlineResult
	Cache_time  int32
}

type TL_messages_channelMessages

type TL_messages_channelMessages struct {
	Flags    int32
	Pts      int32
	Count    int32
	Messages []TL // Message
	Chats    []TL // Chat
	Users    []TL // User
}

type TL_messages_chatFull

type TL_messages_chatFull struct {
	Full_chat TL   // ChatFull
	Chats     []TL // Chat
	Users     []TL // User
}

type TL_messages_chats

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

type TL_messages_chatsSlice

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

type TL_messages_checkChatInvite

type TL_messages_checkChatInvite struct {
	Hash string
}

type TL_messages_clearRecentStickers

type TL_messages_clearRecentStickers struct {
	Flags int32
}

type TL_messages_createChat

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

type TL_messages_deleteChatUser

type TL_messages_deleteChatUser struct {
	Chat_id int32
	User_id TL // InputUser
}

type TL_messages_deleteHistory

type TL_messages_deleteHistory struct {
	Flags int32
	// Just_clear	bool // flags_0?true
	Peer   TL // InputPeer
	Max_id int32
}

type TL_messages_deleteMessages

type TL_messages_deleteMessages struct {
	Flags int32
	// Revoke	bool // flags_0?true
	Id []int32
}

type TL_messages_dhConfig

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

type TL_messages_dhConfigNotModified

type TL_messages_dhConfigNotModified struct {
	Random []byte
}

type TL_messages_dialogs

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

type TL_messages_dialogsSlice

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

type TL_messages_discardEncryption

type TL_messages_discardEncryption struct {
	Chat_id int32
}

type TL_messages_editChatAdmin

type TL_messages_editChatAdmin struct {
	Chat_id  int32
	User_id  TL // InputUser
	Is_admin TL // Bool
}

type TL_messages_editChatPhoto

type TL_messages_editChatPhoto struct {
	Chat_id int32
	Photo   TL // InputChatPhoto
}

type TL_messages_editChatTitle

type TL_messages_editChatTitle struct {
	Chat_id int32
	Title   string
}

type TL_messages_editInlineBotMessage

type TL_messages_editInlineBotMessage struct {
	Flags int32
	// No_webpage	bool // flags_1?true
	Id           TL // InputBotInlineMessageID
	Message      string
	Reply_markup TL   // flags_2?ReplyMarkup
	Entities     []TL // MessageEntity
}

type TL_messages_editMessage

type TL_messages_editMessage struct {
	Flags int32
	// No_webpage	bool // flags_1?true
	Peer         TL // InputPeer
	Id           int32
	Message      string
	Reply_markup TL   // flags_2?ReplyMarkup
	Entities     []TL // MessageEntity
}

type TL_messages_exportChatInvite

type TL_messages_exportChatInvite struct {
	Chat_id int32
}

type TL_messages_faveSticker

type TL_messages_faveSticker struct {
	Id     TL // InputDocument
	Unfave TL // Bool
}

type TL_messages_favedStickers

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

type TL_messages_favedStickersNotModified

type TL_messages_favedStickersNotModified struct {
}

type TL_messages_featuredStickers

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

type TL_messages_featuredStickersNotModified

type TL_messages_featuredStickersNotModified struct {
}

type TL_messages_forwardMessage

type TL_messages_forwardMessage struct {
	Peer      TL // InputPeer
	Id        int32
	Random_id int64
}

type TL_messages_forwardMessages

type TL_messages_forwardMessages struct {
	Flags int32
	// Silent	bool // flags_5?true
	// Background	bool // flags_6?true
	// With_my_score	bool // flags_8?true
	From_peer TL // InputPeer
	Id        []int32
	Random_id []int64
	To_peer   TL // InputPeer
}

type TL_messages_foundGifs

type TL_messages_foundGifs struct {
	Next_offset int32
	Results     []TL // FoundGif
}

type TL_messages_getAllChats

type TL_messages_getAllChats struct {
	Except_ids []int32
}

type TL_messages_getAllDrafts

type TL_messages_getAllDrafts struct {
}

type TL_messages_getAllStickers

type TL_messages_getAllStickers struct {
	Hash int32
}

type TL_messages_getArchivedStickers

type TL_messages_getArchivedStickers struct {
	Flags int32
	// Masks	bool // flags_0?true
	Offset_id int64
	Limit     int32
}

type TL_messages_getAttachedStickers

type TL_messages_getAttachedStickers struct {
	Media TL // InputStickeredMedia
}

type TL_messages_getBotCallbackAnswer

type TL_messages_getBotCallbackAnswer struct {
	Flags int32
	// Game	bool // flags_1?true
	Peer   TL // InputPeer
	Msg_id int32
	Data   []byte
}

type TL_messages_getChats

type TL_messages_getChats struct {
	Id []int32
}

type TL_messages_getCommonChats

type TL_messages_getCommonChats struct {
	User_id TL // InputUser
	Max_id  int32
	Limit   int32
}

type TL_messages_getDhConfig

type TL_messages_getDhConfig struct {
	Version       int32
	Random_length int32
}

type TL_messages_getDialogs

type TL_messages_getDialogs struct {
	Flags int32
	// Exclude_pinned	bool // flags_0?true
	Offset_date int32
	Offset_id   int32
	Offset_peer TL // InputPeer
	Limit       int32
}

type TL_messages_getDocumentByHash

type TL_messages_getDocumentByHash struct {
	Sha256    []byte
	Size      int32
	Mime_type string
}

type TL_messages_getFavedStickers

type TL_messages_getFavedStickers struct {
	Hash int32
}

type TL_messages_getFeaturedStickers

type TL_messages_getFeaturedStickers struct {
	Hash int32
}

type TL_messages_getFullChat

type TL_messages_getFullChat struct {
	Chat_id int32
}

type TL_messages_getGameHighScores

type TL_messages_getGameHighScores struct {
	Peer    TL // InputPeer
	Id      int32
	User_id TL // InputUser
}

type TL_messages_getHistory

type TL_messages_getHistory struct {
	Peer        TL // InputPeer
	Offset_id   int32
	Offset_date int32
	Add_offset  int32
	Limit       int32
	Max_id      int32
	Min_id      int32
}

type TL_messages_getInlineBotResults

type TL_messages_getInlineBotResults struct {
	Flags     int32
	Bot       TL // InputUser
	Peer      TL // InputPeer
	Geo_point TL // flags_0?InputGeoPoint
	Query     string
	Offset    string
}

type TL_messages_getInlineGameHighScores

type TL_messages_getInlineGameHighScores struct {
	Id      TL // InputBotInlineMessageID
	User_id TL // InputUser
}

type TL_messages_getMaskStickers

type TL_messages_getMaskStickers struct {
	Hash int32
}

type TL_messages_getMessageEditData

type TL_messages_getMessageEditData struct {
	Peer TL // InputPeer
	Id   int32
}

type TL_messages_getMessages

type TL_messages_getMessages struct {
	Id []int32
}

type TL_messages_getMessagesViews

type TL_messages_getMessagesViews struct {
	Peer      TL // InputPeer
	Id        []int32
	Increment TL // Bool
}

type TL_messages_getPeerDialogs

type TL_messages_getPeerDialogs struct {
	Peers []TL // InputPeer
}

type TL_messages_getPeerSettings

type TL_messages_getPeerSettings struct {
	Peer TL // InputPeer
}

type TL_messages_getPinnedDialogs

type TL_messages_getPinnedDialogs struct {
}

type TL_messages_getRecentStickers

type TL_messages_getRecentStickers struct {
	Flags int32
	// Attached	bool // flags_0?true
	Hash int32
}

type TL_messages_getSavedGifs

type TL_messages_getSavedGifs struct {
	Hash int32
}

type TL_messages_getStickerSet

type TL_messages_getStickerSet struct {
	Stickerset TL // InputStickerSet
}

type TL_messages_getUnreadMentions

type TL_messages_getUnreadMentions struct {
	Peer       TL // InputPeer
	Offset_id  int32
	Add_offset int32
	Limit      int32
	Max_id     int32
	Min_id     int32
}

type TL_messages_getWebPage

type TL_messages_getWebPage struct {
	Url  string
	Hash int32
}

type TL_messages_getWebPagePreview

type TL_messages_getWebPagePreview struct {
	Message string
}

type TL_messages_hideReportSpam

type TL_messages_hideReportSpam struct {
	Peer TL // InputPeer
}

type TL_messages_highScores

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

type TL_messages_importChatInvite

type TL_messages_importChatInvite struct {
	Hash string
}

type TL_messages_installStickerSet

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

type TL_messages_messageEditData

type TL_messages_messageEditData struct {
	Flags int32
}

type TL_messages_messages

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

type TL_messages_messagesSlice

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

type TL_messages_migrateChat

type TL_messages_migrateChat struct {
	Chat_id int32
}

type TL_messages_peerDialogs

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

type TL_messages_readEncryptedHistory

type TL_messages_readEncryptedHistory struct {
	Peer     TL // InputEncryptedChat
	Max_date int32
}

type TL_messages_readFeaturedStickers

type TL_messages_readFeaturedStickers struct {
	Id []int64
}

type TL_messages_readHistory

type TL_messages_readHistory struct {
	Peer   TL // InputPeer
	Max_id int32
}

type TL_messages_readMessageContents

type TL_messages_readMessageContents struct {
	Id []int32
}

type TL_messages_receivedMessages

type TL_messages_receivedMessages struct {
	Max_id int32
}

type TL_messages_receivedQueue

type TL_messages_receivedQueue struct {
	Max_qts int32
}

type TL_messages_recentStickers

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

type TL_messages_recentStickersNotModified

type TL_messages_recentStickersNotModified struct {
}

type TL_messages_reorderPinnedDialogs

type TL_messages_reorderPinnedDialogs struct {
	Flags int32
	// Force	bool // flags_0?true
	Order []TL // InputPeer
}

type TL_messages_reorderStickerSets

type TL_messages_reorderStickerSets struct {
	Flags int32
	// Masks	bool // flags_0?true
	Order []int64
}

type TL_messages_reportEncryptedSpam

type TL_messages_reportEncryptedSpam struct {
	Peer TL // InputEncryptedChat
}

type TL_messages_reportSpam

type TL_messages_reportSpam struct {
	Peer TL // InputPeer
}

type TL_messages_requestEncryption

type TL_messages_requestEncryption struct {
	User_id   TL // InputUser
	Random_id int32
	G_a       []byte
}

type TL_messages_saveDraft

type TL_messages_saveDraft struct {
	Flags int32
	// No_webpage	bool // flags_1?true
	Reply_to_msg_id int32
	Peer            TL // InputPeer
	Message         string
	Entities        []TL // MessageEntity
}

type TL_messages_saveGif

type TL_messages_saveGif struct {
	Id     TL // InputDocument
	Unsave TL // Bool
}

type TL_messages_saveRecentSticker

type TL_messages_saveRecentSticker struct {
	Flags int32
	// Attached	bool // flags_0?true
	Id     TL // InputDocument
	Unsave TL // Bool
}

type TL_messages_savedGifs

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

type TL_messages_savedGifsNotModified

type TL_messages_savedGifsNotModified struct {
}
type TL_messages_search struct {
	Flags      int32
	Peer       TL // InputPeer
	Q          string
	From_id    TL // flags_0?InputUser
	Filter     TL // MessagesFilter
	Min_date   int32
	Max_date   int32
	Offset_id  int32
	Add_offset int32
	Limit      int32
	Max_id     int32
	Min_id     int32
}

type TL_messages_searchGifs

type TL_messages_searchGifs struct {
	Q      string
	Offset int32
}

type TL_messages_searchGlobal

type TL_messages_searchGlobal struct {
	Q           string
	Offset_date int32
	Offset_peer TL // InputPeer
	Offset_id   int32
	Limit       int32
}

type TL_messages_sendEncrypted

type TL_messages_sendEncrypted struct {
	Peer      TL // InputEncryptedChat
	Random_id int64
	Data      []byte
}

type TL_messages_sendEncryptedFile

type TL_messages_sendEncryptedFile struct {
	Peer      TL // InputEncryptedChat
	Random_id int64
	Data      []byte
	File      TL // InputEncryptedFile
}

type TL_messages_sendEncryptedService

type TL_messages_sendEncryptedService struct {
	Peer      TL // InputEncryptedChat
	Random_id int64
	Data      []byte
}

type TL_messages_sendInlineBotResult

type TL_messages_sendInlineBotResult struct {
	Flags int32
	// Silent	bool // flags_5?true
	// Background	bool // flags_6?true
	// Clear_draft	bool // flags_7?true
	Peer            TL // InputPeer
	Reply_to_msg_id int32
	Random_id       int64
	Query_id        int64
	Id              string
}

type TL_messages_sendMedia

type TL_messages_sendMedia struct {
	Flags int32
	// Silent	bool // flags_5?true
	// Background	bool // flags_6?true
	// Clear_draft	bool // flags_7?true
	Peer            TL // InputPeer
	Reply_to_msg_id int32
	Media           TL // InputMedia
	Random_id       int64
	Reply_markup    TL // flags_2?ReplyMarkup
}

type TL_messages_sendMessage

type TL_messages_sendMessage struct {
	Flags int32
	// No_webpage	bool // flags_1?true
	// Silent	bool // flags_5?true
	// Background	bool // flags_6?true
	// Clear_draft	bool // flags_7?true
	Peer            TL // InputPeer
	Reply_to_msg_id int32
	Message         string
	Random_id       int64
	Reply_markup    TL   // flags_2?ReplyMarkup
	Entities        []TL // MessageEntity
}

type TL_messages_sendScreenshotNotification

type TL_messages_sendScreenshotNotification struct {
	Peer            TL // InputPeer
	Reply_to_msg_id int32
	Random_id       int64
}

type TL_messages_sentEncryptedFile

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

type TL_messages_sentEncryptedMessage

type TL_messages_sentEncryptedMessage struct {
	Date int32
}

type TL_messages_setBotCallbackAnswer

type TL_messages_setBotCallbackAnswer struct {
	Flags int32
	// Alert	bool // flags_1?true
	Query_id   int64
	Message    string
	Url        string
	Cache_time int32
}

type TL_messages_setBotPrecheckoutResults

type TL_messages_setBotPrecheckoutResults struct {
	Flags int32
	// Success	bool // flags_1?true
	Query_id int64
	Error    string
}

type TL_messages_setBotShippingResults

type TL_messages_setBotShippingResults struct {
	Flags            int32
	Query_id         int64
	Error            string
	Shipping_options []TL // ShippingOption
}

type TL_messages_setEncryptedTyping

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

type TL_messages_setGameScore

type TL_messages_setGameScore struct {
	Flags int32
	// Edit_message	bool // flags_0?true
	// Force	bool // flags_1?true
	Peer    TL // InputPeer
	Id      int32
	User_id TL // InputUser
	Score   int32
}

type TL_messages_setInlineBotResults

type TL_messages_setInlineBotResults struct {
	Flags int32
	// Gallery	bool // flags_0?true
	// Private	bool // flags_1?true
	Query_id    int64
	Results     []TL // InputBotInlineResult
	Cache_time  int32
	Next_offset string
	Switch_pm   TL // flags_3?InlineBotSwitchPM
}

type TL_messages_setInlineGameScore

type TL_messages_setInlineGameScore struct {
	Flags int32
	// Edit_message	bool // flags_0?true
	// Force	bool // flags_1?true
	Id      TL // InputBotInlineMessageID
	User_id TL // InputUser
	Score   int32
}

type TL_messages_setTyping

type TL_messages_setTyping struct {
	Peer   TL // InputPeer
	Action TL // SendMessageAction
}

type TL_messages_startBot

type TL_messages_startBot struct {
	Bot         TL // InputUser
	Peer        TL // InputPeer
	Random_id   int64
	Start_param string
}

type TL_messages_stickerSet

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

type TL_messages_stickerSetInstallResultArchive

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

type TL_messages_stickerSetInstallResultSuccess

type TL_messages_stickerSetInstallResultSuccess struct {
}

type TL_messages_stickers

type TL_messages_stickers struct {
	Hash     string
	Stickers []TL // Document
}

type TL_messages_stickersNotModified

type TL_messages_stickersNotModified struct {
}

type TL_messages_toggleChatAdmins

type TL_messages_toggleChatAdmins struct {
	Chat_id int32
	Enabled TL // Bool
}

type TL_messages_toggleDialogPin

type TL_messages_toggleDialogPin struct {
	Flags int32
	// Pinned	bool // flags_0?true
	Peer TL // InputPeer
}

type TL_messages_uninstallStickerSet

type TL_messages_uninstallStickerSet struct {
	Stickerset TL // InputStickerSet
}

type TL_messages_uploadMedia

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

type TL_msg_container

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

type TL_msgs_ack

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

type TL_nearestDc

type TL_nearestDc struct {
	Country    string
	This_dc    int32
	Nearest_dc int32
}

type TL_new_session_created

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

type TL_notifyAll

type TL_notifyAll struct {
}

type TL_notifyChats

type TL_notifyChats struct {
}

type TL_notifyPeer

type TL_notifyPeer struct {
	Peer TL // Peer
}

type TL_notifyUsers

type TL_notifyUsers struct {
}

type TL_null

type TL_null struct {
}

type TL_p_q_inner_data

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

type TL_pageBlockAnchor

type TL_pageBlockAnchor struct {
	Name string
}

type TL_pageBlockAudio

type TL_pageBlockAudio struct {
	Audio_id int64
	Caption  TL // RichText
}

type TL_pageBlockAuthorDate

type TL_pageBlockAuthorDate struct {
	Author         TL // RichText
	Published_date int32
}

type TL_pageBlockBlockquote

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

type TL_pageBlockChannel

type TL_pageBlockChannel struct {
	Channel TL // Chat
}

type TL_pageBlockCollage

type TL_pageBlockCollage struct {
	Items   []TL // PageBlock
	Caption TL   // RichText
}

type TL_pageBlockCover

type TL_pageBlockCover struct {
	Cover TL // PageBlock
}

type TL_pageBlockDivider

type TL_pageBlockDivider struct {
}

type TL_pageBlockEmbed

type TL_pageBlockEmbed struct {
	Flags int32
	// Full_width	bool // flags_0?true
	// Allow_scrolling	bool // flags_3?true
	Url             string
	Html            string
	Poster_photo_id int64
	W               int32
	H               int32
	Caption         TL // RichText
}

type TL_pageBlockEmbedPost

type TL_pageBlockEmbedPost struct {
	Url             string
	Webpage_id      int64
	Author_photo_id int64
	Author          string
	Date            int32
	Blocks          []TL // PageBlock
	Caption         TL   // RichText
}

type TL_pageBlockFooter

type TL_pageBlockFooter struct {
	Text TL // RichText
}

type TL_pageBlockHeader

type TL_pageBlockHeader struct {
	Text TL // RichText
}

type TL_pageBlockList

type TL_pageBlockList struct {
	Ordered TL   // Bool
	Items   []TL // RichText
}

type TL_pageBlockParagraph

type TL_pageBlockParagraph struct {
	Text TL // RichText
}

type TL_pageBlockPhoto

type TL_pageBlockPhoto struct {
	Photo_id int64
	Caption  TL // RichText
}

type TL_pageBlockPreformatted

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

type TL_pageBlockPullquote

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

type TL_pageBlockSlideshow

type TL_pageBlockSlideshow struct {
	Items   []TL // PageBlock
	Caption TL   // RichText
}

type TL_pageBlockSubheader

type TL_pageBlockSubheader struct {
	Text TL // RichText
}

type TL_pageBlockSubtitle

type TL_pageBlockSubtitle struct {
	Text TL // RichText
}

type TL_pageBlockTitle

type TL_pageBlockTitle struct {
	Text TL // RichText
}

type TL_pageBlockUnsupported

type TL_pageBlockUnsupported struct {
}

type TL_pageBlockVideo

type TL_pageBlockVideo struct {
	Flags int32
	// Autoplay	bool // flags_0?true
	// Loop	bool // flags_1?true
	Video_id int64
	Caption  TL // RichText
}

type TL_pageFull

type TL_pageFull struct {
	Blocks    []TL // PageBlock
	Photos    []TL // Photo
	Documents []TL // Document
}

type TL_pagePart

type TL_pagePart struct {
	Blocks    []TL // PageBlock
	Photos    []TL // Photo
	Documents []TL // Document
}

type TL_paymentCharge

type TL_paymentCharge struct {
	Id                 string
	Provider_charge_id string
}

type TL_paymentRequestedInfo

type TL_paymentRequestedInfo struct {
	Flags            int32
	Name             string
	Phone            string
	Email            string
	Shipping_address TL // flags_3?PostAddress
}

type TL_paymentSavedCredentialsCard

type TL_paymentSavedCredentialsCard struct {
	Id    string
	Title string
}

type TL_payments_clearSavedInfo

type TL_payments_clearSavedInfo struct {
	Flags int32
}

type TL_payments_getPaymentForm

type TL_payments_getPaymentForm struct {
	Msg_id int32
}

type TL_payments_getPaymentReceipt

type TL_payments_getPaymentReceipt struct {
	Msg_id int32
}

type TL_payments_getSavedInfo

type TL_payments_getSavedInfo struct {
}

type TL_payments_paymentForm

type TL_payments_paymentForm struct {
	Flags int32
	// Can_save_credentials	bool // flags_2?true
	// Password_missing	bool // flags_3?true
	Bot_id            int32
	Invoice           TL // Invoice
	Provider_id       int32
	Url               string
	Native_provider   string
	Native_params     TL   // flags_4?DataJSON
	Saved_info        TL   // flags_0?PaymentRequestedInfo
	Saved_credentials TL   // flags_1?PaymentSavedCredentials
	Users             []TL // User
}

type TL_payments_paymentReceipt

type TL_payments_paymentReceipt struct {
	Flags             int32
	Date              int32
	Bot_id            int32
	Invoice           TL // Invoice
	Provider_id       int32
	Info              TL // flags_0?PaymentRequestedInfo
	Shipping          TL // flags_1?ShippingOption
	Currency          string
	Total_amount      int64
	Credentials_title string
	Users             []TL // User
}

type TL_payments_paymentResult

type TL_payments_paymentResult struct {
	Updates TL // Updates
}

type TL_payments_paymentVerficationNeeded

type TL_payments_paymentVerficationNeeded struct {
	Url string
}

type TL_payments_savedInfo

type TL_payments_savedInfo struct {
	Flags int32
	// Has_saved_credentials	bool // flags_1?true
	Saved_info TL // flags_0?PaymentRequestedInfo
}

type TL_payments_sendPaymentForm

type TL_payments_sendPaymentForm struct {
	Flags              int32
	Msg_id             int32
	Requested_info_id  string
	Shipping_option_id string
	Credentials        TL // InputPaymentCredentials
}

type TL_payments_validateRequestedInfo

type TL_payments_validateRequestedInfo struct {
	Flags int32
	// Save	bool // flags_0?true
	Msg_id int32
	Info   TL // PaymentRequestedInfo
}

type TL_payments_validatedRequestedInfo

type TL_payments_validatedRequestedInfo struct {
	Flags            int32
	Id               string
	Shipping_options []TL // ShippingOption
}

type TL_peerChannel

type TL_peerChannel struct {
	Channel_id int32
}

type TL_peerChat

type TL_peerChat struct {
	Chat_id int32
}

func NewChatPeer

func NewChatPeer(chatID int32) TL_peerChat

type TL_peerNotifyEventsAll

type TL_peerNotifyEventsAll struct {
}

type TL_peerNotifyEventsEmpty

type TL_peerNotifyEventsEmpty struct {
}

type TL_peerNotifySettings

type TL_peerNotifySettings struct {
	Flags int32
	// Show_previews	bool // flags_0?true
	// Silent	bool // flags_1?true
	Mute_until int32
	Sound      string
}

type TL_peerNotifySettingsEmpty

type TL_peerNotifySettingsEmpty struct {
}

type TL_peerSettings

type TL_peerSettings struct {
	Flags int32
}

type TL_peerUser

type TL_peerUser struct {
	User_id int32
}

func NewUserPeer

func NewUserPeer(userID int32) TL_peerUser

type TL_phoneCall

type TL_phoneCall struct {
	Id                      int64
	Access_hash             int64
	Date                    int32
	Admin_id                int32
	Participant_id          int32
	G_a_or_b                []byte
	Key_fingerprint         int64
	Protocol                TL   // PhoneCallProtocol
	Connection              TL   // PhoneConnection
	Alternative_connections []TL // PhoneConnection
	Start_date              int32
}

type TL_phoneCallAccepted

type TL_phoneCallAccepted struct {
	Id             int64
	Access_hash    int64
	Date           int32
	Admin_id       int32
	Participant_id int32
	G_b            []byte
	Protocol       TL // PhoneCallProtocol
}

type TL_phoneCallDiscardReasonBusy

type TL_phoneCallDiscardReasonBusy struct {
}

type TL_phoneCallDiscardReasonDisconnect

type TL_phoneCallDiscardReasonDisconnect struct {
}

type TL_phoneCallDiscardReasonHangup

type TL_phoneCallDiscardReasonHangup struct {
}

type TL_phoneCallDiscardReasonMissed

type TL_phoneCallDiscardReasonMissed struct {
}

type TL_phoneCallDiscarded

type TL_phoneCallDiscarded struct {
	Flags int32
	// Need_rating	bool // flags_2?true
	// Need_debug	bool // flags_3?true
	Id       int64
	Reason   TL // flags_0?PhoneCallDiscardReason
	Duration int32
}

type TL_phoneCallEmpty

type TL_phoneCallEmpty struct {
	Id int64
}

type TL_phoneCallProtocol

type TL_phoneCallProtocol struct {
	Flags int32
	// Udp_p2p	bool // flags_0?true
	// Udp_reflector	bool // flags_1?true
	Min_layer int32
	Max_layer int32
}

type TL_phoneCallRequested

type TL_phoneCallRequested struct {
	Id             int64
	Access_hash    int64
	Date           int32
	Admin_id       int32
	Participant_id int32
	G_a_hash       []byte
	Protocol       TL // PhoneCallProtocol
}

type TL_phoneCallWaiting

type TL_phoneCallWaiting struct {
	Flags          int32
	Id             int64
	Access_hash    int64
	Date           int32
	Admin_id       int32
	Participant_id int32
	Protocol       TL // PhoneCallProtocol
	Receive_date   int32
}

type TL_phoneConnection

type TL_phoneConnection struct {
	Id       int64
	Ip       string
	Ipv6     string
	Port     int32
	Peer_tag []byte
}

type TL_phone_acceptCall

type TL_phone_acceptCall struct {
	Peer     TL // InputPhoneCall
	G_b      []byte
	Protocol TL // PhoneCallProtocol
}

type TL_phone_confirmCall

type TL_phone_confirmCall struct {
	Peer            TL // InputPhoneCall
	G_a             []byte
	Key_fingerprint int64
	Protocol        TL // PhoneCallProtocol
}

type TL_phone_discardCall

type TL_phone_discardCall struct {
	Peer          TL // InputPhoneCall
	Duration      int32
	Reason        TL // PhoneCallDiscardReason
	Connection_id int64
}

type TL_phone_getCallConfig

type TL_phone_getCallConfig struct {
}

type TL_phone_phoneCall

type TL_phone_phoneCall struct {
	Phone_call TL   // PhoneCall
	Users      []TL // User
}

type TL_phone_receivedCall

type TL_phone_receivedCall struct {
	Peer TL // InputPhoneCall
}

type TL_phone_requestCall

type TL_phone_requestCall struct {
	User_id   TL // InputUser
	Random_id int32
	G_a_hash  []byte
	Protocol  TL // PhoneCallProtocol
}

type TL_phone_saveCallDebug

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

type TL_phone_setCallRating

type TL_phone_setCallRating struct {
	Peer    TL // InputPhoneCall
	Rating  int32
	Comment string
}

type TL_photo

type TL_photo struct {
	Flags int32
	// Has_stickers	bool // flags_0?true
	Id          int64
	Access_hash int64
	Date        int32
	Sizes       []TL // PhotoSize
}

type TL_photoCachedSize

type TL_photoCachedSize struct {
	Location TL // FileLocation
	W        int32
	H        int32
	Bytes    []byte
	// contains filtered or unexported fields
}

type TL_photoEmpty

type TL_photoEmpty struct {
	Id int64
}

type TL_photoSize

type TL_photoSize struct {
	Location TL // FileLocation
	W        int32
	H        int32
	Size     int32
	// contains filtered or unexported fields
}

type TL_photoSizeEmpty

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

type TL_photos_deletePhotos

type TL_photos_deletePhotos struct {
	Id []TL // InputPhoto
}

type TL_photos_getUserPhotos

type TL_photos_getUserPhotos struct {
	User_id TL // InputUser
	Offset  int32
	Max_id  int64
	Limit   int32
}

type TL_photos_photo

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

type TL_photos_photos

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

type TL_photos_photosSlice

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

type TL_photos_updateProfilePhoto

type TL_photos_updateProfilePhoto struct {
	Id TL // InputPhoto
}

type TL_photos_uploadProfilePhoto

type TL_photos_uploadProfilePhoto struct {
	File TL // InputFile
}

type TL_ping

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

type TL_pong

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

type TL_popularContact

type TL_popularContact struct {
	Client_id int64
	Importers int32
}

type TL_postAddress

type TL_postAddress struct {
	Street_line1 string
	Street_line2 string
	City         string
	State        string
	Country_iso2 string
	Post_code    string
}

type TL_privacyKeyChatInvite

type TL_privacyKeyChatInvite struct {
}

type TL_privacyKeyPhoneCall

type TL_privacyKeyPhoneCall struct {
}

type TL_privacyKeyStatusTimestamp

type TL_privacyKeyStatusTimestamp struct {
}

type TL_privacyValueAllowAll

type TL_privacyValueAllowAll struct {
}

type TL_privacyValueAllowContacts

type TL_privacyValueAllowContacts struct {
}

type TL_privacyValueAllowUsers

type TL_privacyValueAllowUsers struct {
	Users []int32
}

type TL_privacyValueDisallowAll

type TL_privacyValueDisallowAll struct {
}

type TL_privacyValueDisallowContacts

type TL_privacyValueDisallowContacts struct {
}

type TL_privacyValueDisallowUsers

type TL_privacyValueDisallowUsers struct {
	Users []int32
}

type TL_receivedNotifyMessage

type TL_receivedNotifyMessage struct {
	Id    int32
	Flags int32
}

type TL_replyInlineMarkup

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

type TL_replyKeyboardForceReply

type TL_replyKeyboardForceReply struct {
	Flags int32
}

type TL_replyKeyboardHide

type TL_replyKeyboardHide struct {
	Flags int32
}

type TL_replyKeyboardMarkup

type TL_replyKeyboardMarkup struct {
	Flags int32
	// Resize	bool // flags_0?true
	// Single_use	bool // flags_1?true
	// Selective	bool // flags_2?true
	Rows []TL // KeyboardButtonRow
}

type TL_req_DH_params

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

type TL_req_pq

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

type TL_resPQ

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

type TL_rpc_error

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

type TL_rpc_result

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

type TL_sendMessageCancelAction

type TL_sendMessageCancelAction struct {
}

type TL_sendMessageChooseContactAction

type TL_sendMessageChooseContactAction struct {
}

type TL_sendMessageGamePlayAction

type TL_sendMessageGamePlayAction struct {
}

type TL_sendMessageGeoLocationAction

type TL_sendMessageGeoLocationAction struct {
}

type TL_sendMessageRecordAudioAction

type TL_sendMessageRecordAudioAction struct {
}

type TL_sendMessageRecordRoundAction

type TL_sendMessageRecordRoundAction struct {
}

type TL_sendMessageRecordVideoAction

type TL_sendMessageRecordVideoAction struct {
}

type TL_sendMessageTypingAction

type TL_sendMessageTypingAction struct {
}

type TL_sendMessageUploadAudioAction

type TL_sendMessageUploadAudioAction struct {
	Progress int32
}

type TL_sendMessageUploadDocumentAction

type TL_sendMessageUploadDocumentAction struct {
	Progress int32
}

type TL_sendMessageUploadPhotoAction

type TL_sendMessageUploadPhotoAction struct {
	Progress int32
}

type TL_sendMessageUploadRoundAction

type TL_sendMessageUploadRoundAction struct {
	Progress int32
}

type TL_sendMessageUploadVideoAction

type TL_sendMessageUploadVideoAction struct {
	Progress int32
}

type TL_server_DH_inner_data

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

type TL_server_DH_params_ok

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

type TL_set_client_DH_params

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

type TL_shippingOption

type TL_shippingOption struct {
	Id     string
	Title  string
	Prices []TL // LabeledPrice
}

type TL_stickerPack

type TL_stickerPack struct {
	Emoticon  string
	Documents []int64
}

type TL_stickerSet

type TL_stickerSet struct {
	Flags int32
	// Installed	bool // flags_0?true
	// Archived	bool // flags_1?true
	// Official	bool // flags_2?true
	// Masks	bool // flags_3?true
	Id          int64
	Access_hash int64
	Title       string
	Short_name  string
	Count       int32
	Hash        int32
}

type TL_stickerSetCovered

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

type TL_stickerSetMultiCovered

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

type TL_stickers_addStickerToSet

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

type TL_stickers_changeStickerPosition

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

type TL_stickers_createStickerSet

type TL_stickers_createStickerSet struct {
	Flags int32
	// Masks	bool // flags_0?true
	User_id    TL // InputUser
	Title      string
	Short_name string
	Stickers   []TL // InputStickerSetItem
}

type TL_stickers_removeStickerFromSet

type TL_stickers_removeStickerFromSet struct {
	Sticker TL // InputDocument
}

type TL_storage_fileGif

type TL_storage_fileGif struct {
}

type TL_storage_fileJpeg

type TL_storage_fileJpeg struct {
}

type TL_storage_fileMov

type TL_storage_fileMov struct {
}

type TL_storage_fileMp3

type TL_storage_fileMp3 struct {
}

type TL_storage_fileMp4

type TL_storage_fileMp4 struct {
}

type TL_storage_filePartial

type TL_storage_filePartial struct {
}

type TL_storage_filePdf

type TL_storage_filePdf struct {
}

type TL_storage_filePng

type TL_storage_filePng struct {
}

type TL_storage_fileUnknown

type TL_storage_fileUnknown struct {
}

type TL_storage_fileWebp

type TL_storage_fileWebp struct {
}

type TL_textBold

type TL_textBold struct {
	Text TL // RichText
}

type TL_textConcat

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

type TL_textEmail

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

type TL_textEmpty

type TL_textEmpty struct {
}

type TL_textFixed

type TL_textFixed struct {
	Text TL // RichText
}

type TL_textItalic

type TL_textItalic struct {
	Text TL // RichText
}

type TL_textPlain

type TL_textPlain struct {
	Text string
}

type TL_textStrike

type TL_textStrike struct {
	Text TL // RichText
}

type TL_textUnderline

type TL_textUnderline struct {
	Text TL // RichText
}

type TL_textUrl

type TL_textUrl struct {
	Text       TL // RichText
	Url        string
	Webpage_id int64
}

type TL_topPeer

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

type TL_topPeerCategoryBotsInline

type TL_topPeerCategoryBotsInline struct {
}

type TL_topPeerCategoryBotsPM

type TL_topPeerCategoryBotsPM struct {
}

type TL_topPeerCategoryChannels

type TL_topPeerCategoryChannels struct {
}

type TL_topPeerCategoryCorrespondents

type TL_topPeerCategoryCorrespondents struct {
}

type TL_topPeerCategoryGroups

type TL_topPeerCategoryGroups struct {
}

type TL_topPeerCategoryPeers

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

type TL_topPeerCategoryPhoneCalls

type TL_topPeerCategoryPhoneCalls struct {
}

type TL_true

type TL_true struct {
}

type TL_updateBotCallbackQuery

type TL_updateBotCallbackQuery struct {
	Flags           int32
	Query_id        int64
	User_id         int32
	Peer            TL // Peer
	Msg_id          int32
	Chat_instance   int64
	Data            []byte
	Game_short_name string
}

type TL_updateBotInlineQuery

type TL_updateBotInlineQuery struct {
	Flags    int32
	Query_id int64
	User_id  int32
	Query    string
	Geo      TL // flags_0?GeoPoint
	Offset   string
}

type TL_updateBotInlineSend

type TL_updateBotInlineSend struct {
	Flags   int32
	User_id int32
	Query   string
	Geo     TL // flags_0?GeoPoint
	Id      string
	Msg_id  TL // flags_1?InputBotInlineMessageID
}

type TL_updateBotPrecheckoutQuery

type TL_updateBotPrecheckoutQuery struct {
	Flags              int32
	Query_id           int64
	User_id            int32
	Payload            []byte
	Info               TL // flags_0?PaymentRequestedInfo
	Shipping_option_id string
	Currency           string
	Total_amount       int64
}

type TL_updateBotShippingQuery

type TL_updateBotShippingQuery struct {
	Query_id         int64
	User_id          int32
	Payload          []byte
	Shipping_address TL // PostAddress
}

type TL_updateBotWebhookJSON

type TL_updateBotWebhookJSON struct {
	Data TL // DataJSON
}

type TL_updateBotWebhookJSONQuery

type TL_updateBotWebhookJSONQuery struct {
	Query_id int64
	Data     TL // DataJSON
	Timeout  int32
}

type TL_updateChannel

type TL_updateChannel struct {
	Channel_id int32
}

type TL_updateChannelMessageViews

type TL_updateChannelMessageViews struct {
	Channel_id int32
	Id         int32
	Views      int32
}

type TL_updateChannelPinnedMessage

type TL_updateChannelPinnedMessage struct {
	Channel_id int32
	Id         int32
}

type TL_updateChannelReadMessagesContents

type TL_updateChannelReadMessagesContents struct {
	Channel_id int32
	Messages   []int32
}

type TL_updateChannelTooLong

type TL_updateChannelTooLong struct {
	Flags      int32
	Channel_id int32
	Pts        int32
}

type TL_updateChannelWebPage

type TL_updateChannelWebPage struct {
	Channel_id int32
	Webpage    TL // WebPage
	Pts        int32
	Pts_count  int32
}

type TL_updateChatAdmins

type TL_updateChatAdmins struct {
	Chat_id int32
	Enabled TL // Bool
	Version int32
}

type TL_updateChatParticipantAdd

type TL_updateChatParticipantAdd struct {
	Chat_id    int32
	User_id    int32
	Inviter_id int32
	Date       int32
	Version    int32
}

type TL_updateChatParticipantAdmin

type TL_updateChatParticipantAdmin struct {
	Chat_id  int32
	User_id  int32
	Is_admin TL // Bool
	Version  int32
}

type TL_updateChatParticipantDelete

type TL_updateChatParticipantDelete struct {
	Chat_id int32
	User_id int32
	Version int32
}

type TL_updateChatParticipants

type TL_updateChatParticipants struct {
	Participants TL // ChatParticipants
}

type TL_updateChatUserTyping

type TL_updateChatUserTyping struct {
	Chat_id int32
	User_id int32
	Action  TL // SendMessageAction
}

type TL_updateConfig

type TL_updateConfig struct {
}
type TL_updateContactLink struct {
	User_id      int32
	My_link      TL // ContactLink
	Foreign_link TL // ContactLink
}

type TL_updateContactRegistered

type TL_updateContactRegistered struct {
	User_id int32
	Date    int32
}

type TL_updateContactsReset

type TL_updateContactsReset struct {
}

type TL_updateDcOptions

type TL_updateDcOptions struct {
	Dc_options []TL // DcOption
}

type TL_updateDeleteChannelMessages

type TL_updateDeleteChannelMessages struct {
	Channel_id int32
	Messages   []int32
	Pts        int32
	Pts_count  int32
}

type TL_updateDeleteMessages

type TL_updateDeleteMessages struct {
	Messages  []int32
	Pts       int32
	Pts_count int32
}

type TL_updateDialogPinned

type TL_updateDialogPinned struct {
	Flags int32
	// Pinned	bool // flags_0?true
	Peer TL // Peer
}

type TL_updateDraftMessage

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

type TL_updateEditChannelMessage

type TL_updateEditChannelMessage struct {
	Message   TL // Message
	Pts       int32
	Pts_count int32
}

type TL_updateEditMessage

type TL_updateEditMessage struct {
	Message   TL // Message
	Pts       int32
	Pts_count int32
}

type TL_updateEncryptedChatTyping

type TL_updateEncryptedChatTyping struct {
	Chat_id int32
}

type TL_updateEncryptedMessagesRead

type TL_updateEncryptedMessagesRead struct {
	Chat_id  int32
	Max_date int32
	Date     int32
}

type TL_updateEncryption

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

type TL_updateFavedStickers

type TL_updateFavedStickers struct {
}

type TL_updateInlineBotCallbackQuery

type TL_updateInlineBotCallbackQuery struct {
	Flags           int32
	Query_id        int64
	User_id         int32
	Msg_id          TL // InputBotInlineMessageID
	Chat_instance   int64
	Data            []byte
	Game_short_name string
}

type TL_updateLangPack

type TL_updateLangPack struct {
	Difference TL // LangPackDifference
}

type TL_updateLangPackTooLong

type TL_updateLangPackTooLong struct {
}

type TL_updateMessageID

type TL_updateMessageID struct {
	Id        int32
	Random_id int64
}

type TL_updateNewChannelMessage

type TL_updateNewChannelMessage struct {
	Message   TL // Message
	Pts       int32
	Pts_count int32
}

type TL_updateNewEncryptedMessage

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

type TL_updateNewMessage

type TL_updateNewMessage struct {
	Message   TL // Message
	Pts       int32
	Pts_count int32
}

type TL_updateNewStickerSet

type TL_updateNewStickerSet struct {
	Stickerset TL // messages_StickerSet
}

type TL_updateNotifySettings

type TL_updateNotifySettings struct {
	Peer            TL // NotifyPeer
	Notify_settings TL // PeerNotifySettings
}

type TL_updatePhoneCall

type TL_updatePhoneCall struct {
	Phone_call TL // PhoneCall
}

type TL_updatePinnedDialogs

type TL_updatePinnedDialogs struct {
	Flags int32
	Order []TL // Peer
}

type TL_updatePrivacy

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

type TL_updatePtsChanged

type TL_updatePtsChanged struct {
}

type TL_updateReadChannelInbox

type TL_updateReadChannelInbox struct {
	Channel_id int32
	Max_id     int32
}

type TL_updateReadChannelOutbox

type TL_updateReadChannelOutbox struct {
	Channel_id int32
	Max_id     int32
}

type TL_updateReadFeaturedStickers

type TL_updateReadFeaturedStickers struct {
}

type TL_updateReadHistoryInbox

type TL_updateReadHistoryInbox struct {
	Peer      TL // Peer
	Max_id    int32
	Pts       int32
	Pts_count int32
}

type TL_updateReadHistoryOutbox

type TL_updateReadHistoryOutbox struct {
	Peer      TL // Peer
	Max_id    int32
	Pts       int32
	Pts_count int32
}

type TL_updateReadMessagesContents

type TL_updateReadMessagesContents struct {
	Messages  []int32
	Pts       int32
	Pts_count int32
}

type TL_updateRecentStickers

type TL_updateRecentStickers struct {
}

type TL_updateSavedGifs

type TL_updateSavedGifs struct {
}

type TL_updateServiceNotification

type TL_updateServiceNotification struct {
	Flags int32
	// Popup	bool // flags_0?true
	Inbox_date int32

	Message  string
	Media    TL   // MessageMedia
	Entities []TL // MessageEntity
	// contains filtered or unexported fields
}

type TL_updateShort

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

type TL_updateShortChatMessage

type TL_updateShortChatMessage struct {
	Flags int32
	// Out	bool // flags_1?true
	// Mentioned	bool // flags_4?true
	// Media_unread	bool // flags_5?true
	// Silent	bool // flags_13?true
	Id              int32
	From_id         int32
	Chat_id         int32
	Message         string
	Pts             int32
	Pts_count       int32
	Date            int32
	Fwd_from        TL // flags_2?MessageFwdHeader
	Via_bot_id      int32
	Reply_to_msg_id int32
	Entities        []TL // MessageEntity
}

type TL_updateShortMessage

type TL_updateShortMessage struct {
	Flags int32
	// Out	bool // flags_1?true
	// Mentioned	bool // flags_4?true
	// Media_unread	bool // flags_5?true
	// Silent	bool // flags_13?true
	Id              int32
	User_id         int32
	Message         string
	Pts             int32
	Pts_count       int32
	Date            int32
	Fwd_from        TL // flags_2?MessageFwdHeader
	Via_bot_id      int32
	Reply_to_msg_id int32
	Entities        []TL // MessageEntity
}

type TL_updateShortSentMessage

type TL_updateShortSentMessage struct {
	Flags int32
	// Out	bool // flags_1?true
	Id        int32
	Pts       int32
	Pts_count int32
	Date      int32
	Media     TL   // flags_9?MessageMedia
	Entities  []TL // MessageEntity
}

type TL_updateStickerSets

type TL_updateStickerSets struct {
}

type TL_updateStickerSetsOrder

type TL_updateStickerSetsOrder struct {
	Flags int32
	// Masks	bool // flags_0?true
	Order []int64
}

type TL_updateUserBlocked

type TL_updateUserBlocked struct {
	User_id int32
	Blocked TL // Bool
}

type TL_updateUserName

type TL_updateUserName struct {
	User_id    int32
	First_name string
	Last_name  string
	Username   string
}

type TL_updateUserPhone

type TL_updateUserPhone struct {
	User_id int32
	Phone   string
}

type TL_updateUserPhoto

type TL_updateUserPhoto struct {
	User_id  int32
	Date     int32
	Photo    TL // UserProfilePhoto
	Previous TL // Bool
}

type TL_updateUserStatus

type TL_updateUserStatus struct {
	User_id int32
	Status  TL // UserStatus
}

type TL_updateUserTyping

type TL_updateUserTyping struct {
	User_id int32
	Action  TL // SendMessageAction
}

type TL_updateWebPage

type TL_updateWebPage struct {
	Webpage   TL // WebPage
	Pts       int32
	Pts_count int32
}

type TL_updates

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

type TL_updatesCombined

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

type TL_updatesTooLong

type TL_updatesTooLong struct {
}

type TL_updates_channelDifference

type TL_updates_channelDifference struct {
	Flags int32
	// Final	bool // flags_0?true
	Pts           int32
	Timeout       int32
	New_messages  []TL // Message
	Other_updates []TL // Update
	Chats         []TL // Chat
	Users         []TL // User
}

type TL_updates_channelDifferenceEmpty

type TL_updates_channelDifferenceEmpty struct {
	Flags int32
	// Final	bool // flags_0?true
	Pts     int32
	Timeout int32
}

type TL_updates_channelDifferenceTooLong

type TL_updates_channelDifferenceTooLong struct {
	Flags int32
	// Final	bool // flags_0?true
	Pts                   int32
	Timeout               int32
	Top_message           int32
	Read_inbox_max_id     int32
	Read_outbox_max_id    int32
	Unread_count          int32
	Unread_mentions_count int32
	Messages              []TL // Message
	Chats                 []TL // Chat
	Users                 []TL // User
}

type TL_updates_difference

type TL_updates_difference struct {
	New_messages           []TL // Message
	New_encrypted_messages []TL // EncryptedMessage
	Other_updates          []TL // Update
	Chats                  []TL // Chat
	Users                  []TL // User
	State                  TL   // updates_State
}

type TL_updates_differenceEmpty

type TL_updates_differenceEmpty struct {
	Date int32
	Seq  int32
}

type TL_updates_differenceSlice

type TL_updates_differenceSlice struct {
	New_messages           []TL // Message
	New_encrypted_messages []TL // EncryptedMessage
	Other_updates          []TL // Update
	Chats                  []TL // Chat
	Users                  []TL // User
	Intermediate_state     TL   // updates_State
}

type TL_updates_differenceTooLong

type TL_updates_differenceTooLong struct {
	Pts int32
}

type TL_updates_getChannelDifference

type TL_updates_getChannelDifference struct {
	Flags int32
	// Force	bool // flags_0?true
	Channel TL // InputChannel
	Filter  TL // ChannelMessagesFilter
	Pts     int32
	Limit   int32
}

type TL_updates_getDifference

type TL_updates_getDifference struct {
	Flags           int32
	Pts             int32
	Pts_total_limit int32
	Date            int32
	Qts             int32
}

type TL_updates_getState

type TL_updates_getState struct {
}

type TL_updates_state

type TL_updates_state struct {
	Pts          int32
	Qts          int32
	Date         int32
	Seq          int32
	Unread_count int32
}

type TL_upload_cdnFile

type TL_upload_cdnFile struct {
	Bytes []byte
}

type TL_upload_cdnFileReuploadNeeded

type TL_upload_cdnFileReuploadNeeded struct {
	Request_token []byte
}

type TL_upload_file

type TL_upload_file struct {
	Mtime int32
	Bytes []byte
	// contains filtered or unexported fields
}

type TL_upload_fileCdnRedirect

type TL_upload_fileCdnRedirect struct {
	Dc_id           int32
	File_token      []byte
	Encryption_key  []byte
	Encryption_iv   []byte
	Cdn_file_hashes []TL // CdnFileHash
}

type TL_upload_getCdnFile

type TL_upload_getCdnFile struct {
	File_token []byte
	Offset     int32
	Limit      int32
}

type TL_upload_getCdnFileHashes

type TL_upload_getCdnFileHashes struct {
	File_token []byte
	Offset     int32
}

type TL_upload_getFile

type TL_upload_getFile struct {
	Location TL // InputFileLocation
	Offset   int32
	Limit    int32
}

type TL_upload_getWebFile

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

type TL_upload_reuploadCdnFile

type TL_upload_reuploadCdnFile struct {
	File_token    []byte
	Request_token []byte
}

type TL_upload_saveBigFilePart

type TL_upload_saveBigFilePart struct {
	File_id          int64
	File_part        int32
	File_total_parts int32
	Bytes            []byte
}

type TL_upload_saveFilePart

type TL_upload_saveFilePart struct {
	File_id   int64
	File_part int32
	Bytes     []byte
}

type TL_upload_webFile

type TL_upload_webFile struct {
	Size      int32
	Mime_type string
	File_type TL // storage_FileType
	Mtime     int32
	Bytes     []byte
}

type TL_user

type TL_user struct {
	Flags int32
	// Self	bool // flags_10?true
	// Contact	bool // flags_11?true
	// Mutual_contact	bool // flags_12?true
	// Deleted	bool // flags_13?true
	// Bot	bool // flags_14?true
	// Bot_chat_history	bool // flags_15?true
	// Bot_nochats	bool // flags_16?true
	// Verified	bool // flags_17?true
	// Restricted	bool // flags_18?true
	// Min	bool // flags_20?true
	// Bot_inline_geo	bool // flags_21?true
	Id                     int32
	Access_hash            int64
	First_name             string
	Last_name              string
	Username               string
	Phone                  string
	Photo                  TL // flags_5?UserProfilePhoto
	Status                 TL // flags_6?UserStatus
	Bot_info_version       int32
	Restriction_reason     string
	Bot_inline_placeholder string
	Lang_code              string
}

type TL_userEmpty

type TL_userEmpty struct {
	Id int32
}

type TL_userFull

type TL_userFull struct {
	Flags int32
	// Blocked	bool // flags_0?true
	// Phone_calls_available	bool // flags_4?true
	// Phone_calls_private	bool // flags_5?true
	User               TL // User
	About              string
	Link               TL // contacts_Link
	Profile_photo      TL // flags_2?Photo
	Notify_settings    TL // PeerNotifySettings
	Bot_info           TL // flags_3?BotInfo
	Common_chats_count int32
}

type TL_userProfilePhoto

type TL_userProfilePhoto struct {
	Photo_id    int64
	Photo_small TL // FileLocation
	Photo_big   TL // FileLocation
}

type TL_userProfilePhotoEmpty

type TL_userProfilePhotoEmpty struct {
}

type TL_userStatusEmpty

type TL_userStatusEmpty struct {
}

type TL_userStatusLastMonth

type TL_userStatusLastMonth struct {
}

type TL_userStatusLastWeek

type TL_userStatusLastWeek struct {
}

type TL_userStatusOffline

type TL_userStatusOffline struct {
	Was_online int32
}

type TL_userStatusOnline

type TL_userStatusOnline struct {
	Expires int32
}

type TL_userStatusRecently

type TL_userStatusRecently struct {
}

type TL_users_getFullUser

type TL_users_getFullUser struct {
	Id TL // InputUser
}

type TL_users_getUsers

type TL_users_getUsers struct {
	Id []TL // InputUser
}

type TL_wallPaper

type TL_wallPaper struct {
	Id    int32
	Title string
	Sizes []TL // PhotoSize
	Color int32
}

type TL_wallPaperSolid

type TL_wallPaperSolid struct {
	Id       int32
	Title    string
	Bg_color int32
	Color    int32
}

type TL_webDocument

type TL_webDocument struct {
	Url         string
	Access_hash int64
	Size        int32
	Mime_type   string
	Attributes  []TL // DocumentAttribute
	Dc_id       int32
}

type TL_webPage

type TL_webPage struct {
	Flags       int32
	Id          int64
	Url         string
	Display_url string
	Hash        int32

	Site_name    string
	Title        string
	Description  string
	Photo        TL // flags_4?Photo
	Embed_url    string
	Embed_type   string
	Embed_width  int32
	Embed_height int32
	Duration     int32
	Author       string
	Document     TL // flags_9?Document
	Cached_page  TL // flags_10?Page
	// contains filtered or unexported fields
}

type TL_webPageEmpty

type TL_webPageEmpty struct {
	Id int64
}

type TL_webPageNotModified

type TL_webPageNotModified struct {
}

type TL_webPagePending

type TL_webPagePending struct {
	Id   int64
	Date int32
}

type UpdateChannelReadMessagesContents

type UpdateChannelReadMessagesContents struct {
	UpdateCore
	MessageIDs []int32
	ChannelID  int32
}

type UpdateChannelTooLong

type UpdateChannelTooLong struct {
	UpdateCore
	ChannelID int32
	Pts       int32
	Flags     int32
}
type UpdateContactLink struct {
	UpdateCore
	UserID      int32
	MyLink      string
	ForeignLink string
}

type UpdateContactRegistered

type UpdateContactRegistered struct {
	UpdateCore
	UserID int32
	Date   int32
}

type UpdateCore

type UpdateCore struct{}

func (UpdateCore) GetInt32

func (u UpdateCore) GetInt32(i IUpdate, keyName string) (int32, bool)

func (UpdateCore) GetMap

func (u UpdateCore) GetMap(i IUpdate) map[string]interface{}

func (UpdateCore) GetString

func (u UpdateCore) GetString(i IUpdate, keyName string) (string, bool)

func (UpdateCore) GetType

func (u UpdateCore) GetType(i IUpdate) string

type UpdateDeleteMessages

type UpdateDeleteMessages struct {
	UpdateCore
	Pts        int32
	PtsCount   int32
	MessageIDs []int32
}

type UpdateDifference

type UpdateDifference struct {
	Type              string
	IsSlice           bool
	Total             int32
	NewMessages       []Message
	OtherUpdates      []IUpdate
	Chats             map[int32]Chat
	Channels          map[int32]Channel
	Users             map[int32]User
	IntermediateState UpdateState
	Seq               int32
}

type UpdateDraftMessage

type UpdateDraftMessage struct {
	UpdateCore
	Peer  Peer
	Draft DraftMessage
}

type UpdateEditChannelMessage

type UpdateEditChannelMessage struct {
	UpdateCore
	Pts      int32
	PtsCount int32
	Message  Message
}

type UpdateEditMessage

type UpdateEditMessage struct {
	UpdateCore
	Pts      int32
	PtsCount int32
	Message  Message
}

type UpdateMessageID

type UpdateMessageID struct {
	UpdateCore
	MessageID int32
	RandomID  int64
}

type UpdateNewChannelMessage

type UpdateNewChannelMessage struct {
	UpdateCore
	Pts      int32
	PtsCount int32
	Message  Message
}

type UpdateNewMessage

type UpdateNewMessage struct {
	UpdateCore
	Pts      int32
	PtsCount int32
	Message  Message
}

type UpdateReadChannelInbox

type UpdateReadChannelInbox struct {
	UpdateCore
	ChannelID int32
	MaxID     int32
}

type UpdateReadChannelOutbox

type UpdateReadChannelOutbox struct {
	UpdateCore
	ChannelID int32
	MaxID     int32
}

type UpdateReadHistoryInbox

type UpdateReadHistoryInbox struct {
	UpdateCore
	Pts      int32
	PtsCount int32
	MaxID    int32
	Peer     Peer
}

type UpdateReadHistoryOutbox

type UpdateReadHistoryOutbox struct {
	UpdateCore
	Pts      int32
	PtsCount int32
	MaxID    int32
	Peer     Peer
}

type UpdateState

type UpdateState struct {
	Qts          int32
	Pts          int32
	Date         int32
	Seq          int32
	UnreadCounts int32
}

func NewUpdateState

func NewUpdateState(input TL) *UpdateState

NewUpdateState input :

  1. TL_updates_state

type UpdateUnknown

type UpdateUnknown struct {
	UpdateCore
	Type string
}

type UpdateUserBlocked

type UpdateUserBlocked struct {
	UpdateCore
	UserID  int32
	Blocked bool
}

type UpdateUserPhoto

type UpdateUserPhoto struct {
	UpdateCore
	UserID       int32
	Date         int32
	ProfilePhoto UserProfilePhoto
	Previous     bool
}

type UpdatedSaveGIFs

type UpdatedSaveGIFs struct {
	UpdateCore
}

type User

type User struct {
	Flags                UserFlags
	ID                   int32
	Username             string
	FirstName            string
	LastName             string
	Phone                string
	Photo                *UserProfilePhoto
	Status               *UserStatus
	Inactive             bool
	Mutual               bool
	Verified             bool
	Restricted           bool
	AccessHash           int64
	BotInfoVersion       int32
	BotInlinePlaceHolser string
	RestrictionReason    string
}

func NewUser

func NewUser(in TL) (user *User)

func (*User) GetInputPeer

func (user *User) GetInputPeer() TL

func (*User) GetPeer

func (user *User) GetPeer() TL

type UserFlags

type UserFlags struct {
	Self           bool // flags_10?true
	Contact        bool // flags_11?true
	MutualContact  bool // flags_12?true
	Deleted        bool // flags_13?true
	Bot            bool // flags_14?true
	BotChatHistory bool // flags_15?true
	BotNochats     bool // flags_16?true
	Verified       bool // flags_17?true
	Restricted     bool // flags_18?true
	Min            bool // flags_20?true
	BotInlineGeo   bool // flags_21?true
}

type UserProfilePhoto

type UserProfilePhoto struct {
	ID         int64
	PhotoSmall FileLocation
	PhotoLarge FileLocation
}

func NewUserProfilePhoto

func NewUserProfilePhoto(userProfilePhoto TL) (u *UserProfilePhoto)

type UserStatus

type UserStatus struct {
	Status    string
	Online    bool
	Timestamp int32
}

func NewUserStatus

func NewUserStatus(userStatus TL) (s *UserStatus)

Directories

Path Synopsis
example
cli

Jump to

Keyboard shortcuts

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