Documentation ¶
Index ¶
- Constants
- func GenerateMessageId() int64
- func GenerateNonce(size int) []byte
- type Channel
- type ChannelAdminRights
- type ChannelBannedRights
- type ChannelCounters
- type ChannelFlags
- type ChannelParticipantFilter
- type ChannelUpdateDifference
- type Chat
- type ChatMember
- type ChatProfilePhoto
- type Contact
- 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) FlaggedDouble(flags, f int32) float64
- func (m *DecodeBuf) FlaggedInt(flags, f int32) int32
- func (m *DecodeBuf) FlaggedLong(flags, f int32) int64
- func (m *DecodeBuf) FlaggedObject(flags, f int32) (r TL)
- func (m *DecodeBuf) FlaggedString(flags, f int32) string
- func (m *DecodeBuf) FlaggedStringBytes(flags, f int32) []byte
- func (m *DecodeBuf) FlaggedVector(flags, f int32) []TL
- func (m *DecodeBuf) Flags() int32
- 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) 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 Dialog
- type Document
- type DraftMessage
- type EncodeBuf
- func (e *EncodeBuf) BigInt(s *big.Int)
- 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 FileLocation
- type GeoPoint
- type IMessageMedia
- type IUpdate
- type MTProto
- func (m *MTProto) Auth_CheckPhone(phonenumber string) bool
- func (m *MTProto) Auth_SendCode(phonenumber string) (string, error)
- func (m *MTProto) Auth_SignIn(phonenumber string, hash, code string) (TL_auth_authorization, error)
- func (m *MTProto) Auth_SignIn2FA(phonenumber string, hash, code string, password string) (TL_auth_authorization, error)
- func (m *MTProto) Channels_GetChannels(in []TL) []Channel
- func (m *MTProto) Channels_GetFullChannel(channelID int32, accessHash int64) *Channel
- func (m *MTProto) Channels_GetMessages(channel TL, ids []int32) []Message
- func (m *MTProto) Channels_GetParticipants(channel TL, offset, limit int32) []User
- func (m *MTProto) Channels_JoinChannel(channelID int32, accessHash int64)
- func (m *MTProto) Connect() error
- func (m *MTProto) Contacts_GetContacts(hash int32) ([]Contact, []User, error)
- func (m *MTProto) Contacts_ImportContacts(contacts []TL)
- func (m *MTProto) Disconnect() error
- func (m *MTProto) GetDcAddress(dcID int32) string
- func (m *MTProto) Messages_GetChats(chatIDs []int32) []Chat
- func (m *MTProto) Messages_GetDialogs(offsetID, offsetDate, limit int32, offsetInputPeer TL) ([]Dialog, map[int32]User, map[int32]Chat, map[int32]Channel, map[int32]Message, ...)
- func (m *MTProto) Messages_GetFullChat(chatID int32) *Chat
- func (m *MTProto) Messages_GetHistory(inputPeer TL, limit, min_id, max_id int32) ([]Message, int32)
- func (m *MTProto) Messages_GetMessages(msgIDs []int32) (map[int32]Message, map[int32]User, map[int32]Chat)
- func (m *MTProto) Messages_ImportChatInvite(hash string) *Chat
- func (m *MTProto) Messages_ReadHistory(inputPeer TL, maxID int32) (Pts, PtsCount int32)
- func (m *MTProto) Messages_SendMessage(text string, inputPeer TL, reply_to int32)
- func (m *MTProto) Updates_GetChannelDifference(inputChannel TL, pts, limit int32) *ChannelUpdateDifference
- func (m *MTProto) Updates_GetDifference(pts, qts, date int32) *UpdateDifference
- func (m *MTProto) Updates_GetState() *UpdateState
- func (m *MTProto) Upload_GetCdnFile(fileToken []byte, offset, limit int32) []byte
- func (m *MTProto) Upload_GetFile(in TL, offset, limit int32) []byte
- func (m *MTProto) Users_GetFullSelf() (User, error)
- type Message
- type MessageAction
- type MessageEntity
- type MessageFlags
- type MessageForwardHeader
- type MessageMediaContact
- type MessageMediaCore
- type MessageMediaDocument
- type MessageMediaPhoto
- type Peer
- type Photo
- type PhotoSize
- 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_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_cdnConfig
- type TL_cdnFileHash
- type TL_cdnPublicKey
- type TL_channel
- type TL_channelAdminLogEvent
- type TL_channelAdminLogEventActionChangeAbout
- type TL_channelAdminLogEventActionChangePhoto
- type TL_channelAdminLogEventActionChangeStickerSet
- type TL_channelAdminLogEventActionChangeTitle
- type TL_channelAdminLogEventActionChangeUsername
- type TL_channelAdminLogEventActionDeleteMessage
- type TL_channelAdminLogEventActionEditMessage
- type TL_channelAdminLogEventActionParticipantInvite
- type TL_channelAdminLogEventActionParticipantJoin
- type TL_channelAdminLogEventActionParticipantLeave
- type TL_channelAdminLogEventActionParticipantToggleAdmin
- type TL_channelAdminLogEventActionParticipantToggleBan
- type TL_channelAdminLogEventActionToggleInvites
- type TL_channelAdminLogEventActionToggleSignatures
- type TL_channelAdminLogEventActionUpdatePinned
- type TL_channelAdminLogEventsFilter
- type TL_channelAdminRights
- type TL_channelBannedRights
- type TL_channelForbidden
- type TL_channelFull
- type TL_channelMessagesFilter
- type TL_channelMessagesFilterEmpty
- type TL_channelParticipant
- type TL_channelParticipantAdmin
- type TL_channelParticipantBanned
- type TL_channelParticipantCreator
- type TL_channelParticipantSelf
- type TL_channelParticipantsAdmins
- type TL_channelParticipantsBanned
- type TL_channelParticipantsBots
- type TL_channelParticipantsKicked
- type TL_channelParticipantsRecent
- type TL_channelParticipantsSearch
- type TL_channels_adminLogResults
- 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_editBanned
- type TL_channels_editPhoto
- type TL_channels_editTitle
- type TL_channels_exportInvite
- type TL_channels_exportMessageLink
- type TL_channels_getAdminLog
- 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_leaveChannel
- type TL_channels_readHistory
- type TL_channels_readMessageContents
- type TL_channels_reportSpam
- type TL_channels_setStickers
- 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_resetSaved
- 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_crc_bad_msg_notification
- 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_getCdnConfig
- 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_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_inputMediaVenue
- type TL_inputMessageEntityMentionName
- type TL_inputMessagesFilterChatPhotos
- type TL_inputMessagesFilterDocument
- type TL_inputMessagesFilterEmpty
- type TL_inputMessagesFilterGif
- type TL_inputMessagesFilterMusic
- type TL_inputMessagesFilterMyMentions
- type TL_inputMessagesFilterMyMentionsUnread
- type TL_inputMessagesFilterPhoneCalls
- type TL_inputMessagesFilterPhotoVideo
- type TL_inputMessagesFilterPhotoVideoDocuments
- type TL_inputMessagesFilterPhotos
- type TL_inputMessagesFilterRoundVideo
- type TL_inputMessagesFilterRoundVoice
- 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_inputStickerSetItem
- 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_langPackDifference
- type TL_langPackLanguage
- type TL_langPackString
- type TL_langPackStringDeleted
- type TL_langPackStringPluralized
- type TL_langpack_getDifference
- type TL_langpack_getLangPack
- type TL_langpack_getLanguages
- type TL_langpack_getStrings
- 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_messageActionScreenshotTaken
- 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_faveSticker
- type TL_messages_favedStickers
- type TL_messages_favedStickersNotModified
- 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_getFavedStickers
- 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_getUnreadMentions
- 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_sendScreenshotNotification
- 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_messages_uploadMedia
- 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_pageBlockAudio
- type TL_pageBlockAuthorDate
- type TL_pageBlockBlockquote
- type TL_pageBlockChannel
- 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_popularContact
- 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_sendMessageRecordRoundAction
- type TL_sendMessageRecordVideoAction
- type TL_sendMessageTypingAction
- type TL_sendMessageUploadAudioAction
- type TL_sendMessageUploadDocumentAction
- type TL_sendMessageUploadPhotoAction
- type TL_sendMessageUploadRoundAction
- type TL_sendMessageUploadVideoAction
- 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_stickerSetCovered
- type TL_stickerSetMultiCovered
- type TL_stickers_addStickerToSet
- type TL_stickers_changeStickerPosition
- type TL_stickers_createStickerSet
- type TL_stickers_removeStickerFromSet
- 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_topPeerCategoryPhoneCalls
- 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_updateChannelReadMessagesContents
- 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_updateContactsReset
- 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_updateFavedStickers
- type TL_updateInlineBotCallbackQuery
- type TL_updateLangPack
- type TL_updateLangPackTooLong
- 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_cdnFile
- type TL_upload_cdnFileReuploadNeeded
- type TL_upload_file
- type TL_upload_fileCdnRedirect
- type TL_upload_getCdnFile
- type TL_upload_getCdnFileHashes
- type TL_upload_getFile
- type TL_upload_getWebFile
- type TL_upload_reuploadCdnFile
- 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_wallPaper
- type TL_wallPaperSolid
- type TL_webDocument
- type TL_webPage
- type TL_webPageEmpty
- type TL_webPageNotModified
- type TL_webPagePending
- type UpdateChannelReadMessagesContents
- type UpdateChannelTooLong
- type UpdateContactLink
- type UpdateContactRegistered
- type UpdateCore
- type UpdateDeleteMessages
- type UpdateDifference
- type UpdateDraftMessage
- type UpdateEditChannelMessage
- type UpdateEditMessage
- type UpdateMessageID
- type UpdateNewChannelMessage
- type UpdateNewMessage
- type UpdateReadChannelInbox
- type UpdateReadChannelOutbox
- type UpdateReadHistoryInbox
- type UpdateReadHistoryOutbox
- type UpdateState
- type UpdateUnknown
- type UpdateUserBlocked
- type UpdateUserPhoto
- type UpdatedSaveGIFs
- type User
- type UserFlags
- type UserProfilePhoto
- type UserStatus
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 ¶
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 (*Channel) GetInputPeer ¶
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 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 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 (*Chat) GetInputPeer ¶
type ChatMember ¶
type ChatProfilePhoto ¶
type ChatProfilePhoto struct { PhotoSmall FileLocation PhotoBig FileLocation }
func NewChatProfilePhoto ¶
func NewChatProfilePhoto(input TL) (photo *ChatProfilePhoto)
NewChatProfilePhoto input :
- TL_chatPhotoEmpty
- TL_chatPhoto
type Contact ¶
type Contact struct { ClientID int64 Firstname string Lastname string Phone string UserID int32 Mutual bool }
Contact
func NewContact ¶
func (*Contact) GetInputContact ¶
type DecodeBuf ¶
type DecodeBuf struct {
// contains filtered or unexported fields
}
func NewDecodeBuf ¶
func (*DecodeBuf) FlaggedDouble ¶
func (*DecodeBuf) FlaggedInt ¶
func (*DecodeBuf) FlaggedLong ¶
func (*DecodeBuf) FlaggedObject ¶
func (*DecodeBuf) FlaggedString ¶
func (*DecodeBuf) FlaggedStringBytes ¶
func (*DecodeBuf) FlaggedVector ¶
func (*DecodeBuf) ObjectGenerated ¶
func (*DecodeBuf) StringBytes ¶
func (*DecodeBuf) VectorLong ¶
func (*DecodeBuf) VectorString ¶
type Dialog ¶
type Dialog struct { Type string Pts int32 PeerID int32 PeerAccessHash int64 TopMessageID int32 UnreadCount int32 NotifySettings interface{} }
func (*Dialog) GetInputPeer ¶
GetInputPeer returns either of the struct below:
- TL_inputPeerChat
- TL_inputPeerChannel
- 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 (*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:
- TL_draftMessage
- TL_draftMessageEmpty
type EncodeBuf ¶
type EncodeBuf struct {
// contains filtered or unexported fields
}
func NewEncodeBuf ¶
func (*EncodeBuf) StringBytes ¶
func (*EncodeBuf) VectorLong ¶
func (*EncodeBuf) VectorString ¶
type FileLocation ¶
FileLocation
func NewFileLocation ¶
func NewFileLocation(in TL) (fl *FileLocation)
func (*FileLocation) GetInputFileLocation ¶
func (f *FileLocation) GetInputFileLocation() TL_inputFileLocation
type IMessageMedia ¶
type IMessageMedia interface {
GetType() string
}
func NewMessageMedia ¶
func NewMessageMedia(input TL) IMessageMedia
NewMessageMedia input:
- TL_messageMediaPhoto
- TL_messageMediaContact
- TL_messageMediaDocument
type IUpdate ¶
type MTProto ¶
type MTProto struct {
// contains filtered or unexported fields
}
func NewMTProto ¶
func (*MTProto) Auth_CheckPhone ¶
func (*MTProto) Auth_SignIn ¶
func (m *MTProto) Auth_SignIn(phonenumber string, hash, code string) (TL_auth_authorization, error)
func (*MTProto) Auth_SignIn2FA ¶
func (*MTProto) Channels_GetChannels ¶
func (*MTProto) Channels_GetFullChannel ¶
func (*MTProto) Channels_GetMessages ¶
func (*MTProto) Channels_GetParticipants ¶
func (*MTProto) Channels_JoinChannel ¶
func (*MTProto) Contacts_GetContacts ¶
func (*MTProto) Contacts_ImportContacts ¶
func (*MTProto) Disconnect ¶
func (*MTProto) GetDcAddress ¶
func (*MTProto) Messages_GetChats ¶
func (*MTProto) Messages_GetDialogs ¶
func (*MTProto) Messages_GetFullChat ¶
func (*MTProto) Messages_GetHistory ¶
func (*MTProto) Messages_GetMessages ¶
func (*MTProto) Messages_ImportChatInvite ¶
func (*MTProto) Messages_ReadHistory ¶
func (*MTProto) Messages_SendMessage ¶
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 (*MTProto) Upload_GetFile ¶
func (*MTProto) Users_GetFullSelf ¶
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{} }
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:
- TL_messageActionEmpty
- TL_messageActionChannelCreate
- TL_messageActionChannelMigrateFrom
- TL_messageActionChatCreate
- TL_messageActionChatAddUser
- TL_messageActionChatDeleteUser
- TL_messageActionChatDeleteUser
- TL_messageActionChatEditPhoto
- TL_messageActionChatEditTitle
- TL_messageActionChatJoinedByLink
- TL_messageActionChatMigrateTo
- TL_messageActionGameScore
- TL_messageActionHistoryClear
- TL_messageActionPinMessage
- 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 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 Photo ¶
type Photo struct { ID int64 AccessHash int64 UserID int32 Date int32 Caption string Geo *GeoPoint Sizes []*PhotoSize // contains filtered or unexported fields }
Photo
type PhotoSize ¶
type PhotoSize struct { Type string Location *FileLocation Width int32 Height int32 Size int32 }
PhotoSize
func NewPhotoSize ¶
func (*PhotoSize) GetInputFileLocation ¶
func (p *PhotoSize) GetInputFileLocation() TL_inputFileLocation
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 {
}type TL_account_changePhone ¶
type TL_account_checkUsername ¶
type TL_account_checkUsername struct {
Username string
}
type TL_account_confirmPhone ¶
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_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
}
type TL_account_privacyRules ¶
type TL_account_reportPeer ¶
type TL_account_resetAuthorization ¶
type TL_account_resetAuthorization struct {
Hash int64
}
type TL_account_resetNotifySettings ¶
type TL_account_resetNotifySettings struct { }
type TL_account_setAccountTTL ¶
type TL_account_setAccountTTL struct {
Ttl TL // AccountDaysTTL
}
type TL_account_setPrivacy ¶
type TL_account_tmpPassword ¶
type TL_account_updateDeviceLocked ¶
type TL_account_updateDeviceLocked struct {
Period int32
}
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 {}
type TL_auth_bindTempAuthKey ¶
type TL_auth_cancelCode ¶
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_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_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
}
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_signUp ¶
type TL_authorization ¶
type TL_authorization struct {}
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_botInfo ¶
type TL_botInlineMediaResult ¶
type TL_botInlineMessageText ¶
type TL_botInlineResult ¶
type TL_cdnConfig ¶
type TL_cdnConfig struct {
Public_keys []TL // CdnPublicKey
}
type TL_cdnFileHash ¶
type TL_cdnPublicKey ¶
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_channelAdminLogEventActionDeleteMessage ¶
type TL_channelAdminLogEventActionDeleteMessage struct {
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_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_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_channelMessagesFilterEmpty ¶
type TL_channelMessagesFilterEmpty struct { }
type TL_channelParticipant ¶
type TL_channelParticipantCreator ¶
type TL_channelParticipantCreator struct {
User_id 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_deleteChannel ¶
type TL_channels_deleteChannel struct {
Channel TL // InputChannel
}
type TL_channels_editAbout ¶
type TL_channels_editAdmin ¶
type TL_channels_editBanned ¶
type TL_channels_editPhoto ¶
type TL_channels_editTitle ¶
type TL_channels_exportInvite ¶
type TL_channels_exportInvite struct {
Channel TL // InputChannel
}
type TL_channels_getAdminLog ¶
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_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_reportSpam ¶
type TL_channels_setStickers ¶
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_chatFull ¶
type TL_chatInvite ¶
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_chatParticipantAdmin ¶
type TL_chatParticipantCreator ¶
type TL_chatParticipantCreator struct {
User_id int32
}
type TL_chatParticipants ¶
type TL_chatPhoto ¶
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_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 // 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 // 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_getBlocked ¶
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_importCard ¶
type TL_contacts_importCard struct {
Export_card []int32
}
type TL_contacts_importContacts ¶
type TL_contacts_importContacts struct {
Contacts []TL // InputContact
}
type TL_contacts_link ¶
type TL_contacts_resetSaved ¶
type TL_contacts_resetSaved struct { }
type TL_contacts_resolveUsername ¶
type TL_contacts_resolveUsername struct {
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 // 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_dh_gen_ok ¶
type TL_dh_gen_ok struct {
// contains filtered or unexported fields
}
type TL_disabledFeature ¶
type TL_document ¶
type TL_documentAttributeAnimated ¶
type TL_documentAttributeAnimated struct { }
type TL_documentAttributeFilename ¶
type TL_documentAttributeFilename struct {
File_name string
}
type TL_documentAttributeHasStickers ¶
type TL_documentAttributeHasStickers struct { }
type TL_documentEmpty ¶
type TL_documentEmpty struct {
Id int64
}
type TL_draftMessage ¶
type TL_draftMessageEmpty ¶
type TL_draftMessageEmpty struct { }
type TL_encryptedChat ¶
type TL_encryptedChatDiscarded ¶
type TL_encryptedChatDiscarded struct {
Id int32
}
type TL_encryptedChatEmpty ¶
type TL_encryptedChatEmpty struct {
Id int32
}
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
}
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
}
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_support ¶
type TL_help_termsOfService ¶
type TL_help_termsOfService struct {
Text string
}
type TL_highScore ¶
type TL_importedContact ¶
type TL_initConnection ¶
type TL_inlineBotSwitchPM ¶
type TL_inputAppEvent ¶
type TL_inputBotInlineResult ¶
type TL_inputChannel ¶
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_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 // InputGame
}
type TL_inputMediaGeoPoint ¶
type TL_inputMediaGeoPoint struct {
Geo_point TL // 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_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_inputPeerChannel ¶
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_inputPeerSelf ¶
type TL_inputPeerSelf struct { }
type TL_inputPeerUser ¶
func NewUserInputPeer ¶
func NewUserInputPeer(userID int32, accessHash int64) 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 // 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_inputStickerSetItem ¶
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_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 // 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_invokeAfterMsgs ¶
type TL_invokeWithLayer ¶
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_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_keyboardButtonUrl ¶
type TL_labeledPrice ¶
type TL_langPackDifference ¶
type TL_langPackLanguage ¶
type TL_langPackString ¶
type TL_langPackStringDeleted ¶
type TL_langPackStringDeleted struct {
Key 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_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 }
type TL_messageActionChannelCreate ¶
type TL_messageActionChannelCreate struct {
Title string
}
type TL_messageActionChatAddUser ¶
type TL_messageActionChatAddUser struct {
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 ¶
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_messageActionHistoryClear ¶
type TL_messageActionHistoryClear struct { }
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_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
}
type TL_messageMediaGeo ¶
type TL_messageMediaGeo struct {
Geo TL // GeoPoint
}
type TL_messageMediaInvoice ¶
type TL_messageMediaPhoto ¶
type TL_messageMediaUnsupported ¶
type TL_messageMediaUnsupported struct { }
type TL_messageMediaVenue ¶
type TL_messageMediaWebPage ¶
type TL_messageMediaWebPage struct {
Webpage TL // WebPage
}
type TL_messageRange ¶
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_addChatUser ¶
type TL_messages_allStickers ¶
type TL_messages_allStickersNotModified ¶
type TL_messages_allStickersNotModified struct { }
type TL_messages_botResults ¶
type TL_messages_chatFull ¶
type TL_messages_chats ¶
type TL_messages_chats struct {
Chats []TL // Chat
}
type TL_messages_chatsSlice ¶
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_dhConfig ¶
type TL_messages_dhConfigNotModified ¶
type TL_messages_dhConfigNotModified struct {
Random []byte
}
type TL_messages_dialogs ¶
type TL_messages_discardEncryption ¶
type TL_messages_discardEncryption struct {
Chat_id int32
}
type TL_messages_editMessage ¶
type TL_messages_exportChatInvite ¶
type TL_messages_exportChatInvite struct {
Chat_id int32
}
type TL_messages_faveSticker ¶
type TL_messages_favedStickersNotModified ¶
type TL_messages_favedStickersNotModified struct { }
type TL_messages_featuredStickersNotModified ¶
type TL_messages_featuredStickersNotModified struct { }
type TL_messages_foundGifs ¶
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_getAttachedStickers ¶
type TL_messages_getAttachedStickers struct {
Media TL // InputStickeredMedia
}
type TL_messages_getChats ¶
type TL_messages_getChats struct {
Id []int32
}
type TL_messages_getDhConfig ¶
type TL_messages_getDialogs ¶
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_getHistory ¶
type TL_messages_getMaskStickers ¶
type TL_messages_getMaskStickers struct {
Hash int32
}
type TL_messages_getMessages ¶
type TL_messages_getMessages struct {
Id []int32
}
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_getSavedGifs ¶
type TL_messages_getSavedGifs struct {
Hash int32
}
type TL_messages_getStickerSet ¶
type TL_messages_getStickerSet struct {
Stickerset TL // InputStickerSet
}
type TL_messages_getWebPage ¶
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_importChatInvite ¶
type TL_messages_importChatInvite struct {
Hash string
}
type TL_messages_messageEditData ¶
type TL_messages_messageEditData struct {
Flags int32
}
type TL_messages_messages ¶
type TL_messages_migrateChat ¶
type TL_messages_migrateChat struct {
Chat_id int32
}
type TL_messages_peerDialogs ¶
type TL_messages_readFeaturedStickers ¶
type TL_messages_readFeaturedStickers struct {
Id []int64
}
type TL_messages_readHistory ¶
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_recentStickersNotModified ¶
type TL_messages_recentStickersNotModified struct { }
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_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_sendMedia ¶
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_sentEncryptedMessage ¶
type TL_messages_sentEncryptedMessage struct {
Date int32
}
type TL_messages_setTyping ¶
type TL_messages_startBot ¶
type TL_messages_stickerSet ¶
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_stickersNotModified ¶
type TL_messages_stickersNotModified struct { }
type TL_messages_uninstallStickerSet ¶
type TL_messages_uninstallStickerSet struct {
Stickerset TL // InputStickerSet
}
type TL_messages_uploadMedia ¶
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_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_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_pageBlockAuthorDate ¶
type TL_pageBlockBlockquote ¶
type TL_pageBlockChannel ¶
type TL_pageBlockChannel struct {
Channel TL // Chat
}
type TL_pageBlockCollage ¶
type TL_pageBlockCover ¶
type TL_pageBlockCover struct {
Cover TL // PageBlock
}
type TL_pageBlockDivider ¶
type TL_pageBlockDivider struct { }
type TL_pageBlockEmbed ¶
type TL_pageBlockEmbedPost ¶
type TL_pageBlockFooter ¶
type TL_pageBlockFooter struct {
}type TL_pageBlockHeader ¶
type TL_pageBlockHeader struct {
Text TL // RichText
}
type TL_pageBlockList ¶
type TL_pageBlockParagraph ¶
type TL_pageBlockParagraph struct {
Text TL // RichText
}
type TL_pageBlockPhoto ¶
type TL_pageBlockPullquote ¶
type TL_pageBlockSlideshow ¶
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_pageFull ¶
type TL_pagePart ¶
type TL_paymentCharge ¶
type TL_paymentRequestedInfo ¶
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_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_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_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_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
}
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 // InputPhoneCall
}
type TL_phone_requestCall ¶
type TL_phone_saveCallDebug ¶
type TL_phone_setCallRating ¶
type TL_photoCachedSize ¶
type TL_photoEmpty ¶
type TL_photoEmpty struct {
Id int64
}
type TL_photoSize ¶
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_photo ¶
type TL_photos_photos ¶
type TL_photos_photosSlice ¶
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_popularContact ¶
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
}
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_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_req_DH_params ¶
type TL_req_DH_params 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_stickerPack ¶
type TL_stickerSet ¶
type TL_stickerSetCovered ¶
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_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_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_topPeerCategoryPhoneCalls ¶
type TL_topPeerCategoryPhoneCalls struct { }
type TL_updateBotInlineQuery ¶
type TL_updateBotInlineSend ¶
type TL_updateBotWebhookJSON ¶
type TL_updateBotWebhookJSON struct {
Data TL // DataJSON
}
type TL_updateChannel ¶
type TL_updateChannel struct {
Channel_id int32
}
type TL_updateChannelTooLong ¶
type TL_updateChannelWebPage ¶
type TL_updateChatAdmins ¶
type TL_updateChatParticipants ¶
type TL_updateChatParticipants struct {
Participants TL // ChatParticipants
}
type TL_updateChatUserTyping ¶
type TL_updateConfig ¶
type TL_updateConfig struct { }
type TL_updateContactLink ¶
type TL_updateContactsReset ¶
type TL_updateContactsReset struct { }
type TL_updateDcOptions ¶
type TL_updateDcOptions struct {
Dc_options []TL // DcOption
}
type TL_updateDeleteMessages ¶
type TL_updateDialogPinned ¶
type TL_updateDraftMessage ¶
type TL_updateEditMessage ¶
type TL_updateEncryptedChatTyping ¶
type TL_updateEncryptedChatTyping struct {
Chat_id int32
}
type TL_updateEncryption ¶
type TL_updateFavedStickers ¶
type TL_updateFavedStickers struct { }
type TL_updateLangPack ¶
type TL_updateLangPack struct {
Difference TL // LangPackDifference
}
type TL_updateLangPackTooLong ¶
type TL_updateLangPackTooLong struct { }
type TL_updateMessageID ¶
type TL_updateNewMessage ¶
type TL_updateNewStickerSet ¶
type TL_updateNewStickerSet struct {
Stickerset TL // messages_StickerSet
}
type TL_updateNotifySettings ¶
type TL_updatePhoneCall ¶
type TL_updatePhoneCall struct {
Phone_call TL // 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 // 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_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_difference ¶
type TL_updates_differenceTooLong ¶
type TL_updates_differenceTooLong struct {
Pts int32
}
type TL_updates_getState ¶
type TL_updates_getState struct { }
type TL_updates_state ¶
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_getCdnFile ¶
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 // 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_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_wallPaperSolid ¶
type TL_webDocument ¶
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 UpdateChannelReadMessagesContents ¶
type UpdateChannelReadMessagesContents struct { UpdateCore MessageIDs []int32 ChannelID int32 }
type UpdateChannelTooLong ¶
type UpdateChannelTooLong struct { UpdateCore ChannelID int32 Pts int32 Flags int32 }
type UpdateContactLink ¶
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) 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 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 ¶
func NewUpdateState ¶
func NewUpdateState(input TL) *UpdateState
NewUpdateState input :
- 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 (*User) GetInputPeer ¶
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 ¶
func NewUserStatus ¶
func NewUserStatus(userStatus TL) (s *UserStatus)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.