Documentation ¶
Index ¶
- Variables
- func DoAES256IGEdecrypt(data, key, iv []byte) ([]byte, error)
- func DoAES256IGEencrypt(data, key, iv []byte) ([]byte, error)
- func EncodeInterface(msg interface{}) []byte
- func EncodeTL(msg TL) []byte
- func GenerateAES(msg_key, auth_key []byte, decode bool) ([]byte, []byte)
- func GenerateMessageId() int64
- func GenerateNonce(size int) []byte
- func MakePacket(msg TL) ([]byte, error)
- func MakePacketHttp(msg TL, cd *CacheData) ([]byte, error)
- func MakingPacket(msg TL, cd *CacheData) ([]byte, error)
- func ReadData(conn net.Conn, cd *CacheData) (interface{}, error)
- func ToBool(x TL) (bool, error)
- type CacheData
- type ChannelInfo
- type Configuration
- type DecodeBuf
- func (m *DecodeBuf) BigInt() *big.Int
- func (m *DecodeBuf) Bool() bool
- func (m *DecodeBuf) Bytes(size int) []byte
- func (m *DecodeBuf) Double() float64
- func (m *DecodeBuf) Error() error
- func (m *DecodeBuf) Int() int32
- func (m *DecodeBuf) Long() int64
- func (m *DecodeBuf) Object() (r TL)
- func (m *DecodeBuf) ObjectGenerated(constructor uint32) (r TL)
- func (m *DecodeBuf) Size() int
- func (m *DecodeBuf) String() string
- func (m *DecodeBuf) StringBytes() []byte
- func (m *DecodeBuf) UInt() uint32
- func (m *DecodeBuf) Vector() []TL
- func (m *DecodeBuf) VectorInt() []int32
- func (m *DecodeBuf) VectorLong() []int64
- func (m *DecodeBuf) VectorString() []string
- type EncodeBuf
- func (e *EncodeBuf) BigInt(s *big.Int)
- func (e *EncodeBuf) Buf() []byte
- func (e *EncodeBuf) Bytes(s []byte)
- func (e *EncodeBuf) Double(s float64)
- func (e *EncodeBuf) Int(s int32)
- func (e *EncodeBuf) Long(s int64)
- func (e *EncodeBuf) String(s string)
- func (e *EncodeBuf) StringBytes(s []byte)
- func (e *EncodeBuf) UInt(s uint32)
- func (e *EncodeBuf) Vector(v []TL)
- func (e *EncodeBuf) VectorInt(v []int32)
- func (e *EncodeBuf) VectorLong(v []int64)
- func (e *EncodeBuf) VectorString(v []string)
- type HttpData
- type MTProto
- func (m *MTProto) AccountChangeStatus(offline bool) (TL, error)
- func (m *MTProto) Auth(phonenumber string) error
- func (m *MTProto) AuthExportAuthorization(dc_id int32) (*TL_auth_exportedAuthorization, error)
- func (m *MTProto) AuthImportAuthorization(id int32, bytes []byte) (*TL_auth_authorization, error)
- func (m *MTProto) AuthLogOut() (bool, error)
- func (m *MTProto) AuthSendCode(phonenumber string) (*TL_auth_sentCode, error)
- func (m *MTProto) AuthSignIn(phoneNumber, phoneCode, phoneCodeHash string) (*TL_auth_authorization, error)
- func (m *MTProto) ChannelsReadHistory(channelID, maxID int32, accessHash int64) error
- func (m *MTProto) Connect() error
- func (m *MTProto) ContactsGetContacts(hash string) (*TL, error)
- func (m *MTProto) ContactsGetTopPeers(correspondents, botsPM, botsInline, groups, channels bool, ...) (*TL, error)
- func (m *MTProto) Disconnect() error
- func (m *MTProto) DownloadImage(volumeID, secret, localID, size, path string) ([]byte, error)
- func (m *MTProto) DownloadVideo(id, hash, size, path string) ([]byte, error)
- func (m *MTProto) GetChannelFromGlobalSearch(username string) (TL_channel, error)
- func (m *MTProto) GetChannelFromUsername(username string) (TL_channel, error)
- func (m *MTProto) GetChannelObjects(channel TL_channel) ChannelInfo
- func (m *MTProto) GetChannelParticipants(channelID int32, hash int64, offset, limit int32) (TL, error)
- func (m *MTProto) GetChannels(str string) error
- func (m *MTProto) GetChannelsUnreadMsg(excludePinned bool, offsetDate, offsetId int32, offsetPeer TL, limit int32) (channels []ChannelInfo, err error)
- func (m *MTProto) GetConfig() error
- func (m *MTProto) GetDC(path string) error
- func (m *MTProto) GetDialogs(excludePinned bool, offsetDate, offsetId int32, offsetPeer TL, limit int32) (TL, error)
- func (m *MTProto) GetFile(id, hash int64, offset int32) (TL, error)
- func (m *MTProto) GetFullChannel(channelID int32, accessHash int64) (TL_channelFull, error)
- func (m *MTProto) GetMessage(msgId, channelId, hash string) (Message, error)
- func (m *MTProto) GetMessageObject(msg TL_message, channelId int32) Message
- func (m *MTProto) GetParticipants(channelID int32, accessHash int64) (count int32, err error)
- func (m *MTProto) GetPhoto(volumeID, secret int64, localID, offset int32, flag bool) (TL, error)
- func (m *MTProto) GetPosts(msgsId []int32, channelId int32, hash int64) []TL_message
- func (m *MTProto) GetUserFromUsername(username string) (TL_user, error)
- func (m *MTProto) ImportContact(contacts []TL) (*TL, error)
- func (m *MTProto) JoinChannel(channelId int32, hash int64) (TL, error)
- func (m *MTProto) LeaveChannel(channelId int32, hash int64) error
- func (m *MTProto) MessageSendMedia(msg Message, objectId string, randomId, botAccessHash int64, BotId int32) (err error)
- func (m *MTProto) MessagesForwardMessage(Silent, Background, With_my_score bool, From_peer TL, id []int32, ...) (TL, error)
- func (m *MTProto) MessagesGetHistory(peer TL, offsetId, offsetDate, addOffset, limit, maxID, minId int32) (TL, error)
- func (m *MTProto) MessagesSendMessage(no_webpage, silent, background, clear_draft bool, peer TL, ...) (*TL, error)
- func (m *MTProto) Read(conn *net.TCPConn) (interface{}, error)
- func (m *MTProto) Reconnect(newaddr string) error
- func (m *MTProto) SaveDC(path string, DCList map[int32]string) error
- func (m *MTProto) SaveImage(path string, content []byte)
- func (m *MTProto) SendMedia(media TL, randomId, botAccessHash int64, BotId int32) error
- func (m *MTProto) SendPacket(msg TL, resp chan response) error
- func (m *MTProto) SendProfilePhoto(photoId int64, hash int64, objectId string, randomId, BotAccessHash int64, ...) error
- func (m *MTProto) UpdateVeiwsCount(ids []string, channelID, accessHash string) (TL, error)
- func (m *MTProto) UpdatesGetChannelDifference(force bool, channel, filter TL, pts, limit int32) (TL, error)
- func (m *MTProto) UpdatesGetDifference(pts, ptsTotalLimit, date, qts int32) (*TL, error)
- func (m *MTProto) UpdatesGetState() (TL, error)
- func (m *MTProto) UsersGetFullUsers(id TL) (*TL_userFull, error)
- type Message
- type TL
- type TL_MT_message
- type TL_accountDaysTTL
- type TL_account_authorizations
- type TL_account_changePhone
- type TL_account_checkUsername
- type TL_account_confirmPhone
- type TL_account_deleteAccount
- type TL_account_getAccountTTL
- type TL_account_getAuthorizations
- type TL_account_getNotifySettings
- type TL_account_getPassword
- type TL_account_getPasswordSettings
- type TL_account_getPrivacy
- type TL_account_getTmpPassword
- type TL_account_getWallPapers
- type TL_account_noPassword
- type TL_account_password
- type TL_account_passwordInputSettings
- type TL_account_passwordSettings
- type TL_account_privacyRules
- type TL_account_registerDevice
- type TL_account_reportPeer
- type TL_account_resetAuthorization
- type TL_account_resetNotifySettings
- type TL_account_sendChangePhoneCode
- type TL_account_sendConfirmPhoneCode
- type TL_account_setAccountTTL
- type TL_account_setPrivacy
- type TL_account_tmpPassword
- type TL_account_unregisterDevice
- type TL_account_updateDeviceLocked
- type TL_account_updateNotifySettings
- type TL_account_updatePasswordSettings
- type TL_account_updateProfile
- type TL_account_updateStatus
- type TL_account_updateUsername
- type TL_auth_authorization
- type TL_auth_bindTempAuthKey
- type TL_auth_cancelCode
- type TL_auth_checkPassword
- type TL_auth_checkPhone
- type TL_auth_checkedPhone
- type TL_auth_codeTypeCall
- type TL_auth_codeTypeFlashCall
- type TL_auth_codeTypeSms
- type TL_auth_dropTempAuthKeys
- type TL_auth_exportAuthorization
- type TL_auth_exportedAuthorization
- type TL_auth_importAuthorization
- type TL_auth_importBotAuthorization
- type TL_auth_logOut
- type TL_auth_passwordRecovery
- type TL_auth_recoverPassword
- type TL_auth_requestPasswordRecovery
- type TL_auth_resendCode
- type TL_auth_resetAuthorizations
- type TL_auth_sendCode
- type TL_auth_sendInvites
- type TL_auth_sentCode
- type TL_auth_sentCodeTypeApp
- type TL_auth_sentCodeTypeCall
- type TL_auth_sentCodeTypeFlashCall
- type TL_auth_sentCodeTypeSms
- type TL_auth_signIn
- type TL_auth_signUp
- type TL_authorization
- type TL_bad_msg_notification
- type TL_bad_server_salt
- type TL_boolFalse
- type TL_boolTrue
- type TL_botCommand
- type TL_botInfo
- type TL_botInlineMediaResult
- type TL_botInlineMessageMediaAuto
- type TL_botInlineMessageMediaContact
- type TL_botInlineMessageMediaGeo
- type TL_botInlineMessageMediaVenue
- type TL_botInlineMessageText
- type TL_botInlineResult
- type TL_bots_answerWebhookJSONQuery
- type TL_bots_sendCustomRequest
- type TL_channel
- type TL_channelForbidden
- type TL_channelFull
- type TL_channelMessagesFilter
- type TL_channelMessagesFilterEmpty
- type TL_channelParticipant
- type TL_channelParticipantCreator
- type TL_channelParticipantEditor
- type TL_channelParticipantKicked
- type TL_channelParticipantModerator
- type TL_channelParticipantSelf
- type TL_channelParticipantsAdmins
- type TL_channelParticipantsBots
- type TL_channelParticipantsKicked
- type TL_channelParticipantsRecent
- type TL_channelRoleEditor
- type TL_channelRoleEmpty
- type TL_channelRoleModerator
- type TL_channels_channelParticipant
- type TL_channels_channelParticipants
- type TL_channels_checkUsername
- type TL_channels_createChannel
- type TL_channels_deleteChannel
- type TL_channels_deleteMessages
- type TL_channels_deleteUserHistory
- type TL_channels_editAbout
- type TL_channels_editAdmin
- type TL_channels_editPhoto
- type TL_channels_editTitle
- type TL_channels_exportInvite
- type TL_channels_exportMessageLink
- type TL_channels_getAdminedPublicChannels
- type TL_channels_getChannels
- type TL_channels_getFullChannel
- type TL_channels_getMessages
- type TL_channels_getParticipant
- type TL_channels_getParticipants
- type TL_channels_inviteToChannel
- type TL_channels_joinChannel
- type TL_channels_kickFromChannel
- type TL_channels_leaveChannel
- type TL_channels_readHistory
- type TL_channels_reportSpam
- type TL_channels_toggleInvites
- type TL_channels_toggleSignatures
- type TL_channels_updatePinnedMessage
- type TL_channels_updateUsername
- type TL_chat
- type TL_chatEmpty
- type TL_chatForbidden
- type TL_chatFull
- type TL_chatInvite
- type TL_chatInviteAlready
- type TL_chatInviteEmpty
- type TL_chatInviteExported
- type TL_chatParticipant
- type TL_chatParticipantAdmin
- type TL_chatParticipantCreator
- type TL_chatParticipants
- type TL_chatParticipantsForbidden
- type TL_chatPhoto
- type TL_chatPhotoEmpty
- type TL_client_DH_inner_data
- type TL_config
- type TL_contact
- type TL_contactBlocked
- type TL_contactLinkContact
- type TL_contactLinkHasPhone
- type TL_contactLinkNone
- type TL_contactLinkUnknown
- type TL_contactStatus
- type TL_contacts_block
- type TL_contacts_blocked
- type TL_contacts_blockedSlice
- type TL_contacts_contacts
- type TL_contacts_contactsNotModified
- type TL_contacts_deleteContact
- type TL_contacts_deleteContacts
- type TL_contacts_exportCard
- type TL_contacts_found
- type TL_contacts_getBlocked
- type TL_contacts_getContacts
- type TL_contacts_getStatuses
- type TL_contacts_getTopPeers
- type TL_contacts_importCard
- type TL_contacts_importContacts
- type TL_contacts_importedContacts
- type TL_contacts_link
- type TL_contacts_resetTopPeerRating
- type TL_contacts_resolveUsername
- type TL_contacts_resolvedPeer
- type TL_contacts_search
- type TL_contacts_topPeers
- type TL_contacts_topPeersNotModified
- type TL_contacts_unblock
- type TL_dataJSON
- type TL_dcOption
- type TL_dh_gen_ok
- type TL_dialog
- type TL_disabledFeature
- type TL_document
- type TL_documentAttributeAnimated
- type TL_documentAttributeAudio
- type TL_documentAttributeFilename
- type TL_documentAttributeHasStickers
- type TL_documentAttributeImageSize
- type TL_documentAttributeSticker
- type TL_documentAttributeVideo
- type TL_documentEmpty
- type TL_draftMessage
- type TL_draftMessageEmpty
- type TL_encryptedChat
- type TL_encryptedChatDiscarded
- type TL_encryptedChatEmpty
- type TL_encryptedChatRequested
- type TL_encryptedChatWaiting
- type TL_encryptedFile
- type TL_encryptedFileEmpty
- type TL_encryptedMessage
- type TL_encryptedMessageService
- type TL_error
- type TL_exportedMessageLink
- type TL_fileLocation
- type TL_fileLocationUnavailable
- type TL_foundGif
- type TL_foundGifCached
- type TL_game
- type TL_geoPoint
- type TL_geoPointEmpty
- type TL_help_appUpdate
- type TL_help_getAppChangelog
- type TL_help_getAppUpdate
- type TL_help_getConfig
- type TL_help_getInviteText
- type TL_help_getNearestDc
- type TL_help_getSupport
- type TL_help_getTermsOfService
- type TL_help_inviteText
- type TL_help_noAppUpdate
- type TL_help_saveAppLog
- type TL_help_setBotUpdatesStatus
- type TL_help_support
- type TL_help_termsOfService
- type TL_highScore
- type TL_http_wait
- type TL_importedContact
- type TL_initConnection
- type TL_inlineBotSwitchPM
- type TL_inputAppEvent
- type TL_inputBotInlineMessageGame
- type TL_inputBotInlineMessageID
- type TL_inputBotInlineMessageMediaAuto
- type TL_inputBotInlineMessageMediaContact
- type TL_inputBotInlineMessageMediaGeo
- type TL_inputBotInlineMessageMediaVenue
- type TL_inputBotInlineMessageText
- type TL_inputBotInlineResult
- type TL_inputBotInlineResultDocument
- type TL_inputBotInlineResultGame
- type TL_inputBotInlineResultPhoto
- type TL_inputChannel
- type TL_inputChannelEmpty
- type TL_inputChatPhoto
- type TL_inputChatPhotoEmpty
- type TL_inputChatUploadedPhoto
- type TL_inputDocument
- type TL_inputDocumentEmpty
- type TL_inputDocumentFileLocation
- type TL_inputEncryptedChat
- type TL_inputEncryptedFile
- type TL_inputEncryptedFileBigUploaded
- type TL_inputEncryptedFileEmpty
- type TL_inputEncryptedFileLocation
- type TL_inputEncryptedFileUploaded
- type TL_inputFile
- type TL_inputFileBig
- type TL_inputFileLocation
- type TL_inputGameID
- type TL_inputGameShortName
- type TL_inputGeoPoint
- type TL_inputGeoPointEmpty
- type TL_inputMediaContact
- type TL_inputMediaDocument
- type TL_inputMediaDocumentExternal
- type TL_inputMediaEmpty
- type TL_inputMediaGame
- type TL_inputMediaGeoPoint
- type TL_inputMediaGifExternal
- type TL_inputMediaInvoice
- type TL_inputMediaPhoto
- type TL_inputMediaPhotoExternal
- type TL_inputMediaUploadedDocument
- type TL_inputMediaUploadedPhoto
- type TL_inputMediaUploadedThumbDocument
- type TL_inputMediaVenue
- type TL_inputMessageEntityMentionName
- type TL_inputMessagesFilterChatPhotos
- type TL_inputMessagesFilterDocument
- type TL_inputMessagesFilterEmpty
- type TL_inputMessagesFilterGif
- type TL_inputMessagesFilterMusic
- type TL_inputMessagesFilterPhoneCalls
- type TL_inputMessagesFilterPhotoVideo
- type TL_inputMessagesFilterPhotoVideoDocuments
- type TL_inputMessagesFilterPhotos
- type TL_inputMessagesFilterUrl
- type TL_inputMessagesFilterVideo
- type TL_inputMessagesFilterVoice
- type TL_inputNotifyAll
- type TL_inputNotifyChats
- type TL_inputNotifyPeer
- type TL_inputNotifyUsers
- type TL_inputPaymentCredentials
- type TL_inputPaymentCredentialsSaved
- type TL_inputPeerChannel
- type TL_inputPeerChat
- type TL_inputPeerEmpty
- type TL_inputPeerNotifyEventsAll
- type TL_inputPeerNotifyEventsEmpty
- type TL_inputPeerNotifySettings
- type TL_inputPeerSelf
- type TL_inputPeerUser
- type TL_inputPhoneCall
- type TL_inputPhoneContact
- type TL_inputPhoto
- type TL_inputPhotoEmpty
- type TL_inputPrivacyKeyChatInvite
- type TL_inputPrivacyKeyPhoneCall
- type TL_inputPrivacyKeyStatusTimestamp
- type TL_inputPrivacyValueAllowAll
- type TL_inputPrivacyValueAllowContacts
- type TL_inputPrivacyValueAllowUsers
- type TL_inputPrivacyValueDisallowAll
- type TL_inputPrivacyValueDisallowContacts
- type TL_inputPrivacyValueDisallowUsers
- type TL_inputReportReasonOther
- type TL_inputReportReasonPornography
- type TL_inputReportReasonSpam
- type TL_inputReportReasonViolence
- type TL_inputStickerSetEmpty
- type TL_inputStickerSetID
- type TL_inputStickerSetShortName
- type TL_inputStickeredMediaDocument
- type TL_inputStickeredMediaPhoto
- type TL_inputUser
- type TL_inputUserEmpty
- type TL_inputUserSelf
- type TL_inputWebDocument
- type TL_inputWebFileLocation
- type TL_invoice
- type TL_invokeAfterMsg
- type TL_invokeAfterMsgs
- type TL_invokeWithLayer
- type TL_invokeWithoutUpdates
- type TL_keyboardButton
- type TL_keyboardButtonBuy
- type TL_keyboardButtonCallback
- type TL_keyboardButtonGame
- type TL_keyboardButtonRequestGeoLocation
- type TL_keyboardButtonRequestPhone
- type TL_keyboardButtonRow
- type TL_keyboardButtonSwitchInline
- type TL_keyboardButtonUrl
- type TL_labeledPrice
- type TL_maskCoords
- type TL_message
- type TL_messageActionChannelCreate
- type TL_messageActionChannelMigrateFrom
- type TL_messageActionChatAddUser
- type TL_messageActionChatCreate
- type TL_messageActionChatDeletePhoto
- type TL_messageActionChatDeleteUser
- type TL_messageActionChatEditPhoto
- type TL_messageActionChatEditTitle
- type TL_messageActionChatJoinedByLink
- type TL_messageActionChatMigrateTo
- type TL_messageActionEmpty
- type TL_messageActionGameScore
- type TL_messageActionHistoryClear
- type TL_messageActionPaymentSent
- type TL_messageActionPaymentSentMe
- type TL_messageActionPhoneCall
- type TL_messageActionPinMessage
- type TL_messageEmpty
- type TL_messageEntityBold
- type TL_messageEntityBotCommand
- type TL_messageEntityCode
- type TL_messageEntityEmail
- type TL_messageEntityHashtag
- type TL_messageEntityItalic
- type TL_messageEntityMention
- type TL_messageEntityMentionName
- type TL_messageEntityPre
- type TL_messageEntityTextUrl
- type TL_messageEntityUnknown
- type TL_messageEntityUrl
- type TL_messageFwdHeader
- type TL_messageMediaContact
- type TL_messageMediaDocument
- type TL_messageMediaEmpty
- type TL_messageMediaGame
- type TL_messageMediaGeo
- type TL_messageMediaInvoice
- type TL_messageMediaPhoto
- type TL_messageMediaUnsupported
- type TL_messageMediaVenue
- type TL_messageMediaWebPage
- type TL_messageRange
- type TL_messageService
- type TL_messages_acceptEncryption
- type TL_messages_addChatUser
- type TL_messages_affectedHistory
- type TL_messages_affectedMessages
- type TL_messages_allStickers
- type TL_messages_allStickersNotModified
- type TL_messages_archivedStickers
- type TL_messages_botCallbackAnswer
- type TL_messages_botResults
- type TL_messages_channelMessages
- type TL_messages_chatFull
- type TL_messages_chats
- type TL_messages_chatsSlice
- type TL_messages_checkChatInvite
- type TL_messages_clearRecentStickers
- type TL_messages_createChat
- type TL_messages_deleteChatUser
- type TL_messages_deleteHistory
- type TL_messages_deleteMessages
- type TL_messages_dhConfig
- type TL_messages_dhConfigNotModified
- type TL_messages_dialogs
- type TL_messages_dialogsSlice
- type TL_messages_discardEncryption
- type TL_messages_editChatAdmin
- type TL_messages_editChatPhoto
- type TL_messages_editChatTitle
- type TL_messages_editInlineBotMessage
- type TL_messages_editMessage
- type TL_messages_exportChatInvite
- type TL_messages_featuredStickers
- type TL_messages_featuredStickersNotModified
- type TL_messages_forwardMessage
- type TL_messages_forwardMessages
- type TL_messages_foundGifs
- type TL_messages_getAllChats
- type TL_messages_getAllDrafts
- type TL_messages_getAllStickers
- type TL_messages_getArchivedStickers
- type TL_messages_getAttachedStickers
- type TL_messages_getBotCallbackAnswer
- type TL_messages_getChats
- type TL_messages_getCommonChats
- type TL_messages_getDhConfig
- type TL_messages_getDialogs
- type TL_messages_getDocumentByHash
- type TL_messages_getFeaturedStickers
- type TL_messages_getFullChat
- type TL_messages_getGameHighScores
- type TL_messages_getHistory
- type TL_messages_getInlineBotResults
- type TL_messages_getInlineGameHighScores
- type TL_messages_getMaskStickers
- type TL_messages_getMessageEditData
- type TL_messages_getMessages
- type TL_messages_getMessagesViews
- type TL_messages_getPeerDialogs
- type TL_messages_getPeerSettings
- type TL_messages_getPinnedDialogs
- type TL_messages_getRecentStickers
- type TL_messages_getSavedGifs
- type TL_messages_getStickerSet
- type TL_messages_getWebPage
- type TL_messages_getWebPagePreview
- type TL_messages_hideReportSpam
- type TL_messages_highScores
- type TL_messages_importChatInvite
- type TL_messages_installStickerSet
- type TL_messages_messageEditData
- type TL_messages_messages
- type TL_messages_messagesSlice
- type TL_messages_migrateChat
- type TL_messages_peerDialogs
- type TL_messages_readEncryptedHistory
- type TL_messages_readFeaturedStickers
- type TL_messages_readHistory
- type TL_messages_readMessageContents
- type TL_messages_receivedMessages
- type TL_messages_receivedQueue
- type TL_messages_recentStickers
- type TL_messages_recentStickersNotModified
- type TL_messages_reorderPinnedDialogs
- type TL_messages_reorderStickerSets
- type TL_messages_reportEncryptedSpam
- type TL_messages_reportSpam
- type TL_messages_requestEncryption
- type TL_messages_saveDraft
- type TL_messages_saveGif
- type TL_messages_saveRecentSticker
- type TL_messages_savedGifs
- type TL_messages_savedGifsNotModified
- type TL_messages_search
- type TL_messages_searchGifs
- type TL_messages_searchGlobal
- type TL_messages_sendEncrypted
- type TL_messages_sendEncryptedFile
- type TL_messages_sendEncryptedService
- type TL_messages_sendInlineBotResult
- type TL_messages_sendMedia
- type TL_messages_sendMessage
- type TL_messages_sentEncryptedFile
- type TL_messages_sentEncryptedMessage
- type TL_messages_setBotCallbackAnswer
- type TL_messages_setBotPrecheckoutResults
- type TL_messages_setBotShippingResults
- type TL_messages_setEncryptedTyping
- type TL_messages_setGameScore
- type TL_messages_setInlineBotResults
- type TL_messages_setInlineGameScore
- type TL_messages_setTyping
- type TL_messages_startBot
- type TL_messages_stickerSet
- type TL_messages_stickerSetInstallResultArchive
- type TL_messages_stickerSetInstallResultSuccess
- type TL_messages_stickers
- type TL_messages_stickersNotModified
- type TL_messages_toggleChatAdmins
- type TL_messages_toggleDialogPin
- type TL_messages_uninstallStickerSet
- type TL_msg_container
- type TL_msgs_ack
- type TL_nearestDc
- type TL_new_session_created
- type TL_notifyAll
- type TL_notifyChats
- type TL_notifyPeer
- type TL_notifyUsers
- type TL_null
- type TL_p_q_inner_data
- type TL_pageBlockAnchor
- type TL_pageBlockAuthorDate
- type TL_pageBlockBlockquote
- type TL_pageBlockCollage
- type TL_pageBlockCover
- type TL_pageBlockDivider
- type TL_pageBlockEmbed
- type TL_pageBlockEmbedPost
- type TL_pageBlockFooter
- type TL_pageBlockHeader
- type TL_pageBlockList
- type TL_pageBlockParagraph
- type TL_pageBlockPhoto
- type TL_pageBlockPreformatted
- type TL_pageBlockPullquote
- type TL_pageBlockSlideshow
- type TL_pageBlockSubheader
- type TL_pageBlockSubtitle
- type TL_pageBlockTitle
- type TL_pageBlockUnsupported
- type TL_pageBlockVideo
- type TL_pageFull
- type TL_pagePart
- type TL_paymentCharge
- type TL_paymentRequestedInfo
- type TL_paymentSavedCredentialsCard
- type TL_payments_clearSavedInfo
- type TL_payments_getPaymentForm
- type TL_payments_getPaymentReceipt
- type TL_payments_getSavedInfo
- type TL_payments_paymentForm
- type TL_payments_paymentReceipt
- type TL_payments_paymentResult
- type TL_payments_paymentVerficationNeeded
- type TL_payments_savedInfo
- type TL_payments_sendPaymentForm
- type TL_payments_validateRequestedInfo
- type TL_payments_validatedRequestedInfo
- type TL_peerChannel
- type TL_peerChat
- type TL_peerNotifyEventsAll
- type TL_peerNotifyEventsEmpty
- type TL_peerNotifySettings
- type TL_peerNotifySettingsEmpty
- type TL_peerSettings
- type TL_peerUser
- type TL_phoneCall
- type TL_phoneCallAccepted
- type TL_phoneCallDiscardReasonBusy
- type TL_phoneCallDiscardReasonDisconnect
- type TL_phoneCallDiscardReasonHangup
- type TL_phoneCallDiscardReasonMissed
- type TL_phoneCallDiscarded
- type TL_phoneCallEmpty
- type TL_phoneCallProtocol
- type TL_phoneCallRequested
- type TL_phoneCallWaiting
- type TL_phoneConnection
- type TL_phone_acceptCall
- type TL_phone_confirmCall
- type TL_phone_discardCall
- type TL_phone_getCallConfig
- type TL_phone_phoneCall
- type TL_phone_receivedCall
- type TL_phone_requestCall
- type TL_phone_saveCallDebug
- type TL_phone_setCallRating
- type TL_photo
- type TL_photoCachedSize
- type TL_photoEmpty
- type TL_photoSize
- type TL_photoSizeEmpty
- type TL_photos_deletePhotos
- type TL_photos_getUserPhotos
- type TL_photos_photo
- type TL_photos_photos
- type TL_photos_photosSlice
- type TL_photos_updateProfilePhoto
- type TL_photos_uploadProfilePhoto
- type TL_ping
- type TL_pong
- type TL_postAddress
- type TL_privacyKeyChatInvite
- type TL_privacyKeyPhoneCall
- type TL_privacyKeyStatusTimestamp
- type TL_privacyValueAllowAll
- type TL_privacyValueAllowContacts
- type TL_privacyValueAllowUsers
- type TL_privacyValueDisallowAll
- type TL_privacyValueDisallowContacts
- type TL_privacyValueDisallowUsers
- type TL_receivedNotifyMessage
- type TL_replyInlineMarkup
- type TL_replyKeyboardForceReply
- type TL_replyKeyboardHide
- type TL_replyKeyboardMarkup
- type TL_req_DH_params
- type TL_req_pq
- type TL_resPQ
- type TL_rpc_error
- type TL_rpc_result
- type TL_sendMessageCancelAction
- type TL_sendMessageChooseContactAction
- type TL_sendMessageGamePlayAction
- type TL_sendMessageGeoLocationAction
- type TL_sendMessageRecordAudioAction
- type TL_sendMessageRecordVideoAction
- type TL_sendMessageTypingAction
- type TL_sendMessageUploadAudioAction
- type TL_sendMessageUploadDocumentAction
- type TL_sendMessageUploadPhotoAction
- type TL_sendMessageUploadVideoAction
- type TL_server_DH_inner_data
- type TL_server_DH_params_fail
- type TL_server_DH_params_ok
- type TL_set_client_DH_params
- type TL_shippingOption
- type TL_stickerPack
- type TL_stickerSet
- type TL_stickerSetCovered
- type TL_stickerSetMultiCovered
- type TL_storage_fileGif
- type TL_storage_fileJpeg
- type TL_storage_fileMov
- type TL_storage_fileMp3
- type TL_storage_fileMp4
- type TL_storage_filePartial
- type TL_storage_filePdf
- type TL_storage_filePng
- type TL_storage_fileUnknown
- type TL_storage_fileWebp
- type TL_textBold
- type TL_textConcat
- type TL_textEmail
- type TL_textEmpty
- type TL_textFixed
- type TL_textItalic
- type TL_textPlain
- type TL_textStrike
- type TL_textUnderline
- type TL_textUrl
- type TL_topPeer
- type TL_topPeerCategoryBotsInline
- type TL_topPeerCategoryBotsPM
- type TL_topPeerCategoryChannels
- type TL_topPeerCategoryCorrespondents
- type TL_topPeerCategoryGroups
- type TL_topPeerCategoryPeers
- type TL_true
- type TL_updateBotCallbackQuery
- type TL_updateBotInlineQuery
- type TL_updateBotInlineSend
- type TL_updateBotPrecheckoutQuery
- type TL_updateBotShippingQuery
- type TL_updateBotWebhookJSON
- type TL_updateBotWebhookJSONQuery
- type TL_updateChannel
- type TL_updateChannelMessageViews
- type TL_updateChannelPinnedMessage
- type TL_updateChannelTooLong
- type TL_updateChannelWebPage
- type TL_updateChatAdmins
- type TL_updateChatParticipantAdd
- type TL_updateChatParticipantAdmin
- type TL_updateChatParticipantDelete
- type TL_updateChatParticipants
- type TL_updateChatUserTyping
- type TL_updateConfig
- type TL_updateContactLink
- type TL_updateContactRegistered
- type TL_updateDcOptions
- type TL_updateDeleteChannelMessages
- type TL_updateDeleteMessages
- type TL_updateDialogPinned
- type TL_updateDraftMessage
- type TL_updateEditChannelMessage
- type TL_updateEditMessage
- type TL_updateEncryptedChatTyping
- type TL_updateEncryptedMessagesRead
- type TL_updateEncryption
- type TL_updateInlineBotCallbackQuery
- type TL_updateMessageID
- type TL_updateNewChannelMessage
- type TL_updateNewEncryptedMessage
- type TL_updateNewMessage
- type TL_updateNewStickerSet
- type TL_updateNotifySettings
- type TL_updatePhoneCall
- type TL_updatePinnedDialogs
- type TL_updatePrivacy
- type TL_updatePtsChanged
- type TL_updateReadChannelInbox
- type TL_updateReadChannelOutbox
- type TL_updateReadFeaturedStickers
- type TL_updateReadHistoryInbox
- type TL_updateReadHistoryOutbox
- type TL_updateReadMessagesContents
- type TL_updateRecentStickers
- type TL_updateSavedGifs
- type TL_updateServiceNotification
- type TL_updateShort
- type TL_updateShortChatMessage
- type TL_updateShortMessage
- type TL_updateShortSentMessage
- type TL_updateStickerSets
- type TL_updateStickerSetsOrder
- type TL_updateUserBlocked
- type TL_updateUserName
- type TL_updateUserPhone
- type TL_updateUserPhoto
- type TL_updateUserStatus
- type TL_updateUserTyping
- type TL_updateWebPage
- type TL_updates
- type TL_updatesCombined
- type TL_updatesTooLong
- type TL_updates_channelDifference
- type TL_updates_channelDifferenceEmpty
- type TL_updates_channelDifferenceTooLong
- type TL_updates_difference
- type TL_updates_differenceEmpty
- type TL_updates_differenceSlice
- type TL_updates_differenceTooLong
- type TL_updates_getChannelDifference
- type TL_updates_getDifference
- type TL_updates_getState
- type TL_updates_state
- type TL_upload_file
- type TL_upload_getFile
- type TL_upload_getWebFile
- type TL_upload_saveBigFilePart
- type TL_upload_saveFilePart
- type TL_upload_webFile
- type TL_user
- type TL_userEmpty
- type TL_userFull
- type TL_userProfilePhoto
- type TL_userProfilePhotoEmpty
- type TL_userStatusEmpty
- type TL_userStatusLastMonth
- type TL_userStatusLastWeek
- type TL_userStatusOffline
- type TL_userStatusOnline
- type TL_userStatusRecently
- type TL_users_getFullUser
- type TL_users_getUsers
- type TL_vector
- type TL_wallPaper
- type TL_wallPaperSolid
- type TL_webDocument
- type TL_webPage
- type TL_webPageEmpty
- type TL_webPageNotModified
- type TL_webPagePending
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrTelegramTimeOut = errors.New("telegram time out.") ErrUsernameInvalid = errors.New("USERNAME_INVALID") )
Functions ¶
func DoAES256IGEdecrypt ¶
func DoAES256IGEencrypt ¶
func EncodeInterface ¶
func EncodeInterface(msg interface{}) []byte
func GenerateMessageId ¶
func GenerateMessageId() int64
func GenerateNonce ¶
func MakePacket ¶
Types ¶
type ChannelInfo ¶
type Configuration ¶
type Configuration struct { Id int32 Hash string Version string DeviceModel string SystemVersion string Language string }
func NewConfiguration ¶
func NewConfiguration(id int32, hash, version, deviceModel, systemVersion, language string) (*Configuration, error)
func (Configuration) Check ¶
func (appConfig Configuration) Check() error
type DecodeBuf ¶
type DecodeBuf struct {
// contains filtered or unexported fields
}
func NewDecodeBuf ¶
func (*DecodeBuf) ObjectGenerated ¶
func (*DecodeBuf) StringBytes ¶
func (*DecodeBuf) VectorLong ¶
func (*DecodeBuf) VectorString ¶
type EncodeBuf ¶
type EncodeBuf struct {
// contains filtered or unexported fields
}
func NewEncodeBuf ¶
func (*EncodeBuf) StringBytes ¶
func (*EncodeBuf) VectorLong ¶
func (*EncodeBuf) VectorString ¶
type MTProto ¶
type MTProto struct { Addr string StopRoutines chan struct{} IsMigrate bool IsReconnect bool IsConnected bool HasErr bool CurrentDC int32 CurUserPhone string // contains filtered or unexported fields }
func NewMTProto ¶
func (*MTProto) AccountChangeStatus ¶
func (*MTProto) AuthExportAuthorization ¶
func (m *MTProto) AuthExportAuthorization(dc_id int32) (*TL_auth_exportedAuthorization, error)
func (*MTProto) AuthImportAuthorization ¶
func (m *MTProto) AuthImportAuthorization(id int32, bytes []byte) (*TL_auth_authorization, error)
func (*MTProto) AuthLogOut ¶
func (*MTProto) AuthSendCode ¶
func (m *MTProto) AuthSendCode(phonenumber string) (*TL_auth_sentCode, error)
func (*MTProto) AuthSignIn ¶
func (m *MTProto) AuthSignIn(phoneNumber, phoneCode, phoneCodeHash string) (*TL_auth_authorization, error)
func (*MTProto) ChannelsReadHistory ¶
func (*MTProto) ContactsGetContacts ¶
func (*MTProto) ContactsGetTopPeers ¶
func (*MTProto) Disconnect ¶
func (*MTProto) DownloadImage ¶
func (*MTProto) DownloadVideo ¶
func (*MTProto) GetChannelFromGlobalSearch ¶
func (m *MTProto) GetChannelFromGlobalSearch(username string) (TL_channel, error)
func (*MTProto) GetChannelFromUsername ¶
func (m *MTProto) GetChannelFromUsername(username string) (TL_channel, error)
func (*MTProto) GetChannelObjects ¶
func (m *MTProto) GetChannelObjects(channel TL_channel) ChannelInfo
func (*MTProto) GetChannelParticipants ¶
func (*MTProto) GetChannels ¶
func (*MTProto) GetChannelsUnreadMsg ¶
func (*MTProto) GetDialogs ¶
func (*MTProto) GetFullChannel ¶
func (m *MTProto) GetFullChannel(channelID int32, accessHash int64) (TL_channelFull, error)
func (*MTProto) GetMessage ¶
func (*MTProto) GetMessageObject ¶
func (m *MTProto) GetMessageObject(msg TL_message, channelId int32) Message
func (*MTProto) GetParticipants ¶
func (*MTProto) GetPosts ¶
func (m *MTProto) GetPosts(msgsId []int32, channelId int32, hash int64) []TL_message
func (*MTProto) GetUserFromUsername ¶
func (*MTProto) JoinChannel ¶
func (*MTProto) MessageSendMedia ¶
func (*MTProto) MessagesForwardMessage ¶
func (*MTProto) MessagesGetHistory ¶
func (*MTProto) MessagesSendMessage ¶
func (*MTProto) SendPacket ¶
func (*MTProto) SendProfilePhoto ¶
func (*MTProto) UpdateVeiwsCount ¶
func (*MTProto) UpdatesGetChannelDifference ¶
func (*MTProto) UpdatesGetDifference ¶
func (*MTProto) UpdatesGetState ¶
func (*MTProto) UsersGetFullUsers ¶
func (m *MTProto) UsersGetFullUsers(id TL) (*TL_userFull, error)
type TL_accountDaysTTL ¶
type TL_accountDaysTTL struct {
Days int32 // days:int
}
type TL_account_authorizations ¶
type TL_account_authorizations struct {
}type TL_account_changePhone ¶
type TL_account_checkUsername ¶
type TL_account_checkUsername struct {
Username string // username:string
}
type TL_account_confirmPhone ¶
type TL_account_deleteAccount ¶
type TL_account_deleteAccount struct {
Reason string // 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 // peer:InputNotifyPeer
}
type TL_account_getPassword ¶
type TL_account_getPassword struct { }
type TL_account_getPasswordSettings ¶
type TL_account_getPasswordSettings struct {
Current_password_hash []byte // current_password_hash:bytes
}
type TL_account_getPrivacy ¶
type TL_account_getPrivacy struct {
Key TL // key:InputPrivacyKey
}
type TL_account_getWallPapers ¶
type TL_account_getWallPapers struct { }
type TL_account_noPassword ¶
type TL_account_password ¶
type TL_account_passwordSettings ¶
type TL_account_passwordSettings struct {
Email string // email:string
}
type TL_account_privacyRules ¶
type TL_account_reportPeer ¶
type TL_account_resetAuthorization ¶
type TL_account_resetAuthorization struct {
Hash int64 // Hash:long
}
type TL_account_resetNotifySettings ¶
type TL_account_resetNotifySettings struct { }
type TL_account_setAccountTTL ¶
type TL_account_setAccountTTL struct {
Ttl TL // ttl:AccountDaysTTL
}
type TL_account_setPrivacy ¶
type TL_account_tmpPassword ¶
type TL_account_updateDeviceLocked ¶
type TL_account_updateDeviceLocked struct {
Period int32 // period:int
}
type TL_account_updateStatus ¶
type TL_account_updateStatus struct {
Offline TL // offline:Bool
}
type TL_account_updateUsername ¶
type TL_account_updateUsername struct {
Username string // username:string
}
type TL_auth_authorization ¶
type TL_auth_authorization struct {}
type TL_auth_bindTempAuthKey ¶
type TL_auth_cancelCode ¶
type TL_auth_checkPassword ¶
type TL_auth_checkPassword struct {
Password_hash []byte // password_hash:bytes
}
type TL_auth_checkPhone ¶
type TL_auth_checkPhone struct {
Phone_number string // phone_number:string
}
type TL_auth_checkedPhone ¶
type TL_auth_checkedPhone struct {
Phone_registered TL // phone_registered: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 // except_auth_keys:Vector<long>
}
type TL_auth_exportAuthorization ¶
type TL_auth_exportAuthorization struct {
Dc_id int32 // dc_id:int
}
type TL_auth_logOut ¶
type TL_auth_logOut struct { }
type TL_auth_passwordRecovery ¶
type TL_auth_passwordRecovery struct {
Email_pattern string // email_pattern:string
}
type TL_auth_recoverPassword ¶
type TL_auth_recoverPassword struct {
Code string // code:string
}
type TL_auth_requestPasswordRecovery ¶
type TL_auth_requestPasswordRecovery struct { }
type TL_auth_resendCode ¶
type TL_auth_resetAuthorizations ¶
type TL_auth_resetAuthorizations struct { }
type TL_auth_sendCode ¶
type TL_auth_sendInvites ¶
type TL_auth_sentCode ¶
type TL_auth_sentCodeTypeApp ¶
type TL_auth_sentCodeTypeApp struct {
Length int32 // length:int
}
type TL_auth_sentCodeTypeCall ¶
type TL_auth_sentCodeTypeCall struct {
Length int32 // length:int
}
type TL_auth_sentCodeTypeFlashCall ¶
type TL_auth_sentCodeTypeFlashCall struct {
Pattern string // pattern:string
}
type TL_auth_sentCodeTypeSms ¶
type TL_auth_sentCodeTypeSms struct {
Length int32 // length:int
}
type TL_auth_signIn ¶
type TL_auth_signUp ¶
type TL_authorization ¶
type TL_authorization struct {}
type TL_bad_msg_notification ¶
type TL_bad_server_salt ¶
type TL_boolFalse ¶
type TL_boolFalse struct { }
type TL_boolTrue ¶
type TL_boolTrue struct { }
type TL_botCommand ¶
type TL_botInfo ¶
type TL_botInlineMediaResult ¶
type TL_botInlineMediaResult struct { Flags int32 Id string // Id:string Code_type string // type:string Photo TL // photo:flags.0?Photo Document TL // document:flags.1?Document Title string // title:flags.2?string Description string // description:flags.3?string Send_message TL // send_message:BotInlineMessage }
type TL_botInlineMessageText ¶
type TL_botInlineResult ¶
type TL_botInlineResult struct { Flags int32 Id string // Id:string Code_type string // type:string Title string // title:flags.1?string Description string // description:flags.2?string Url string // url:flags.3?string Thumb_url string // thumb_url:flags.4?string Content_url string // content_url:flags.5?string Content_type string // content_type:flags.5?string W int32 // w:flags.6?int H int32 // h:flags.6?int Duration int32 // duration:flags.7?int Send_message TL // send_message:BotInlineMessage }
type TL_channel ¶
type TL_channel struct { Flags int32 Creator bool // creator:flags.0?true Kicked bool // kicked:flags.1?true Left bool // left:flags.2?true Editor bool // editor:flags.3?true Moderator bool // moderator:flags.4?true Broadcast bool // broadcast:flags.5?true Verified bool // verified:flags.7?true Megagroup bool // megagroup:flags.8?true Restricted bool // restricted:flags.9?true Democracy bool // democracy:flags.10?true Signatures bool // signatures:flags.11?true Min bool // min:flags.12?true Id int32 // Id:int Access_hash int64 // access_hash:flags.13?long Title string // title:string Username string // username:flags.6?string Photo TL // photo:ChatPhoto Date int32 // date:int Version int32 // Version:int Restriction_reason string // restriction_reason:flags.9?string }
type TL_channelForbidden ¶
type TL_channelFull ¶
type TL_channelFull struct { Flags int32 Can_view_participants bool // can_view_participants:flags.3?true Can_set_username bool // can_set_username:flags.6?true Id int32 // Id:int About string // about:string ParticipantsCount int32 // participants_count:flags.0?int Admins_count int32 // admins_count:flags.1?int Kicked_count int32 // kicked_count:flags.2?int Read_inbox_max_id int32 // read_inbox_max_id:int Read_outbox_max_id int32 // read_outbox_max_id:int Unread_count int32 // unread_count:int Chat_photo TL // chat_photo:Photo Notify_settings TL // notify_settings:PeerNotifySettings Exported_invite TL // exported_invite:ExportedChatInvite Bot_info []TL // bot_info:Vector<BotInfo> Migrated_from_chat_id int32 // migrated_from_chat_id:flags.4?int Migrated_from_max_id int32 // migrated_from_max_id:flags.4?int Pinned_msg_id int32 // pinned_msg_id:flags.5?int }
type TL_channelMessagesFilterEmpty ¶
type TL_channelMessagesFilterEmpty struct { }
type TL_channelParticipant ¶
type TL_channelParticipantCreator ¶
type TL_channelParticipantCreator struct {
User_id int32 // user_id:int
}
type TL_channelParticipantsAdmins ¶
type TL_channelParticipantsAdmins struct { }
type TL_channelParticipantsBots ¶
type TL_channelParticipantsBots struct { }
type TL_channelParticipantsKicked ¶
type TL_channelParticipantsKicked struct { }
type TL_channelParticipantsRecent ¶
type TL_channelParticipantsRecent struct { }
type TL_channelRoleEditor ¶
type TL_channelRoleEditor struct { }
type TL_channelRoleEmpty ¶
type TL_channelRoleEmpty struct { }
type TL_channelRoleModerator ¶
type TL_channelRoleModerator struct { }
type TL_channels_deleteChannel ¶
type TL_channels_deleteChannel struct {
Channel TL // channel:InputChannel
}
type TL_channels_editAbout ¶
type TL_channels_editAdmin ¶
type TL_channels_editPhoto ¶
type TL_channels_editTitle ¶
type TL_channels_exportInvite ¶
type TL_channels_exportInvite struct {
Channel TL // channel:InputChannel
}
type TL_channels_getAdminedPublicChannels ¶
type TL_channels_getAdminedPublicChannels struct { }
type TL_channels_getChannels ¶
type TL_channels_getChannels struct {
Id []TL // Id:Vector<InputChannel>
}
type TL_channels_getFullChannel ¶
type TL_channels_getFullChannel struct {
Channel TL // channel:InputChannel
}
type TL_channels_getMessages ¶
type TL_channels_joinChannel ¶
type TL_channels_joinChannel struct {
Channel TL // channel:InputChannel
}
type TL_channels_leaveChannel ¶
type TL_channels_leaveChannel struct {
Channel TL // channel:InputChannel
}
type TL_channels_readHistory ¶
type TL_channels_reportSpam ¶
type TL_chat ¶
type TL_chat struct { Flags int32 Creator bool // creator:flags.0?true Kicked bool // kicked:flags.1?true Left bool // left:flags.2?true Admins_enabled bool // admins_enabled:flags.3?true Admin bool // admin:flags.4?true Deactivated bool // deactivated:flags.5?true Id int32 // Id:int Title string // title:string Photo TL // photo:ChatPhoto Participants_count int32 // participants_count:int Date int32 // date:int Version int32 // Version:int Migrated_to TL // migrated_to:flags.6?InputChannel }
type TL_chatEmpty ¶
type TL_chatEmpty struct {
Id int32 // Id:int
}
type TL_chatForbidden ¶
type TL_chatFull ¶
type TL_chatInvite ¶
type TL_chatInvite struct { Flags int32 Channel bool // channel:flags.0?true Broadcast bool // broadcast:flags.1?true Public bool // public:flags.2?true Megagroup bool // megagroup:flags.3?true Title string // title:string Photo TL // photo:ChatPhoto Participants_count int32 // participants_count:int Participants []TL // participants:flags.4?Vector<User> }
type TL_chatInviteAlready ¶
type TL_chatInviteAlready struct {
Chat TL // chat:Chat
}
type TL_chatInviteEmpty ¶
type TL_chatInviteEmpty struct { }
type TL_chatInviteExported ¶
type TL_chatInviteExported struct {
Link string // link:string
}
type TL_chatParticipant ¶
type TL_chatParticipantAdmin ¶
type TL_chatParticipantCreator ¶
type TL_chatParticipantCreator struct {
User_id int32 // user_id:int
}
type TL_chatParticipants ¶
type TL_chatPhoto ¶
type TL_chatPhotoEmpty ¶
type TL_chatPhotoEmpty struct { }
type TL_client_DH_inner_data ¶
type TL_config ¶
type TL_config struct { Flags int32 Phonecalls_enabled bool // phonecalls_enabled:flags.1?true Date int32 // date:int Expires int32 // expires:int Test_mode TL // test_mode:Bool This_dc int32 // this_dc:int Dc_options []TL // dc_options:Vector<DcOption> Chat_size_max int32 // chat_size_max:int Megagroup_size_max int32 // megagroup_size_max:int Forwarded_count_max int32 // forwarded_count_max:int Online_update_period_ms int32 // online_update_period_ms:int Offline_blur_timeout_ms int32 // offline_blur_timeout_ms:int Offline_idle_timeout_ms int32 // offline_idle_timeout_ms:int Online_cloud_timeout_ms int32 // online_cloud_timeout_ms:int Notify_cloud_delay_ms int32 // notify_cloud_delay_ms:int Notify_default_delay_ms int32 // notify_default_delay_ms:int Chat_big_size int32 // chat_big_size:int Push_chat_period_ms int32 // push_chat_period_ms:int Push_chat_limit int32 // push_chat_limit:int Saved_gifs_limit int32 // saved_gifs_limit:int Edit_time_limit int32 // edit_time_limit:int Rating_e_decay int32 // rating_e_decay:int Stickers_recent_limit int32 // stickers_recent_limit:int Tmp_sessions int32 // tmp_sessions:flags.0?int Pinned_dialogs_count_max int32 // pinned_dialogs_count_max:int Call_receive_timeout_ms int32 // call_receive_timeout_ms:int Call_ring_timeout_ms int32 // call_ring_timeout_ms:int Call_connect_timeout_ms int32 // call_connect_timeout_ms:int Call_packet_timeout_ms int32 // call_packet_timeout_ms:int Me_url_prefix string // me_url_prefix:string Disabled_features []TL // disabled_features:Vector<DisabledFeature> }
type TL_contact ¶
type TL_contactBlocked ¶
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_contacts_block ¶
type TL_contacts_block struct {
Id TL // Id:InputUser
}
type TL_contacts_blocked ¶
type TL_contacts_contacts ¶
type TL_contacts_contactsNotModified ¶
type TL_contacts_contactsNotModified struct { }
type TL_contacts_deleteContact ¶
type TL_contacts_deleteContact struct {
Id TL // Id:InputUser
}
type TL_contacts_deleteContacts ¶
type TL_contacts_deleteContacts struct {
Id []TL // Id:Vector<InputUser>
}
type TL_contacts_exportCard ¶
type TL_contacts_exportCard struct { }
type TL_contacts_found ¶
type TL_contacts_getBlocked ¶
type TL_contacts_getContacts ¶
type TL_contacts_getContacts struct {
Hash string // Hash:string
}
type TL_contacts_getStatuses ¶
type TL_contacts_getStatuses struct { }
type TL_contacts_getTopPeers ¶
type TL_contacts_getTopPeers struct { Flags int32 Correspondents bool // correspondents:flags.0?true Bots_pm bool // bots_pm:flags.1?true Bots_inline bool // bots_inline:flags.2?true Groups bool // groups:flags.10?true Channels bool // channels:flags.15?true Offset int32 // offset:int Limit int32 // limit:int Hash int32 // Hash:int }
type TL_contacts_importCard ¶
type TL_contacts_importCard struct {
Export_card []int32 // export_card:Vector<int>
}
type TL_contacts_link ¶
type TL_contacts_resolveUsername ¶
type TL_contacts_resolveUsername struct {
Username string // username:string
}
type TL_contacts_search ¶
type TL_contacts_topPeers ¶
type TL_contacts_topPeersNotModified ¶
type TL_contacts_topPeersNotModified struct { }
type TL_contacts_unblock ¶
type TL_contacts_unblock struct {
Id TL // Id:InputUser
}
type TL_dataJSON ¶
type TL_dataJSON struct {
Data string // data:string
}
type TL_dcOption ¶
type TL_dh_gen_ok ¶
type TL_dialog ¶
type TL_dialog struct { Flags int32 Pinned bool // pinned:flags.2?true Peer TL // peer:Peer Top_message int32 // top_message:int Read_inbox_max_id int32 // read_inbox_max_id:int Read_outbox_max_id int32 // read_outbox_max_id:int Unread_count int32 // unread_count:int Notify_settings TL // notify_settings:PeerNotifySettings Pts int32 // pts:flags.0?int Draft TL // draft:flags.1?DraftMessage }
type TL_disabledFeature ¶
type TL_document ¶
type TL_document struct { Id int64 `json:"id"` // Id:long Access_hash int64 `json:"access_hash"` // access_hash:long Date int32 `json:"date"` // date:int Mime_type string `json:"mime_type"` // mime_type:string Size int32 `json:"size"` // size:int Thumb TL `json:"thumb"` // thumb:PhotoSize Dc_id int32 `json:"dc_id"` // dc_id:int Version int32 `json:"version"` // Version:int Attributes []TL `json:"attributes"` // attributes:Vector<DocumentAttribute> }
type TL_documentAttributeAnimated ¶
type TL_documentAttributeAnimated struct { }
type TL_documentAttributeFilename ¶
type TL_documentAttributeFilename struct {
File_name string `json:"file_name"` // file_name:string
}
type TL_documentAttributeHasStickers ¶
type TL_documentAttributeHasStickers struct { }
type TL_documentEmpty ¶
type TL_documentEmpty struct {
Id int64 // Id:long
}
type TL_draftMessage ¶
type TL_draftMessageEmpty ¶
type TL_draftMessageEmpty struct { }
type TL_encryptedChat ¶
type TL_encryptedChatDiscarded ¶
type TL_encryptedChatDiscarded struct {
Id int32 // Id:int
}
type TL_encryptedChatEmpty ¶
type TL_encryptedChatEmpty struct {
Id int32 // Id:int
}
type TL_encryptedChatWaiting ¶
type TL_encryptedFile ¶
type TL_encryptedFileEmpty ¶
type TL_encryptedFileEmpty struct { }
type TL_encryptedMessage ¶
type TL_exportedMessageLink ¶
type TL_exportedMessageLink struct {
Link string // link:string
}
type TL_fileLocation ¶
type TL_fileLocationUnavailable ¶
type TL_fileLocationUnavailable struct {}
type TL_foundGif ¶
type TL_foundGifCached ¶
type TL_geoPoint ¶
type TL_geoPointEmpty ¶
type TL_geoPointEmpty struct { }
type TL_help_appUpdate ¶
type TL_help_getAppChangelog ¶
type TL_help_getAppChangelog struct {
Prev_app_version string // prev_app_version:string
}
type TL_help_getAppUpdate ¶
type TL_help_getAppUpdate 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 // message:string
}
type TL_help_noAppUpdate ¶
type TL_help_noAppUpdate struct { }
type TL_help_saveAppLog ¶
type TL_help_saveAppLog struct {
Events []TL // events:Vector<InputAppEvent>
}
type TL_help_support ¶
type TL_help_termsOfService ¶
type TL_help_termsOfService struct {
Text string // text:string
}
type TL_highScore ¶
type TL_http_wait ¶
type TL_importedContact ¶
type TL_initConnection ¶
type TL_inlineBotSwitchPM ¶
type TL_inputAppEvent ¶
type TL_inputBotInlineResult ¶
type TL_inputBotInlineResult struct { Flags int32 Id string // Id:string Code_type string // type:string Title string // title:flags.1?string Description string // description:flags.2?string Url string // url:flags.3?string Thumb_url string // thumb_url:flags.4?string Content_url string // content_url:flags.5?string Content_type string // content_type:flags.5?string W int32 // w:flags.6?int H int32 // h:flags.6?int Duration int32 // duration:flags.7?int Send_message TL // send_message:InputBotInlineMessage }
type TL_inputChannel ¶
type TL_inputChannelEmpty ¶
type TL_inputChannelEmpty struct { }
type TL_inputChatPhoto ¶
type TL_inputChatPhoto struct {
Id TL // Id:InputPhoto
}
type TL_inputChatPhotoEmpty ¶
type TL_inputChatPhotoEmpty struct { }
type TL_inputChatUploadedPhoto ¶
type TL_inputChatUploadedPhoto struct {
File TL // file:InputFile
}
type TL_inputDocument ¶
type TL_inputDocumentEmpty ¶
type TL_inputDocumentEmpty struct { }
type TL_inputEncryptedChat ¶
type TL_inputEncryptedFile ¶
type TL_inputEncryptedFileEmpty ¶
type TL_inputEncryptedFileEmpty struct { }
type TL_inputFile ¶
type TL_inputFileBig ¶
type TL_inputFileLocation ¶
type TL_inputGameID ¶
type TL_inputGameShortName ¶
type TL_inputGeoPoint ¶
type TL_inputGeoPointEmpty ¶
type TL_inputGeoPointEmpty struct { }
type TL_inputMediaContact ¶
type TL_inputMediaDocument ¶
type TL_inputMediaEmpty ¶
type TL_inputMediaEmpty struct { }
type TL_inputMediaGame ¶
type TL_inputMediaGame struct {
Id TL // Id:InputGame
}
type TL_inputMediaGeoPoint ¶
type TL_inputMediaGeoPoint struct {
Geo_point TL // geo_point:InputGeoPoint
}
type TL_inputMediaInvoice ¶
type TL_inputMediaPhoto ¶
type TL_inputMediaVenue ¶
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_inputMessagesFilterPhotoVideo ¶
type TL_inputMessagesFilterPhotoVideo struct { }
type TL_inputMessagesFilterPhotoVideoDocuments ¶
type TL_inputMessagesFilterPhotoVideoDocuments struct { }
type TL_inputMessagesFilterPhotos ¶
type TL_inputMessagesFilterPhotos 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 // peer:InputPeer
}
type TL_inputNotifyUsers ¶
type TL_inputNotifyUsers struct { }
type TL_inputPeerChannel ¶
type TL_inputPeerChat ¶
type TL_inputPeerChat struct {
Chat_id int32 // chat_id:int
}
type TL_inputPeerEmpty ¶
type TL_inputPeerEmpty struct { }
type TL_inputPeerNotifyEventsAll ¶
type TL_inputPeerNotifyEventsAll struct { }
type TL_inputPeerNotifyEventsEmpty ¶
type TL_inputPeerNotifyEventsEmpty struct { }
type TL_inputPeerSelf ¶
type TL_inputPeerSelf struct { }
type TL_inputPeerUser ¶
type TL_inputPhoneCall ¶
type TL_inputPhoneContact ¶
type TL_inputPhoto ¶
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 // users:Vector<InputUser>
}
type TL_inputPrivacyValueDisallowAll ¶
type TL_inputPrivacyValueDisallowAll struct { }
type TL_inputPrivacyValueDisallowContacts ¶
type TL_inputPrivacyValueDisallowContacts struct { }
type TL_inputPrivacyValueDisallowUsers ¶
type TL_inputPrivacyValueDisallowUsers struct {
Users []TL // users:Vector<InputUser>
}
type TL_inputReportReasonOther ¶
type TL_inputReportReasonOther struct {
Text string // 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_inputStickerSetShortName ¶
type TL_inputStickerSetShortName struct {
Short_name string // short_name:string
}
type TL_inputStickeredMediaDocument ¶
type TL_inputStickeredMediaDocument struct {
Id TL // Id:InputDocument
}
type TL_inputStickeredMediaPhoto ¶
type TL_inputStickeredMediaPhoto struct {
Id TL // Id:InputPhoto
}
type TL_inputUser ¶
type TL_inputUserEmpty ¶
type TL_inputUserEmpty struct { }
type TL_inputUserSelf ¶
type TL_inputUserSelf struct { }
type TL_inputWebDocument ¶
type TL_inputWebFileLocation ¶
type TL_invoice ¶
type TL_invoice struct { Flags int32 Test bool // test:flags.0?true Name_requested bool // name_requested:flags.1?true Phone_requested bool // phone_requested:flags.2?true Email_requested bool // email_requested:flags.3?true Shipping_address_requested bool // shipping_address_requested:flags.4?true Flexible bool // flexible:flags.5?true Currency string // currency:string Prices []TL // prices:Vector<LabeledPrice> }
type TL_invokeAfterMsg ¶
type TL_invokeAfterMsgs ¶
type TL_invokeWithLayer ¶
type TL_invokeWithoutUpdates ¶
type TL_invokeWithoutUpdates struct {
Query TL // query:!X
}
type TL_keyboardButton ¶
type TL_keyboardButton struct {
Text string // text:string
}
type TL_keyboardButtonBuy ¶
type TL_keyboardButtonBuy struct {
Text string // text:string
}
type TL_keyboardButtonGame ¶
type TL_keyboardButtonGame struct {
Text string // text:string
}
type TL_keyboardButtonRequestGeoLocation ¶
type TL_keyboardButtonRequestGeoLocation struct {
Text string // text:string
}
type TL_keyboardButtonRequestPhone ¶
type TL_keyboardButtonRequestPhone struct {
Text string // text:string
}
type TL_keyboardButtonRow ¶
type TL_keyboardButtonRow struct {
Buttons []TL // buttons:Vector<KeyboardButton>
}
type TL_keyboardButtonUrl ¶
type TL_labeledPrice ¶
type TL_maskCoords ¶
type TL_message ¶
type TL_message struct { Flags int32 Out bool // out:flags.1?true Mentioned bool // mentioned:flags.4?true Media_unread bool // media_unread:flags.5?true Silent bool // silent:flags.13?true Post bool // post:flags.14?true Id int32 // Id:int From_id int32 // from_id:flags.8?int To_id TL // to_id:Peer Fwd_from TL // fwd_from:flags.2?MessageFwdHeader Via_bot_id int32 // via_bot_id:flags.11?int Reply_to_msg_id int32 // reply_to_msg_id:flags.3?int Date int32 // date:int Message string // message:string Media TL // media:flags.9?MessageMedia Reply_markup TL // reply_markup:flags.6?ReplyMarkup Entities []TL // entities:flags.7?Vector<MessageEntity> Views int32 // views:flags.10?int Edit_date int32 // edit_date:flags.15?int }
type TL_messageActionChannelCreate ¶
type TL_messageActionChannelCreate struct {
Title string // title:string
}
type TL_messageActionChatAddUser ¶
type TL_messageActionChatAddUser struct {
Users []int32 // users:Vector<int>
}
type TL_messageActionChatDeletePhoto ¶
type TL_messageActionChatDeletePhoto struct { }
type TL_messageActionChatDeleteUser ¶
type TL_messageActionChatDeleteUser struct {
User_id int32 // user_id:int
}
type TL_messageActionChatEditPhoto ¶
type TL_messageActionChatEditPhoto struct {
Photo TL // photo:Photo
}
type TL_messageActionChatEditTitle ¶
type TL_messageActionChatEditTitle struct {
Title string // title:string
}
type TL_messageActionChatJoinedByLink ¶
type TL_messageActionChatJoinedByLink struct {
Inviter_id int32 // inviter_id:int
}
type TL_messageActionChatMigrateTo ¶
type TL_messageActionChatMigrateTo struct {
Channel_id int32 // channel_id:int
}
type TL_messageActionEmpty ¶
type TL_messageActionEmpty struct { }
type TL_messageActionHistoryClear ¶
type TL_messageActionHistoryClear struct { }
type TL_messageActionPaymentSentMe ¶
type TL_messageActionPaymentSentMe struct { Flags int32 Currency string // currency:string Total_amount int64 // total_amount:long Payload []byte // payload:bytes Info TL // info:flags.0?PaymentRequestedInfo Shipping_option_id string // shipping_option_id:flags.1?string Charge TL // charge:PaymentCharge }
type TL_messageActionPinMessage ¶
type TL_messageActionPinMessage struct { }
type TL_messageEmpty ¶
type TL_messageEmpty struct {
Id int32 // Id:int
}
type TL_messageEntityBold ¶
type TL_messageEntityCode ¶
type TL_messageEntityEmail ¶
type TL_messageEntityHashtag ¶
type TL_messageEntityItalic ¶
type TL_messageEntityMention ¶
type TL_messageEntityPre ¶
type TL_messageEntityTextUrl ¶
type TL_messageEntityUnknown ¶
type TL_messageEntityUrl ¶
type TL_messageFwdHeader ¶
type TL_messageMediaContact ¶
type TL_messageMediaDocument ¶
type TL_messageMediaEmpty ¶
type TL_messageMediaEmpty struct { }
type TL_messageMediaGame ¶
type TL_messageMediaGame struct {
Game TL // game:Game
}
type TL_messageMediaGeo ¶
type TL_messageMediaGeo struct {
Geo TL // geo:GeoPoint
}
type TL_messageMediaInvoice ¶
type TL_messageMediaInvoice struct { Flags int32 Shipping_address_requested bool // shipping_address_requested:flags.1?true Test bool // test:flags.3?true Title string // title:string Description string // description:string Photo TL // photo:flags.0?WebDocument Receipt_msg_id int32 // receipt_msg_id:flags.2?int Currency string // currency:string Total_amount int64 // total_amount:long Start_param string // start_param:string }
type TL_messageMediaPhoto ¶
type TL_messageMediaUnsupported ¶
type TL_messageMediaUnsupported struct { }
type TL_messageMediaVenue ¶
type TL_messageMediaWebPage ¶
type TL_messageMediaWebPage struct {
Webpage TL // webpage:WebPage
}
type TL_messageRange ¶
type TL_messageService ¶
type TL_messageService struct { Flags int32 Out bool // out:flags.1?true Mentioned bool // mentioned:flags.4?true Media_unread bool // media_unread:flags.5?true Silent bool // silent:flags.13?true Post bool // post:flags.14?true Id int32 // Id:int From_id int32 // from_id:flags.8?int To_id TL // to_id:Peer Reply_to_msg_id int32 // reply_to_msg_id:flags.3?int Date int32 // date:int Action TL // action:MessageAction }
type TL_messages_addChatUser ¶
type TL_messages_allStickers ¶
type TL_messages_allStickersNotModified ¶
type TL_messages_allStickersNotModified struct { }
type TL_messages_botResults ¶
type TL_messages_botResults struct { Flags int32 Gallery bool // gallery:flags.0?true Query_id int64 // query_id:long Next_offset string // next_offset:flags.1?string Switch_pm TL // switch_pm:flags.2?InlineBotSwitchPM Results []TL // results:Vector<BotInlineResult> Cache_time int32 // cache_time:int }
type TL_messages_chatFull ¶
type TL_messages_chats ¶
type TL_messages_chats struct {
Chats []TL // chats:Vector<Chat>
}
type TL_messages_chatsSlice ¶
type TL_messages_checkChatInvite ¶
type TL_messages_checkChatInvite struct {
Hash string // Hash:string
}
type TL_messages_createChat ¶
type TL_messages_dhConfig ¶
type TL_messages_dhConfigNotModified ¶
type TL_messages_dhConfigNotModified struct {
Random []byte // random:bytes
}
type TL_messages_dialogs ¶
type TL_messages_discardEncryption ¶
type TL_messages_discardEncryption struct {
Chat_id int32 // chat_id:int
}
type TL_messages_editMessage ¶
type TL_messages_exportChatInvite ¶
type TL_messages_exportChatInvite struct {
Chat_id int32 // chat_id:int
}
type TL_messages_featuredStickersNotModified ¶
type TL_messages_featuredStickersNotModified struct { }
type TL_messages_forwardMessages ¶
type TL_messages_forwardMessages struct { Flags int32 Silent bool // silent:flags.5?true Background bool // background:flags.6?true With_my_score bool // with_my_score:flags.8?true From_peer TL // from_peer:InputPeer Id []int32 // Id:Vector<int> Random_id []int64 // random_id:Vector<long> To_peer TL // to_peer:InputPeer }
type TL_messages_foundGifs ¶
type TL_messages_getAllChats ¶
type TL_messages_getAllChats struct {
Except_ids []int32 // except_ids:Vector<int>
}
type TL_messages_getAllDrafts ¶
type TL_messages_getAllDrafts struct { }
type TL_messages_getAllStickers ¶
type TL_messages_getAllStickers struct {
Hash int32 // Hash:int
}
type TL_messages_getAttachedStickers ¶
type TL_messages_getAttachedStickers struct {
Media TL // media:InputStickeredMedia
}
type TL_messages_getChats ¶
type TL_messages_getChats struct {
Id []int32 // Id:Vector<int>
}
type TL_messages_getDhConfig ¶
type TL_messages_getDialogs ¶
type TL_messages_getFeaturedStickers ¶
type TL_messages_getFeaturedStickers struct {
Hash int32 // Hash:int
}
type TL_messages_getFullChat ¶
type TL_messages_getFullChat struct {
Chat_id int32 // chat_id:int
}
type TL_messages_getHistory ¶
type TL_messages_getMaskStickers ¶
type TL_messages_getMaskStickers struct {
Hash int32 // Hash:int
}
type TL_messages_getMessages ¶
type TL_messages_getMessages struct {
Id []int32 // Id:Vector<int>
}
type TL_messages_getPeerDialogs ¶
type TL_messages_getPeerDialogs struct {
Peers []TL // peers:Vector<InputPeer>
}
type TL_messages_getPeerSettings ¶
type TL_messages_getPeerSettings struct {
Peer TL // peer:InputPeer
}
type TL_messages_getPinnedDialogs ¶
type TL_messages_getPinnedDialogs struct { }
type TL_messages_getSavedGifs ¶
type TL_messages_getSavedGifs struct {
Hash int32 // Hash:int
}
type TL_messages_getStickerSet ¶
type TL_messages_getStickerSet struct {
Stickerset TL // stickerset:InputStickerSet
}
type TL_messages_getWebPage ¶
type TL_messages_getWebPagePreview ¶
type TL_messages_getWebPagePreview struct {
Message string // message:string
}
type TL_messages_hideReportSpam ¶
type TL_messages_hideReportSpam struct {
Peer TL // peer:InputPeer
}
type TL_messages_highScores ¶
type TL_messages_importChatInvite ¶
type TL_messages_importChatInvite struct {
Hash string // Hash:string
}
type TL_messages_messages ¶
type TL_messages_migrateChat ¶
type TL_messages_migrateChat struct {
Chat_id int32 // chat_id:int
}
type TL_messages_peerDialogs ¶
type TL_messages_readFeaturedStickers ¶
type TL_messages_readFeaturedStickers struct {
Id []int64 // Id:Vector<long>
}
type TL_messages_readHistory ¶
type TL_messages_readMessageContents ¶
type TL_messages_readMessageContents struct {
Id []int32 // Id:Vector<int>
}
type TL_messages_receivedMessages ¶
type TL_messages_receivedMessages struct {
Max_id int32 // max_id:int
}
type TL_messages_receivedQueue ¶
type TL_messages_receivedQueue struct {
Max_qts int32 // max_qts:int
}
type TL_messages_recentStickersNotModified ¶
type TL_messages_recentStickersNotModified struct { }
type TL_messages_reportEncryptedSpam ¶
type TL_messages_reportEncryptedSpam struct {
Peer TL // peer:InputEncryptedChat
}
type TL_messages_reportSpam ¶
type TL_messages_reportSpam struct {
Peer TL // peer:InputPeer
}
type TL_messages_saveDraft ¶
type TL_messages_saveGif ¶
type TL_messages_savedGifs ¶
type TL_messages_savedGifsNotModified ¶
type TL_messages_savedGifsNotModified struct { }
type TL_messages_search ¶
type TL_messages_searchGifs ¶
type TL_messages_sendInlineBotResult ¶
type TL_messages_sendInlineBotResult struct { Flags int32 Silent bool // silent:flags.5?true Background bool // background:flags.6?true Clear_draft bool // clear_draft:flags.7?true Peer TL // peer:InputPeer Reply_to_msg_id int32 // reply_to_msg_id:flags.0?int Random_id int64 // random_id:long Query_id int64 // query_id:long Id string // Id:string }
type TL_messages_sendMedia ¶
type TL_messages_sendMedia struct { Flags int32 Silent bool // silent:flags.5?true Background bool // background:flags.6?true Clear_draft bool // clear_draft:flags.7?true Peer TL // peer:InputPeer Reply_to_msg_id int32 // reply_to_msg_id:flags.0?int Media TL // media:InputMedia Random_id int64 // random_id:long Reply_markup TL // reply_markup:flags.2?ReplyMarkup }
type TL_messages_sendMessage ¶
type TL_messages_sendMessage struct { Flags int32 No_webpage bool // no_webpage:flags.1?true Silent bool // silent:flags.5?true Background bool // background:flags.6?true Clear_draft bool // clear_draft:flags.7?true Peer TL // peer:InputPeer Reply_to_msg_id int32 // reply_to_msg_id:flags.0?int Message string // message:string Random_id int64 // random_id:long Reply_markup TL // reply_markup:flags.2?ReplyMarkup Entities []TL // entities:flags.3?Vector<MessageEntity> }
type TL_messages_sentEncryptedMessage ¶
type TL_messages_sentEncryptedMessage struct {
Date int32 // date:int
}
type TL_messages_setInlineBotResults ¶
type TL_messages_setInlineBotResults struct { Flags int32 Gallery bool // gallery:flags.0?true Private bool // private:flags.1?true Query_id int64 // query_id:long Results []TL // results:Vector<InputBotInlineResult> Cache_time int32 // cache_time:int Next_offset string // next_offset:flags.2?string Switch_pm TL // switch_pm:flags.3?InlineBotSwitchPM }
type TL_messages_setTyping ¶
type TL_messages_startBot ¶
type TL_messages_stickerSet ¶
type TL_messages_stickerSetInstallResultArchive ¶
type TL_messages_stickerSetInstallResultArchive struct {
Sets []TL // sets:Vector<StickerSetCovered>
}
type TL_messages_stickerSetInstallResultSuccess ¶
type TL_messages_stickerSetInstallResultSuccess struct { }
type TL_messages_stickers ¶
type TL_messages_stickersNotModified ¶
type TL_messages_stickersNotModified struct { }
type TL_messages_uninstallStickerSet ¶
type TL_messages_uninstallStickerSet struct {
Stickerset TL // stickerset:InputStickerSet
}
type TL_msg_container ¶
type TL_msg_container struct {
Items []TL_MT_message
}
type TL_msgs_ack ¶
type TL_msgs_ack struct {
MsgIds []int64
}
type TL_nearestDc ¶
type TL_new_session_created ¶
type TL_notifyAll ¶
type TL_notifyAll struct { }
type TL_notifyChats ¶
type TL_notifyChats struct { }
type TL_notifyPeer ¶
type TL_notifyPeer struct {
Peer TL // peer:Peer
}
type TL_notifyUsers ¶
type TL_notifyUsers struct { }
type TL_p_q_inner_data ¶
type TL_pageBlockAnchor ¶
type TL_pageBlockAnchor struct {
Name string // name:string
}
type TL_pageBlockAuthorDate ¶
type TL_pageBlockBlockquote ¶
type TL_pageBlockCollage ¶
type TL_pageBlockCover ¶
type TL_pageBlockCover struct {
Cover TL // cover:PageBlock
}
type TL_pageBlockDivider ¶
type TL_pageBlockDivider struct { }
type TL_pageBlockEmbed ¶
type TL_pageBlockEmbed struct { Flags int32 Full_width bool // full_width:flags.0?true Allow_scrolling bool // allow_scrolling:flags.3?true Url string // url:flags.1?string Html string // html:flags.2?string Poster_photo_id int64 // poster_photo_id:flags.4?long W int32 // w:int H int32 // h:int Caption TL // caption:RichText }
type TL_pageBlockEmbedPost ¶
type TL_pageBlockFooter ¶
type TL_pageBlockFooter struct {
}type TL_pageBlockHeader ¶
type TL_pageBlockHeader struct {
Text TL // text:RichText
}
type TL_pageBlockList ¶
type TL_pageBlockParagraph ¶
type TL_pageBlockParagraph struct {
Text TL // text:RichText
}
type TL_pageBlockPhoto ¶
type TL_pageBlockPullquote ¶
type TL_pageBlockSlideshow ¶
type TL_pageBlockSubheader ¶
type TL_pageBlockSubheader struct {
Text TL // text:RichText
}
type TL_pageBlockSubtitle ¶
type TL_pageBlockSubtitle struct {
Text TL // text:RichText
}
type TL_pageBlockTitle ¶
type TL_pageBlockTitle struct {
Text TL // text:RichText
}
type TL_pageBlockUnsupported ¶
type TL_pageBlockUnsupported struct { }
type TL_pageBlockVideo ¶
type TL_pageFull ¶
type TL_pagePart ¶
type TL_paymentCharge ¶
type TL_paymentRequestedInfo ¶
type TL_payments_getPaymentForm ¶
type TL_payments_getPaymentForm struct {
Msg_id int32 // msg_id:int
}
type TL_payments_getPaymentReceipt ¶
type TL_payments_getPaymentReceipt struct {
Msg_id int32 // msg_id:int
}
type TL_payments_getSavedInfo ¶
type TL_payments_getSavedInfo struct { }
type TL_payments_paymentForm ¶
type TL_payments_paymentForm struct { Flags int32 Can_save_credentials bool // can_save_credentials:flags.2?true Password_missing bool // password_missing:flags.3?true Bot_id int32 // bot_id:int Invoice TL // invoice:Invoice Provider_id int32 // provider_id:int Url string // url:string Native_provider string // native_provider:flags.4?string Native_params TL // native_params:flags.4?DataJSON Saved_info TL // saved_info:flags.0?PaymentRequestedInfo Saved_credentials TL // saved_credentials:flags.1?PaymentSavedCredentials Users []TL // users:Vector<User> }
type TL_payments_paymentReceipt ¶
type TL_payments_paymentReceipt struct { Flags int32 Date int32 // date:int Bot_id int32 // bot_id:int Invoice TL // invoice:Invoice Provider_id int32 // provider_id:int Info TL // info:flags.0?PaymentRequestedInfo Shipping TL // shipping:flags.1?ShippingOption Currency string // currency:string Total_amount int64 // total_amount:long Credentials_title string // credentials_title:string Users []TL // users:Vector<User> }
type TL_payments_paymentResult ¶
type TL_payments_paymentResult struct {
Updates TL // updates:Updates
}
type TL_payments_paymentVerficationNeeded ¶
type TL_payments_paymentVerficationNeeded struct {
Url string // url:string
}
type TL_payments_savedInfo ¶
type TL_peerChannel ¶
type TL_peerChannel struct {
Channel_id int32 // channel_id:int
}
type TL_peerChat ¶
type TL_peerChat struct {
Chat_id int32 // chat_id:int
}
type TL_peerNotifyEventsAll ¶
type TL_peerNotifyEventsAll struct { }
type TL_peerNotifyEventsEmpty ¶
type TL_peerNotifyEventsEmpty struct { }
type TL_peerNotifySettings ¶
type TL_peerNotifySettingsEmpty ¶
type TL_peerNotifySettingsEmpty struct { }
type TL_peerSettings ¶
type TL_peerUser ¶
type TL_peerUser struct {
User_id int32 // user_id:int
}
type TL_phoneCall ¶
type TL_phoneCall struct { Id int64 // Id:long Access_hash int64 // access_hash:long Date int32 // date:int Admin_id int32 // admin_id:int Participant_id int32 // participant_id:int G_a_or_b []byte // g_a_or_b:bytes Key_fingerprint int64 // key_fingerprint:long Protocol TL // protocol:PhoneCallProtocol Connection TL // connection:PhoneConnection Alternative_connections []TL // alternative_connections:Vector<PhoneConnection> Start_date int32 // start_date:int }
type TL_phoneCallAccepted ¶
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_phoneCallEmpty ¶
type TL_phoneCallEmpty struct {
Id int64 // Id:long
}
type TL_phoneCallProtocol ¶
type TL_phoneCallRequested ¶
type TL_phoneCallWaiting ¶
type TL_phoneConnection ¶
type TL_phone_acceptCall ¶
type TL_phone_confirmCall ¶
type TL_phone_discardCall ¶
type TL_phone_getCallConfig ¶
type TL_phone_getCallConfig struct { }
type TL_phone_phoneCall ¶
type TL_phone_receivedCall ¶
type TL_phone_receivedCall struct {
Peer TL // peer:InputPhoneCall
}
type TL_phone_requestCall ¶
type TL_phone_saveCallDebug ¶
type TL_phone_setCallRating ¶
type TL_photo ¶
type TL_photo struct { Flags int32 `json:"flags"` Has_stickers bool `json:"has_stickers"` // has_stickers:flags.0?true Id int64 `json:"id"` // Id:long Access_hash int64 `json:"access_hash"` // access_hash:long Date int32 `json:"date"` // date:int Sizes []TL `json:"sizes"` // sizes:Vector<PhotoSize> }
type TL_photoCachedSize ¶
type TL_photoEmpty ¶
type TL_photoEmpty struct {
Id int64 // Id:long
}
type TL_photoSize ¶
type TL_photoSizeEmpty ¶
type TL_photoSizeEmpty struct {
Code_type string // type:string
}
type TL_photos_deletePhotos ¶
type TL_photos_deletePhotos struct {
Id []TL // Id:Vector<InputPhoto>
}
type TL_photos_getUserPhotos ¶
type TL_photos_photo ¶
type TL_photos_photos ¶
type TL_photos_photosSlice ¶
type TL_photos_updateProfilePhoto ¶
type TL_photos_updateProfilePhoto struct {
Id TL // Id:InputPhoto
}
type TL_photos_uploadProfilePhoto ¶
type TL_photos_uploadProfilePhoto struct {
File TL // file:InputFile
}
type TL_postAddress ¶
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 // users:Vector<int>
}
type TL_privacyValueDisallowAll ¶
type TL_privacyValueDisallowAll struct { }
type TL_privacyValueDisallowContacts ¶
type TL_privacyValueDisallowContacts struct { }
type TL_privacyValueDisallowUsers ¶
type TL_privacyValueDisallowUsers struct {
Users []int32 // users:Vector<int>
}
type TL_replyInlineMarkup ¶
type TL_replyInlineMarkup struct {
Rows []TL // rows:Vector<KeyboardButtonRow>
}
type TL_replyKeyboardHide ¶
type TL_replyKeyboardMarkup ¶
type TL_req_DH_params ¶
type TL_rpc_error ¶
type TL_rpc_result ¶
type TL_rpc_result struct { Req_msg_id int64 Obj interface{} }
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_sendMessageRecordVideoAction ¶
type TL_sendMessageRecordVideoAction struct { }
type TL_sendMessageTypingAction ¶
type TL_sendMessageTypingAction struct { }
type TL_sendMessageUploadAudioAction ¶
type TL_sendMessageUploadAudioAction struct {
Progress int32 // progress:int
}
type TL_sendMessageUploadDocumentAction ¶
type TL_sendMessageUploadDocumentAction struct {
Progress int32 // progress:int
}
type TL_sendMessageUploadPhotoAction ¶
type TL_sendMessageUploadPhotoAction struct {
Progress int32 // progress:int
}
type TL_sendMessageUploadVideoAction ¶
type TL_sendMessageUploadVideoAction struct {
Progress int32 // progress:int
}
type TL_server_DH_inner_data ¶
type TL_server_DH_params_ok ¶
type TL_set_client_DH_params ¶
type TL_shippingOption ¶
type TL_stickerPack ¶
type TL_stickerSet ¶
type TL_stickerSet struct { Flags int32 Installed bool // installed:flags.0?true Archived bool // archived:flags.1?true Official bool // official:flags.2?true Masks bool // masks:flags.3?true Id int64 // Id:long Access_hash int64 // access_hash:long Title string // title:string Short_name string // short_name:string Count int32 // count:int Hash int32 // Hash:int }
type TL_stickerSetCovered ¶
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 // text:RichText
}
type TL_textConcat ¶
type TL_textConcat struct {
Texts []TL // texts:Vector<RichText>
}
type TL_textEmail ¶
type TL_textEmpty ¶
type TL_textEmpty struct { }
type TL_textFixed ¶
type TL_textFixed struct {
Text TL // text:RichText
}
type TL_textItalic ¶
type TL_textItalic struct {
Text TL // text:RichText
}
type TL_textPlain ¶
type TL_textPlain struct {
Text string // text:string
}
type TL_textStrike ¶
type TL_textStrike struct {
Text TL // text:RichText
}
type TL_textUnderline ¶
type TL_textUnderline struct {
Text TL // text:RichText
}
type TL_textUrl ¶
type TL_topPeer ¶
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_updateBotInlineQuery ¶
type TL_updateBotInlineSend ¶
type TL_updateBotPrecheckoutQuery ¶
type TL_updateBotPrecheckoutQuery struct { Flags int32 Query_id int64 // query_id:long User_id int32 // user_id:int Payload []byte // payload:bytes Info TL // info:flags.0?PaymentRequestedInfo Shipping_option_id string // shipping_option_id:flags.1?string Currency string // currency:string Total_amount int64 // total_amount:long }
type TL_updateBotWebhookJSON ¶
type TL_updateBotWebhookJSON struct {
Data TL // data:DataJSON
}
type TL_updateChannel ¶
type TL_updateChannel struct {
Channel_id int32 // channel_id:int
}
type TL_updateChannelTooLong ¶
type TL_updateChannelWebPage ¶
type TL_updateChatAdmins ¶
type TL_updateChatParticipants ¶
type TL_updateChatParticipants struct {
Participants TL // participants:ChatParticipants
}
type TL_updateChatUserTyping ¶
type TL_updateConfig ¶
type TL_updateConfig struct { }
type TL_updateContactLink ¶
type TL_updateDcOptions ¶
type TL_updateDcOptions struct {
Dc_options []TL // dc_options:Vector<DcOption>
}
type TL_updateDeleteMessages ¶
type TL_updateDialogPinned ¶
type TL_updateDraftMessage ¶
type TL_updateEditMessage ¶
type TL_updateEncryptedChatTyping ¶
type TL_updateEncryptedChatTyping struct {
Chat_id int32 // chat_id:int
}
type TL_updateEncryption ¶
type TL_updateMessageID ¶
type TL_updateNewMessage ¶
type TL_updateNewStickerSet ¶
type TL_updateNewStickerSet struct {
Stickerset TL // stickerset:messages.StickerSet
}
type TL_updateNotifySettings ¶
type TL_updatePhoneCall ¶
type TL_updatePhoneCall struct {
Phone_call TL // phone_call:PhoneCall
}
type TL_updatePinnedDialogs ¶
type TL_updatePrivacy ¶
type TL_updatePtsChanged ¶
type TL_updatePtsChanged struct { }
type TL_updateReadFeaturedStickers ¶
type TL_updateReadFeaturedStickers struct { }
type TL_updateRecentStickers ¶
type TL_updateRecentStickers struct { }
type TL_updateSavedGifs ¶
type TL_updateSavedGifs struct { }
type TL_updateShort ¶
type TL_updateShortChatMessage ¶
type TL_updateShortChatMessage struct { Flags int32 Out bool // out:flags.1?true Mentioned bool // mentioned:flags.4?true Media_unread bool // media_unread:flags.5?true Silent bool // silent:flags.13?true Id int32 // Id:int From_id int32 // from_id:int Chat_id int32 // chat_id:int Message string // message:string Pts int32 // pts:int Pts_count int32 // pts_count:int Date int32 // date:int Fwd_from TL // fwd_from:flags.2?MessageFwdHeader Via_bot_id int32 // via_bot_id:flags.11?int Reply_to_msg_id int32 // reply_to_msg_id:flags.3?int Entities []TL // entities:flags.7?Vector<MessageEntity> }
type TL_updateShortMessage ¶
type TL_updateShortMessage struct { Flags int32 Out bool // out:flags.1?true Mentioned bool // mentioned:flags.4?true Media_unread bool // media_unread:flags.5?true Silent bool // silent:flags.13?true Id int32 // Id:int User_id int32 // user_id:int Message string // message:string Pts int32 // pts:int Pts_count int32 // pts_count:int Date int32 // date:int Fwd_from TL // fwd_from:flags.2?MessageFwdHeader Via_bot_id int32 // via_bot_id:flags.11?int Reply_to_msg_id int32 // reply_to_msg_id:flags.3?int Entities []TL // entities:flags.7?Vector<MessageEntity> }
type TL_updateStickerSets ¶
type TL_updateStickerSets struct { }
type TL_updateUserBlocked ¶
type TL_updateUserName ¶
type TL_updateUserPhone ¶
type TL_updateUserPhoto ¶
type TL_updateUserStatus ¶
type TL_updateUserTyping ¶
type TL_updateWebPage ¶
type TL_updates ¶
type TL_updatesCombined ¶
type TL_updatesTooLong ¶
type TL_updatesTooLong struct { }
type TL_updates_channelDifference ¶
type TL_updates_channelDifference struct { Flags int32 Final bool // final:flags.0?true Pts int32 // pts:int Timeout int32 // timeout:flags.1?int New_messages []TL // new_messages:Vector<Message> Other_updates []TL // other_updates:Vector<Update> Chats []TL // chats:Vector<Chat> Users []TL // users:Vector<User> }
type TL_updates_channelDifferenceTooLong ¶
type TL_updates_channelDifferenceTooLong struct { Flags int32 Final bool // final:flags.0?true Pts int32 // pts:int Timeout int32 // timeout:flags.1?int Top_message int32 // top_message:int Read_inbox_max_id int32 // read_inbox_max_id:int Read_outbox_max_id int32 // read_outbox_max_id:int Unread_count int32 // unread_count:int Messages []TL // messages:Vector<Message> Chats []TL // chats:Vector<Chat> Users []TL // users:Vector<User> }
type TL_updates_difference ¶
type TL_updates_difference struct { New_messages []TL // new_messages:Vector<Message> New_encrypted_messages []TL // new_encrypted_messages:Vector<EncryptedMessage> Other_updates []TL // other_updates:Vector<Update> Chats []TL // chats:Vector<Chat> Users []TL // users:Vector<User> State TL // state:updates.State }
type TL_updates_differenceSlice ¶
type TL_updates_differenceSlice struct { New_messages []TL // new_messages:Vector<Message> New_encrypted_messages []TL // new_encrypted_messages:Vector<EncryptedMessage> Other_updates []TL // other_updates:Vector<Update> Chats []TL // chats:Vector<Chat> Users []TL // users:Vector<User> Intermediate_state TL // intermediate_state:updates.State }
type TL_updates_differenceTooLong ¶
type TL_updates_differenceTooLong struct {
Pts int32 // pts:int
}
type TL_updates_getState ¶
type TL_updates_getState struct { }
type TL_updates_state ¶
type TL_upload_file ¶
type TL_upload_getFile ¶
type TL_upload_getWebFile ¶
type TL_upload_saveFilePart ¶
type TL_upload_webFile ¶
type TL_user ¶
type TL_user struct { Flags int32 Self bool // self:flags.10?true Contact bool // contact:flags.11?true Mutual_contact bool // mutual_contact:flags.12?true Deleted bool // deleted:flags.13?true Bot bool // bot:flags.14?true Bot_chat_history bool // bot_chat_history:flags.15?true Bot_nochats bool // bot_nochats:flags.16?true Verified bool // verified:flags.17?true Restricted bool // restricted:flags.18?true Min bool // min:flags.20?true Bot_inline_geo bool // bot_inline_geo:flags.21?true Id int32 // Id:int Access_hash int64 // access_hash:flags.0?long First_name string // first_name:flags.1?string Last_name string // last_name:flags.2?string Username string // username:flags.3?string Phone string // phone:flags.4?string Photo TL // photo:flags.5?UserProfilePhoto Status TL // status:flags.6?UserStatus Bot_info_version int32 // bot_info_version:flags.14?int Restriction_reason string // restriction_reason:flags.18?string Bot_inline_placeholder string // bot_inline_placeholder:flags.19?string }
type TL_userEmpty ¶
type TL_userEmpty struct {
Id int32 // Id:int
}
type TL_userFull ¶
type TL_userFull struct { Flags int32 Blocked bool // blocked:flags.0?true Phone_calls_available bool // phone_calls_available:flags.4?true Phone_calls_private bool // phone_calls_private:flags.5?true User TL // user:User About string // about:flags.1?string Link TL // link:contacts.Link Profile_photo TL // profile_photo:flags.2?Photo Notify_settings TL // notify_settings:PeerNotifySettings Bot_info TL // bot_info:flags.3?BotInfo Common_chats_count int32 // common_chats_count:int }
type TL_userProfilePhoto ¶
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 // was_online:int
}
type TL_userStatusOnline ¶
type TL_userStatusOnline struct {
Expires int32 // expires:int
}
type TL_userStatusRecently ¶
type TL_userStatusRecently struct { }
type TL_users_getFullUser ¶
type TL_users_getFullUser struct {
Id TL // Id:InputUser
}
type TL_users_getUsers ¶
type TL_users_getUsers struct {
Id []TL // Id:Vector<InputUser>
}
type TL_wallPaper ¶
type TL_wallPaperSolid ¶
type TL_webDocument ¶
type TL_webPage ¶
type TL_webPage struct { Flags int32 Id int64 // Id:long Url string // url:string Display_url string // display_url:string Hash int32 // Hash:int Code_type string // type:flags.0?string Site_name string // site_name:flags.1?string Title string // title:flags.2?string Description string // description:flags.3?string Photo TL // photo:flags.4?Photo Embed_url string // embed_url:flags.5?string Embed_type string // embed_type:flags.5?string Embed_width int32 // embed_width:flags.6?int Embed_height int32 // embed_height:flags.6?int Duration int32 // duration:flags.7?int Author string // author:flags.8?string Document TL // document:flags.9?Document Cached_page TL // cached_page:flags.10?Page }
type TL_webPageEmpty ¶
type TL_webPageEmpty struct {
Id int64 // Id:long
}
type TL_webPageNotModified ¶
type TL_webPageNotModified struct { }
type TL_webPagePending ¶
Click to show internal directories.
Click to hide internal directories.