Documentation ¶
Index ¶
- Constants
- func DoAES256IGEdecrypt(data, key, iv []byte) ([]byte, error)
- func DoAES256IGEencrypt(data, key, iv []byte) ([]byte, error)
- func DoRSAdecrypt(b []byte) []byte
- func GenerateAES(msg_key, auth_key []byte, decode bool) ([]byte, []byte)
- func GenerateMessageId() int64
- func GenerateNonce(size int) []byte
- func ToBool(x TL) (bool, error)
- type Configuration
- type DecodeBuf
- func (m *DecodeBuf) BigInt() *big.Int
- func (m *DecodeBuf) Bool() bool
- func (m *DecodeBuf) Bytes(size int) []byte
- func (m *DecodeBuf) Double() float64
- func (m *DecodeBuf) 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) ULong() uint64
- func (m *DecodeBuf) Vector() []TL
- func (m *DecodeBuf) VectorInt() []int32
- func (m *DecodeBuf) VectorLong() []int64
- func (m *DecodeBuf) VectorString() []string
- type EncodeBuf
- func (e *EncodeBuf) BigInt(s *big.Int)
- func (e *EncodeBuf) 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 MTProto
- func (m *MTProto) AuthLogOut() (bool, error)
- func (m *MTProto) AuthSendCode(phonenumber string) (*TL_auth_sentCode, error)
- func (m *MTProto) AuthSignIn(phoneNumber, phoneCode, phoneCodeHash string) (*TL_auth_authorization, error)
- func (m *MTProto) Connect() error
- func (m *MTProto) ContactsGetContacts(hash int32) (*TL, error)
- func (m *MTProto) ContactsGetTopPeers(correspondents, botsPM, botsInline, groups, channels bool, ...) (*TL, error)
- func (m *MTProto) Disconnect() error
- func (m *MTProto) InvokeAsync(msg TL) chan response
- func (m *MTProto) InvokeSync(msg TL) (*TL, error)
- func (m *MTProto) MessagesGetDialogs(excludePinned bool, offsetDate, offsetId int32, offsetPeer TL, limit int32) (*TL, error)
- func (m *MTProto) MessagesGetHistory(peer TL, offsetId, offsetDate, addOffset, limit, maxId, minId int32) (*TL, error)
- func (m *MTProto) MessagesSendMessage(no_webpage, silent, background, clear_draft bool, peer TL, ...) (*TL, error)
- func (m *MTProto) UpdatesGetChannelDifference(force bool, channel, filter TL, pts, limit int32) (*TL, error)
- func (m *MTProto) UpdatesGetDifference(pts, ptsTotalLimit, date, qts int32) (*TL, error)
- func (m *MTProto) UpdatesGetState() (*TL, error)
- func (m *MTProto) UsersGetFullUsers(id TL) (*TL_userFull, error)
- type TL
- type TL_MT_message
- type TL_accountDaysTTL
- type TL_account_authorizations
- type TL_account_changePhone
- type TL_account_checkUsername
- type TL_account_confirmPhone
- type TL_account_deleteAccount
- type TL_account_getAccountTTL
- type TL_account_getAuthorizations
- type TL_account_getNotifySettings
- type TL_account_getPassword
- type TL_account_getPasswordSettings
- type TL_account_getPrivacy
- type TL_account_getTmpPassword
- type TL_account_getWallPapers
- type TL_account_noPassword
- type TL_account_password
- type TL_account_passwordInputSettings
- type TL_account_passwordSettings
- type TL_account_privacyRules
- type TL_account_registerDevice
- type TL_account_reportPeer
- type TL_account_resetAuthorization
- type TL_account_resetNotifySettings
- type TL_account_sendChangePhoneCode
- type TL_account_sendConfirmPhoneCode
- type TL_account_setAccountTTL
- type TL_account_setPrivacy
- type TL_account_tmpPassword
- type TL_account_unregisterDevice
- type TL_account_updateDeviceLocked
- type TL_account_updateNotifySettings
- type TL_account_updatePasswordSettings
- type TL_account_updateProfile
- type TL_account_updateStatus
- type TL_account_updateUsername
- type TL_auth_authorization
- type TL_auth_bindTempAuthKey
- type TL_auth_cancelCode
- type TL_auth_checkPassword
- type TL_auth_checkPhone
- type TL_auth_checkedPhone
- type TL_auth_codeTypeCall
- type TL_auth_codeTypeFlashCall
- type TL_auth_codeTypeSms
- type TL_auth_dropTempAuthKeys
- type TL_auth_exportAuthorization
- type TL_auth_exportedAuthorization
- type TL_auth_importAuthorization
- type TL_auth_importBotAuthorization
- type TL_auth_logOut
- type TL_auth_passwordRecovery
- type TL_auth_recoverPassword
- type TL_auth_requestPasswordRecovery
- type TL_auth_resendCode
- type TL_auth_resetAuthorizations
- type TL_auth_sendCode
- type TL_auth_sendInvites
- type TL_auth_sentCode
- type TL_auth_sentCodeTypeApp
- type TL_auth_sentCodeTypeCall
- type TL_auth_sentCodeTypeFlashCall
- type TL_auth_sentCodeTypeSms
- type TL_auth_signIn
- type TL_auth_signUp
- type TL_authorization
- type TL_bad_msg_notification
- type TL_bad_server_salt
- type TL_boolFalse
- type TL_boolTrue
- type TL_botCommand
- type TL_botInfo
- type TL_botInlineMediaResult
- type TL_botInlineMessageMediaAuto
- type TL_botInlineMessageMediaContact
- type TL_botInlineMessageMediaGeo
- type TL_botInlineMessageMediaVenue
- type TL_botInlineMessageText
- type TL_botInlineResult
- type TL_bots_answerWebhookJSONQuery
- type TL_bots_sendCustomRequest
- type TL_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_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_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_fail
- type TL_server_DH_params_ok
- type TL_set_client_DH_params
- type TL_shippingOption
- type TL_stickerPack
- type TL_stickerSet
- type TL_stickerSetCovered
- type TL_stickerSetMultiCovered
- type TL_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
Constants ¶
const ( D = "" //"15303091947702075078662032751774955311122338511321827055552799508267303962641217883010663913900182431969657003082306317256446778057621664707458308225896162575002398078460145541295142704429574411260053480860290792969078941540348774025661334721615436988452715435985890204232077157530029583350953398196037366244797390488637322832964474228449631918516201312644753999035059265572710383846976272093528466845467114998603142940514653162730053386787676307932417173818577651965030540282091585939778320313281873082576600716371144637410410524869865779338814495893155173679865613254982303550159617633080180242037399190228489509041" /* 617-byte string literal not displayed */ N = "" //"C8A1ED2B73DDDCA65D455D4EC5BD3847426A93F70445B5C067BE8F5F3C6A622BE741A3AE48CEE9658B0CB8FA12A136758A87DD11630FFD6DF69245ECAF5BF094C87D511BB61BE9251536511FCA5023A4AEFEEE9F8789B469A61B9B72FDE0056B48E8AF2A452EEA86629F72D8CF66D1BA2A54A3C859DD121C6C9DFC7EADD2E59D87485DA0BCCC6AD1AB7CBAB53822D45972AA743E56A28B66D5C5A200D5F146FC735B69873B5DFA3D32151ECF8BC58B0FB6AEDBE05AB22B7A454D84F94F284AA5D78629DC6A57DE0A59800E9E766A246E961AD99BDF99438C76D5217F2A301C5D436CDCB4572763904DDDD5741D8157EC8654D0F7E2FF06DD0A25D7C8C643954B" /* 512-byte string literal not displayed */ )
TODO: Think about configurable public key
Variables ¶
This section is empty.
Functions ¶
func DoAES256IGEdecrypt ¶
func DoAES256IGEencrypt ¶
func DoRSAdecrypt ¶
func GenerateMessageId ¶
func GenerateMessageId() int64
func GenerateNonce ¶
Types ¶
type Configuration ¶
type Configuration struct { Id int32 Hash string Version string DeviceModel string SystemVersion string Language string }
func NewConfiguration ¶
func NewConfiguration(id int32, hash, version, deviceModel, systemVersion, language string) (*Configuration, error)
func (Configuration) Check ¶
func (appConfig Configuration) Check() error
type DecodeBuf ¶
type DecodeBuf struct {
// contains filtered or unexported fields
}
func NewDecodeBuf ¶
func (*DecodeBuf) ObjectGenerated ¶
func (*DecodeBuf) StringBytes ¶
func (*DecodeBuf) VectorLong ¶
func (*DecodeBuf) VectorString ¶
type EncodeBuf ¶
type EncodeBuf struct {
// contains filtered or unexported fields
}
func NewEncodeBuf ¶
func (*EncodeBuf) StringBytes ¶
func (*EncodeBuf) VectorLong ¶
func (*EncodeBuf) VectorString ¶
type MTProto ¶
type MTProto struct {
// contains filtered or unexported fields
}
func NewMTProto ¶
func (*MTProto) AuthLogOut ¶
func (*MTProto) AuthSendCode ¶
func (m *MTProto) AuthSendCode(phonenumber string) (*TL_auth_sentCode, error)
func (*MTProto) AuthSignIn ¶
func (m *MTProto) AuthSignIn(phoneNumber, phoneCode, phoneCodeHash string) (*TL_auth_authorization, error)
func (*MTProto) ContactsGetContacts ¶
func (*MTProto) ContactsGetTopPeers ¶
func (*MTProto) Disconnect ¶
func (*MTProto) InvokeAsync ¶
func (*MTProto) MessagesGetDialogs ¶
func (*MTProto) MessagesGetHistory ¶
func (*MTProto) MessagesSendMessage ¶
func (*MTProto) UpdatesGetChannelDifference ¶
func (*MTProto) UpdatesGetDifference ¶
func (*MTProto) UpdatesGetState ¶
func (*MTProto) UsersGetFullUsers ¶
func (m *MTProto) UsersGetFullUsers(id TL) (*TL_userFull, error)
type TL_MT_message ¶
type TL_accountDaysTTL ¶
type TL_accountDaysTTL struct {
Days int32 // days:int
}
func (TL_accountDaysTTL) Encode ¶
func (e TL_accountDaysTTL) Encode() []byte
Encoding TL_accountDaysTTL
type TL_account_authorizations ¶
type TL_account_authorizations struct {
}func (TL_account_authorizations) Encode ¶
func (e TL_account_authorizations) Encode() []byte
Encoding TL_account_authorizations
type TL_account_changePhone ¶
type TL_account_changePhone struct { Phone_number string // phone_number:string Phone_code_hash string // phone_code_hash:string Phone_code string // phone_code:string }
func (TL_account_changePhone) Encode ¶
func (e TL_account_changePhone) Encode() []byte
Encoding TL_account_changePhone
type TL_account_checkUsername ¶
type TL_account_checkUsername struct {
Username string // username:string
}
func (TL_account_checkUsername) Encode ¶
func (e TL_account_checkUsername) Encode() []byte
Encoding TL_account_checkUsername
type TL_account_confirmPhone ¶
type TL_account_confirmPhone struct { Phone_code_hash string // phone_code_hash:string Phone_code string // phone_code:string }
func (TL_account_confirmPhone) Encode ¶
func (e TL_account_confirmPhone) Encode() []byte
Encoding TL_account_confirmPhone
type TL_account_deleteAccount ¶
type TL_account_deleteAccount struct {
Reason string // reason:string
}
func (TL_account_deleteAccount) Encode ¶
func (e TL_account_deleteAccount) Encode() []byte
Encoding TL_account_deleteAccount
type TL_account_getAccountTTL ¶
type TL_account_getAccountTTL struct { }
func (TL_account_getAccountTTL) Encode ¶
func (e TL_account_getAccountTTL) Encode() []byte
Encoding TL_account_getAccountTTL
type TL_account_getAuthorizations ¶
type TL_account_getAuthorizations struct { }
func (TL_account_getAuthorizations) Encode ¶
func (e TL_account_getAuthorizations) Encode() []byte
Encoding TL_account_getAuthorizations
type TL_account_getNotifySettings ¶
type TL_account_getNotifySettings struct {
Peer TL // peer:InputNotifyPeer
}
func (TL_account_getNotifySettings) Encode ¶
func (e TL_account_getNotifySettings) Encode() []byte
Encoding TL_account_getNotifySettings
type TL_account_getPassword ¶
type TL_account_getPassword struct { }
func (TL_account_getPassword) Encode ¶
func (e TL_account_getPassword) Encode() []byte
Encoding TL_account_getPassword
type TL_account_getPasswordSettings ¶
type TL_account_getPasswordSettings struct {
Current_password_hash []byte // current_password_hash:bytes
}
func (TL_account_getPasswordSettings) Encode ¶
func (e TL_account_getPasswordSettings) Encode() []byte
Encoding TL_account_getPasswordSettings
type TL_account_getPrivacy ¶
type TL_account_getPrivacy struct {
Key TL // key:InputPrivacyKey
}
func (TL_account_getPrivacy) Encode ¶
func (e TL_account_getPrivacy) Encode() []byte
Encoding TL_account_getPrivacy
type TL_account_getTmpPassword ¶
type TL_account_getTmpPassword struct { Password_hash []byte // password_hash:bytes Period int32 // period:int }
func (TL_account_getTmpPassword) Encode ¶
func (e TL_account_getTmpPassword) Encode() []byte
Encoding TL_account_getTmpPassword
type TL_account_getWallPapers ¶
type TL_account_getWallPapers struct { }
func (TL_account_getWallPapers) Encode ¶
func (e TL_account_getWallPapers) Encode() []byte
Encoding TL_account_getWallPapers
type TL_account_noPassword ¶
type TL_account_noPassword struct { New_salt []byte // new_salt:bytes Email_unconfirmed_pattern string // email_unconfirmed_pattern:string }
func (TL_account_noPassword) Encode ¶
func (e TL_account_noPassword) Encode() []byte
Encoding TL_account_noPassword
type TL_account_password ¶
type TL_account_password struct { Current_salt []byte // current_salt:bytes New_salt []byte // new_salt:bytes Hint string // hint:string Has_recovery TL // has_recovery:Bool Email_unconfirmed_pattern string // email_unconfirmed_pattern:string }
func (TL_account_password) Encode ¶
func (e TL_account_password) Encode() []byte
Encoding TL_account_password
type TL_account_passwordInputSettings ¶
type TL_account_passwordInputSettings struct { Flags int32 New_salt []byte // new_salt:flags.0?bytes New_password_hash []byte // new_password_hash:flags.0?bytes Hint string // hint:flags.0?string Email string // email:flags.1?string }
func (TL_account_passwordInputSettings) Encode ¶
func (e TL_account_passwordInputSettings) Encode() []byte
Encoding TL_account_passwordInputSettings
type TL_account_passwordSettings ¶
type TL_account_passwordSettings struct {
Email string // email:string
}
func (TL_account_passwordSettings) Encode ¶
func (e TL_account_passwordSettings) Encode() []byte
Encoding TL_account_passwordSettings
type TL_account_privacyRules ¶
type TL_account_privacyRules struct { Rules []TL // rules:Vector<PrivacyRule> Users []TL // users:Vector<User> }
func (TL_account_privacyRules) Encode ¶
func (e TL_account_privacyRules) Encode() []byte
Encoding TL_account_privacyRules
type TL_account_registerDevice ¶
type TL_account_registerDevice struct { Token_type int32 // token_type:int Token string // token:string }
func (TL_account_registerDevice) Encode ¶
func (e TL_account_registerDevice) Encode() []byte
Encoding TL_account_registerDevice
type TL_account_reportPeer ¶
func (TL_account_reportPeer) Encode ¶
func (e TL_account_reportPeer) Encode() []byte
Encoding TL_account_reportPeer
type TL_account_resetAuthorization ¶
type TL_account_resetAuthorization struct {
Hash int64 // hash:long
}
func (TL_account_resetAuthorization) Encode ¶
func (e TL_account_resetAuthorization) Encode() []byte
Encoding TL_account_resetAuthorization
type TL_account_resetNotifySettings ¶
type TL_account_resetNotifySettings struct { }
func (TL_account_resetNotifySettings) Encode ¶
func (e TL_account_resetNotifySettings) Encode() []byte
Encoding TL_account_resetNotifySettings
type TL_account_sendChangePhoneCode ¶
type TL_account_sendChangePhoneCode struct { Flags int32 Allow_flashcall bool // allow_flashcall:flags.0?true Phone_number string // phone_number:string Current_number TL // current_number:flags.0?Bool }
func (TL_account_sendChangePhoneCode) Encode ¶
func (e TL_account_sendChangePhoneCode) Encode() []byte
Encoding TL_account_sendChangePhoneCode
type TL_account_sendConfirmPhoneCode ¶
type TL_account_sendConfirmPhoneCode struct { Flags int32 Allow_flashcall bool // allow_flashcall:flags.0?true Hash string // hash:string Current_number TL // current_number:flags.0?Bool }
func (TL_account_sendConfirmPhoneCode) Encode ¶
func (e TL_account_sendConfirmPhoneCode) Encode() []byte
Encoding TL_account_sendConfirmPhoneCode
type TL_account_setAccountTTL ¶
type TL_account_setAccountTTL struct {
Ttl TL // ttl:AccountDaysTTL
}
func (TL_account_setAccountTTL) Encode ¶
func (e TL_account_setAccountTTL) Encode() []byte
Encoding TL_account_setAccountTTL
type TL_account_setPrivacy ¶
type TL_account_setPrivacy struct { Key TL // key:InputPrivacyKey Rules []TL // rules:Vector<InputPrivacyRule> }
func (TL_account_setPrivacy) Encode ¶
func (e TL_account_setPrivacy) Encode() []byte
Encoding TL_account_setPrivacy
type TL_account_tmpPassword ¶
type TL_account_tmpPassword struct { Tmp_password []byte // tmp_password:bytes Valid_until int32 // valid_until:int }
func (TL_account_tmpPassword) Encode ¶
func (e TL_account_tmpPassword) Encode() []byte
Encoding TL_account_tmpPassword
type TL_account_unregisterDevice ¶
type TL_account_unregisterDevice struct { Token_type int32 // token_type:int Token string // token:string }
func (TL_account_unregisterDevice) Encode ¶
func (e TL_account_unregisterDevice) Encode() []byte
Encoding TL_account_unregisterDevice
type TL_account_updateDeviceLocked ¶
type TL_account_updateDeviceLocked struct {
Period int32 // period:int
}
func (TL_account_updateDeviceLocked) Encode ¶
func (e TL_account_updateDeviceLocked) Encode() []byte
Encoding TL_account_updateDeviceLocked
type TL_account_updateNotifySettings ¶
type TL_account_updateNotifySettings struct { Peer TL // peer:InputNotifyPeer Settings TL // settings:InputPeerNotifySettings }
func (TL_account_updateNotifySettings) Encode ¶
func (e TL_account_updateNotifySettings) Encode() []byte
Encoding TL_account_updateNotifySettings
type TL_account_updatePasswordSettings ¶
type TL_account_updatePasswordSettings struct { Current_password_hash []byte // current_password_hash:bytes New_settings TL // new_settings:account.PasswordInputSettings }
func (TL_account_updatePasswordSettings) Encode ¶
func (e TL_account_updatePasswordSettings) Encode() []byte
Encoding TL_account_updatePasswordSettings
type TL_account_updateProfile ¶
type TL_account_updateProfile struct { Flags int32 First_name string // first_name:flags.0?string Last_name string // last_name:flags.1?string About string // about:flags.2?string }
func (TL_account_updateProfile) Encode ¶
func (e TL_account_updateProfile) Encode() []byte
Encoding TL_account_updateProfile
type TL_account_updateStatus ¶
type TL_account_updateStatus struct {
Offline TL // offline:Bool
}
func (TL_account_updateStatus) Encode ¶
func (e TL_account_updateStatus) Encode() []byte
Encoding TL_account_updateStatus
type TL_account_updateUsername ¶
type TL_account_updateUsername struct {
Username string // username:string
}
func (TL_account_updateUsername) Encode ¶
func (e TL_account_updateUsername) Encode() []byte
Encoding TL_account_updateUsername
type TL_auth_authorization ¶
type TL_auth_authorization struct {}
func (TL_auth_authorization) Encode ¶
func (e TL_auth_authorization) Encode() []byte
Encoding TL_auth_authorization
type TL_auth_bindTempAuthKey ¶
type TL_auth_bindTempAuthKey struct { Perm_auth_key_id int64 // perm_auth_key_id:long Nonce int64 // nonce:long Expires_at int32 // expires_at:int Encrypted_message []byte // encrypted_message:bytes }
func (TL_auth_bindTempAuthKey) Encode ¶
func (e TL_auth_bindTempAuthKey) Encode() []byte
Encoding TL_auth_bindTempAuthKey
type TL_auth_cancelCode ¶
type TL_auth_cancelCode struct { Phone_number string // phone_number:string Phone_code_hash string // phone_code_hash:string }
func (TL_auth_cancelCode) Encode ¶
func (e TL_auth_cancelCode) Encode() []byte
Encoding TL_auth_cancelCode
type TL_auth_checkPassword ¶
type TL_auth_checkPassword struct {
Password_hash []byte // password_hash:bytes
}
func (TL_auth_checkPassword) Encode ¶
func (e TL_auth_checkPassword) Encode() []byte
Encoding TL_auth_checkPassword
type TL_auth_checkPhone ¶
type TL_auth_checkPhone struct {
Phone_number string // phone_number:string
}
func (TL_auth_checkPhone) Encode ¶
func (e TL_auth_checkPhone) Encode() []byte
Encoding TL_auth_checkPhone
type TL_auth_checkedPhone ¶
type TL_auth_checkedPhone struct {
Phone_registered TL // phone_registered:Bool
}
func (TL_auth_checkedPhone) Encode ¶
func (e TL_auth_checkedPhone) Encode() []byte
Encoding TL_auth_checkedPhone
type TL_auth_codeTypeCall ¶
type TL_auth_codeTypeCall struct { }
func (TL_auth_codeTypeCall) Encode ¶
func (e TL_auth_codeTypeCall) Encode() []byte
Encoding TL_auth_codeTypeCall
type TL_auth_codeTypeFlashCall ¶
type TL_auth_codeTypeFlashCall struct { }
func (TL_auth_codeTypeFlashCall) Encode ¶
func (e TL_auth_codeTypeFlashCall) Encode() []byte
Encoding TL_auth_codeTypeFlashCall
type TL_auth_codeTypeSms ¶
type TL_auth_codeTypeSms struct { }
func (TL_auth_codeTypeSms) Encode ¶
func (e TL_auth_codeTypeSms) Encode() []byte
Encoding TL_auth_codeTypeSms
type TL_auth_dropTempAuthKeys ¶
type TL_auth_dropTempAuthKeys struct {
Except_auth_keys []int64 // except_auth_keys:Vector<long>
}
func (TL_auth_dropTempAuthKeys) Encode ¶
func (e TL_auth_dropTempAuthKeys) Encode() []byte
Encoding TL_auth_dropTempAuthKeys
type TL_auth_exportAuthorization ¶
type TL_auth_exportAuthorization struct {
Dc_id int32 // dc_id:int
}
func (TL_auth_exportAuthorization) Encode ¶
func (e TL_auth_exportAuthorization) Encode() []byte
Encoding TL_auth_exportAuthorization
type TL_auth_exportedAuthorization ¶
func (TL_auth_exportedAuthorization) Encode ¶
func (e TL_auth_exportedAuthorization) Encode() []byte
Encoding TL_auth_exportedAuthorization
type TL_auth_importAuthorization ¶
func (TL_auth_importAuthorization) Encode ¶
func (e TL_auth_importAuthorization) Encode() []byte
Encoding TL_auth_importAuthorization
type TL_auth_importBotAuthorization ¶
type TL_auth_importBotAuthorization struct { Flags int32 // flags:int Api_id int32 // api_id:int Api_hash string // api_hash:string Bot_auth_token string // bot_auth_token:string }
func (TL_auth_importBotAuthorization) Encode ¶
func (e TL_auth_importBotAuthorization) Encode() []byte
Encoding TL_auth_importBotAuthorization
type TL_auth_logOut ¶
type TL_auth_logOut struct { }
type TL_auth_passwordRecovery ¶
type TL_auth_passwordRecovery struct {
Email_pattern string // email_pattern:string
}
func (TL_auth_passwordRecovery) Encode ¶
func (e TL_auth_passwordRecovery) Encode() []byte
Encoding TL_auth_passwordRecovery
type TL_auth_recoverPassword ¶
type TL_auth_recoverPassword struct {
Code string // code:string
}
func (TL_auth_recoverPassword) Encode ¶
func (e TL_auth_recoverPassword) Encode() []byte
Encoding TL_auth_recoverPassword
type TL_auth_requestPasswordRecovery ¶
type TL_auth_requestPasswordRecovery struct { }
func (TL_auth_requestPasswordRecovery) Encode ¶
func (e TL_auth_requestPasswordRecovery) Encode() []byte
Encoding TL_auth_requestPasswordRecovery
type TL_auth_resendCode ¶
type TL_auth_resendCode struct { Phone_number string // phone_number:string Phone_code_hash string // phone_code_hash:string }
func (TL_auth_resendCode) Encode ¶
func (e TL_auth_resendCode) Encode() []byte
Encoding TL_auth_resendCode
type TL_auth_resetAuthorizations ¶
type TL_auth_resetAuthorizations struct { }
func (TL_auth_resetAuthorizations) Encode ¶
func (e TL_auth_resetAuthorizations) Encode() []byte
Encoding TL_auth_resetAuthorizations
type TL_auth_sendCode ¶
type TL_auth_sendCode struct { Flags int32 Allow_flashcall bool // allow_flashcall:flags.0?true Phone_number string // phone_number:string Current_number TL // current_number:flags.0?Bool Api_id int32 // api_id:int Api_hash string // api_hash:string }
func (TL_auth_sendCode) Encode ¶
func (e TL_auth_sendCode) Encode() []byte
Encoding TL_auth_sendCode
type TL_auth_sendInvites ¶
type TL_auth_sendInvites struct { Phone_numbers []string // phone_numbers:Vector<string> Message string // message:string }
func (TL_auth_sendInvites) Encode ¶
func (e TL_auth_sendInvites) Encode() []byte
Encoding TL_auth_sendInvites
type TL_auth_sentCode ¶
type TL_auth_sentCode struct { Flags int32 Phone_registered bool // phone_registered:flags.0?true Code_type TL // type:auth.SentCodeType Phone_code_hash string // phone_code_hash:string Next_type TL // next_type:flags.1?auth.CodeType Timeout int32 // timeout:flags.2?int }
func (TL_auth_sentCode) Encode ¶
func (e TL_auth_sentCode) Encode() []byte
Encoding TL_auth_sentCode
type TL_auth_sentCodeTypeApp ¶
type TL_auth_sentCodeTypeApp struct {
Length int32 // length:int
}
func (TL_auth_sentCodeTypeApp) Encode ¶
func (e TL_auth_sentCodeTypeApp) Encode() []byte
Encoding TL_auth_sentCodeTypeApp
type TL_auth_sentCodeTypeCall ¶
type TL_auth_sentCodeTypeCall struct {
Length int32 // length:int
}
func (TL_auth_sentCodeTypeCall) Encode ¶
func (e TL_auth_sentCodeTypeCall) Encode() []byte
Encoding TL_auth_sentCodeTypeCall
type TL_auth_sentCodeTypeFlashCall ¶
type TL_auth_sentCodeTypeFlashCall struct {
Pattern string // pattern:string
}
func (TL_auth_sentCodeTypeFlashCall) Encode ¶
func (e TL_auth_sentCodeTypeFlashCall) Encode() []byte
Encoding TL_auth_sentCodeTypeFlashCall
type TL_auth_sentCodeTypeSms ¶
type TL_auth_sentCodeTypeSms struct {
Length int32 // length:int
}
func (TL_auth_sentCodeTypeSms) Encode ¶
func (e TL_auth_sentCodeTypeSms) Encode() []byte
Encoding TL_auth_sentCodeTypeSms
type TL_auth_signIn ¶
type TL_auth_signUp ¶
type TL_authorization ¶
type TL_authorization struct {}
func (TL_authorization) Encode ¶
func (e TL_authorization) Encode() []byte
Encoding TL_authorization
type TL_bad_msg_notification ¶
func (TL_bad_msg_notification) Encode ¶
func (e TL_bad_msg_notification) Encode() []byte
type TL_bad_server_salt ¶
type TL_bad_server_salt struct { Bad_msg_id int64 Bad_msg_seqno int32 Error_code int32 New_server_salt []byte }
func (TL_bad_server_salt) Encode ¶
func (e TL_bad_server_salt) Encode() []byte
type TL_boolFalse ¶
type TL_boolFalse struct { }
func (TL_boolFalse) Encode ¶
func (e TL_boolFalse) Encode() []byte
type TL_boolTrue ¶
type TL_boolTrue struct { }
func (TL_boolTrue) Encode ¶
func (e TL_boolTrue) Encode() []byte
type TL_botCommand ¶
type TL_botInfo ¶
type TL_botInlineMediaResult ¶
type TL_botInlineMediaResult struct { Flags int32 Id string // id:string Code_type string // type:string Photo TL // photo:flags.0?Photo Document TL // document:flags.1?Document Title string // title:flags.2?string Description string // description:flags.3?string Send_message TL // send_message:BotInlineMessage }
func (TL_botInlineMediaResult) Encode ¶
func (e TL_botInlineMediaResult) Encode() []byte
Encoding TL_botInlineMediaResult
type TL_botInlineMessageMediaAuto ¶
type TL_botInlineMessageMediaAuto struct { Flags int32 Caption string // caption:string Reply_markup TL // reply_markup:flags.2?ReplyMarkup }
func (TL_botInlineMessageMediaAuto) Encode ¶
func (e TL_botInlineMessageMediaAuto) Encode() []byte
Encoding TL_botInlineMessageMediaAuto
type TL_botInlineMessageMediaContact ¶
type TL_botInlineMessageMediaContact struct { Flags int32 Phone_number string // phone_number:string First_name string // first_name:string Last_name string // last_name:string Reply_markup TL // reply_markup:flags.2?ReplyMarkup }
func (TL_botInlineMessageMediaContact) Encode ¶
func (e TL_botInlineMessageMediaContact) Encode() []byte
Encoding TL_botInlineMessageMediaContact
type TL_botInlineMessageMediaGeo ¶
type TL_botInlineMessageMediaGeo struct { Flags int32 Geo TL // geo:GeoPoint Reply_markup TL // reply_markup:flags.2?ReplyMarkup }
func (TL_botInlineMessageMediaGeo) Encode ¶
func (e TL_botInlineMessageMediaGeo) Encode() []byte
Encoding TL_botInlineMessageMediaGeo
type TL_botInlineMessageMediaVenue ¶
type TL_botInlineMessageMediaVenue struct { Flags int32 Geo TL // geo:GeoPoint Title string // title:string Address string // address:string Provider string // provider:string Venue_id string // venue_id:string Reply_markup TL // reply_markup:flags.2?ReplyMarkup }
func (TL_botInlineMessageMediaVenue) Encode ¶
func (e TL_botInlineMessageMediaVenue) Encode() []byte
Encoding TL_botInlineMessageMediaVenue
type TL_botInlineMessageText ¶
type TL_botInlineMessageText struct { Flags int32 No_webpage bool // no_webpage:flags.0?true Message string // message:string Entities []TL // entities:flags.1?Vector<MessageEntity> Reply_markup TL // reply_markup:flags.2?ReplyMarkup }
func (TL_botInlineMessageText) Encode ¶
func (e TL_botInlineMessageText) Encode() []byte
Encoding TL_botInlineMessageText
type TL_botInlineResult ¶
type TL_botInlineResult struct { Flags int32 Id string // id:string Code_type string // type:string Title string // title:flags.1?string Description string // description:flags.2?string Url string // url:flags.3?string Thumb_url string // thumb_url:flags.4?string Content_url string // content_url:flags.5?string Content_type string // content_type:flags.5?string W int32 // w:flags.6?int H int32 // h:flags.6?int Duration int32 // duration:flags.7?int Send_message TL // send_message:BotInlineMessage }
func (TL_botInlineResult) Encode ¶
func (e TL_botInlineResult) Encode() []byte
Encoding TL_botInlineResult
type TL_bots_answerWebhookJSONQuery ¶
type TL_bots_answerWebhookJSONQuery struct { Query_id int64 // query_id:long Data TL // data:DataJSON }
func (TL_bots_answerWebhookJSONQuery) Encode ¶
func (e TL_bots_answerWebhookJSONQuery) Encode() []byte
Encoding TL_bots_answerWebhookJSONQuery
type TL_bots_sendCustomRequest ¶
type TL_bots_sendCustomRequest struct { Custom_method string // custom_method:string Params TL // params:DataJSON }
func (TL_bots_sendCustomRequest) Encode ¶
func (e TL_bots_sendCustomRequest) Encode() []byte
Encoding TL_bots_sendCustomRequest
type TL_cdnConfig ¶
type TL_cdnConfig struct {
Public_keys []TL // public_keys:Vector<CdnPublicKey>
}
type TL_cdnFileHash ¶
type TL_cdnPublicKey ¶
type TL_channel ¶
type TL_channel struct { Flags int32 Creator bool // creator:flags.0?true Left bool // left:flags.2?true Editor bool // editor:flags.3?true Broadcast bool // broadcast:flags.5?true Verified bool // verified:flags.7?true Megagroup bool // megagroup:flags.8?true Restricted bool // restricted:flags.9?true Democracy bool // democracy:flags.10?true Signatures bool // signatures:flags.11?true Min bool // min:flags.12?true Id int32 // id:int Access_hash int64 // access_hash:flags.13?long Title string // title:string Username string // username:flags.6?string Photo TL // photo:ChatPhoto Date int32 // date:int Version int32 // version:int Restriction_reason string // restriction_reason:flags.9?string Admin_rights TL // admin_rights:flags.14?ChannelAdminRights Banned_rights TL // banned_rights:flags.15?ChannelBannedRights }
type TL_channelAdminLogEvent ¶
type TL_channelAdminLogEvent struct { Id int64 // id:long Date int32 // date:int User_id int32 // user_id:int Action TL // action:ChannelAdminLogEventAction }
func (TL_channelAdminLogEvent) Encode ¶
func (e TL_channelAdminLogEvent) Encode() []byte
Encoding TL_channelAdminLogEvent
type TL_channelAdminLogEventActionChangeAbout ¶
type TL_channelAdminLogEventActionChangeAbout struct { Prev_value string // prev_value:string New_value string // new_value:string }
func (TL_channelAdminLogEventActionChangeAbout) Encode ¶
func (e TL_channelAdminLogEventActionChangeAbout) Encode() []byte
Encoding TL_channelAdminLogEventActionChangeAbout
type TL_channelAdminLogEventActionChangePhoto ¶
type TL_channelAdminLogEventActionChangePhoto struct { Prev_photo TL // prev_photo:ChatPhoto New_photo TL // new_photo:ChatPhoto }
func (TL_channelAdminLogEventActionChangePhoto) Encode ¶
func (e TL_channelAdminLogEventActionChangePhoto) Encode() []byte
Encoding TL_channelAdminLogEventActionChangePhoto
type TL_channelAdminLogEventActionChangeStickerSet ¶
type TL_channelAdminLogEventActionChangeStickerSet struct { Prev_stickerset TL // prev_stickerset:InputStickerSet New_stickerset TL // new_stickerset:InputStickerSet }
func (TL_channelAdminLogEventActionChangeStickerSet) Encode ¶
func (e TL_channelAdminLogEventActionChangeStickerSet) Encode() []byte
Encoding TL_channelAdminLogEventActionChangeStickerSet
type TL_channelAdminLogEventActionChangeTitle ¶
type TL_channelAdminLogEventActionChangeTitle struct { Prev_value string // prev_value:string New_value string // new_value:string }
func (TL_channelAdminLogEventActionChangeTitle) Encode ¶
func (e TL_channelAdminLogEventActionChangeTitle) Encode() []byte
Encoding TL_channelAdminLogEventActionChangeTitle
type TL_channelAdminLogEventActionChangeUsername ¶
type TL_channelAdminLogEventActionChangeUsername struct { Prev_value string // prev_value:string New_value string // new_value:string }
func (TL_channelAdminLogEventActionChangeUsername) Encode ¶
func (e TL_channelAdminLogEventActionChangeUsername) Encode() []byte
Encoding TL_channelAdminLogEventActionChangeUsername
type TL_channelAdminLogEventActionDeleteMessage ¶
type TL_channelAdminLogEventActionDeleteMessage struct {
Message TL // message:Message
}
func (TL_channelAdminLogEventActionDeleteMessage) Encode ¶
func (e TL_channelAdminLogEventActionDeleteMessage) Encode() []byte
Encoding TL_channelAdminLogEventActionDeleteMessage
type TL_channelAdminLogEventActionEditMessage ¶
type TL_channelAdminLogEventActionEditMessage struct { Prev_message TL // prev_message:Message New_message TL // new_message:Message }
func (TL_channelAdminLogEventActionEditMessage) Encode ¶
func (e TL_channelAdminLogEventActionEditMessage) Encode() []byte
Encoding TL_channelAdminLogEventActionEditMessage
type TL_channelAdminLogEventActionParticipantInvite ¶
type TL_channelAdminLogEventActionParticipantInvite struct {
Participant TL // participant:ChannelParticipant
}
func (TL_channelAdminLogEventActionParticipantInvite) Encode ¶
func (e TL_channelAdminLogEventActionParticipantInvite) Encode() []byte
Encoding TL_channelAdminLogEventActionParticipantInvite
type TL_channelAdminLogEventActionParticipantJoin ¶
type TL_channelAdminLogEventActionParticipantJoin struct { }
func (TL_channelAdminLogEventActionParticipantJoin) Encode ¶
func (e TL_channelAdminLogEventActionParticipantJoin) Encode() []byte
Encoding TL_channelAdminLogEventActionParticipantJoin
type TL_channelAdminLogEventActionParticipantLeave ¶
type TL_channelAdminLogEventActionParticipantLeave struct { }
func (TL_channelAdminLogEventActionParticipantLeave) Encode ¶
func (e TL_channelAdminLogEventActionParticipantLeave) Encode() []byte
Encoding TL_channelAdminLogEventActionParticipantLeave
type TL_channelAdminLogEventActionParticipantToggleAdmin ¶
type TL_channelAdminLogEventActionParticipantToggleAdmin struct { Prev_participant TL // prev_participant:ChannelParticipant New_participant TL // new_participant:ChannelParticipant }
func (TL_channelAdminLogEventActionParticipantToggleAdmin) Encode ¶
func (e TL_channelAdminLogEventActionParticipantToggleAdmin) Encode() []byte
Encoding TL_channelAdminLogEventActionParticipantToggleAdmin
type TL_channelAdminLogEventActionParticipantToggleBan ¶
type TL_channelAdminLogEventActionParticipantToggleBan struct { Prev_participant TL // prev_participant:ChannelParticipant New_participant TL // new_participant:ChannelParticipant }
func (TL_channelAdminLogEventActionParticipantToggleBan) Encode ¶
func (e TL_channelAdminLogEventActionParticipantToggleBan) Encode() []byte
Encoding TL_channelAdminLogEventActionParticipantToggleBan
type TL_channelAdminLogEventActionToggleInvites ¶
type TL_channelAdminLogEventActionToggleInvites struct {
New_value TL // new_value:Bool
}
func (TL_channelAdminLogEventActionToggleInvites) Encode ¶
func (e TL_channelAdminLogEventActionToggleInvites) Encode() []byte
Encoding TL_channelAdminLogEventActionToggleInvites
type TL_channelAdminLogEventActionToggleSignatures ¶
type TL_channelAdminLogEventActionToggleSignatures struct {
New_value TL // new_value:Bool
}
func (TL_channelAdminLogEventActionToggleSignatures) Encode ¶
func (e TL_channelAdminLogEventActionToggleSignatures) Encode() []byte
Encoding TL_channelAdminLogEventActionToggleSignatures
type TL_channelAdminLogEventActionUpdatePinned ¶
type TL_channelAdminLogEventActionUpdatePinned struct {
Message TL // message:Message
}
func (TL_channelAdminLogEventActionUpdatePinned) Encode ¶
func (e TL_channelAdminLogEventActionUpdatePinned) Encode() []byte
Encoding TL_channelAdminLogEventActionUpdatePinned
type TL_channelAdminLogEventsFilter ¶
type TL_channelAdminLogEventsFilter struct { Flags int32 Join bool // join:flags.0?true Leave bool // leave:flags.1?true Invite bool // invite:flags.2?true Ban bool // ban:flags.3?true Unban bool // unban:flags.4?true Kick bool // kick:flags.5?true Unkick bool // unkick:flags.6?true Promote bool // promote:flags.7?true Demote bool // demote:flags.8?true Info bool // info:flags.9?true Settings bool // settings:flags.10?true Pinned bool // pinned:flags.11?true Edit bool // edit:flags.12?true Delete bool // delete:flags.13?true }
func (TL_channelAdminLogEventsFilter) Encode ¶
func (e TL_channelAdminLogEventsFilter) Encode() []byte
Encoding TL_channelAdminLogEventsFilter
type TL_channelAdminRights ¶
type TL_channelAdminRights struct { Flags int32 Change_info bool // change_info:flags.0?true Post_messages bool // post_messages:flags.1?true Edit_messages bool // edit_messages:flags.2?true Delete_messages bool // delete_messages:flags.3?true Ban_users bool // ban_users:flags.4?true Invite_users bool // invite_users:flags.5?true Invite_link bool // invite_link:flags.6?true Pin_messages bool // pin_messages:flags.7?true Add_admins bool // add_admins:flags.9?true }
func (TL_channelAdminRights) Encode ¶
func (e TL_channelAdminRights) Encode() []byte
Encoding TL_channelAdminRights
type TL_channelBannedRights ¶
type TL_channelBannedRights struct { Flags int32 View_messages bool // view_messages:flags.0?true Send_messages bool // send_messages:flags.1?true Send_media bool // send_media:flags.2?true Send_stickers bool // send_stickers:flags.3?true Send_gifs bool // send_gifs:flags.4?true Send_games bool // send_games:flags.5?true Send_inline bool // send_inline:flags.6?true Embed_links bool // embed_links:flags.7?true Until_date int32 // until_date:int }
func (TL_channelBannedRights) Encode ¶
func (e TL_channelBannedRights) Encode() []byte
Encoding TL_channelBannedRights
type TL_channelForbidden ¶
type TL_channelForbidden struct { Flags int32 Broadcast bool // broadcast:flags.5?true Megagroup bool // megagroup:flags.8?true Id int32 // id:int Access_hash int64 // access_hash:long Title string // title:string Until_date int32 // until_date:flags.16?int }
func (TL_channelForbidden) Encode ¶
func (e TL_channelForbidden) Encode() []byte
Encoding TL_channelForbidden
type TL_channelFull ¶
type TL_channelFull struct { Flags int32 Can_view_participants bool // can_view_participants:flags.3?true Can_set_username bool // can_set_username:flags.6?true Can_set_stickers bool // can_set_stickers:flags.7?true Id int32 // id:int About string // about:string Participants_count int32 // participants_count:flags.0?int Admins_count int32 // admins_count:flags.1?int Kicked_count int32 // kicked_count:flags.2?int Banned_count int32 // banned_count:flags.2?int Read_inbox_max_id int32 // read_inbox_max_id:int Read_outbox_max_id int32 // read_outbox_max_id:int Unread_count int32 // unread_count:int Chat_photo TL // chat_photo:Photo Notify_settings TL // notify_settings:PeerNotifySettings Exported_invite TL // exported_invite:ExportedChatInvite Bot_info []TL // bot_info:Vector<BotInfo> Migrated_from_chat_id int32 // migrated_from_chat_id:flags.4?int Migrated_from_max_id int32 // migrated_from_max_id:flags.4?int Pinned_msg_id int32 // pinned_msg_id:flags.5?int Stickerset TL // stickerset:flags.8?StickerSet }
type TL_channelMessagesFilter ¶
type TL_channelMessagesFilter struct { Flags int32 Exclude_new_messages bool // exclude_new_messages:flags.1?true Ranges []TL // ranges:Vector<MessageRange> }
func (TL_channelMessagesFilter) Encode ¶
func (e TL_channelMessagesFilter) Encode() []byte
Encoding TL_channelMessagesFilter
type TL_channelMessagesFilterEmpty ¶
type TL_channelMessagesFilterEmpty struct { }
func (TL_channelMessagesFilterEmpty) Encode ¶
func (e TL_channelMessagesFilterEmpty) Encode() []byte
Encoding TL_channelMessagesFilterEmpty
type TL_channelParticipant ¶
func (TL_channelParticipant) Encode ¶
func (e TL_channelParticipant) Encode() []byte
Encoding TL_channelParticipant
type TL_channelParticipantAdmin ¶
type TL_channelParticipantAdmin struct { Flags int32 Can_edit bool // can_edit:flags.0?true User_id int32 // user_id:int Inviter_id int32 // inviter_id:int Promoted_by int32 // promoted_by:int Date int32 // date:int Admin_rights TL // admin_rights:ChannelAdminRights }
func (TL_channelParticipantAdmin) Encode ¶
func (e TL_channelParticipantAdmin) Encode() []byte
Encoding TL_channelParticipantAdmin
type TL_channelParticipantBanned ¶
type TL_channelParticipantBanned struct { Flags int32 Left bool // left:flags.0?true User_id int32 // user_id:int Kicked_by int32 // kicked_by:int Date int32 // date:int Banned_rights TL // banned_rights:ChannelBannedRights }
func (TL_channelParticipantBanned) Encode ¶
func (e TL_channelParticipantBanned) Encode() []byte
Encoding TL_channelParticipantBanned
type TL_channelParticipantCreator ¶
type TL_channelParticipantCreator struct {
User_id int32 // user_id:int
}
func (TL_channelParticipantCreator) Encode ¶
func (e TL_channelParticipantCreator) Encode() []byte
Encoding TL_channelParticipantCreator
type TL_channelParticipantSelf ¶
type TL_channelParticipantSelf struct { User_id int32 // user_id:int Inviter_id int32 // inviter_id:int Date int32 // date:int }
func (TL_channelParticipantSelf) Encode ¶
func (e TL_channelParticipantSelf) Encode() []byte
Encoding TL_channelParticipantSelf
type TL_channelParticipantsAdmins ¶
type TL_channelParticipantsAdmins struct { }
func (TL_channelParticipantsAdmins) Encode ¶
func (e TL_channelParticipantsAdmins) Encode() []byte
Encoding TL_channelParticipantsAdmins
type TL_channelParticipantsBanned ¶
type TL_channelParticipantsBanned struct {
Q string // q:string
}
func (TL_channelParticipantsBanned) Encode ¶
func (e TL_channelParticipantsBanned) Encode() []byte
Encoding TL_channelParticipantsBanned
type TL_channelParticipantsBots ¶
type TL_channelParticipantsBots struct { }
func (TL_channelParticipantsBots) Encode ¶
func (e TL_channelParticipantsBots) Encode() []byte
Encoding TL_channelParticipantsBots
type TL_channelParticipantsKicked ¶
type TL_channelParticipantsKicked struct {
Q string // q:string
}
func (TL_channelParticipantsKicked) Encode ¶
func (e TL_channelParticipantsKicked) Encode() []byte
Encoding TL_channelParticipantsKicked
type TL_channelParticipantsRecent ¶
type TL_channelParticipantsRecent struct { }
func (TL_channelParticipantsRecent) Encode ¶
func (e TL_channelParticipantsRecent) Encode() []byte
Encoding TL_channelParticipantsRecent
type TL_channelParticipantsSearch ¶
type TL_channelParticipantsSearch struct {
Q string // q:string
}
func (TL_channelParticipantsSearch) Encode ¶
func (e TL_channelParticipantsSearch) Encode() []byte
Encoding TL_channelParticipantsSearch
type TL_channels_adminLogResults ¶
type TL_channels_adminLogResults struct { Events []TL // events:Vector<ChannelAdminLogEvent> Chats []TL // chats:Vector<Chat> Users []TL // users:Vector<User> }
func (TL_channels_adminLogResults) Encode ¶
func (e TL_channels_adminLogResults) Encode() []byte
Encoding TL_channels_adminLogResults
type TL_channels_channelParticipant ¶
type TL_channels_channelParticipant struct { Participant TL // participant:ChannelParticipant Users []TL // users:Vector<User> }
func (TL_channels_channelParticipant) Encode ¶
func (e TL_channels_channelParticipant) Encode() []byte
Encoding TL_channels_channelParticipant
type TL_channels_channelParticipants ¶
type TL_channels_channelParticipants struct { Count int32 // count:int Participants []TL // participants:Vector<ChannelParticipant> Users []TL // users:Vector<User> }
func (TL_channels_channelParticipants) Encode ¶
func (e TL_channels_channelParticipants) Encode() []byte
Encoding TL_channels_channelParticipants
type TL_channels_checkUsername ¶
type TL_channels_checkUsername struct { Channel TL // channel:InputChannel Username string // username:string }
func (TL_channels_checkUsername) Encode ¶
func (e TL_channels_checkUsername) Encode() []byte
Encoding TL_channels_checkUsername
type TL_channels_createChannel ¶
type TL_channels_createChannel struct { Flags int32 Broadcast bool // broadcast:flags.0?true Megagroup bool // megagroup:flags.1?true Title string // title:string About string // about:string }
func (TL_channels_createChannel) Encode ¶
func (e TL_channels_createChannel) Encode() []byte
Encoding TL_channels_createChannel
type TL_channels_deleteChannel ¶
type TL_channels_deleteChannel struct {
Channel TL // channel:InputChannel
}
func (TL_channels_deleteChannel) Encode ¶
func (e TL_channels_deleteChannel) Encode() []byte
Encoding TL_channels_deleteChannel
type TL_channels_deleteMessages ¶
type TL_channels_deleteMessages struct { Channel TL // channel:InputChannel Id []int32 // id:Vector<int> }
func (TL_channels_deleteMessages) Encode ¶
func (e TL_channels_deleteMessages) Encode() []byte
Encoding TL_channels_deleteMessages
type TL_channels_deleteUserHistory ¶
type TL_channels_deleteUserHistory struct { Channel TL // channel:InputChannel User_id TL // user_id:InputUser }
func (TL_channels_deleteUserHistory) Encode ¶
func (e TL_channels_deleteUserHistory) Encode() []byte
Encoding TL_channels_deleteUserHistory
type TL_channels_editAbout ¶
type TL_channels_editAbout struct { Channel TL // channel:InputChannel About string // about:string }
func (TL_channels_editAbout) Encode ¶
func (e TL_channels_editAbout) Encode() []byte
Encoding TL_channels_editAbout
type TL_channels_editAdmin ¶
type TL_channels_editAdmin struct { Channel TL // channel:InputChannel User_id TL // user_id:InputUser Admin_rights TL // admin_rights:ChannelAdminRights }
func (TL_channels_editAdmin) Encode ¶
func (e TL_channels_editAdmin) Encode() []byte
Encoding TL_channels_editAdmin
type TL_channels_editBanned ¶
type TL_channels_editBanned struct { Channel TL // channel:InputChannel User_id TL // user_id:InputUser Banned_rights TL // banned_rights:ChannelBannedRights }
func (TL_channels_editBanned) Encode ¶
func (e TL_channels_editBanned) Encode() []byte
Encoding TL_channels_editBanned
type TL_channels_editPhoto ¶
type TL_channels_editPhoto struct { Channel TL // channel:InputChannel Photo TL // photo:InputChatPhoto }
func (TL_channels_editPhoto) Encode ¶
func (e TL_channels_editPhoto) Encode() []byte
Encoding TL_channels_editPhoto
type TL_channels_editTitle ¶
type TL_channels_editTitle struct { Channel TL // channel:InputChannel Title string // title:string }
func (TL_channels_editTitle) Encode ¶
func (e TL_channels_editTitle) Encode() []byte
Encoding TL_channels_editTitle
type TL_channels_exportInvite ¶
type TL_channels_exportInvite struct {
Channel TL // channel:InputChannel
}
func (TL_channels_exportInvite) Encode ¶
func (e TL_channels_exportInvite) Encode() []byte
Encoding TL_channels_exportInvite
type TL_channels_exportMessageLink ¶
func (TL_channels_exportMessageLink) Encode ¶
func (e TL_channels_exportMessageLink) Encode() []byte
Encoding TL_channels_exportMessageLink
type TL_channels_getAdminLog ¶
type TL_channels_getAdminLog struct { Flags int32 Channel TL // channel:InputChannel Q string // q:string Events_filter TL // events_filter:flags.0?ChannelAdminLogEventsFilter Admins []TL // admins:flags.1?Vector<InputUser> Max_id int64 // max_id:long Min_id int64 // min_id:long Limit int32 // limit:int }
func (TL_channels_getAdminLog) Encode ¶
func (e TL_channels_getAdminLog) Encode() []byte
Encoding TL_channels_getAdminLog
type TL_channels_getAdminedPublicChannels ¶
type TL_channels_getAdminedPublicChannels struct { }
func (TL_channels_getAdminedPublicChannels) Encode ¶
func (e TL_channels_getAdminedPublicChannels) Encode() []byte
Encoding TL_channels_getAdminedPublicChannels
type TL_channels_getChannels ¶
type TL_channels_getChannels struct {
Id []TL // id:Vector<InputChannel>
}
func (TL_channels_getChannels) Encode ¶
func (e TL_channels_getChannels) Encode() []byte
Encoding TL_channels_getChannels
type TL_channels_getFullChannel ¶
type TL_channels_getFullChannel struct {
Channel TL // channel:InputChannel
}
func (TL_channels_getFullChannel) Encode ¶
func (e TL_channels_getFullChannel) Encode() []byte
Encoding TL_channels_getFullChannel
type TL_channels_getMessages ¶
type TL_channels_getMessages struct { Channel TL // channel:InputChannel Id []int32 // id:Vector<int> }
func (TL_channels_getMessages) Encode ¶
func (e TL_channels_getMessages) Encode() []byte
Encoding TL_channels_getMessages
type TL_channels_getParticipant ¶
type TL_channels_getParticipant struct { Channel TL // channel:InputChannel User_id TL // user_id:InputUser }
func (TL_channels_getParticipant) Encode ¶
func (e TL_channels_getParticipant) Encode() []byte
Encoding TL_channels_getParticipant
type TL_channels_getParticipants ¶
type TL_channels_getParticipants struct { Channel TL // channel:InputChannel Filter TL // filter:ChannelParticipantsFilter Offset int32 // offset:int Limit int32 // limit:int }
func (TL_channels_getParticipants) Encode ¶
func (e TL_channels_getParticipants) Encode() []byte
Encoding TL_channels_getParticipants
type TL_channels_inviteToChannel ¶
type TL_channels_inviteToChannel struct { Channel TL // channel:InputChannel Users []TL // users:Vector<InputUser> }
func (TL_channels_inviteToChannel) Encode ¶
func (e TL_channels_inviteToChannel) Encode() []byte
Encoding TL_channels_inviteToChannel
type TL_channels_joinChannel ¶
type TL_channels_joinChannel struct {
Channel TL // channel:InputChannel
}
func (TL_channels_joinChannel) Encode ¶
func (e TL_channels_joinChannel) Encode() []byte
Encoding TL_channels_joinChannel
type TL_channels_leaveChannel ¶
type TL_channels_leaveChannel struct {
Channel TL // channel:InputChannel
}
func (TL_channels_leaveChannel) Encode ¶
func (e TL_channels_leaveChannel) Encode() []byte
Encoding TL_channels_leaveChannel
type TL_channels_readHistory ¶
type TL_channels_readHistory struct { Channel TL // channel:InputChannel Max_id int32 // max_id:int }
func (TL_channels_readHistory) Encode ¶
func (e TL_channels_readHistory) Encode() []byte
Encoding TL_channels_readHistory
type TL_channels_readMessageContents ¶
type TL_channels_readMessageContents struct { Channel TL // channel:InputChannel Id []int32 // id:Vector<int> }
func (TL_channels_readMessageContents) Encode ¶
func (e TL_channels_readMessageContents) Encode() []byte
Encoding TL_channels_readMessageContents
type TL_channels_reportSpam ¶
type TL_channels_reportSpam struct { Channel TL // channel:InputChannel User_id TL // user_id:InputUser Id []int32 // id:Vector<int> }
func (TL_channels_reportSpam) Encode ¶
func (e TL_channels_reportSpam) Encode() []byte
Encoding TL_channels_reportSpam
type TL_channels_setStickers ¶
type TL_channels_setStickers struct { Channel TL // channel:InputChannel Stickerset TL // stickerset:InputStickerSet }
func (TL_channels_setStickers) Encode ¶
func (e TL_channels_setStickers) Encode() []byte
Encoding TL_channels_setStickers
type TL_channels_toggleInvites ¶
type TL_channels_toggleInvites struct { Channel TL // channel:InputChannel Enabled TL // enabled:Bool }
func (TL_channels_toggleInvites) Encode ¶
func (e TL_channels_toggleInvites) Encode() []byte
Encoding TL_channels_toggleInvites
type TL_channels_toggleSignatures ¶
type TL_channels_toggleSignatures struct { Channel TL // channel:InputChannel Enabled TL // enabled:Bool }
func (TL_channels_toggleSignatures) Encode ¶
func (e TL_channels_toggleSignatures) Encode() []byte
Encoding TL_channels_toggleSignatures
type TL_channels_updatePinnedMessage ¶
type TL_channels_updatePinnedMessage struct { Flags int32 Silent bool // silent:flags.0?true Channel TL // channel:InputChannel Id int32 // id:int }
func (TL_channels_updatePinnedMessage) Encode ¶
func (e TL_channels_updatePinnedMessage) Encode() []byte
Encoding TL_channels_updatePinnedMessage
type TL_channels_updateUsername ¶
type TL_channels_updateUsername struct { Channel TL // channel:InputChannel Username string // username:string }
func (TL_channels_updateUsername) Encode ¶
func (e TL_channels_updateUsername) Encode() []byte
Encoding TL_channels_updateUsername
type TL_chat ¶
type TL_chat struct { Flags int32 Creator bool // creator:flags.0?true Kicked bool // kicked:flags.1?true Left bool // left:flags.2?true Admins_enabled bool // admins_enabled:flags.3?true Admin bool // admin:flags.4?true Deactivated bool // deactivated:flags.5?true Id int32 // id:int Title string // title:string Photo TL // photo:ChatPhoto Participants_count int32 // participants_count:int Date int32 // date:int Version int32 // version:int Migrated_to TL // migrated_to:flags.6?InputChannel }
type TL_chatEmpty ¶
type TL_chatEmpty struct {
Id int32 // id:int
}
type TL_chatForbidden ¶
func (TL_chatForbidden) Encode ¶
func (e TL_chatForbidden) Encode() []byte
Encoding TL_chatForbidden
type TL_chatFull ¶
type TL_chatInvite ¶
type TL_chatInvite struct { Flags int32 Channel bool // channel:flags.0?true Broadcast bool // broadcast:flags.1?true Public bool // public:flags.2?true Megagroup bool // megagroup:flags.3?true Title string // title:string Photo TL // photo:ChatPhoto Participants_count int32 // participants_count:int Participants []TL // participants:flags.4?Vector<User> }
type TL_chatInviteAlready ¶
type TL_chatInviteAlready struct {
Chat TL // chat:Chat
}
func (TL_chatInviteAlready) Encode ¶
func (e TL_chatInviteAlready) Encode() []byte
Encoding TL_chatInviteAlready
type TL_chatInviteEmpty ¶
type TL_chatInviteEmpty struct { }
func (TL_chatInviteEmpty) Encode ¶
func (e TL_chatInviteEmpty) Encode() []byte
Encoding TL_chatInviteEmpty
type TL_chatInviteExported ¶
type TL_chatInviteExported struct {
Link string // link:string
}
func (TL_chatInviteExported) Encode ¶
func (e TL_chatInviteExported) Encode() []byte
Encoding TL_chatInviteExported
type TL_chatParticipant ¶
type TL_chatParticipant struct { User_id int32 // user_id:int Inviter_id int32 // inviter_id:int Date int32 // date:int }
func (TL_chatParticipant) Encode ¶
func (e TL_chatParticipant) Encode() []byte
Encoding TL_chatParticipant
type TL_chatParticipantAdmin ¶
type TL_chatParticipantAdmin struct { User_id int32 // user_id:int Inviter_id int32 // inviter_id:int Date int32 // date:int }
func (TL_chatParticipantAdmin) Encode ¶
func (e TL_chatParticipantAdmin) Encode() []byte
Encoding TL_chatParticipantAdmin
type TL_chatParticipantCreator ¶
type TL_chatParticipantCreator struct {
User_id int32 // user_id:int
}
func (TL_chatParticipantCreator) Encode ¶
func (e TL_chatParticipantCreator) Encode() []byte
Encoding TL_chatParticipantCreator
type TL_chatParticipants ¶
type TL_chatParticipants struct { Chat_id int32 // chat_id:int Participants []TL // participants:Vector<ChatParticipant> Version int32 // version:int }
func (TL_chatParticipants) Encode ¶
func (e TL_chatParticipants) Encode() []byte
Encoding TL_chatParticipants
type TL_chatParticipantsForbidden ¶
type TL_chatParticipantsForbidden struct { Flags int32 Chat_id int32 // chat_id:int Self_participant TL // self_participant:flags.0?ChatParticipant }
func (TL_chatParticipantsForbidden) Encode ¶
func (e TL_chatParticipantsForbidden) Encode() []byte
Encoding TL_chatParticipantsForbidden
type TL_chatPhoto ¶
type TL_chatPhotoEmpty ¶
type TL_chatPhotoEmpty struct { }
func (TL_chatPhotoEmpty) Encode ¶
func (e TL_chatPhotoEmpty) Encode() []byte
Encoding TL_chatPhotoEmpty
type TL_client_DH_inner_data ¶
func (TL_client_DH_inner_data) Encode ¶
func (e TL_client_DH_inner_data) Encode() []byte
type TL_config ¶
type TL_config struct { Flags int32 Phonecalls_enabled bool // phonecalls_enabled:flags.1?true Date int32 // date:int Expires int32 // expires:int Test_mode TL // test_mode:Bool This_dc int32 // this_dc:int Dc_options []TL // dc_options:Vector<DcOption> Chat_size_max int32 // chat_size_max:int Megagroup_size_max int32 // megagroup_size_max:int Forwarded_count_max int32 // forwarded_count_max:int Online_update_period_ms int32 // online_update_period_ms:int Offline_blur_timeout_ms int32 // offline_blur_timeout_ms:int Offline_idle_timeout_ms int32 // offline_idle_timeout_ms:int Online_cloud_timeout_ms int32 // online_cloud_timeout_ms:int Notify_cloud_delay_ms int32 // notify_cloud_delay_ms:int Notify_default_delay_ms int32 // notify_default_delay_ms:int Chat_big_size int32 // chat_big_size:int Push_chat_period_ms int32 // push_chat_period_ms:int Push_chat_limit int32 // push_chat_limit:int Saved_gifs_limit int32 // saved_gifs_limit:int Edit_time_limit int32 // edit_time_limit:int Rating_e_decay int32 // rating_e_decay:int Stickers_recent_limit int32 // stickers_recent_limit:int Stickers_faved_limit int32 // stickers_faved_limit:int Tmp_sessions int32 // tmp_sessions:flags.0?int Pinned_dialogs_count_max int32 // pinned_dialogs_count_max:int Call_receive_timeout_ms int32 // call_receive_timeout_ms:int Call_ring_timeout_ms int32 // call_ring_timeout_ms:int Call_connect_timeout_ms int32 // call_connect_timeout_ms:int Call_packet_timeout_ms int32 // call_packet_timeout_ms:int Me_url_prefix string // me_url_prefix:string Suggested_lang_code string // suggested_lang_code:flags.2?string Lang_pack_version int32 // lang_pack_version:flags.2?int Disabled_features []TL // disabled_features:Vector<DisabledFeature> }
type TL_contact ¶
type TL_contactBlocked ¶
func (TL_contactBlocked) Encode ¶
func (e TL_contactBlocked) Encode() []byte
Encoding TL_contactBlocked
type TL_contactLinkContact ¶
type TL_contactLinkContact struct { }
func (TL_contactLinkContact) Encode ¶
func (e TL_contactLinkContact) Encode() []byte
Encoding TL_contactLinkContact
type TL_contactLinkHasPhone ¶
type TL_contactLinkHasPhone struct { }
func (TL_contactLinkHasPhone) Encode ¶
func (e TL_contactLinkHasPhone) Encode() []byte
Encoding TL_contactLinkHasPhone
type TL_contactLinkNone ¶
type TL_contactLinkNone struct { }
func (TL_contactLinkNone) Encode ¶
func (e TL_contactLinkNone) Encode() []byte
Encoding TL_contactLinkNone
type TL_contactLinkUnknown ¶
type TL_contactLinkUnknown struct { }
func (TL_contactLinkUnknown) Encode ¶
func (e TL_contactLinkUnknown) Encode() []byte
Encoding TL_contactLinkUnknown
type TL_contactStatus ¶
func (TL_contactStatus) Encode ¶
func (e TL_contactStatus) Encode() []byte
Encoding TL_contactStatus
type TL_contacts_block ¶
type TL_contacts_block struct {
Id TL // id:InputUser
}
func (TL_contacts_block) Encode ¶
func (e TL_contacts_block) Encode() []byte
Encoding TL_contacts_block
type TL_contacts_blocked ¶
type TL_contacts_blocked struct { Blocked []TL // blocked:Vector<ContactBlocked> Users []TL // users:Vector<User> }
func (TL_contacts_blocked) Encode ¶
func (e TL_contacts_blocked) Encode() []byte
Encoding TL_contacts_blocked
type TL_contacts_blockedSlice ¶
type TL_contacts_blockedSlice struct { Count int32 // count:int Blocked []TL // blocked:Vector<ContactBlocked> Users []TL // users:Vector<User> }
func (TL_contacts_blockedSlice) Encode ¶
func (e TL_contacts_blockedSlice) Encode() []byte
Encoding TL_contacts_blockedSlice
type TL_contacts_contacts ¶
type TL_contacts_contacts struct { Contacts []TL // contacts:Vector<Contact> Saved_count int32 // saved_count:int Users []TL // users:Vector<User> }
func (TL_contacts_contacts) Encode ¶
func (e TL_contacts_contacts) Encode() []byte
Encoding TL_contacts_contacts
type TL_contacts_contactsNotModified ¶
type TL_contacts_contactsNotModified struct { }
func (TL_contacts_contactsNotModified) Encode ¶
func (e TL_contacts_contactsNotModified) Encode() []byte
Encoding TL_contacts_contactsNotModified
type TL_contacts_deleteContact ¶
type TL_contacts_deleteContact struct {
Id TL // id:InputUser
}
func (TL_contacts_deleteContact) Encode ¶
func (e TL_contacts_deleteContact) Encode() []byte
Encoding TL_contacts_deleteContact
type TL_contacts_deleteContacts ¶
type TL_contacts_deleteContacts struct {
Id []TL // id:Vector<InputUser>
}
func (TL_contacts_deleteContacts) Encode ¶
func (e TL_contacts_deleteContacts) Encode() []byte
Encoding TL_contacts_deleteContacts
type TL_contacts_exportCard ¶
type TL_contacts_exportCard struct { }
func (TL_contacts_exportCard) Encode ¶
func (e TL_contacts_exportCard) Encode() []byte
Encoding TL_contacts_exportCard
type TL_contacts_found ¶
type TL_contacts_found struct { Results []TL // results:Vector<Peer> Chats []TL // chats:Vector<Chat> Users []TL // users:Vector<User> }
func (TL_contacts_found) Encode ¶
func (e TL_contacts_found) Encode() []byte
Encoding TL_contacts_found
type TL_contacts_getBlocked ¶
func (TL_contacts_getBlocked) Encode ¶
func (e TL_contacts_getBlocked) Encode() []byte
Encoding TL_contacts_getBlocked
type TL_contacts_getContacts ¶
type TL_contacts_getContacts struct {
Hash int32 // hash:int
}
func (TL_contacts_getContacts) Encode ¶
func (e TL_contacts_getContacts) Encode() []byte
Encoding TL_contacts_getContacts
type TL_contacts_getStatuses ¶
type TL_contacts_getStatuses struct { }
func (TL_contacts_getStatuses) Encode ¶
func (e TL_contacts_getStatuses) Encode() []byte
Encoding TL_contacts_getStatuses
type TL_contacts_getTopPeers ¶
type TL_contacts_getTopPeers struct { Flags int32 Correspondents bool // correspondents:flags.0?true Bots_pm bool // bots_pm:flags.1?true Bots_inline bool // bots_inline:flags.2?true Phone_calls bool // phone_calls:flags.3?true Groups bool // groups:flags.10?true Channels bool // channels:flags.15?true Offset int32 // offset:int Limit int32 // limit:int Hash int32 // hash:int }
func (TL_contacts_getTopPeers) Encode ¶
func (e TL_contacts_getTopPeers) Encode() []byte
Encoding TL_contacts_getTopPeers
type TL_contacts_importCard ¶
type TL_contacts_importCard struct {
Export_card []int32 // export_card:Vector<int>
}
func (TL_contacts_importCard) Encode ¶
func (e TL_contacts_importCard) Encode() []byte
Encoding TL_contacts_importCard
type TL_contacts_importContacts ¶
type TL_contacts_importContacts struct {
Contacts []TL // contacts:Vector<InputContact>
}
func (TL_contacts_importContacts) Encode ¶
func (e TL_contacts_importContacts) Encode() []byte
Encoding TL_contacts_importContacts
type TL_contacts_importedContacts ¶
type TL_contacts_importedContacts struct { Imported []TL // imported:Vector<ImportedContact> Popular_invites []TL // popular_invites:Vector<PopularContact> Retry_contacts []int64 // retry_contacts:Vector<long> Users []TL // users:Vector<User> }
func (TL_contacts_importedContacts) Encode ¶
func (e TL_contacts_importedContacts) Encode() []byte
Encoding TL_contacts_importedContacts
type TL_contacts_link ¶
type TL_contacts_link struct { My_link TL // my_link:ContactLink Foreign_link TL // foreign_link:ContactLink User TL // user:User }
func (TL_contacts_link) Encode ¶
func (e TL_contacts_link) Encode() []byte
Encoding TL_contacts_link
type TL_contacts_resetSaved ¶
type TL_contacts_resetSaved struct { }
func (TL_contacts_resetSaved) Encode ¶
func (e TL_contacts_resetSaved) Encode() []byte
Encoding TL_contacts_resetSaved
type TL_contacts_resetTopPeerRating ¶
type TL_contacts_resetTopPeerRating struct { Category TL // category:TopPeerCategory Peer TL // peer:InputPeer }
func (TL_contacts_resetTopPeerRating) Encode ¶
func (e TL_contacts_resetTopPeerRating) Encode() []byte
Encoding TL_contacts_resetTopPeerRating
type TL_contacts_resolveUsername ¶
type TL_contacts_resolveUsername struct {
Username string // username:string
}
func (TL_contacts_resolveUsername) Encode ¶
func (e TL_contacts_resolveUsername) Encode() []byte
Encoding TL_contacts_resolveUsername
type TL_contacts_resolvedPeer ¶
type TL_contacts_resolvedPeer struct { Peer TL // peer:Peer Chats []TL // chats:Vector<Chat> Users []TL // users:Vector<User> }
func (TL_contacts_resolvedPeer) Encode ¶
func (e TL_contacts_resolvedPeer) Encode() []byte
Encoding TL_contacts_resolvedPeer
type TL_contacts_search ¶
func (TL_contacts_search) Encode ¶
func (e TL_contacts_search) Encode() []byte
Encoding TL_contacts_search
type TL_contacts_topPeers ¶
type TL_contacts_topPeers struct { Categories []TL // categories:Vector<TopPeerCategoryPeers> Chats []TL // chats:Vector<Chat> Users []TL // users:Vector<User> }
func (TL_contacts_topPeers) Encode ¶
func (e TL_contacts_topPeers) Encode() []byte
Encoding TL_contacts_topPeers
type TL_contacts_topPeersNotModified ¶
type TL_contacts_topPeersNotModified struct { }
func (TL_contacts_topPeersNotModified) Encode ¶
func (e TL_contacts_topPeersNotModified) Encode() []byte
Encoding TL_contacts_topPeersNotModified
type TL_contacts_unblock ¶
type TL_contacts_unblock struct {
Id TL // id:InputUser
}
func (TL_contacts_unblock) Encode ¶
func (e TL_contacts_unblock) Encode() []byte
Encoding TL_contacts_unblock
type TL_dataJSON ¶
type TL_dataJSON struct {
Data string // data:string
}
type TL_dcOption ¶
type TL_dh_gen_ok ¶
func (TL_dh_gen_ok) Encode ¶
func (e TL_dh_gen_ok) Encode() []byte
type TL_dialog ¶
type TL_dialog struct { Flags int32 Pinned bool // pinned:flags.2?true Peer TL // peer:Peer Top_message int32 // top_message:int Read_inbox_max_id int32 // read_inbox_max_id:int Read_outbox_max_id int32 // read_outbox_max_id:int Unread_count int32 // unread_count:int Unread_mentions_count int32 // unread_mentions_count:int Notify_settings TL // notify_settings:PeerNotifySettings Pts int32 // pts:flags.0?int Draft TL // draft:flags.1?DraftMessage }
type TL_disabledFeature ¶
type TL_disabledFeature struct { Feature string // feature:string Description string // description:string }
func (TL_disabledFeature) Encode ¶
func (e TL_disabledFeature) Encode() []byte
Encoding TL_disabledFeature
type TL_document ¶
type TL_document struct { Id int64 // id:long Access_hash int64 // access_hash:long Date int32 // date:int Mime_type string // mime_type:string Size int32 // size:int Thumb TL // thumb:PhotoSize Dc_id int32 // dc_id:int Version int32 // version:int Attributes []TL // attributes:Vector<DocumentAttribute> }
type TL_documentAttributeAnimated ¶
type TL_documentAttributeAnimated struct { }
func (TL_documentAttributeAnimated) Encode ¶
func (e TL_documentAttributeAnimated) Encode() []byte
Encoding TL_documentAttributeAnimated
type TL_documentAttributeAudio ¶
type TL_documentAttributeAudio struct { Flags int32 Voice bool // voice:flags.10?true Duration int32 // duration:int Title string // title:flags.0?string Performer string // performer:flags.1?string Waveform []byte // waveform:flags.2?bytes }
func (TL_documentAttributeAudio) Encode ¶
func (e TL_documentAttributeAudio) Encode() []byte
Encoding TL_documentAttributeAudio
type TL_documentAttributeFilename ¶
type TL_documentAttributeFilename struct {
File_name string // file_name:string
}
func (TL_documentAttributeFilename) Encode ¶
func (e TL_documentAttributeFilename) Encode() []byte
Encoding TL_documentAttributeFilename
type TL_documentAttributeHasStickers ¶
type TL_documentAttributeHasStickers struct { }
func (TL_documentAttributeHasStickers) Encode ¶
func (e TL_documentAttributeHasStickers) Encode() []byte
Encoding TL_documentAttributeHasStickers
type TL_documentAttributeImageSize ¶
func (TL_documentAttributeImageSize) Encode ¶
func (e TL_documentAttributeImageSize) Encode() []byte
Encoding TL_documentAttributeImageSize
type TL_documentAttributeSticker ¶
type TL_documentAttributeSticker struct { Flags int32 Mask bool // mask:flags.1?true Alt string // alt:string Stickerset TL // stickerset:InputStickerSet Mask_coords TL // mask_coords:flags.0?MaskCoords }
func (TL_documentAttributeSticker) Encode ¶
func (e TL_documentAttributeSticker) Encode() []byte
Encoding TL_documentAttributeSticker
type TL_documentAttributeVideo ¶
type TL_documentAttributeVideo struct { Flags int32 Round_message bool // round_message:flags.0?true Duration int32 // duration:int W int32 // w:int H int32 // h:int }
func (TL_documentAttributeVideo) Encode ¶
func (e TL_documentAttributeVideo) Encode() []byte
Encoding TL_documentAttributeVideo
type TL_documentEmpty ¶
type TL_documentEmpty struct {
Id int64 // id:long
}
func (TL_documentEmpty) Encode ¶
func (e TL_documentEmpty) Encode() []byte
Encoding TL_documentEmpty
type TL_draftMessage ¶
type TL_draftMessageEmpty ¶
type TL_draftMessageEmpty struct { }
func (TL_draftMessageEmpty) Encode ¶
func (e TL_draftMessageEmpty) Encode() []byte
Encoding TL_draftMessageEmpty
type TL_encryptedChat ¶
type TL_encryptedChat struct { Id int32 // id:int Access_hash int64 // access_hash:long Date int32 // date:int Admin_id int32 // admin_id:int Participant_id int32 // participant_id:int G_a_or_b []byte // g_a_or_b:bytes Key_fingerprint int64 // key_fingerprint:long }
func (TL_encryptedChat) Encode ¶
func (e TL_encryptedChat) Encode() []byte
Encoding TL_encryptedChat
type TL_encryptedChatDiscarded ¶
type TL_encryptedChatDiscarded struct {
Id int32 // id:int
}
func (TL_encryptedChatDiscarded) Encode ¶
func (e TL_encryptedChatDiscarded) Encode() []byte
Encoding TL_encryptedChatDiscarded
type TL_encryptedChatEmpty ¶
type TL_encryptedChatEmpty struct {
Id int32 // id:int
}
func (TL_encryptedChatEmpty) Encode ¶
func (e TL_encryptedChatEmpty) Encode() []byte
Encoding TL_encryptedChatEmpty
type TL_encryptedChatRequested ¶
type TL_encryptedChatRequested struct { Id int32 // id:int Access_hash int64 // access_hash:long Date int32 // date:int Admin_id int32 // admin_id:int Participant_id int32 // participant_id:int G_a []byte // g_a:bytes }
func (TL_encryptedChatRequested) Encode ¶
func (e TL_encryptedChatRequested) Encode() []byte
Encoding TL_encryptedChatRequested
type TL_encryptedChatWaiting ¶
type TL_encryptedChatWaiting struct { Id int32 // id:int Access_hash int64 // access_hash:long Date int32 // date:int Admin_id int32 // admin_id:int Participant_id int32 // participant_id:int }
func (TL_encryptedChatWaiting) Encode ¶
func (e TL_encryptedChatWaiting) Encode() []byte
Encoding TL_encryptedChatWaiting
type TL_encryptedFile ¶
type TL_encryptedFile struct { Id int64 // id:long Access_hash int64 // access_hash:long Size int32 // size:int Dc_id int32 // dc_id:int Key_fingerprint int32 // key_fingerprint:int }
func (TL_encryptedFile) Encode ¶
func (e TL_encryptedFile) Encode() []byte
Encoding TL_encryptedFile
type TL_encryptedFileEmpty ¶
type TL_encryptedFileEmpty struct { }
func (TL_encryptedFileEmpty) Encode ¶
func (e TL_encryptedFileEmpty) Encode() []byte
Encoding TL_encryptedFileEmpty
type TL_encryptedMessage ¶
type TL_encryptedMessage struct { Random_id int64 // random_id:long Chat_id int32 // chat_id:int Date int32 // date:int Bytes []byte // bytes:bytes File TL // file:EncryptedFile }
func (TL_encryptedMessage) Encode ¶
func (e TL_encryptedMessage) Encode() []byte
Encoding TL_encryptedMessage
type TL_encryptedMessageService ¶
type TL_encryptedMessageService struct { Random_id int64 // random_id:long Chat_id int32 // chat_id:int Date int32 // date:int Bytes []byte // bytes:bytes }
func (TL_encryptedMessageService) Encode ¶
func (e TL_encryptedMessageService) Encode() []byte
Encoding TL_encryptedMessageService
type TL_exportedMessageLink ¶
type TL_exportedMessageLink struct {
Link string // link:string
}
func (TL_exportedMessageLink) Encode ¶
func (e TL_exportedMessageLink) Encode() []byte
Encoding TL_exportedMessageLink
type TL_fileLocation ¶
type TL_fileLocationUnavailable ¶
type TL_fileLocationUnavailable struct {}
func (TL_fileLocationUnavailable) Encode ¶
func (e TL_fileLocationUnavailable) Encode() []byte
Encoding TL_fileLocationUnavailable
type TL_foundGif ¶
type TL_foundGifCached ¶
type TL_foundGifCached struct { Url string // url:string Photo TL // photo:Photo Document TL // document:Document }
func (TL_foundGifCached) Encode ¶
func (e TL_foundGifCached) Encode() []byte
Encoding TL_foundGifCached
type TL_game ¶
type TL_geoPoint ¶
type TL_geoPointEmpty ¶
type TL_geoPointEmpty struct { }
func (TL_geoPointEmpty) Encode ¶
func (e TL_geoPointEmpty) Encode() []byte
Encoding TL_geoPointEmpty
type TL_help_appUpdate ¶
type TL_help_appUpdate struct { Id int32 // id:int Critical TL // critical:Bool Url string // url:string Text string // text:string }
func (TL_help_appUpdate) Encode ¶
func (e TL_help_appUpdate) Encode() []byte
Encoding TL_help_appUpdate
type TL_help_getAppChangelog ¶
type TL_help_getAppChangelog struct {
Prev_app_version string // prev_app_version:string
}
func (TL_help_getAppChangelog) Encode ¶
func (e TL_help_getAppChangelog) Encode() []byte
Encoding TL_help_getAppChangelog
type TL_help_getAppUpdate ¶
type TL_help_getAppUpdate struct { }
func (TL_help_getAppUpdate) Encode ¶
func (e TL_help_getAppUpdate) Encode() []byte
Encoding TL_help_getAppUpdate
type TL_help_getCdnConfig ¶
type TL_help_getCdnConfig struct { }
func (TL_help_getCdnConfig) Encode ¶
func (e TL_help_getCdnConfig) Encode() []byte
Encoding TL_help_getCdnConfig
type TL_help_getConfig ¶
type TL_help_getConfig struct { }
func (TL_help_getConfig) Encode ¶
func (e TL_help_getConfig) Encode() []byte
Encoding TL_help_getConfig
type TL_help_getInviteText ¶
type TL_help_getInviteText struct { }
func (TL_help_getInviteText) Encode ¶
func (e TL_help_getInviteText) Encode() []byte
Encoding TL_help_getInviteText
type TL_help_getNearestDc ¶
type TL_help_getNearestDc struct { }
func (TL_help_getNearestDc) Encode ¶
func (e TL_help_getNearestDc) Encode() []byte
Encoding TL_help_getNearestDc
type TL_help_getSupport ¶
type TL_help_getSupport struct { }
func (TL_help_getSupport) Encode ¶
func (e TL_help_getSupport) Encode() []byte
Encoding TL_help_getSupport
type TL_help_getTermsOfService ¶
type TL_help_getTermsOfService struct { }
func (TL_help_getTermsOfService) Encode ¶
func (e TL_help_getTermsOfService) Encode() []byte
Encoding TL_help_getTermsOfService
type TL_help_inviteText ¶
type TL_help_inviteText struct {
Message string // message:string
}
func (TL_help_inviteText) Encode ¶
func (e TL_help_inviteText) Encode() []byte
Encoding TL_help_inviteText
type TL_help_noAppUpdate ¶
type TL_help_noAppUpdate struct { }
func (TL_help_noAppUpdate) Encode ¶
func (e TL_help_noAppUpdate) Encode() []byte
Encoding TL_help_noAppUpdate
type TL_help_saveAppLog ¶
type TL_help_saveAppLog struct {
Events []TL // events:Vector<InputAppEvent>
}
func (TL_help_saveAppLog) Encode ¶
func (e TL_help_saveAppLog) Encode() []byte
Encoding TL_help_saveAppLog
type TL_help_setBotUpdatesStatus ¶
type TL_help_setBotUpdatesStatus struct { Pending_updates_count int32 // pending_updates_count:int Message string // message:string }
func (TL_help_setBotUpdatesStatus) Encode ¶
func (e TL_help_setBotUpdatesStatus) Encode() []byte
Encoding TL_help_setBotUpdatesStatus
type TL_help_support ¶
type TL_help_termsOfService ¶
type TL_help_termsOfService struct {
Text string // text:string
}
func (TL_help_termsOfService) Encode ¶
func (e TL_help_termsOfService) Encode() []byte
Encoding TL_help_termsOfService
type TL_highScore ¶
type TL_importedContact ¶
func (TL_importedContact) Encode ¶
func (e TL_importedContact) Encode() []byte
Encoding TL_importedContact
type TL_initConnection ¶
type TL_initConnection struct { Api_id int32 // api_id:int Device_model string // device_model:string System_version string // system_version:string App_version string // app_version:string System_lang_code string // system_lang_code:string Lang_pack string // lang_pack:string Lang_code string // lang_code:string Query TL // query:!X }
func (TL_initConnection) Encode ¶
func (e TL_initConnection) Encode() []byte
Encoding TL_initConnection
type TL_inlineBotSwitchPM ¶
type TL_inlineBotSwitchPM struct { Text string // text:string Start_param string // start_param:string }
func (TL_inlineBotSwitchPM) Encode ¶
func (e TL_inlineBotSwitchPM) Encode() []byte
Encoding TL_inlineBotSwitchPM
type TL_inputAppEvent ¶
type TL_inputAppEvent struct { Time float64 // time:double Code_type string // type:string Peer int64 // peer:long Data string // data:string }
func (TL_inputAppEvent) Encode ¶
func (e TL_inputAppEvent) Encode() []byte
Encoding TL_inputAppEvent
type TL_inputBotInlineMessageGame ¶
type TL_inputBotInlineMessageGame struct { Flags int32 Reply_markup TL // reply_markup:flags.2?ReplyMarkup }
func (TL_inputBotInlineMessageGame) Encode ¶
func (e TL_inputBotInlineMessageGame) Encode() []byte
Encoding TL_inputBotInlineMessageGame
type TL_inputBotInlineMessageID ¶
type TL_inputBotInlineMessageID struct { Dc_id int32 // dc_id:int Id int64 // id:long Access_hash int64 // access_hash:long }
func (TL_inputBotInlineMessageID) Encode ¶
func (e TL_inputBotInlineMessageID) Encode() []byte
Encoding TL_inputBotInlineMessageID
type TL_inputBotInlineMessageMediaAuto ¶
type TL_inputBotInlineMessageMediaAuto struct { Flags int32 Caption string // caption:string Reply_markup TL // reply_markup:flags.2?ReplyMarkup }
func (TL_inputBotInlineMessageMediaAuto) Encode ¶
func (e TL_inputBotInlineMessageMediaAuto) Encode() []byte
Encoding TL_inputBotInlineMessageMediaAuto
type TL_inputBotInlineMessageMediaContact ¶
type TL_inputBotInlineMessageMediaContact struct { Flags int32 Phone_number string // phone_number:string First_name string // first_name:string Last_name string // last_name:string Reply_markup TL // reply_markup:flags.2?ReplyMarkup }
func (TL_inputBotInlineMessageMediaContact) Encode ¶
func (e TL_inputBotInlineMessageMediaContact) Encode() []byte
Encoding TL_inputBotInlineMessageMediaContact
type TL_inputBotInlineMessageMediaGeo ¶
type TL_inputBotInlineMessageMediaGeo struct { Flags int32 Geo_point TL // geo_point:InputGeoPoint Reply_markup TL // reply_markup:flags.2?ReplyMarkup }
func (TL_inputBotInlineMessageMediaGeo) Encode ¶
func (e TL_inputBotInlineMessageMediaGeo) Encode() []byte
Encoding TL_inputBotInlineMessageMediaGeo
type TL_inputBotInlineMessageMediaVenue ¶
type TL_inputBotInlineMessageMediaVenue struct { Flags int32 Geo_point TL // geo_point:InputGeoPoint Title string // title:string Address string // address:string Provider string // provider:string Venue_id string // venue_id:string Reply_markup TL // reply_markup:flags.2?ReplyMarkup }
func (TL_inputBotInlineMessageMediaVenue) Encode ¶
func (e TL_inputBotInlineMessageMediaVenue) Encode() []byte
Encoding TL_inputBotInlineMessageMediaVenue
type TL_inputBotInlineMessageText ¶
type TL_inputBotInlineMessageText struct { Flags int32 No_webpage bool // no_webpage:flags.0?true Message string // message:string Entities []TL // entities:flags.1?Vector<MessageEntity> Reply_markup TL // reply_markup:flags.2?ReplyMarkup }
func (TL_inputBotInlineMessageText) Encode ¶
func (e TL_inputBotInlineMessageText) Encode() []byte
Encoding TL_inputBotInlineMessageText
type TL_inputBotInlineResult ¶
type TL_inputBotInlineResult struct { Flags int32 Id string // id:string Code_type string // type:string Title string // title:flags.1?string Description string // description:flags.2?string Url string // url:flags.3?string Thumb_url string // thumb_url:flags.4?string Content_url string // content_url:flags.5?string Content_type string // content_type:flags.5?string W int32 // w:flags.6?int H int32 // h:flags.6?int Duration int32 // duration:flags.7?int Send_message TL // send_message:InputBotInlineMessage }
func (TL_inputBotInlineResult) Encode ¶
func (e TL_inputBotInlineResult) Encode() []byte
Encoding TL_inputBotInlineResult
type TL_inputBotInlineResultDocument ¶
type TL_inputBotInlineResultDocument struct { Flags int32 Id string // id:string Code_type string // type:string Title string // title:flags.1?string Description string // description:flags.2?string Document TL // document:InputDocument Send_message TL // send_message:InputBotInlineMessage }
func (TL_inputBotInlineResultDocument) Encode ¶
func (e TL_inputBotInlineResultDocument) Encode() []byte
Encoding TL_inputBotInlineResultDocument
type TL_inputBotInlineResultGame ¶
type TL_inputBotInlineResultGame struct { Id string // id:string Short_name string // short_name:string Send_message TL // send_message:InputBotInlineMessage }
func (TL_inputBotInlineResultGame) Encode ¶
func (e TL_inputBotInlineResultGame) Encode() []byte
Encoding TL_inputBotInlineResultGame
type TL_inputBotInlineResultPhoto ¶
type TL_inputBotInlineResultPhoto struct { Id string // id:string Code_type string // type:string Photo TL // photo:InputPhoto Send_message TL // send_message:InputBotInlineMessage }
func (TL_inputBotInlineResultPhoto) Encode ¶
func (e TL_inputBotInlineResultPhoto) Encode() []byte
Encoding TL_inputBotInlineResultPhoto
type TL_inputChannel ¶
type TL_inputChannelEmpty ¶
type TL_inputChannelEmpty struct { }
func (TL_inputChannelEmpty) Encode ¶
func (e TL_inputChannelEmpty) Encode() []byte
Encoding TL_inputChannelEmpty
type TL_inputChatPhoto ¶
type TL_inputChatPhoto struct {
Id TL // id:InputPhoto
}
func (TL_inputChatPhoto) Encode ¶
func (e TL_inputChatPhoto) Encode() []byte
Encoding TL_inputChatPhoto
type TL_inputChatPhotoEmpty ¶
type TL_inputChatPhotoEmpty struct { }
func (TL_inputChatPhotoEmpty) Encode ¶
func (e TL_inputChatPhotoEmpty) Encode() []byte
Encoding TL_inputChatPhotoEmpty
type TL_inputChatUploadedPhoto ¶
type TL_inputChatUploadedPhoto struct {
File TL // file:InputFile
}
func (TL_inputChatUploadedPhoto) Encode ¶
func (e TL_inputChatUploadedPhoto) Encode() []byte
Encoding TL_inputChatUploadedPhoto
type TL_inputDocument ¶
func (TL_inputDocument) Encode ¶
func (e TL_inputDocument) Encode() []byte
Encoding TL_inputDocument
type TL_inputDocumentEmpty ¶
type TL_inputDocumentEmpty struct { }
func (TL_inputDocumentEmpty) Encode ¶
func (e TL_inputDocumentEmpty) Encode() []byte
Encoding TL_inputDocumentEmpty
type TL_inputDocumentFileLocation ¶
type TL_inputDocumentFileLocation struct { Id int64 // id:long Access_hash int64 // access_hash:long Version int32 // version:int }
func (TL_inputDocumentFileLocation) Encode ¶
func (e TL_inputDocumentFileLocation) Encode() []byte
Encoding TL_inputDocumentFileLocation
type TL_inputEncryptedChat ¶
type TL_inputEncryptedChat struct { Chat_id int32 // chat_id:int Access_hash int64 // access_hash:long }
func (TL_inputEncryptedChat) Encode ¶
func (e TL_inputEncryptedChat) Encode() []byte
Encoding TL_inputEncryptedChat
type TL_inputEncryptedFile ¶
func (TL_inputEncryptedFile) Encode ¶
func (e TL_inputEncryptedFile) Encode() []byte
Encoding TL_inputEncryptedFile
type TL_inputEncryptedFileBigUploaded ¶
type TL_inputEncryptedFileBigUploaded struct { Id int64 // id:long Parts int32 // parts:int Key_fingerprint int32 // key_fingerprint:int }
func (TL_inputEncryptedFileBigUploaded) Encode ¶
func (e TL_inputEncryptedFileBigUploaded) Encode() []byte
Encoding TL_inputEncryptedFileBigUploaded
type TL_inputEncryptedFileEmpty ¶
type TL_inputEncryptedFileEmpty struct { }
func (TL_inputEncryptedFileEmpty) Encode ¶
func (e TL_inputEncryptedFileEmpty) Encode() []byte
Encoding TL_inputEncryptedFileEmpty
type TL_inputEncryptedFileLocation ¶
type TL_inputEncryptedFileLocation struct { Id int64 // id:long Access_hash int64 // access_hash:long }
func (TL_inputEncryptedFileLocation) Encode ¶
func (e TL_inputEncryptedFileLocation) Encode() []byte
Encoding TL_inputEncryptedFileLocation
type TL_inputEncryptedFileUploaded ¶
type TL_inputEncryptedFileUploaded struct { Id int64 // id:long Parts int32 // parts:int Md5_checksum string // md5_checksum:string Key_fingerprint int32 // key_fingerprint:int }
func (TL_inputEncryptedFileUploaded) Encode ¶
func (e TL_inputEncryptedFileUploaded) Encode() []byte
Encoding TL_inputEncryptedFileUploaded
type TL_inputFile ¶
type TL_inputFileBig ¶
type TL_inputFileLocation ¶
type TL_inputFileLocation struct { Volume_id int64 // volume_id:long Local_id int32 // local_id:int Secret int64 // secret:long }
func (TL_inputFileLocation) Encode ¶
func (e TL_inputFileLocation) Encode() []byte
Encoding TL_inputFileLocation
type TL_inputGameID ¶
type TL_inputGameShortName ¶
type TL_inputGameShortName struct { Bot_id TL // bot_id:InputUser Short_name string // short_name:string }
func (TL_inputGameShortName) Encode ¶
func (e TL_inputGameShortName) Encode() []byte
Encoding TL_inputGameShortName
type TL_inputGeoPoint ¶
func (TL_inputGeoPoint) Encode ¶
func (e TL_inputGeoPoint) Encode() []byte
Encoding TL_inputGeoPoint
type TL_inputGeoPointEmpty ¶
type TL_inputGeoPointEmpty struct { }
func (TL_inputGeoPointEmpty) Encode ¶
func (e TL_inputGeoPointEmpty) Encode() []byte
Encoding TL_inputGeoPointEmpty
type TL_inputMediaContact ¶
type TL_inputMediaContact struct { Phone_number string // phone_number:string First_name string // first_name:string Last_name string // last_name:string }
func (TL_inputMediaContact) Encode ¶
func (e TL_inputMediaContact) Encode() []byte
Encoding TL_inputMediaContact
type TL_inputMediaDocument ¶
type TL_inputMediaDocument struct { Flags int32 Id TL // id:InputDocument Caption string // caption:string Ttl_seconds int32 // ttl_seconds:flags.0?int }
func (TL_inputMediaDocument) Encode ¶
func (e TL_inputMediaDocument) Encode() []byte
Encoding TL_inputMediaDocument
type TL_inputMediaDocumentExternal ¶
type TL_inputMediaDocumentExternal struct { Flags int32 Url string // url:string Caption string // caption:string Ttl_seconds int32 // ttl_seconds:flags.0?int }
func (TL_inputMediaDocumentExternal) Encode ¶
func (e TL_inputMediaDocumentExternal) Encode() []byte
Encoding TL_inputMediaDocumentExternal
type TL_inputMediaEmpty ¶
type TL_inputMediaEmpty struct { }
func (TL_inputMediaEmpty) Encode ¶
func (e TL_inputMediaEmpty) Encode() []byte
Encoding TL_inputMediaEmpty
type TL_inputMediaGame ¶
type TL_inputMediaGame struct {
Id TL // id:InputGame
}
func (TL_inputMediaGame) Encode ¶
func (e TL_inputMediaGame) Encode() []byte
Encoding TL_inputMediaGame
type TL_inputMediaGeoPoint ¶
type TL_inputMediaGeoPoint struct {
Geo_point TL // geo_point:InputGeoPoint
}
func (TL_inputMediaGeoPoint) Encode ¶
func (e TL_inputMediaGeoPoint) Encode() []byte
Encoding TL_inputMediaGeoPoint
type TL_inputMediaGifExternal ¶
func (TL_inputMediaGifExternal) Encode ¶
func (e TL_inputMediaGifExternal) Encode() []byte
Encoding TL_inputMediaGifExternal
type TL_inputMediaInvoice ¶
type TL_inputMediaInvoice struct { Flags int32 Title string // title:string Description string // description:string Photo TL // photo:flags.0?InputWebDocument Invoice TL // invoice:Invoice Payload []byte // payload:bytes Provider string // provider:string Start_param string // start_param:string }
func (TL_inputMediaInvoice) Encode ¶
func (e TL_inputMediaInvoice) Encode() []byte
Encoding TL_inputMediaInvoice
type TL_inputMediaPhoto ¶
type TL_inputMediaPhoto struct { Flags int32 Id TL // id:InputPhoto Caption string // caption:string Ttl_seconds int32 // ttl_seconds:flags.0?int }
func (TL_inputMediaPhoto) Encode ¶
func (e TL_inputMediaPhoto) Encode() []byte
Encoding TL_inputMediaPhoto
type TL_inputMediaPhotoExternal ¶
type TL_inputMediaPhotoExternal struct { Flags int32 Url string // url:string Caption string // caption:string Ttl_seconds int32 // ttl_seconds:flags.0?int }
func (TL_inputMediaPhotoExternal) Encode ¶
func (e TL_inputMediaPhotoExternal) Encode() []byte
Encoding TL_inputMediaPhotoExternal
type TL_inputMediaUploadedDocument ¶
type TL_inputMediaUploadedDocument struct { Flags int32 File TL // file:InputFile Thumb TL // thumb:flags.2?InputFile Mime_type string // mime_type:string Attributes []TL // attributes:Vector<DocumentAttribute> Caption string // caption:string Stickers []TL // stickers:flags.0?Vector<InputDocument> Ttl_seconds int32 // ttl_seconds:flags.1?int }
func (TL_inputMediaUploadedDocument) Encode ¶
func (e TL_inputMediaUploadedDocument) Encode() []byte
Encoding TL_inputMediaUploadedDocument
type TL_inputMediaUploadedPhoto ¶
type TL_inputMediaUploadedPhoto struct { Flags int32 File TL // file:InputFile Caption string // caption:string Stickers []TL // stickers:flags.0?Vector<InputDocument> Ttl_seconds int32 // ttl_seconds:flags.1?int }
func (TL_inputMediaUploadedPhoto) Encode ¶
func (e TL_inputMediaUploadedPhoto) Encode() []byte
Encoding TL_inputMediaUploadedPhoto
type TL_inputMediaVenue ¶
type TL_inputMediaVenue struct { Geo_point TL // geo_point:InputGeoPoint Title string // title:string Address string // address:string Provider string // provider:string Venue_id string // venue_id:string }
func (TL_inputMediaVenue) Encode ¶
func (e TL_inputMediaVenue) Encode() []byte
Encoding TL_inputMediaVenue
type TL_inputMessageEntityMentionName ¶
type TL_inputMessageEntityMentionName struct { Offset int32 // offset:int Length int32 // length:int User_id TL // user_id:InputUser }
func (TL_inputMessageEntityMentionName) Encode ¶
func (e TL_inputMessageEntityMentionName) Encode() []byte
Encoding TL_inputMessageEntityMentionName
type TL_inputMessagesFilterChatPhotos ¶
type TL_inputMessagesFilterChatPhotos struct { }
func (TL_inputMessagesFilterChatPhotos) Encode ¶
func (e TL_inputMessagesFilterChatPhotos) Encode() []byte
Encoding TL_inputMessagesFilterChatPhotos
type TL_inputMessagesFilterDocument ¶
type TL_inputMessagesFilterDocument struct { }
func (TL_inputMessagesFilterDocument) Encode ¶
func (e TL_inputMessagesFilterDocument) Encode() []byte
Encoding TL_inputMessagesFilterDocument
type TL_inputMessagesFilterEmpty ¶
type TL_inputMessagesFilterEmpty struct { }
func (TL_inputMessagesFilterEmpty) Encode ¶
func (e TL_inputMessagesFilterEmpty) Encode() []byte
Encoding TL_inputMessagesFilterEmpty
type TL_inputMessagesFilterGif ¶
type TL_inputMessagesFilterGif struct { }
func (TL_inputMessagesFilterGif) Encode ¶
func (e TL_inputMessagesFilterGif) Encode() []byte
Encoding TL_inputMessagesFilterGif
type TL_inputMessagesFilterMusic ¶
type TL_inputMessagesFilterMusic struct { }
func (TL_inputMessagesFilterMusic) Encode ¶
func (e TL_inputMessagesFilterMusic) Encode() []byte
Encoding TL_inputMessagesFilterMusic
type TL_inputMessagesFilterMyMentions ¶
type TL_inputMessagesFilterMyMentions struct { }
func (TL_inputMessagesFilterMyMentions) Encode ¶
func (e TL_inputMessagesFilterMyMentions) Encode() []byte
Encoding TL_inputMessagesFilterMyMentions
type TL_inputMessagesFilterPhoneCalls ¶
func (TL_inputMessagesFilterPhoneCalls) Encode ¶
func (e TL_inputMessagesFilterPhoneCalls) Encode() []byte
Encoding TL_inputMessagesFilterPhoneCalls
type TL_inputMessagesFilterPhotoVideo ¶
type TL_inputMessagesFilterPhotoVideo struct { }
func (TL_inputMessagesFilterPhotoVideo) Encode ¶
func (e TL_inputMessagesFilterPhotoVideo) Encode() []byte
Encoding TL_inputMessagesFilterPhotoVideo
type TL_inputMessagesFilterPhotoVideoDocuments ¶
type TL_inputMessagesFilterPhotoVideoDocuments struct { }
func (TL_inputMessagesFilterPhotoVideoDocuments) Encode ¶
func (e TL_inputMessagesFilterPhotoVideoDocuments) Encode() []byte
Encoding TL_inputMessagesFilterPhotoVideoDocuments
type TL_inputMessagesFilterPhotos ¶
type TL_inputMessagesFilterPhotos struct { }
func (TL_inputMessagesFilterPhotos) Encode ¶
func (e TL_inputMessagesFilterPhotos) Encode() []byte
Encoding TL_inputMessagesFilterPhotos
type TL_inputMessagesFilterRoundVideo ¶
type TL_inputMessagesFilterRoundVideo struct { }
func (TL_inputMessagesFilterRoundVideo) Encode ¶
func (e TL_inputMessagesFilterRoundVideo) Encode() []byte
Encoding TL_inputMessagesFilterRoundVideo
type TL_inputMessagesFilterRoundVoice ¶
type TL_inputMessagesFilterRoundVoice struct { }
func (TL_inputMessagesFilterRoundVoice) Encode ¶
func (e TL_inputMessagesFilterRoundVoice) Encode() []byte
Encoding TL_inputMessagesFilterRoundVoice
type TL_inputMessagesFilterUrl ¶
type TL_inputMessagesFilterUrl struct { }
func (TL_inputMessagesFilterUrl) Encode ¶
func (e TL_inputMessagesFilterUrl) Encode() []byte
Encoding TL_inputMessagesFilterUrl
type TL_inputMessagesFilterVideo ¶
type TL_inputMessagesFilterVideo struct { }
func (TL_inputMessagesFilterVideo) Encode ¶
func (e TL_inputMessagesFilterVideo) Encode() []byte
Encoding TL_inputMessagesFilterVideo
type TL_inputMessagesFilterVoice ¶
type TL_inputMessagesFilterVoice struct { }
func (TL_inputMessagesFilterVoice) Encode ¶
func (e TL_inputMessagesFilterVoice) Encode() []byte
Encoding TL_inputMessagesFilterVoice
type TL_inputNotifyAll ¶
type TL_inputNotifyAll struct { }
func (TL_inputNotifyAll) Encode ¶
func (e TL_inputNotifyAll) Encode() []byte
Encoding TL_inputNotifyAll
type TL_inputNotifyChats ¶
type TL_inputNotifyChats struct { }
func (TL_inputNotifyChats) Encode ¶
func (e TL_inputNotifyChats) Encode() []byte
Encoding TL_inputNotifyChats
type TL_inputNotifyPeer ¶
type TL_inputNotifyPeer struct {
Peer TL // peer:InputPeer
}
func (TL_inputNotifyPeer) Encode ¶
func (e TL_inputNotifyPeer) Encode() []byte
Encoding TL_inputNotifyPeer
type TL_inputNotifyUsers ¶
type TL_inputNotifyUsers struct { }
func (TL_inputNotifyUsers) Encode ¶
func (e TL_inputNotifyUsers) Encode() []byte
Encoding TL_inputNotifyUsers
type TL_inputPaymentCredentials ¶
type TL_inputPaymentCredentials struct { Flags int32 Save bool // save:flags.0?true Data TL // data:DataJSON }
func (TL_inputPaymentCredentials) Encode ¶
func (e TL_inputPaymentCredentials) Encode() []byte
Encoding TL_inputPaymentCredentials
type TL_inputPaymentCredentialsSaved ¶
type TL_inputPaymentCredentialsSaved struct { Id string // id:string Tmp_password []byte // tmp_password:bytes }
func (TL_inputPaymentCredentialsSaved) Encode ¶
func (e TL_inputPaymentCredentialsSaved) Encode() []byte
Encoding TL_inputPaymentCredentialsSaved
type TL_inputPeerChannel ¶
type TL_inputPeerChannel struct { Channel_id int32 // channel_id:int Access_hash int64 // access_hash:long }
func (TL_inputPeerChannel) Encode ¶
func (e TL_inputPeerChannel) Encode() []byte
Encoding TL_inputPeerChannel
type TL_inputPeerChat ¶
type TL_inputPeerChat struct {
Chat_id int32 // chat_id:int
}
func (TL_inputPeerChat) Encode ¶
func (e TL_inputPeerChat) Encode() []byte
Encoding TL_inputPeerChat
type TL_inputPeerEmpty ¶
type TL_inputPeerEmpty struct { }
func (TL_inputPeerEmpty) Encode ¶
func (e TL_inputPeerEmpty) Encode() []byte
Encoding TL_inputPeerEmpty
type TL_inputPeerNotifyEventsAll ¶
type TL_inputPeerNotifyEventsAll struct { }
func (TL_inputPeerNotifyEventsAll) Encode ¶
func (e TL_inputPeerNotifyEventsAll) Encode() []byte
Encoding TL_inputPeerNotifyEventsAll
type TL_inputPeerNotifyEventsEmpty ¶
type TL_inputPeerNotifyEventsEmpty struct { }
func (TL_inputPeerNotifyEventsEmpty) Encode ¶
func (e TL_inputPeerNotifyEventsEmpty) Encode() []byte
Encoding TL_inputPeerNotifyEventsEmpty
type TL_inputPeerNotifySettings ¶
type TL_inputPeerNotifySettings struct { Flags int32 Show_previews bool // show_previews:flags.0?true Silent bool // silent:flags.1?true Mute_until int32 // mute_until:int Sound string // sound:string }
func (TL_inputPeerNotifySettings) Encode ¶
func (e TL_inputPeerNotifySettings) Encode() []byte
Encoding TL_inputPeerNotifySettings
type TL_inputPeerSelf ¶
type TL_inputPeerSelf struct { }
func (TL_inputPeerSelf) Encode ¶
func (e TL_inputPeerSelf) Encode() []byte
Encoding TL_inputPeerSelf
type TL_inputPeerUser ¶
func (TL_inputPeerUser) Encode ¶
func (e TL_inputPeerUser) Encode() []byte
Encoding TL_inputPeerUser
type TL_inputPhoneCall ¶
func (TL_inputPhoneCall) Encode ¶
func (e TL_inputPhoneCall) Encode() []byte
Encoding TL_inputPhoneCall
type TL_inputPhoneContact ¶
type TL_inputPhoneContact struct { Client_id int64 // client_id:long Phone string // phone:string First_name string // first_name:string Last_name string // last_name:string }
func (TL_inputPhoneContact) Encode ¶
func (e TL_inputPhoneContact) Encode() []byte
Encoding TL_inputPhoneContact
type TL_inputPhoto ¶
type TL_inputPhotoEmpty ¶
type TL_inputPhotoEmpty struct { }
func (TL_inputPhotoEmpty) Encode ¶
func (e TL_inputPhotoEmpty) Encode() []byte
Encoding TL_inputPhotoEmpty
type TL_inputPrivacyKeyChatInvite ¶
type TL_inputPrivacyKeyChatInvite struct { }
func (TL_inputPrivacyKeyChatInvite) Encode ¶
func (e TL_inputPrivacyKeyChatInvite) Encode() []byte
Encoding TL_inputPrivacyKeyChatInvite
type TL_inputPrivacyKeyPhoneCall ¶
type TL_inputPrivacyKeyPhoneCall struct { }
func (TL_inputPrivacyKeyPhoneCall) Encode ¶
func (e TL_inputPrivacyKeyPhoneCall) Encode() []byte
Encoding TL_inputPrivacyKeyPhoneCall
type TL_inputPrivacyKeyStatusTimestamp ¶
type TL_inputPrivacyKeyStatusTimestamp struct { }
func (TL_inputPrivacyKeyStatusTimestamp) Encode ¶
func (e TL_inputPrivacyKeyStatusTimestamp) Encode() []byte
Encoding TL_inputPrivacyKeyStatusTimestamp
type TL_inputPrivacyValueAllowAll ¶
type TL_inputPrivacyValueAllowAll struct { }
func (TL_inputPrivacyValueAllowAll) Encode ¶
func (e TL_inputPrivacyValueAllowAll) Encode() []byte
Encoding TL_inputPrivacyValueAllowAll
type TL_inputPrivacyValueAllowContacts ¶
type TL_inputPrivacyValueAllowContacts struct { }
func (TL_inputPrivacyValueAllowContacts) Encode ¶
func (e TL_inputPrivacyValueAllowContacts) Encode() []byte
Encoding TL_inputPrivacyValueAllowContacts
type TL_inputPrivacyValueAllowUsers ¶
type TL_inputPrivacyValueAllowUsers struct {
Users []TL // users:Vector<InputUser>
}
func (TL_inputPrivacyValueAllowUsers) Encode ¶
func (e TL_inputPrivacyValueAllowUsers) Encode() []byte
Encoding TL_inputPrivacyValueAllowUsers
type TL_inputPrivacyValueDisallowAll ¶
type TL_inputPrivacyValueDisallowAll struct { }
func (TL_inputPrivacyValueDisallowAll) Encode ¶
func (e TL_inputPrivacyValueDisallowAll) Encode() []byte
Encoding TL_inputPrivacyValueDisallowAll
type TL_inputPrivacyValueDisallowContacts ¶
type TL_inputPrivacyValueDisallowContacts struct { }
func (TL_inputPrivacyValueDisallowContacts) Encode ¶
func (e TL_inputPrivacyValueDisallowContacts) Encode() []byte
Encoding TL_inputPrivacyValueDisallowContacts
type TL_inputPrivacyValueDisallowUsers ¶
type TL_inputPrivacyValueDisallowUsers struct {
Users []TL // users:Vector<InputUser>
}
func (TL_inputPrivacyValueDisallowUsers) Encode ¶
func (e TL_inputPrivacyValueDisallowUsers) Encode() []byte
Encoding TL_inputPrivacyValueDisallowUsers
type TL_inputReportReasonOther ¶
type TL_inputReportReasonOther struct {
Text string // text:string
}
func (TL_inputReportReasonOther) Encode ¶
func (e TL_inputReportReasonOther) Encode() []byte
Encoding TL_inputReportReasonOther
type TL_inputReportReasonPornography ¶
type TL_inputReportReasonPornography struct { }
func (TL_inputReportReasonPornography) Encode ¶
func (e TL_inputReportReasonPornography) Encode() []byte
Encoding TL_inputReportReasonPornography
type TL_inputReportReasonSpam ¶
type TL_inputReportReasonSpam struct { }
func (TL_inputReportReasonSpam) Encode ¶
func (e TL_inputReportReasonSpam) Encode() []byte
Encoding TL_inputReportReasonSpam
type TL_inputReportReasonViolence ¶
type TL_inputReportReasonViolence struct { }
func (TL_inputReportReasonViolence) Encode ¶
func (e TL_inputReportReasonViolence) Encode() []byte
Encoding TL_inputReportReasonViolence
type TL_inputStickerSetEmpty ¶
type TL_inputStickerSetEmpty struct { }
func (TL_inputStickerSetEmpty) Encode ¶
func (e TL_inputStickerSetEmpty) Encode() []byte
Encoding TL_inputStickerSetEmpty
type TL_inputStickerSetID ¶
func (TL_inputStickerSetID) Encode ¶
func (e TL_inputStickerSetID) Encode() []byte
Encoding TL_inputStickerSetID
type TL_inputStickerSetItem ¶
type TL_inputStickerSetItem struct { Flags int32 Document TL // document:InputDocument Emoji string // emoji:string Mask_coords TL // mask_coords:flags.0?MaskCoords }
func (TL_inputStickerSetItem) Encode ¶
func (e TL_inputStickerSetItem) Encode() []byte
Encoding TL_inputStickerSetItem
type TL_inputStickerSetShortName ¶
type TL_inputStickerSetShortName struct {
Short_name string // short_name:string
}
func (TL_inputStickerSetShortName) Encode ¶
func (e TL_inputStickerSetShortName) Encode() []byte
Encoding TL_inputStickerSetShortName
type TL_inputStickeredMediaDocument ¶
type TL_inputStickeredMediaDocument struct {
Id TL // id:InputDocument
}
func (TL_inputStickeredMediaDocument) Encode ¶
func (e TL_inputStickeredMediaDocument) Encode() []byte
Encoding TL_inputStickeredMediaDocument
type TL_inputStickeredMediaPhoto ¶
type TL_inputStickeredMediaPhoto struct {
Id TL // id:InputPhoto
}
func (TL_inputStickeredMediaPhoto) Encode ¶
func (e TL_inputStickeredMediaPhoto) Encode() []byte
Encoding TL_inputStickeredMediaPhoto
type TL_inputUser ¶
type TL_inputUserEmpty ¶
type TL_inputUserEmpty struct { }
func (TL_inputUserEmpty) Encode ¶
func (e TL_inputUserEmpty) Encode() []byte
Encoding TL_inputUserEmpty
type TL_inputUserSelf ¶
type TL_inputUserSelf struct { }
func (TL_inputUserSelf) Encode ¶
func (e TL_inputUserSelf) Encode() []byte
Encoding TL_inputUserSelf
type TL_inputWebDocument ¶
type TL_inputWebDocument struct { Url string // url:string Size int32 // size:int Mime_type string // mime_type:string Attributes []TL // attributes:Vector<DocumentAttribute> }
func (TL_inputWebDocument) Encode ¶
func (e TL_inputWebDocument) Encode() []byte
Encoding TL_inputWebDocument
type TL_inputWebFileLocation ¶
type TL_inputWebFileLocation struct { Url string // url:string Access_hash int64 // access_hash:long }
func (TL_inputWebFileLocation) Encode ¶
func (e TL_inputWebFileLocation) Encode() []byte
Encoding TL_inputWebFileLocation
type TL_invoice ¶
type TL_invoice struct { Flags int32 Test bool // test:flags.0?true Name_requested bool // name_requested:flags.1?true Phone_requested bool // phone_requested:flags.2?true Email_requested bool // email_requested:flags.3?true Shipping_address_requested bool // shipping_address_requested:flags.4?true Flexible bool // flexible:flags.5?true Currency string // currency:string Prices []TL // prices:Vector<LabeledPrice> }
type TL_invokeAfterMsg ¶
func (TL_invokeAfterMsg) Encode ¶
func (e TL_invokeAfterMsg) Encode() []byte
Encoding TL_invokeAfterMsg
type TL_invokeAfterMsgs ¶
func (TL_invokeAfterMsgs) Encode ¶
func (e TL_invokeAfterMsgs) Encode() []byte
Encoding TL_invokeAfterMsgs
type TL_invokeWithLayer ¶
func (TL_invokeWithLayer) Encode ¶
func (e TL_invokeWithLayer) Encode() []byte
Encoding TL_invokeWithLayer
type TL_invokeWithoutUpdates ¶
type TL_invokeWithoutUpdates struct {
Query TL // query:!X
}
func (TL_invokeWithoutUpdates) Encode ¶
func (e TL_invokeWithoutUpdates) Encode() []byte
Encoding TL_invokeWithoutUpdates
type TL_keyboardButton ¶
type TL_keyboardButton struct {
Text string // text:string
}
func (TL_keyboardButton) Encode ¶
func (e TL_keyboardButton) Encode() []byte
Encoding TL_keyboardButton
type TL_keyboardButtonBuy ¶
type TL_keyboardButtonBuy struct {
Text string // text:string
}
func (TL_keyboardButtonBuy) Encode ¶
func (e TL_keyboardButtonBuy) Encode() []byte
Encoding TL_keyboardButtonBuy
type TL_keyboardButtonCallback ¶
func (TL_keyboardButtonCallback) Encode ¶
func (e TL_keyboardButtonCallback) Encode() []byte
Encoding TL_keyboardButtonCallback
type TL_keyboardButtonGame ¶
type TL_keyboardButtonGame struct {
Text string // text:string
}
func (TL_keyboardButtonGame) Encode ¶
func (e TL_keyboardButtonGame) Encode() []byte
Encoding TL_keyboardButtonGame
type TL_keyboardButtonRequestGeoLocation ¶
type TL_keyboardButtonRequestGeoLocation struct {
Text string // text:string
}
func (TL_keyboardButtonRequestGeoLocation) Encode ¶
func (e TL_keyboardButtonRequestGeoLocation) Encode() []byte
Encoding TL_keyboardButtonRequestGeoLocation
type TL_keyboardButtonRequestPhone ¶
type TL_keyboardButtonRequestPhone struct {
Text string // text:string
}
func (TL_keyboardButtonRequestPhone) Encode ¶
func (e TL_keyboardButtonRequestPhone) Encode() []byte
Encoding TL_keyboardButtonRequestPhone
type TL_keyboardButtonRow ¶
type TL_keyboardButtonRow struct {
Buttons []TL // buttons:Vector<KeyboardButton>
}
func (TL_keyboardButtonRow) Encode ¶
func (e TL_keyboardButtonRow) Encode() []byte
Encoding TL_keyboardButtonRow
type TL_keyboardButtonSwitchInline ¶
type TL_keyboardButtonSwitchInline struct { Flags int32 Same_peer bool // same_peer:flags.0?true Text string // text:string Query string // query:string }
func (TL_keyboardButtonSwitchInline) Encode ¶
func (e TL_keyboardButtonSwitchInline) Encode() []byte
Encoding TL_keyboardButtonSwitchInline
type TL_keyboardButtonUrl ¶
func (TL_keyboardButtonUrl) Encode ¶
func (e TL_keyboardButtonUrl) Encode() []byte
Encoding TL_keyboardButtonUrl
type TL_labeledPrice ¶
type TL_langPackDifference ¶
type TL_langPackDifference struct { Lang_code string // lang_code:string From_version int32 // from_version:int Version int32 // version:int Strings []TL // strings:Vector<LangPackString> }
func (TL_langPackDifference) Encode ¶
func (e TL_langPackDifference) Encode() []byte
Encoding TL_langPackDifference
type TL_langPackLanguage ¶
type TL_langPackLanguage struct { Name string // name:string Native_name string // native_name:string Lang_code string // lang_code:string }
func (TL_langPackLanguage) Encode ¶
func (e TL_langPackLanguage) Encode() []byte
Encoding TL_langPackLanguage
type TL_langPackString ¶
func (TL_langPackString) Encode ¶
func (e TL_langPackString) Encode() []byte
Encoding TL_langPackString
type TL_langPackStringDeleted ¶
type TL_langPackStringDeleted struct {
Key string // key:string
}
func (TL_langPackStringDeleted) Encode ¶
func (e TL_langPackStringDeleted) Encode() []byte
Encoding TL_langPackStringDeleted
type TL_langPackStringPluralized ¶
type TL_langPackStringPluralized struct { Flags int32 Key string // key:string Zero_value string // zero_value:flags.0?string One_value string // one_value:flags.1?string Two_value string // two_value:flags.2?string Few_value string // few_value:flags.3?string Many_value string // many_value:flags.4?string Other_value string // other_value:string }
func (TL_langPackStringPluralized) Encode ¶
func (e TL_langPackStringPluralized) Encode() []byte
Encoding TL_langPackStringPluralized
type TL_langpack_getDifference ¶
type TL_langpack_getDifference struct {
From_version int32 // from_version:int
}
func (TL_langpack_getDifference) Encode ¶
func (e TL_langpack_getDifference) Encode() []byte
Encoding TL_langpack_getDifference
type TL_langpack_getLangPack ¶
type TL_langpack_getLangPack struct {
Lang_code string // lang_code:string
}
func (TL_langpack_getLangPack) Encode ¶
func (e TL_langpack_getLangPack) Encode() []byte
Encoding TL_langpack_getLangPack
type TL_langpack_getLanguages ¶
type TL_langpack_getLanguages struct { }
func (TL_langpack_getLanguages) Encode ¶
func (e TL_langpack_getLanguages) Encode() []byte
Encoding TL_langpack_getLanguages
type TL_langpack_getStrings ¶
type TL_langpack_getStrings struct { Lang_code string // lang_code:string Keys []string // keys:Vector<string> }
func (TL_langpack_getStrings) Encode ¶
func (e TL_langpack_getStrings) Encode() []byte
Encoding TL_langpack_getStrings
type TL_maskCoords ¶
type TL_message ¶
type TL_message struct { Flags int32 Out bool // out:flags.1?true Mentioned bool // mentioned:flags.4?true Media_unread bool // media_unread:flags.5?true Silent bool // silent:flags.13?true Post bool // post:flags.14?true Id int32 // id:int From_id int32 // from_id:flags.8?int To_id TL // to_id:Peer Fwd_from TL // fwd_from:flags.2?MessageFwdHeader Via_bot_id int32 // via_bot_id:flags.11?int Reply_to_msg_id int32 // reply_to_msg_id:flags.3?int Date int32 // date:int Message string // message:string Media TL // media:flags.9?MessageMedia Reply_markup TL // reply_markup:flags.6?ReplyMarkup Entities []TL // entities:flags.7?Vector<MessageEntity> Views int32 // views:flags.10?int Edit_date int32 // edit_date:flags.15?int }
type TL_messageActionChannelCreate ¶
type TL_messageActionChannelCreate struct {
Title string // title:string
}
func (TL_messageActionChannelCreate) Encode ¶
func (e TL_messageActionChannelCreate) Encode() []byte
Encoding TL_messageActionChannelCreate
type TL_messageActionChannelMigrateFrom ¶
type TL_messageActionChannelMigrateFrom struct { Title string // title:string Chat_id int32 // chat_id:int }
func (TL_messageActionChannelMigrateFrom) Encode ¶
func (e TL_messageActionChannelMigrateFrom) Encode() []byte
Encoding TL_messageActionChannelMigrateFrom
type TL_messageActionChatAddUser ¶
type TL_messageActionChatAddUser struct {
Users []int32 // users:Vector<int>
}
func (TL_messageActionChatAddUser) Encode ¶
func (e TL_messageActionChatAddUser) Encode() []byte
Encoding TL_messageActionChatAddUser
type TL_messageActionChatCreate ¶
type TL_messageActionChatCreate struct { Title string // title:string Users []int32 // users:Vector<int> }
func (TL_messageActionChatCreate) Encode ¶
func (e TL_messageActionChatCreate) Encode() []byte
Encoding TL_messageActionChatCreate
type TL_messageActionChatDeletePhoto ¶
type TL_messageActionChatDeletePhoto struct { }
func (TL_messageActionChatDeletePhoto) Encode ¶
func (e TL_messageActionChatDeletePhoto) Encode() []byte
Encoding TL_messageActionChatDeletePhoto
type TL_messageActionChatDeleteUser ¶
type TL_messageActionChatDeleteUser struct {
User_id int32 // user_id:int
}
func (TL_messageActionChatDeleteUser) Encode ¶
func (e TL_messageActionChatDeleteUser) Encode() []byte
Encoding TL_messageActionChatDeleteUser
type TL_messageActionChatEditPhoto ¶
type TL_messageActionChatEditPhoto struct {
Photo TL // photo:Photo
}
func (TL_messageActionChatEditPhoto) Encode ¶
func (e TL_messageActionChatEditPhoto) Encode() []byte
Encoding TL_messageActionChatEditPhoto
type TL_messageActionChatEditTitle ¶
type TL_messageActionChatEditTitle struct {
Title string // title:string
}
func (TL_messageActionChatEditTitle) Encode ¶
func (e TL_messageActionChatEditTitle) Encode() []byte
Encoding TL_messageActionChatEditTitle
type TL_messageActionChatJoinedByLink ¶
type TL_messageActionChatJoinedByLink struct {
Inviter_id int32 // inviter_id:int
}
func (TL_messageActionChatJoinedByLink) Encode ¶
func (e TL_messageActionChatJoinedByLink) Encode() []byte
Encoding TL_messageActionChatJoinedByLink
type TL_messageActionChatMigrateTo ¶
type TL_messageActionChatMigrateTo struct {
Channel_id int32 // channel_id:int
}
func (TL_messageActionChatMigrateTo) Encode ¶
func (e TL_messageActionChatMigrateTo) Encode() []byte
Encoding TL_messageActionChatMigrateTo
type TL_messageActionEmpty ¶
type TL_messageActionEmpty struct { }
func (TL_messageActionEmpty) Encode ¶
func (e TL_messageActionEmpty) Encode() []byte
Encoding TL_messageActionEmpty
type TL_messageActionGameScore ¶
func (TL_messageActionGameScore) Encode ¶
func (e TL_messageActionGameScore) Encode() []byte
Encoding TL_messageActionGameScore
type TL_messageActionHistoryClear ¶
type TL_messageActionHistoryClear struct { }
func (TL_messageActionHistoryClear) Encode ¶
func (e TL_messageActionHistoryClear) Encode() []byte
Encoding TL_messageActionHistoryClear
type TL_messageActionPaymentSent ¶
type TL_messageActionPaymentSent struct { Currency string // currency:string Total_amount int64 // total_amount:long }
func (TL_messageActionPaymentSent) Encode ¶
func (e TL_messageActionPaymentSent) Encode() []byte
Encoding TL_messageActionPaymentSent
type TL_messageActionPaymentSentMe ¶
type TL_messageActionPaymentSentMe struct { Flags int32 Currency string // currency:string Total_amount int64 // total_amount:long Payload []byte // payload:bytes Info TL // info:flags.0?PaymentRequestedInfo Shipping_option_id string // shipping_option_id:flags.1?string Charge TL // charge:PaymentCharge }
func (TL_messageActionPaymentSentMe) Encode ¶
func (e TL_messageActionPaymentSentMe) Encode() []byte
Encoding TL_messageActionPaymentSentMe
type TL_messageActionPhoneCall ¶
type TL_messageActionPhoneCall struct { Flags int32 Call_id int64 // call_id:long Reason TL // reason:flags.0?PhoneCallDiscardReason Duration int32 // duration:flags.1?int }
func (TL_messageActionPhoneCall) Encode ¶
func (e TL_messageActionPhoneCall) Encode() []byte
Encoding TL_messageActionPhoneCall
type TL_messageActionPinMessage ¶
type TL_messageActionPinMessage struct { }
func (TL_messageActionPinMessage) Encode ¶
func (e TL_messageActionPinMessage) Encode() []byte
Encoding TL_messageActionPinMessage
type TL_messageActionScreenshotTaken ¶
type TL_messageActionScreenshotTaken struct { }
func (TL_messageActionScreenshotTaken) Encode ¶
func (e TL_messageActionScreenshotTaken) Encode() []byte
Encoding TL_messageActionScreenshotTaken
type TL_messageEmpty ¶
type TL_messageEmpty struct {
Id int32 // id:int
}
type TL_messageEntityBold ¶
func (TL_messageEntityBold) Encode ¶
func (e TL_messageEntityBold) Encode() []byte
Encoding TL_messageEntityBold
type TL_messageEntityBotCommand ¶
func (TL_messageEntityBotCommand) Encode ¶
func (e TL_messageEntityBotCommand) Encode() []byte
Encoding TL_messageEntityBotCommand
type TL_messageEntityCode ¶
func (TL_messageEntityCode) Encode ¶
func (e TL_messageEntityCode) Encode() []byte
Encoding TL_messageEntityCode
type TL_messageEntityEmail ¶
func (TL_messageEntityEmail) Encode ¶
func (e TL_messageEntityEmail) Encode() []byte
Encoding TL_messageEntityEmail
type TL_messageEntityHashtag ¶
func (TL_messageEntityHashtag) Encode ¶
func (e TL_messageEntityHashtag) Encode() []byte
Encoding TL_messageEntityHashtag
type TL_messageEntityItalic ¶
func (TL_messageEntityItalic) Encode ¶
func (e TL_messageEntityItalic) Encode() []byte
Encoding TL_messageEntityItalic
type TL_messageEntityMention ¶
func (TL_messageEntityMention) Encode ¶
func (e TL_messageEntityMention) Encode() []byte
Encoding TL_messageEntityMention
type TL_messageEntityMentionName ¶
type TL_messageEntityMentionName struct { Offset int32 // offset:int Length int32 // length:int User_id int32 // user_id:int }
func (TL_messageEntityMentionName) Encode ¶
func (e TL_messageEntityMentionName) Encode() []byte
Encoding TL_messageEntityMentionName
type TL_messageEntityPre ¶
type TL_messageEntityPre struct { Offset int32 // offset:int Length int32 // length:int Language string // language:string }
func (TL_messageEntityPre) Encode ¶
func (e TL_messageEntityPre) Encode() []byte
Encoding TL_messageEntityPre
type TL_messageEntityTextUrl ¶
type TL_messageEntityTextUrl struct { Offset int32 // offset:int Length int32 // length:int Url string // url:string }
func (TL_messageEntityTextUrl) Encode ¶
func (e TL_messageEntityTextUrl) Encode() []byte
Encoding TL_messageEntityTextUrl
type TL_messageEntityUnknown ¶
func (TL_messageEntityUnknown) Encode ¶
func (e TL_messageEntityUnknown) Encode() []byte
Encoding TL_messageEntityUnknown
type TL_messageEntityUrl ¶
func (TL_messageEntityUrl) Encode ¶
func (e TL_messageEntityUrl) Encode() []byte
Encoding TL_messageEntityUrl
type TL_messageFwdHeader ¶
type TL_messageFwdHeader struct { Flags int32 From_id int32 // from_id:flags.0?int Date int32 // date:int Channel_id int32 // channel_id:flags.1?int Channel_post int32 // channel_post:flags.2?int }
func (TL_messageFwdHeader) Encode ¶
func (e TL_messageFwdHeader) Encode() []byte
Encoding TL_messageFwdHeader
type TL_messageMediaContact ¶
type TL_messageMediaContact struct { Phone_number string // phone_number:string First_name string // first_name:string Last_name string // last_name:string User_id int32 // user_id:int }
func (TL_messageMediaContact) Encode ¶
func (e TL_messageMediaContact) Encode() []byte
Encoding TL_messageMediaContact
type TL_messageMediaDocument ¶
type TL_messageMediaDocument struct { Flags int32 Document TL // document:flags.0?Document Caption string // caption:flags.1?string Ttl_seconds int32 // ttl_seconds:flags.2?int }
func (TL_messageMediaDocument) Encode ¶
func (e TL_messageMediaDocument) Encode() []byte
Encoding TL_messageMediaDocument
type TL_messageMediaEmpty ¶
type TL_messageMediaEmpty struct { }
func (TL_messageMediaEmpty) Encode ¶
func (e TL_messageMediaEmpty) Encode() []byte
Encoding TL_messageMediaEmpty
type TL_messageMediaGame ¶
type TL_messageMediaGame struct {
Game TL // game:Game
}
func (TL_messageMediaGame) Encode ¶
func (e TL_messageMediaGame) Encode() []byte
Encoding TL_messageMediaGame
type TL_messageMediaGeo ¶
type TL_messageMediaGeo struct {
Geo TL // geo:GeoPoint
}
func (TL_messageMediaGeo) Encode ¶
func (e TL_messageMediaGeo) Encode() []byte
Encoding TL_messageMediaGeo
type TL_messageMediaInvoice ¶
type TL_messageMediaInvoice struct { Flags int32 Shipping_address_requested bool // shipping_address_requested:flags.1?true Test bool // test:flags.3?true Title string // title:string Description string // description:string Photo TL // photo:flags.0?WebDocument Receipt_msg_id int32 // receipt_msg_id:flags.2?int Currency string // currency:string Total_amount int64 // total_amount:long Start_param string // start_param:string }
func (TL_messageMediaInvoice) Encode ¶
func (e TL_messageMediaInvoice) Encode() []byte
Encoding TL_messageMediaInvoice
type TL_messageMediaPhoto ¶
type TL_messageMediaPhoto struct { Flags int32 Photo TL // photo:flags.0?Photo Caption string // caption:flags.1?string Ttl_seconds int32 // ttl_seconds:flags.2?int }
func (TL_messageMediaPhoto) Encode ¶
func (e TL_messageMediaPhoto) Encode() []byte
Encoding TL_messageMediaPhoto
type TL_messageMediaUnsupported ¶
type TL_messageMediaUnsupported struct { }
func (TL_messageMediaUnsupported) Encode ¶
func (e TL_messageMediaUnsupported) Encode() []byte
Encoding TL_messageMediaUnsupported
type TL_messageMediaVenue ¶
type TL_messageMediaVenue struct { Geo TL // geo:GeoPoint Title string // title:string Address string // address:string Provider string // provider:string Venue_id string // venue_id:string }
func (TL_messageMediaVenue) Encode ¶
func (e TL_messageMediaVenue) Encode() []byte
Encoding TL_messageMediaVenue
type TL_messageMediaWebPage ¶
type TL_messageMediaWebPage struct {
Webpage TL // webpage:WebPage
}
func (TL_messageMediaWebPage) Encode ¶
func (e TL_messageMediaWebPage) Encode() []byte
Encoding TL_messageMediaWebPage
type TL_messageRange ¶
type TL_messageService ¶
type TL_messageService struct { Flags int32 Out bool // out:flags.1?true Mentioned bool // mentioned:flags.4?true Media_unread bool // media_unread:flags.5?true Silent bool // silent:flags.13?true Post bool // post:flags.14?true Id int32 // id:int From_id int32 // from_id:flags.8?int To_id TL // to_id:Peer Reply_to_msg_id int32 // reply_to_msg_id:flags.3?int Date int32 // date:int Action TL // action:MessageAction }
func (TL_messageService) Encode ¶
func (e TL_messageService) Encode() []byte
Encoding TL_messageService
type TL_messages_acceptEncryption ¶
type TL_messages_acceptEncryption struct { Peer TL // peer:InputEncryptedChat G_b []byte // g_b:bytes Key_fingerprint int64 // key_fingerprint:long }
func (TL_messages_acceptEncryption) Encode ¶
func (e TL_messages_acceptEncryption) Encode() []byte
Encoding TL_messages_acceptEncryption
type TL_messages_addChatUser ¶
type TL_messages_addChatUser struct { Chat_id int32 // chat_id:int User_id TL // user_id:InputUser Fwd_limit int32 // fwd_limit:int }
func (TL_messages_addChatUser) Encode ¶
func (e TL_messages_addChatUser) Encode() []byte
Encoding TL_messages_addChatUser
type TL_messages_affectedHistory ¶
type TL_messages_affectedHistory struct { Pts int32 // pts:int Pts_count int32 // pts_count:int Offset int32 // offset:int }
func (TL_messages_affectedHistory) Encode ¶
func (e TL_messages_affectedHistory) Encode() []byte
Encoding TL_messages_affectedHistory
type TL_messages_affectedMessages ¶
func (TL_messages_affectedMessages) Encode ¶
func (e TL_messages_affectedMessages) Encode() []byte
Encoding TL_messages_affectedMessages
type TL_messages_allStickers ¶
func (TL_messages_allStickers) Encode ¶
func (e TL_messages_allStickers) Encode() []byte
Encoding TL_messages_allStickers
type TL_messages_allStickersNotModified ¶
type TL_messages_allStickersNotModified struct { }
func (TL_messages_allStickersNotModified) Encode ¶
func (e TL_messages_allStickersNotModified) Encode() []byte
Encoding TL_messages_allStickersNotModified
type TL_messages_archivedStickers ¶
type TL_messages_archivedStickers struct { Count int32 // count:int Sets []TL // sets:Vector<StickerSetCovered> }
func (TL_messages_archivedStickers) Encode ¶
func (e TL_messages_archivedStickers) Encode() []byte
Encoding TL_messages_archivedStickers
type TL_messages_botCallbackAnswer ¶
type TL_messages_botCallbackAnswer struct { Flags int32 Alert bool // alert:flags.1?true Has_url bool // has_url:flags.3?true Message string // message:flags.0?string Url string // url:flags.2?string Cache_time int32 // cache_time:int }
func (TL_messages_botCallbackAnswer) Encode ¶
func (e TL_messages_botCallbackAnswer) Encode() []byte
Encoding TL_messages_botCallbackAnswer
type TL_messages_botResults ¶
type TL_messages_botResults struct { Flags int32 Gallery bool // gallery:flags.0?true Query_id int64 // query_id:long Next_offset string // next_offset:flags.1?string Switch_pm TL // switch_pm:flags.2?InlineBotSwitchPM Results []TL // results:Vector<BotInlineResult> Cache_time int32 // cache_time:int }
func (TL_messages_botResults) Encode ¶
func (e TL_messages_botResults) Encode() []byte
Encoding TL_messages_botResults
type TL_messages_channelMessages ¶
type TL_messages_channelMessages struct { Flags int32 Pts int32 // pts:int Count int32 // count:int Messages []TL // messages:Vector<Message> Chats []TL // chats:Vector<Chat> Users []TL // users:Vector<User> }
func (TL_messages_channelMessages) Encode ¶
func (e TL_messages_channelMessages) Encode() []byte
Encoding TL_messages_channelMessages
type TL_messages_chatFull ¶
type TL_messages_chatFull struct { Full_chat TL // full_chat:ChatFull Chats []TL // chats:Vector<Chat> Users []TL // users:Vector<User> }
func (TL_messages_chatFull) Encode ¶
func (e TL_messages_chatFull) Encode() []byte
Encoding TL_messages_chatFull
type TL_messages_chats ¶
type TL_messages_chats struct {
Chats []TL // chats:Vector<Chat>
}
func (TL_messages_chats) Encode ¶
func (e TL_messages_chats) Encode() []byte
Encoding TL_messages_chats
type TL_messages_chatsSlice ¶
func (TL_messages_chatsSlice) Encode ¶
func (e TL_messages_chatsSlice) Encode() []byte
Encoding TL_messages_chatsSlice
type TL_messages_checkChatInvite ¶
type TL_messages_checkChatInvite struct {
Hash string // hash:string
}
func (TL_messages_checkChatInvite) Encode ¶
func (e TL_messages_checkChatInvite) Encode() []byte
Encoding TL_messages_checkChatInvite
type TL_messages_clearRecentStickers ¶
func (TL_messages_clearRecentStickers) Encode ¶
func (e TL_messages_clearRecentStickers) Encode() []byte
Encoding TL_messages_clearRecentStickers
type TL_messages_createChat ¶
type TL_messages_createChat struct { Users []TL // users:Vector<InputUser> Title string // title:string }
func (TL_messages_createChat) Encode ¶
func (e TL_messages_createChat) Encode() []byte
Encoding TL_messages_createChat
type TL_messages_deleteChatUser ¶
type TL_messages_deleteChatUser struct { Chat_id int32 // chat_id:int User_id TL // user_id:InputUser }
func (TL_messages_deleteChatUser) Encode ¶
func (e TL_messages_deleteChatUser) Encode() []byte
Encoding TL_messages_deleteChatUser
type TL_messages_deleteHistory ¶
type TL_messages_deleteHistory struct { Flags int32 Just_clear bool // just_clear:flags.0?true Peer TL // peer:InputPeer Max_id int32 // max_id:int }
func (TL_messages_deleteHistory) Encode ¶
func (e TL_messages_deleteHistory) Encode() []byte
Encoding TL_messages_deleteHistory
type TL_messages_deleteMessages ¶
type TL_messages_deleteMessages struct { Flags int32 Revoke bool // revoke:flags.0?true Id []int32 // id:Vector<int> }
func (TL_messages_deleteMessages) Encode ¶
func (e TL_messages_deleteMessages) Encode() []byte
Encoding TL_messages_deleteMessages
type TL_messages_dhConfig ¶
type TL_messages_dhConfig struct { G int32 // g:int P []byte // p:bytes Version int32 // version:int Random []byte // random:bytes }
func (TL_messages_dhConfig) Encode ¶
func (e TL_messages_dhConfig) Encode() []byte
Encoding TL_messages_dhConfig
type TL_messages_dhConfigNotModified ¶
type TL_messages_dhConfigNotModified struct {
Random []byte // random:bytes
}
func (TL_messages_dhConfigNotModified) Encode ¶
func (e TL_messages_dhConfigNotModified) Encode() []byte
Encoding TL_messages_dhConfigNotModified
type TL_messages_dialogs ¶
type TL_messages_dialogs struct { Dialogs []TL // dialogs:Vector<Dialog> Messages []TL // messages:Vector<Message> Chats []TL // chats:Vector<Chat> Users []TL // users:Vector<User> }
func (TL_messages_dialogs) Encode ¶
func (e TL_messages_dialogs) Encode() []byte
Encoding TL_messages_dialogs
type TL_messages_dialogsSlice ¶
type TL_messages_dialogsSlice struct { Count int32 // count:int Dialogs []TL // dialogs:Vector<Dialog> Messages []TL // messages:Vector<Message> Chats []TL // chats:Vector<Chat> Users []TL // users:Vector<User> }
func (TL_messages_dialogsSlice) Encode ¶
func (e TL_messages_dialogsSlice) Encode() []byte
Encoding TL_messages_dialogsSlice
type TL_messages_discardEncryption ¶
type TL_messages_discardEncryption struct {
Chat_id int32 // chat_id:int
}
func (TL_messages_discardEncryption) Encode ¶
func (e TL_messages_discardEncryption) Encode() []byte
Encoding TL_messages_discardEncryption
type TL_messages_editChatAdmin ¶
type TL_messages_editChatAdmin struct { Chat_id int32 // chat_id:int User_id TL // user_id:InputUser Is_admin TL // is_admin:Bool }
func (TL_messages_editChatAdmin) Encode ¶
func (e TL_messages_editChatAdmin) Encode() []byte
Encoding TL_messages_editChatAdmin
type TL_messages_editChatPhoto ¶
type TL_messages_editChatPhoto struct { Chat_id int32 // chat_id:int Photo TL // photo:InputChatPhoto }
func (TL_messages_editChatPhoto) Encode ¶
func (e TL_messages_editChatPhoto) Encode() []byte
Encoding TL_messages_editChatPhoto
type TL_messages_editChatTitle ¶
func (TL_messages_editChatTitle) Encode ¶
func (e TL_messages_editChatTitle) Encode() []byte
Encoding TL_messages_editChatTitle
type TL_messages_editInlineBotMessage ¶
type TL_messages_editInlineBotMessage struct { Flags int32 No_webpage bool // no_webpage:flags.1?true Id TL // id:InputBotInlineMessageID Message string // message:flags.11?string Reply_markup TL // reply_markup:flags.2?ReplyMarkup Entities []TL // entities:flags.3?Vector<MessageEntity> }
func (TL_messages_editInlineBotMessage) Encode ¶
func (e TL_messages_editInlineBotMessage) Encode() []byte
Encoding TL_messages_editInlineBotMessage
type TL_messages_editMessage ¶
type TL_messages_editMessage struct { Flags int32 No_webpage bool // no_webpage:flags.1?true Peer TL // peer:InputPeer Id int32 // id:int Message string // message:flags.11?string Reply_markup TL // reply_markup:flags.2?ReplyMarkup Entities []TL // entities:flags.3?Vector<MessageEntity> }
func (TL_messages_editMessage) Encode ¶
func (e TL_messages_editMessage) Encode() []byte
Encoding TL_messages_editMessage
type TL_messages_exportChatInvite ¶
type TL_messages_exportChatInvite struct {
Chat_id int32 // chat_id:int
}
func (TL_messages_exportChatInvite) Encode ¶
func (e TL_messages_exportChatInvite) Encode() []byte
Encoding TL_messages_exportChatInvite
type TL_messages_faveSticker ¶
func (TL_messages_faveSticker) Encode ¶
func (e TL_messages_faveSticker) Encode() []byte
Encoding TL_messages_faveSticker
type TL_messages_favedStickers ¶
type TL_messages_favedStickers struct { Hash int32 // hash:int Packs []TL // packs:Vector<StickerPack> Stickers []TL // stickers:Vector<Document> }
func (TL_messages_favedStickers) Encode ¶
func (e TL_messages_favedStickers) Encode() []byte
Encoding TL_messages_favedStickers
type TL_messages_favedStickersNotModified ¶
type TL_messages_favedStickersNotModified struct { }
func (TL_messages_favedStickersNotModified) Encode ¶
func (e TL_messages_favedStickersNotModified) Encode() []byte
Encoding TL_messages_favedStickersNotModified
type TL_messages_featuredStickers ¶
type TL_messages_featuredStickers struct { Hash int32 // hash:int Sets []TL // sets:Vector<StickerSetCovered> Unread []int64 // unread:Vector<long> }
func (TL_messages_featuredStickers) Encode ¶
func (e TL_messages_featuredStickers) Encode() []byte
Encoding TL_messages_featuredStickers
type TL_messages_featuredStickersNotModified ¶
type TL_messages_featuredStickersNotModified struct { }
func (TL_messages_featuredStickersNotModified) Encode ¶
func (e TL_messages_featuredStickersNotModified) Encode() []byte
Encoding TL_messages_featuredStickersNotModified
type TL_messages_forwardMessage ¶
type TL_messages_forwardMessage struct { Peer TL // peer:InputPeer Id int32 // id:int Random_id int64 // random_id:long }
func (TL_messages_forwardMessage) Encode ¶
func (e TL_messages_forwardMessage) Encode() []byte
Encoding TL_messages_forwardMessage
type TL_messages_forwardMessages ¶
type TL_messages_forwardMessages struct { Flags int32 Silent bool // silent:flags.5?true Background bool // background:flags.6?true With_my_score bool // with_my_score:flags.8?true From_peer TL // from_peer:InputPeer Id []int32 // id:Vector<int> Random_id []int64 // random_id:Vector<long> To_peer TL // to_peer:InputPeer }
func (TL_messages_forwardMessages) Encode ¶
func (e TL_messages_forwardMessages) Encode() []byte
Encoding TL_messages_forwardMessages
type TL_messages_foundGifs ¶
type TL_messages_foundGifs struct { Next_offset int32 // next_offset:int Results []TL // results:Vector<FoundGif> }
func (TL_messages_foundGifs) Encode ¶
func (e TL_messages_foundGifs) Encode() []byte
Encoding TL_messages_foundGifs
type TL_messages_getAllChats ¶
type TL_messages_getAllChats struct {
Except_ids []int32 // except_ids:Vector<int>
}
func (TL_messages_getAllChats) Encode ¶
func (e TL_messages_getAllChats) Encode() []byte
Encoding TL_messages_getAllChats
type TL_messages_getAllDrafts ¶
type TL_messages_getAllDrafts struct { }
func (TL_messages_getAllDrafts) Encode ¶
func (e TL_messages_getAllDrafts) Encode() []byte
Encoding TL_messages_getAllDrafts
type TL_messages_getAllStickers ¶
type TL_messages_getAllStickers struct {
Hash int32 // hash:int
}
func (TL_messages_getAllStickers) Encode ¶
func (e TL_messages_getAllStickers) Encode() []byte
Encoding TL_messages_getAllStickers
type TL_messages_getArchivedStickers ¶
type TL_messages_getArchivedStickers struct { Flags int32 Masks bool // masks:flags.0?true Offset_id int64 // offset_id:long Limit int32 // limit:int }
func (TL_messages_getArchivedStickers) Encode ¶
func (e TL_messages_getArchivedStickers) Encode() []byte
Encoding TL_messages_getArchivedStickers
type TL_messages_getAttachedStickers ¶
type TL_messages_getAttachedStickers struct {
Media TL // media:InputStickeredMedia
}
func (TL_messages_getAttachedStickers) Encode ¶
func (e TL_messages_getAttachedStickers) Encode() []byte
Encoding TL_messages_getAttachedStickers
type TL_messages_getBotCallbackAnswer ¶
type TL_messages_getBotCallbackAnswer struct { Flags int32 Game bool // game:flags.1?true Peer TL // peer:InputPeer Msg_id int32 // msg_id:int Data []byte // data:flags.0?bytes }
func (TL_messages_getBotCallbackAnswer) Encode ¶
func (e TL_messages_getBotCallbackAnswer) Encode() []byte
Encoding TL_messages_getBotCallbackAnswer
type TL_messages_getChats ¶
type TL_messages_getChats struct {
Id []int32 // id:Vector<int>
}
func (TL_messages_getChats) Encode ¶
func (e TL_messages_getChats) Encode() []byte
Encoding TL_messages_getChats
type TL_messages_getCommonChats ¶
type TL_messages_getCommonChats struct { User_id TL // user_id:InputUser Max_id int32 // max_id:int Limit int32 // limit:int }
func (TL_messages_getCommonChats) Encode ¶
func (e TL_messages_getCommonChats) Encode() []byte
Encoding TL_messages_getCommonChats
type TL_messages_getDhConfig ¶
type TL_messages_getDhConfig struct { Version int32 // version:int Random_length int32 // random_length:int }
func (TL_messages_getDhConfig) Encode ¶
func (e TL_messages_getDhConfig) Encode() []byte
Encoding TL_messages_getDhConfig
type TL_messages_getDialogs ¶
type TL_messages_getDialogs struct { Flags int32 Exclude_pinned bool // exclude_pinned:flags.0?true Offset_date int32 // offset_date:int Offset_id int32 // offset_id:int Offset_peer TL // offset_peer:InputPeer Limit int32 // limit:int }
func (TL_messages_getDialogs) Encode ¶
func (e TL_messages_getDialogs) Encode() []byte
Encoding TL_messages_getDialogs
type TL_messages_getDocumentByHash ¶
type TL_messages_getDocumentByHash struct { Sha256 []byte // sha256:bytes Size int32 // size:int Mime_type string // mime_type:string }
func (TL_messages_getDocumentByHash) Encode ¶
func (e TL_messages_getDocumentByHash) Encode() []byte
Encoding TL_messages_getDocumentByHash
type TL_messages_getFavedStickers ¶
type TL_messages_getFavedStickers struct {
Hash int32 // hash:int
}
func (TL_messages_getFavedStickers) Encode ¶
func (e TL_messages_getFavedStickers) Encode() []byte
Encoding TL_messages_getFavedStickers
type TL_messages_getFeaturedStickers ¶
type TL_messages_getFeaturedStickers struct {
Hash int32 // hash:int
}
func (TL_messages_getFeaturedStickers) Encode ¶
func (e TL_messages_getFeaturedStickers) Encode() []byte
Encoding TL_messages_getFeaturedStickers
type TL_messages_getFullChat ¶
type TL_messages_getFullChat struct {
Chat_id int32 // chat_id:int
}
func (TL_messages_getFullChat) Encode ¶
func (e TL_messages_getFullChat) Encode() []byte
Encoding TL_messages_getFullChat
type TL_messages_getGameHighScores ¶
type TL_messages_getGameHighScores struct { Peer TL // peer:InputPeer Id int32 // id:int User_id TL // user_id:InputUser }
func (TL_messages_getGameHighScores) Encode ¶
func (e TL_messages_getGameHighScores) Encode() []byte
Encoding TL_messages_getGameHighScores
type TL_messages_getHistory ¶
type TL_messages_getHistory struct { Peer TL // peer:InputPeer Offset_id int32 // offset_id:int Offset_date int32 // offset_date:int Add_offset int32 // add_offset:int Limit int32 // limit:int Max_id int32 // max_id:int Min_id int32 // min_id:int }
func (TL_messages_getHistory) Encode ¶
func (e TL_messages_getHistory) Encode() []byte
Encoding TL_messages_getHistory
type TL_messages_getInlineBotResults ¶
type TL_messages_getInlineBotResults struct { Flags int32 Bot TL // bot:InputUser Peer TL // peer:InputPeer Geo_point TL // geo_point:flags.0?InputGeoPoint Query string // query:string Offset string // offset:string }
func (TL_messages_getInlineBotResults) Encode ¶
func (e TL_messages_getInlineBotResults) Encode() []byte
Encoding TL_messages_getInlineBotResults
type TL_messages_getInlineGameHighScores ¶
type TL_messages_getInlineGameHighScores struct { Id TL // id:InputBotInlineMessageID User_id TL // user_id:InputUser }
func (TL_messages_getInlineGameHighScores) Encode ¶
func (e TL_messages_getInlineGameHighScores) Encode() []byte
Encoding TL_messages_getInlineGameHighScores
type TL_messages_getMaskStickers ¶
type TL_messages_getMaskStickers struct {
Hash int32 // hash:int
}
func (TL_messages_getMaskStickers) Encode ¶
func (e TL_messages_getMaskStickers) Encode() []byte
Encoding TL_messages_getMaskStickers
type TL_messages_getMessageEditData ¶
func (TL_messages_getMessageEditData) Encode ¶
func (e TL_messages_getMessageEditData) Encode() []byte
Encoding TL_messages_getMessageEditData
type TL_messages_getMessages ¶
type TL_messages_getMessages struct {
Id []int32 // id:Vector<int>
}
func (TL_messages_getMessages) Encode ¶
func (e TL_messages_getMessages) Encode() []byte
Encoding TL_messages_getMessages
type TL_messages_getMessagesViews ¶
type TL_messages_getMessagesViews struct { Peer TL // peer:InputPeer Id []int32 // id:Vector<int> Increment TL // increment:Bool }
func (TL_messages_getMessagesViews) Encode ¶
func (e TL_messages_getMessagesViews) Encode() []byte
Encoding TL_messages_getMessagesViews
type TL_messages_getPeerDialogs ¶
type TL_messages_getPeerDialogs struct {
Peers []TL // peers:Vector<InputPeer>
}
func (TL_messages_getPeerDialogs) Encode ¶
func (e TL_messages_getPeerDialogs) Encode() []byte
Encoding TL_messages_getPeerDialogs
type TL_messages_getPeerSettings ¶
type TL_messages_getPeerSettings struct {
Peer TL // peer:InputPeer
}
func (TL_messages_getPeerSettings) Encode ¶
func (e TL_messages_getPeerSettings) Encode() []byte
Encoding TL_messages_getPeerSettings
type TL_messages_getPinnedDialogs ¶
type TL_messages_getPinnedDialogs struct { }
func (TL_messages_getPinnedDialogs) Encode ¶
func (e TL_messages_getPinnedDialogs) Encode() []byte
Encoding TL_messages_getPinnedDialogs
type TL_messages_getRecentStickers ¶
type TL_messages_getRecentStickers struct { Flags int32 Attached bool // attached:flags.0?true Hash int32 // hash:int }
func (TL_messages_getRecentStickers) Encode ¶
func (e TL_messages_getRecentStickers) Encode() []byte
Encoding TL_messages_getRecentStickers
type TL_messages_getSavedGifs ¶
type TL_messages_getSavedGifs struct {
Hash int32 // hash:int
}
func (TL_messages_getSavedGifs) Encode ¶
func (e TL_messages_getSavedGifs) Encode() []byte
Encoding TL_messages_getSavedGifs
type TL_messages_getStickerSet ¶
type TL_messages_getStickerSet struct {
Stickerset TL // stickerset:InputStickerSet
}
func (TL_messages_getStickerSet) Encode ¶
func (e TL_messages_getStickerSet) Encode() []byte
Encoding TL_messages_getStickerSet
type TL_messages_getUnreadMentions ¶
type TL_messages_getUnreadMentions struct { Peer TL // peer:InputPeer Offset_id int32 // offset_id:int Add_offset int32 // add_offset:int Limit int32 // limit:int Max_id int32 // max_id:int Min_id int32 // min_id:int }
func (TL_messages_getUnreadMentions) Encode ¶
func (e TL_messages_getUnreadMentions) Encode() []byte
Encoding TL_messages_getUnreadMentions
type TL_messages_getWebPage ¶
func (TL_messages_getWebPage) Encode ¶
func (e TL_messages_getWebPage) Encode() []byte
Encoding TL_messages_getWebPage
type TL_messages_getWebPagePreview ¶
type TL_messages_getWebPagePreview struct {
Message string // message:string
}
func (TL_messages_getWebPagePreview) Encode ¶
func (e TL_messages_getWebPagePreview) Encode() []byte
Encoding TL_messages_getWebPagePreview
type TL_messages_hideReportSpam ¶
type TL_messages_hideReportSpam struct {
Peer TL // peer:InputPeer
}
func (TL_messages_hideReportSpam) Encode ¶
func (e TL_messages_hideReportSpam) Encode() []byte
Encoding TL_messages_hideReportSpam
type TL_messages_highScores ¶
type TL_messages_highScores struct { Scores []TL // scores:Vector<HighScore> Users []TL // users:Vector<User> }
func (TL_messages_highScores) Encode ¶
func (e TL_messages_highScores) Encode() []byte
Encoding TL_messages_highScores
type TL_messages_importChatInvite ¶
type TL_messages_importChatInvite struct {
Hash string // hash:string
}
func (TL_messages_importChatInvite) Encode ¶
func (e TL_messages_importChatInvite) Encode() []byte
Encoding TL_messages_importChatInvite
type TL_messages_installStickerSet ¶
type TL_messages_installStickerSet struct { Stickerset TL // stickerset:InputStickerSet Archived TL // archived:Bool }
func (TL_messages_installStickerSet) Encode ¶
func (e TL_messages_installStickerSet) Encode() []byte
Encoding TL_messages_installStickerSet
type TL_messages_messageEditData ¶
func (TL_messages_messageEditData) Encode ¶
func (e TL_messages_messageEditData) Encode() []byte
Encoding TL_messages_messageEditData
type TL_messages_messages ¶
type TL_messages_messages struct { Messages []TL // messages:Vector<Message> Chats []TL // chats:Vector<Chat> Users []TL // users:Vector<User> }
func (TL_messages_messages) Encode ¶
func (e TL_messages_messages) Encode() []byte
Encoding TL_messages_messages
type TL_messages_messagesSlice ¶
type TL_messages_messagesSlice struct { Count int32 // count:int Messages []TL // messages:Vector<Message> Chats []TL // chats:Vector<Chat> Users []TL // users:Vector<User> }
func (TL_messages_messagesSlice) Encode ¶
func (e TL_messages_messagesSlice) Encode() []byte
Encoding TL_messages_messagesSlice
type TL_messages_migrateChat ¶
type TL_messages_migrateChat struct {
Chat_id int32 // chat_id:int
}
func (TL_messages_migrateChat) Encode ¶
func (e TL_messages_migrateChat) Encode() []byte
Encoding TL_messages_migrateChat
type TL_messages_peerDialogs ¶
type TL_messages_peerDialogs struct { Dialogs []TL // dialogs:Vector<Dialog> Messages []TL // messages:Vector<Message> Chats []TL // chats:Vector<Chat> Users []TL // users:Vector<User> State TL // state:updates.State }
func (TL_messages_peerDialogs) Encode ¶
func (e TL_messages_peerDialogs) Encode() []byte
Encoding TL_messages_peerDialogs
type TL_messages_readEncryptedHistory ¶
type TL_messages_readEncryptedHistory struct { Peer TL // peer:InputEncryptedChat Max_date int32 // max_date:int }
func (TL_messages_readEncryptedHistory) Encode ¶
func (e TL_messages_readEncryptedHistory) Encode() []byte
Encoding TL_messages_readEncryptedHistory
type TL_messages_readFeaturedStickers ¶
type TL_messages_readFeaturedStickers struct {
Id []int64 // id:Vector<long>
}
func (TL_messages_readFeaturedStickers) Encode ¶
func (e TL_messages_readFeaturedStickers) Encode() []byte
Encoding TL_messages_readFeaturedStickers
type TL_messages_readHistory ¶
func (TL_messages_readHistory) Encode ¶
func (e TL_messages_readHistory) Encode() []byte
Encoding TL_messages_readHistory
type TL_messages_readMessageContents ¶
type TL_messages_readMessageContents struct {
Id []int32 // id:Vector<int>
}
func (TL_messages_readMessageContents) Encode ¶
func (e TL_messages_readMessageContents) Encode() []byte
Encoding TL_messages_readMessageContents
type TL_messages_receivedMessages ¶
type TL_messages_receivedMessages struct {
Max_id int32 // max_id:int
}
func (TL_messages_receivedMessages) Encode ¶
func (e TL_messages_receivedMessages) Encode() []byte
Encoding TL_messages_receivedMessages
type TL_messages_receivedQueue ¶
type TL_messages_receivedQueue struct {
Max_qts int32 // max_qts:int
}
func (TL_messages_receivedQueue) Encode ¶
func (e TL_messages_receivedQueue) Encode() []byte
Encoding TL_messages_receivedQueue
type TL_messages_recentStickers ¶
type TL_messages_recentStickers struct { Hash int32 // hash:int Stickers []TL // stickers:Vector<Document> }
func (TL_messages_recentStickers) Encode ¶
func (e TL_messages_recentStickers) Encode() []byte
Encoding TL_messages_recentStickers
type TL_messages_recentStickersNotModified ¶
type TL_messages_recentStickersNotModified struct { }
func (TL_messages_recentStickersNotModified) Encode ¶
func (e TL_messages_recentStickersNotModified) Encode() []byte
Encoding TL_messages_recentStickersNotModified
type TL_messages_reorderPinnedDialogs ¶
type TL_messages_reorderPinnedDialogs struct { Flags int32 Force bool // force:flags.0?true Order []TL // order:Vector<InputPeer> }
func (TL_messages_reorderPinnedDialogs) Encode ¶
func (e TL_messages_reorderPinnedDialogs) Encode() []byte
Encoding TL_messages_reorderPinnedDialogs
type TL_messages_reorderStickerSets ¶
type TL_messages_reorderStickerSets struct { Flags int32 Masks bool // masks:flags.0?true Order []int64 // order:Vector<long> }
func (TL_messages_reorderStickerSets) Encode ¶
func (e TL_messages_reorderStickerSets) Encode() []byte
Encoding TL_messages_reorderStickerSets
type TL_messages_reportEncryptedSpam ¶
type TL_messages_reportEncryptedSpam struct {
Peer TL // peer:InputEncryptedChat
}
func (TL_messages_reportEncryptedSpam) Encode ¶
func (e TL_messages_reportEncryptedSpam) Encode() []byte
Encoding TL_messages_reportEncryptedSpam
type TL_messages_reportSpam ¶
type TL_messages_reportSpam struct {
Peer TL // peer:InputPeer
}
func (TL_messages_reportSpam) Encode ¶
func (e TL_messages_reportSpam) Encode() []byte
Encoding TL_messages_reportSpam
type TL_messages_requestEncryption ¶
type TL_messages_requestEncryption struct { User_id TL // user_id:InputUser Random_id int32 // random_id:int G_a []byte // g_a:bytes }
func (TL_messages_requestEncryption) Encode ¶
func (e TL_messages_requestEncryption) Encode() []byte
Encoding TL_messages_requestEncryption
type TL_messages_saveDraft ¶
type TL_messages_saveDraft struct { Flags int32 No_webpage bool // no_webpage:flags.1?true Reply_to_msg_id int32 // reply_to_msg_id:flags.0?int Peer TL // peer:InputPeer Message string // message:string Entities []TL // entities:flags.3?Vector<MessageEntity> }
func (TL_messages_saveDraft) Encode ¶
func (e TL_messages_saveDraft) Encode() []byte
Encoding TL_messages_saveDraft
type TL_messages_saveGif ¶
func (TL_messages_saveGif) Encode ¶
func (e TL_messages_saveGif) Encode() []byte
Encoding TL_messages_saveGif
type TL_messages_saveRecentSticker ¶
type TL_messages_saveRecentSticker struct { Flags int32 Attached bool // attached:flags.0?true Id TL // id:InputDocument Unsave TL // unsave:Bool }
func (TL_messages_saveRecentSticker) Encode ¶
func (e TL_messages_saveRecentSticker) Encode() []byte
Encoding TL_messages_saveRecentSticker
type TL_messages_savedGifs ¶
func (TL_messages_savedGifs) Encode ¶
func (e TL_messages_savedGifs) Encode() []byte
Encoding TL_messages_savedGifs
type TL_messages_savedGifsNotModified ¶
type TL_messages_savedGifsNotModified struct { }
func (TL_messages_savedGifsNotModified) Encode ¶
func (e TL_messages_savedGifsNotModified) Encode() []byte
Encoding TL_messages_savedGifsNotModified
type TL_messages_search ¶
type TL_messages_search struct { Flags int32 Peer TL // peer:InputPeer Q string // q:string From_id TL // from_id:flags.0?InputUser Filter TL // filter:MessagesFilter Min_date int32 // min_date:int Max_date int32 // max_date:int Offset_id int32 // offset_id:int Add_offset int32 // add_offset:int Limit int32 // limit:int Max_id int32 // max_id:int Min_id int32 // min_id:int }
func (TL_messages_search) Encode ¶
func (e TL_messages_search) Encode() []byte
Encoding TL_messages_search
type TL_messages_searchGifs ¶
func (TL_messages_searchGifs) Encode ¶
func (e TL_messages_searchGifs) Encode() []byte
Encoding TL_messages_searchGifs
type TL_messages_searchGlobal ¶
type TL_messages_searchGlobal struct { Q string // q:string Offset_date int32 // offset_date:int Offset_peer TL // offset_peer:InputPeer Offset_id int32 // offset_id:int Limit int32 // limit:int }
func (TL_messages_searchGlobal) Encode ¶
func (e TL_messages_searchGlobal) Encode() []byte
Encoding TL_messages_searchGlobal
type TL_messages_sendEncrypted ¶
type TL_messages_sendEncrypted struct { Peer TL // peer:InputEncryptedChat Random_id int64 // random_id:long Data []byte // data:bytes }
func (TL_messages_sendEncrypted) Encode ¶
func (e TL_messages_sendEncrypted) Encode() []byte
Encoding TL_messages_sendEncrypted
type TL_messages_sendEncryptedFile ¶
type TL_messages_sendEncryptedFile struct { Peer TL // peer:InputEncryptedChat Random_id int64 // random_id:long Data []byte // data:bytes File TL // file:InputEncryptedFile }
func (TL_messages_sendEncryptedFile) Encode ¶
func (e TL_messages_sendEncryptedFile) Encode() []byte
Encoding TL_messages_sendEncryptedFile
type TL_messages_sendEncryptedService ¶
type TL_messages_sendEncryptedService struct { Peer TL // peer:InputEncryptedChat Random_id int64 // random_id:long Data []byte // data:bytes }
func (TL_messages_sendEncryptedService) Encode ¶
func (e TL_messages_sendEncryptedService) Encode() []byte
Encoding TL_messages_sendEncryptedService
type TL_messages_sendInlineBotResult ¶
type TL_messages_sendInlineBotResult struct { Flags int32 Silent bool // silent:flags.5?true Background bool // background:flags.6?true Clear_draft bool // clear_draft:flags.7?true Peer TL // peer:InputPeer Reply_to_msg_id int32 // reply_to_msg_id:flags.0?int Random_id int64 // random_id:long Query_id int64 // query_id:long Id string // id:string }
func (TL_messages_sendInlineBotResult) Encode ¶
func (e TL_messages_sendInlineBotResult) Encode() []byte
Encoding TL_messages_sendInlineBotResult
type TL_messages_sendMedia ¶
type TL_messages_sendMedia struct { Flags int32 Silent bool // silent:flags.5?true Background bool // background:flags.6?true Clear_draft bool // clear_draft:flags.7?true Peer TL // peer:InputPeer Reply_to_msg_id int32 // reply_to_msg_id:flags.0?int Media TL // media:InputMedia Random_id int64 // random_id:long Reply_markup TL // reply_markup:flags.2?ReplyMarkup }
func (TL_messages_sendMedia) Encode ¶
func (e TL_messages_sendMedia) Encode() []byte
Encoding TL_messages_sendMedia
type TL_messages_sendMessage ¶
type TL_messages_sendMessage struct { Flags int32 No_webpage bool // no_webpage:flags.1?true Silent bool // silent:flags.5?true Background bool // background:flags.6?true Clear_draft bool // clear_draft:flags.7?true Peer TL // peer:InputPeer Reply_to_msg_id int32 // reply_to_msg_id:flags.0?int Message string // message:string Random_id int64 // random_id:long Reply_markup TL // reply_markup:flags.2?ReplyMarkup Entities []TL // entities:flags.3?Vector<MessageEntity> }
func (TL_messages_sendMessage) Encode ¶
func (e TL_messages_sendMessage) Encode() []byte
Encoding TL_messages_sendMessage
type TL_messages_sendScreenshotNotification ¶
type TL_messages_sendScreenshotNotification struct { Peer TL // peer:InputPeer Reply_to_msg_id int32 // reply_to_msg_id:int Random_id int64 // random_id:long }
func (TL_messages_sendScreenshotNotification) Encode ¶
func (e TL_messages_sendScreenshotNotification) Encode() []byte
Encoding TL_messages_sendScreenshotNotification
type TL_messages_sentEncryptedFile ¶
func (TL_messages_sentEncryptedFile) Encode ¶
func (e TL_messages_sentEncryptedFile) Encode() []byte
Encoding TL_messages_sentEncryptedFile
type TL_messages_sentEncryptedMessage ¶
type TL_messages_sentEncryptedMessage struct {
Date int32 // date:int
}
func (TL_messages_sentEncryptedMessage) Encode ¶
func (e TL_messages_sentEncryptedMessage) Encode() []byte
Encoding TL_messages_sentEncryptedMessage
type TL_messages_setBotCallbackAnswer ¶
type TL_messages_setBotCallbackAnswer struct { Flags int32 Alert bool // alert:flags.1?true Query_id int64 // query_id:long Message string // message:flags.0?string Url string // url:flags.2?string Cache_time int32 // cache_time:int }
func (TL_messages_setBotCallbackAnswer) Encode ¶
func (e TL_messages_setBotCallbackAnswer) Encode() []byte
Encoding TL_messages_setBotCallbackAnswer
type TL_messages_setBotPrecheckoutResults ¶
type TL_messages_setBotPrecheckoutResults struct { Flags int32 Success bool // success:flags.1?true Query_id int64 // query_id:long Error string // error:flags.0?string }
func (TL_messages_setBotPrecheckoutResults) Encode ¶
func (e TL_messages_setBotPrecheckoutResults) Encode() []byte
Encoding TL_messages_setBotPrecheckoutResults
type TL_messages_setBotShippingResults ¶
type TL_messages_setBotShippingResults struct { Flags int32 Query_id int64 // query_id:long Error string // error:flags.0?string Shipping_options []TL // shipping_options:flags.1?Vector<ShippingOption> }
func (TL_messages_setBotShippingResults) Encode ¶
func (e TL_messages_setBotShippingResults) Encode() []byte
Encoding TL_messages_setBotShippingResults
type TL_messages_setEncryptedTyping ¶
type TL_messages_setEncryptedTyping struct { Peer TL // peer:InputEncryptedChat Typing TL // typing:Bool }
func (TL_messages_setEncryptedTyping) Encode ¶
func (e TL_messages_setEncryptedTyping) Encode() []byte
Encoding TL_messages_setEncryptedTyping
type TL_messages_setGameScore ¶
type TL_messages_setGameScore struct { Flags int32 Edit_message bool // edit_message:flags.0?true Force bool // force:flags.1?true Peer TL // peer:InputPeer Id int32 // id:int User_id TL // user_id:InputUser Score int32 // score:int }
func (TL_messages_setGameScore) Encode ¶
func (e TL_messages_setGameScore) Encode() []byte
Encoding TL_messages_setGameScore
type TL_messages_setInlineBotResults ¶
type TL_messages_setInlineBotResults struct { Flags int32 Gallery bool // gallery:flags.0?true Private bool // private:flags.1?true Query_id int64 // query_id:long Results []TL // results:Vector<InputBotInlineResult> Cache_time int32 // cache_time:int Next_offset string // next_offset:flags.2?string Switch_pm TL // switch_pm:flags.3?InlineBotSwitchPM }
func (TL_messages_setInlineBotResults) Encode ¶
func (e TL_messages_setInlineBotResults) Encode() []byte
Encoding TL_messages_setInlineBotResults
type TL_messages_setInlineGameScore ¶
type TL_messages_setInlineGameScore struct { Flags int32 Edit_message bool // edit_message:flags.0?true Force bool // force:flags.1?true Id TL // id:InputBotInlineMessageID User_id TL // user_id:InputUser Score int32 // score:int }
func (TL_messages_setInlineGameScore) Encode ¶
func (e TL_messages_setInlineGameScore) Encode() []byte
Encoding TL_messages_setInlineGameScore
type TL_messages_setTyping ¶
type TL_messages_setTyping struct { Peer TL // peer:InputPeer Action TL // action:SendMessageAction }
func (TL_messages_setTyping) Encode ¶
func (e TL_messages_setTyping) Encode() []byte
Encoding TL_messages_setTyping
type TL_messages_startBot ¶
type TL_messages_startBot struct { Bot TL // bot:InputUser Peer TL // peer:InputPeer Random_id int64 // random_id:long Start_param string // start_param:string }
func (TL_messages_startBot) Encode ¶
func (e TL_messages_startBot) Encode() []byte
Encoding TL_messages_startBot
type TL_messages_stickerSet ¶
type TL_messages_stickerSet struct { Set TL // set:StickerSet Packs []TL // packs:Vector<StickerPack> Documents []TL // documents:Vector<Document> }
func (TL_messages_stickerSet) Encode ¶
func (e TL_messages_stickerSet) Encode() []byte
Encoding TL_messages_stickerSet
type TL_messages_stickerSetInstallResultArchive ¶
type TL_messages_stickerSetInstallResultArchive struct {
Sets []TL // sets:Vector<StickerSetCovered>
}
func (TL_messages_stickerSetInstallResultArchive) Encode ¶
func (e TL_messages_stickerSetInstallResultArchive) Encode() []byte
Encoding TL_messages_stickerSetInstallResultArchive
type TL_messages_stickerSetInstallResultSuccess ¶
type TL_messages_stickerSetInstallResultSuccess struct { }
func (TL_messages_stickerSetInstallResultSuccess) Encode ¶
func (e TL_messages_stickerSetInstallResultSuccess) Encode() []byte
Encoding TL_messages_stickerSetInstallResultSuccess
type TL_messages_stickers ¶
type TL_messages_stickers struct { Hash string // hash:string Stickers []TL // stickers:Vector<Document> }
func (TL_messages_stickers) Encode ¶
func (e TL_messages_stickers) Encode() []byte
Encoding TL_messages_stickers
type TL_messages_stickersNotModified ¶
type TL_messages_stickersNotModified struct { }
func (TL_messages_stickersNotModified) Encode ¶
func (e TL_messages_stickersNotModified) Encode() []byte
Encoding TL_messages_stickersNotModified
type TL_messages_toggleChatAdmins ¶
type TL_messages_toggleChatAdmins struct { Chat_id int32 // chat_id:int Enabled TL // enabled:Bool }
func (TL_messages_toggleChatAdmins) Encode ¶
func (e TL_messages_toggleChatAdmins) Encode() []byte
Encoding TL_messages_toggleChatAdmins
type TL_messages_toggleDialogPin ¶
type TL_messages_toggleDialogPin struct { Flags int32 Pinned bool // pinned:flags.0?true Peer TL // peer:InputPeer }
func (TL_messages_toggleDialogPin) Encode ¶
func (e TL_messages_toggleDialogPin) Encode() []byte
Encoding TL_messages_toggleDialogPin
type TL_messages_uninstallStickerSet ¶
type TL_messages_uninstallStickerSet struct {
Stickerset TL // stickerset:InputStickerSet
}
func (TL_messages_uninstallStickerSet) Encode ¶
func (e TL_messages_uninstallStickerSet) Encode() []byte
Encoding TL_messages_uninstallStickerSet
type TL_messages_uploadMedia ¶
func (TL_messages_uploadMedia) Encode ¶
func (e TL_messages_uploadMedia) Encode() []byte
Encoding TL_messages_uploadMedia
type TL_msg_container ¶
type TL_msg_container struct {
Items []TL_MT_message
}
func (TL_msg_container) Encode ¶
func (e TL_msg_container) Encode() []byte
TODO: Does only server send messages below?
type TL_msgs_ack ¶
type TL_msgs_ack struct {
MsgIds []int64
}
func (TL_msgs_ack) Encode ¶
func (e TL_msgs_ack) Encode() []byte
type TL_nearestDc ¶
type TL_new_session_created ¶
func (TL_new_session_created) Encode ¶
func (e TL_new_session_created) Encode() []byte
type TL_notifyAll ¶
type TL_notifyAll struct { }
type TL_notifyChats ¶
type TL_notifyChats struct { }
type TL_notifyPeer ¶
type TL_notifyPeer struct {
Peer TL // peer:Peer
}
type TL_notifyUsers ¶
type TL_notifyUsers struct { }
type TL_p_q_inner_data ¶
type TL_p_q_inner_data struct { Pq *big.Int P *big.Int Q *big.Int Nonce []byte Server_nonce []byte New_nonce []byte }
func (TL_p_q_inner_data) Encode ¶
func (e TL_p_q_inner_data) Encode() []byte
type TL_pageBlockAnchor ¶
type TL_pageBlockAnchor struct {
Name string // name:string
}
func (TL_pageBlockAnchor) Encode ¶
func (e TL_pageBlockAnchor) Encode() []byte
Encoding TL_pageBlockAnchor
type TL_pageBlockAudio ¶
func (TL_pageBlockAudio) Encode ¶
func (e TL_pageBlockAudio) Encode() []byte
Encoding TL_pageBlockAudio
type TL_pageBlockAuthorDate ¶
type TL_pageBlockAuthorDate struct { Author TL // author:RichText Published_date int32 // published_date:int }
func (TL_pageBlockAuthorDate) Encode ¶
func (e TL_pageBlockAuthorDate) Encode() []byte
Encoding TL_pageBlockAuthorDate
type TL_pageBlockBlockquote ¶
func (TL_pageBlockBlockquote) Encode ¶
func (e TL_pageBlockBlockquote) Encode() []byte
Encoding TL_pageBlockBlockquote
type TL_pageBlockChannel ¶
type TL_pageBlockChannel struct {
Channel TL // channel:Chat
}
func (TL_pageBlockChannel) Encode ¶
func (e TL_pageBlockChannel) Encode() []byte
Encoding TL_pageBlockChannel
type TL_pageBlockCollage ¶
type TL_pageBlockCollage struct { Items []TL // items:Vector<PageBlock> Caption TL // caption:RichText }
func (TL_pageBlockCollage) Encode ¶
func (e TL_pageBlockCollage) Encode() []byte
Encoding TL_pageBlockCollage
type TL_pageBlockCover ¶
type TL_pageBlockCover struct {
Cover TL // cover:PageBlock
}
func (TL_pageBlockCover) Encode ¶
func (e TL_pageBlockCover) Encode() []byte
Encoding TL_pageBlockCover
type TL_pageBlockDivider ¶
type TL_pageBlockDivider struct { }
func (TL_pageBlockDivider) Encode ¶
func (e TL_pageBlockDivider) Encode() []byte
Encoding TL_pageBlockDivider
type TL_pageBlockEmbed ¶
type TL_pageBlockEmbed struct { Flags int32 Full_width bool // full_width:flags.0?true Allow_scrolling bool // allow_scrolling:flags.3?true Url string // url:flags.1?string Html string // html:flags.2?string Poster_photo_id int64 // poster_photo_id:flags.4?long W int32 // w:int H int32 // h:int Caption TL // caption:RichText }
func (TL_pageBlockEmbed) Encode ¶
func (e TL_pageBlockEmbed) Encode() []byte
Encoding TL_pageBlockEmbed
type TL_pageBlockEmbedPost ¶
type TL_pageBlockEmbedPost struct { Url string // url:string Webpage_id int64 // webpage_id:long Author_photo_id int64 // author_photo_id:long Author string // author:string Date int32 // date:int Blocks []TL // blocks:Vector<PageBlock> Caption TL // caption:RichText }
func (TL_pageBlockEmbedPost) Encode ¶
func (e TL_pageBlockEmbedPost) Encode() []byte
Encoding TL_pageBlockEmbedPost
type TL_pageBlockFooter ¶
type TL_pageBlockFooter struct {
}func (TL_pageBlockFooter) Encode ¶
func (e TL_pageBlockFooter) Encode() []byte
Encoding TL_pageBlockFooter
type TL_pageBlockHeader ¶
type TL_pageBlockHeader struct {
Text TL // text:RichText
}
func (TL_pageBlockHeader) Encode ¶
func (e TL_pageBlockHeader) Encode() []byte
Encoding TL_pageBlockHeader
type TL_pageBlockList ¶
func (TL_pageBlockList) Encode ¶
func (e TL_pageBlockList) Encode() []byte
Encoding TL_pageBlockList
type TL_pageBlockParagraph ¶
type TL_pageBlockParagraph struct {
Text TL // text:RichText
}
func (TL_pageBlockParagraph) Encode ¶
func (e TL_pageBlockParagraph) Encode() []byte
Encoding TL_pageBlockParagraph
type TL_pageBlockPhoto ¶
func (TL_pageBlockPhoto) Encode ¶
func (e TL_pageBlockPhoto) Encode() []byte
Encoding TL_pageBlockPhoto
type TL_pageBlockPreformatted ¶
type TL_pageBlockPreformatted struct { Text TL // text:RichText Language string // language:string }
func (TL_pageBlockPreformatted) Encode ¶
func (e TL_pageBlockPreformatted) Encode() []byte
Encoding TL_pageBlockPreformatted
type TL_pageBlockPullquote ¶
func (TL_pageBlockPullquote) Encode ¶
func (e TL_pageBlockPullquote) Encode() []byte
Encoding TL_pageBlockPullquote
type TL_pageBlockSlideshow ¶
type TL_pageBlockSlideshow struct { Items []TL // items:Vector<PageBlock> Caption TL // caption:RichText }
func (TL_pageBlockSlideshow) Encode ¶
func (e TL_pageBlockSlideshow) Encode() []byte
Encoding TL_pageBlockSlideshow
type TL_pageBlockSubheader ¶
type TL_pageBlockSubheader struct {
Text TL // text:RichText
}
func (TL_pageBlockSubheader) Encode ¶
func (e TL_pageBlockSubheader) Encode() []byte
Encoding TL_pageBlockSubheader
type TL_pageBlockSubtitle ¶
type TL_pageBlockSubtitle struct {
Text TL // text:RichText
}
func (TL_pageBlockSubtitle) Encode ¶
func (e TL_pageBlockSubtitle) Encode() []byte
Encoding TL_pageBlockSubtitle
type TL_pageBlockTitle ¶
type TL_pageBlockTitle struct {
Text TL // text:RichText
}
func (TL_pageBlockTitle) Encode ¶
func (e TL_pageBlockTitle) Encode() []byte
Encoding TL_pageBlockTitle
type TL_pageBlockUnsupported ¶
type TL_pageBlockUnsupported struct { }
func (TL_pageBlockUnsupported) Encode ¶
func (e TL_pageBlockUnsupported) Encode() []byte
Encoding TL_pageBlockUnsupported
type TL_pageBlockVideo ¶
type TL_pageBlockVideo struct { Flags int32 Autoplay bool // autoplay:flags.0?true Loop bool // loop:flags.1?true Video_id int64 // video_id:long Caption TL // caption:RichText }
func (TL_pageBlockVideo) Encode ¶
func (e TL_pageBlockVideo) Encode() []byte
Encoding TL_pageBlockVideo
type TL_pageFull ¶
type TL_pagePart ¶
type TL_paymentCharge ¶
type TL_paymentCharge struct { Id string // id:string Provider_charge_id string // provider_charge_id:string }
func (TL_paymentCharge) Encode ¶
func (e TL_paymentCharge) Encode() []byte
Encoding TL_paymentCharge
type TL_paymentRequestedInfo ¶
type TL_paymentRequestedInfo struct { Flags int32 Name string // name:flags.0?string Phone string // phone:flags.1?string Email string // email:flags.2?string Shipping_address TL // shipping_address:flags.3?PostAddress }
func (TL_paymentRequestedInfo) Encode ¶
func (e TL_paymentRequestedInfo) Encode() []byte
Encoding TL_paymentRequestedInfo
type TL_paymentSavedCredentialsCard ¶
func (TL_paymentSavedCredentialsCard) Encode ¶
func (e TL_paymentSavedCredentialsCard) Encode() []byte
Encoding TL_paymentSavedCredentialsCard
type TL_payments_clearSavedInfo ¶
type TL_payments_clearSavedInfo struct { Flags int32 Credentials bool // credentials:flags.0?true Info bool // info:flags.1?true }
func (TL_payments_clearSavedInfo) Encode ¶
func (e TL_payments_clearSavedInfo) Encode() []byte
Encoding TL_payments_clearSavedInfo
type TL_payments_getPaymentForm ¶
type TL_payments_getPaymentForm struct {
Msg_id int32 // msg_id:int
}
func (TL_payments_getPaymentForm) Encode ¶
func (e TL_payments_getPaymentForm) Encode() []byte
Encoding TL_payments_getPaymentForm
type TL_payments_getPaymentReceipt ¶
type TL_payments_getPaymentReceipt struct {
Msg_id int32 // msg_id:int
}
func (TL_payments_getPaymentReceipt) Encode ¶
func (e TL_payments_getPaymentReceipt) Encode() []byte
Encoding TL_payments_getPaymentReceipt
type TL_payments_getSavedInfo ¶
type TL_payments_getSavedInfo struct { }
func (TL_payments_getSavedInfo) Encode ¶
func (e TL_payments_getSavedInfo) Encode() []byte
Encoding TL_payments_getSavedInfo
type TL_payments_paymentForm ¶
type TL_payments_paymentForm struct { Flags int32 Can_save_credentials bool // can_save_credentials:flags.2?true Password_missing bool // password_missing:flags.3?true Bot_id int32 // bot_id:int Invoice TL // invoice:Invoice Provider_id int32 // provider_id:int Url string // url:string Native_provider string // native_provider:flags.4?string Native_params TL // native_params:flags.4?DataJSON Saved_info TL // saved_info:flags.0?PaymentRequestedInfo Saved_credentials TL // saved_credentials:flags.1?PaymentSavedCredentials Users []TL // users:Vector<User> }
func (TL_payments_paymentForm) Encode ¶
func (e TL_payments_paymentForm) Encode() []byte
Encoding TL_payments_paymentForm
type TL_payments_paymentReceipt ¶
type TL_payments_paymentReceipt struct { Flags int32 Date int32 // date:int Bot_id int32 // bot_id:int Invoice TL // invoice:Invoice Provider_id int32 // provider_id:int Info TL // info:flags.0?PaymentRequestedInfo Shipping TL // shipping:flags.1?ShippingOption Currency string // currency:string Total_amount int64 // total_amount:long Credentials_title string // credentials_title:string Users []TL // users:Vector<User> }
func (TL_payments_paymentReceipt) Encode ¶
func (e TL_payments_paymentReceipt) Encode() []byte
Encoding TL_payments_paymentReceipt
type TL_payments_paymentResult ¶
type TL_payments_paymentResult struct {
Updates TL // updates:Updates
}
func (TL_payments_paymentResult) Encode ¶
func (e TL_payments_paymentResult) Encode() []byte
Encoding TL_payments_paymentResult
type TL_payments_paymentVerficationNeeded ¶
type TL_payments_paymentVerficationNeeded struct {
Url string // url:string
}
func (TL_payments_paymentVerficationNeeded) Encode ¶
func (e TL_payments_paymentVerficationNeeded) Encode() []byte
Encoding TL_payments_paymentVerficationNeeded
type TL_payments_savedInfo ¶
type TL_payments_savedInfo struct { Flags int32 Has_saved_credentials bool // has_saved_credentials:flags.1?true Saved_info TL // saved_info:flags.0?PaymentRequestedInfo }
func (TL_payments_savedInfo) Encode ¶
func (e TL_payments_savedInfo) Encode() []byte
Encoding TL_payments_savedInfo
type TL_payments_sendPaymentForm ¶
type TL_payments_sendPaymentForm struct { Flags int32 Msg_id int32 // msg_id:int Requested_info_id string // requested_info_id:flags.0?string Shipping_option_id string // shipping_option_id:flags.1?string Credentials TL // credentials:InputPaymentCredentials }
func (TL_payments_sendPaymentForm) Encode ¶
func (e TL_payments_sendPaymentForm) Encode() []byte
Encoding TL_payments_sendPaymentForm
type TL_payments_validateRequestedInfo ¶
type TL_payments_validateRequestedInfo struct { Flags int32 Save bool // save:flags.0?true Msg_id int32 // msg_id:int Info TL // info:PaymentRequestedInfo }
func (TL_payments_validateRequestedInfo) Encode ¶
func (e TL_payments_validateRequestedInfo) Encode() []byte
Encoding TL_payments_validateRequestedInfo
type TL_payments_validatedRequestedInfo ¶
type TL_payments_validatedRequestedInfo struct { Flags int32 Id string // id:flags.0?string Shipping_options []TL // shipping_options:flags.1?Vector<ShippingOption> }
func (TL_payments_validatedRequestedInfo) Encode ¶
func (e TL_payments_validatedRequestedInfo) Encode() []byte
Encoding TL_payments_validatedRequestedInfo
type TL_peerChannel ¶
type TL_peerChannel struct {
Channel_id int32 // channel_id:int
}
type TL_peerChat ¶
type TL_peerChat struct {
Chat_id int32 // chat_id:int
}
type TL_peerNotifyEventsAll ¶
type TL_peerNotifyEventsAll struct { }
func (TL_peerNotifyEventsAll) Encode ¶
func (e TL_peerNotifyEventsAll) Encode() []byte
Encoding TL_peerNotifyEventsAll
type TL_peerNotifyEventsEmpty ¶
type TL_peerNotifyEventsEmpty struct { }
func (TL_peerNotifyEventsEmpty) Encode ¶
func (e TL_peerNotifyEventsEmpty) Encode() []byte
Encoding TL_peerNotifyEventsEmpty
type TL_peerNotifySettings ¶
type TL_peerNotifySettings struct { Flags int32 Show_previews bool // show_previews:flags.0?true Silent bool // silent:flags.1?true Mute_until int32 // mute_until:int Sound string // sound:string }
func (TL_peerNotifySettings) Encode ¶
func (e TL_peerNotifySettings) Encode() []byte
Encoding TL_peerNotifySettings
type TL_peerNotifySettingsEmpty ¶
type TL_peerNotifySettingsEmpty struct { }
func (TL_peerNotifySettingsEmpty) Encode ¶
func (e TL_peerNotifySettingsEmpty) Encode() []byte
Encoding TL_peerNotifySettingsEmpty
type TL_peerSettings ¶
type TL_peerUser ¶
type TL_peerUser struct {
User_id int32 // user_id:int
}
type TL_phoneCall ¶
type TL_phoneCall struct { Id int64 // id:long Access_hash int64 // access_hash:long Date int32 // date:int Admin_id int32 // admin_id:int Participant_id int32 // participant_id:int G_a_or_b []byte // g_a_or_b:bytes Key_fingerprint int64 // key_fingerprint:long Protocol TL // protocol:PhoneCallProtocol Connection TL // connection:PhoneConnection Alternative_connections []TL // alternative_connections:Vector<PhoneConnection> Start_date int32 // start_date:int }
type TL_phoneCallAccepted ¶
type TL_phoneCallAccepted struct { Id int64 // id:long Access_hash int64 // access_hash:long Date int32 // date:int Admin_id int32 // admin_id:int Participant_id int32 // participant_id:int G_b []byte // g_b:bytes Protocol TL // protocol:PhoneCallProtocol }
func (TL_phoneCallAccepted) Encode ¶
func (e TL_phoneCallAccepted) Encode() []byte
Encoding TL_phoneCallAccepted
type TL_phoneCallDiscardReasonBusy ¶
type TL_phoneCallDiscardReasonBusy struct { }
func (TL_phoneCallDiscardReasonBusy) Encode ¶
func (e TL_phoneCallDiscardReasonBusy) Encode() []byte
Encoding TL_phoneCallDiscardReasonBusy
type TL_phoneCallDiscardReasonDisconnect ¶
type TL_phoneCallDiscardReasonDisconnect struct { }
func (TL_phoneCallDiscardReasonDisconnect) Encode ¶
func (e TL_phoneCallDiscardReasonDisconnect) Encode() []byte
Encoding TL_phoneCallDiscardReasonDisconnect
type TL_phoneCallDiscardReasonHangup ¶
type TL_phoneCallDiscardReasonHangup struct { }
func (TL_phoneCallDiscardReasonHangup) Encode ¶
func (e TL_phoneCallDiscardReasonHangup) Encode() []byte
Encoding TL_phoneCallDiscardReasonHangup
type TL_phoneCallDiscardReasonMissed ¶
type TL_phoneCallDiscardReasonMissed struct { }
func (TL_phoneCallDiscardReasonMissed) Encode ¶
func (e TL_phoneCallDiscardReasonMissed) Encode() []byte
Encoding TL_phoneCallDiscardReasonMissed
type TL_phoneCallDiscarded ¶
type TL_phoneCallDiscarded struct { Flags int32 Need_rating bool // need_rating:flags.2?true Need_debug bool // need_debug:flags.3?true Id int64 // id:long Reason TL // reason:flags.0?PhoneCallDiscardReason Duration int32 // duration:flags.1?int }
func (TL_phoneCallDiscarded) Encode ¶
func (e TL_phoneCallDiscarded) Encode() []byte
Encoding TL_phoneCallDiscarded
type TL_phoneCallEmpty ¶
type TL_phoneCallEmpty struct {
Id int64 // id:long
}
func (TL_phoneCallEmpty) Encode ¶
func (e TL_phoneCallEmpty) Encode() []byte
Encoding TL_phoneCallEmpty
type TL_phoneCallProtocol ¶
type TL_phoneCallProtocol struct { Flags int32 Udp_p2p bool // udp_p2p:flags.0?true Udp_reflector bool // udp_reflector:flags.1?true Min_layer int32 // min_layer:int Max_layer int32 // max_layer:int }
func (TL_phoneCallProtocol) Encode ¶
func (e TL_phoneCallProtocol) Encode() []byte
Encoding TL_phoneCallProtocol
type TL_phoneCallRequested ¶
type TL_phoneCallRequested struct { Id int64 // id:long Access_hash int64 // access_hash:long Date int32 // date:int Admin_id int32 // admin_id:int Participant_id int32 // participant_id:int G_a_hash []byte // g_a_hash:bytes Protocol TL // protocol:PhoneCallProtocol }
func (TL_phoneCallRequested) Encode ¶
func (e TL_phoneCallRequested) Encode() []byte
Encoding TL_phoneCallRequested
type TL_phoneCallWaiting ¶
type TL_phoneCallWaiting struct { Flags int32 Id int64 // id:long Access_hash int64 // access_hash:long Date int32 // date:int Admin_id int32 // admin_id:int Participant_id int32 // participant_id:int Protocol TL // protocol:PhoneCallProtocol Receive_date int32 // receive_date:flags.0?int }
func (TL_phoneCallWaiting) Encode ¶
func (e TL_phoneCallWaiting) Encode() []byte
Encoding TL_phoneCallWaiting
type TL_phoneConnection ¶
type TL_phoneConnection struct { Id int64 // id:long Ip string // ip:string Ipv6 string // ipv6:string Port int32 // port:int Peer_tag []byte // peer_tag:bytes }
func (TL_phoneConnection) Encode ¶
func (e TL_phoneConnection) Encode() []byte
Encoding TL_phoneConnection
type TL_phone_acceptCall ¶
type TL_phone_acceptCall struct { Peer TL // peer:InputPhoneCall G_b []byte // g_b:bytes Protocol TL // protocol:PhoneCallProtocol }
func (TL_phone_acceptCall) Encode ¶
func (e TL_phone_acceptCall) Encode() []byte
Encoding TL_phone_acceptCall
type TL_phone_confirmCall ¶
type TL_phone_confirmCall struct { Peer TL // peer:InputPhoneCall G_a []byte // g_a:bytes Key_fingerprint int64 // key_fingerprint:long Protocol TL // protocol:PhoneCallProtocol }
func (TL_phone_confirmCall) Encode ¶
func (e TL_phone_confirmCall) Encode() []byte
Encoding TL_phone_confirmCall
type TL_phone_discardCall ¶
type TL_phone_discardCall struct { Peer TL // peer:InputPhoneCall Duration int32 // duration:int Reason TL // reason:PhoneCallDiscardReason Connection_id int64 // connection_id:long }
func (TL_phone_discardCall) Encode ¶
func (e TL_phone_discardCall) Encode() []byte
Encoding TL_phone_discardCall
type TL_phone_getCallConfig ¶
type TL_phone_getCallConfig struct { }
func (TL_phone_getCallConfig) Encode ¶
func (e TL_phone_getCallConfig) Encode() []byte
Encoding TL_phone_getCallConfig
type TL_phone_phoneCall ¶
type TL_phone_phoneCall struct { Phone_call TL // phone_call:PhoneCall Users []TL // users:Vector<User> }
func (TL_phone_phoneCall) Encode ¶
func (e TL_phone_phoneCall) Encode() []byte
Encoding TL_phone_phoneCall
type TL_phone_receivedCall ¶
type TL_phone_receivedCall struct {
Peer TL // peer:InputPhoneCall
}
func (TL_phone_receivedCall) Encode ¶
func (e TL_phone_receivedCall) Encode() []byte
Encoding TL_phone_receivedCall
type TL_phone_requestCall ¶
type TL_phone_requestCall struct { User_id TL // user_id:InputUser Random_id int32 // random_id:int G_a_hash []byte // g_a_hash:bytes Protocol TL // protocol:PhoneCallProtocol }
func (TL_phone_requestCall) Encode ¶
func (e TL_phone_requestCall) Encode() []byte
Encoding TL_phone_requestCall
type TL_phone_saveCallDebug ¶
func (TL_phone_saveCallDebug) Encode ¶
func (e TL_phone_saveCallDebug) Encode() []byte
Encoding TL_phone_saveCallDebug
type TL_phone_setCallRating ¶
type TL_phone_setCallRating struct { Peer TL // peer:InputPhoneCall Rating int32 // rating:int Comment string // comment:string }
func (TL_phone_setCallRating) Encode ¶
func (e TL_phone_setCallRating) Encode() []byte
Encoding TL_phone_setCallRating
type TL_photo ¶
type TL_photoCachedSize ¶
type TL_photoCachedSize struct { Code_type string // type:string Location TL // location:FileLocation W int32 // w:int H int32 // h:int Bytes []byte // bytes:bytes }
func (TL_photoCachedSize) Encode ¶
func (e TL_photoCachedSize) Encode() []byte
Encoding TL_photoCachedSize
type TL_photoEmpty ¶
type TL_photoEmpty struct {
Id int64 // id:long
}
type TL_photoSize ¶
type TL_photoSizeEmpty ¶
type TL_photoSizeEmpty struct {
Code_type string // type:string
}
func (TL_photoSizeEmpty) Encode ¶
func (e TL_photoSizeEmpty) Encode() []byte
Encoding TL_photoSizeEmpty
type TL_photos_deletePhotos ¶
type TL_photos_deletePhotos struct {
Id []TL // id:Vector<InputPhoto>
}
func (TL_photos_deletePhotos) Encode ¶
func (e TL_photos_deletePhotos) Encode() []byte
Encoding TL_photos_deletePhotos
type TL_photos_getUserPhotos ¶
type TL_photos_getUserPhotos struct { User_id TL // user_id:InputUser Offset int32 // offset:int Max_id int64 // max_id:long Limit int32 // limit:int }
func (TL_photos_getUserPhotos) Encode ¶
func (e TL_photos_getUserPhotos) Encode() []byte
Encoding TL_photos_getUserPhotos
type TL_photos_photo ¶
type TL_photos_photos ¶
type TL_photos_photos struct { Photos []TL // photos:Vector<Photo> Users []TL // users:Vector<User> }
func (TL_photos_photos) Encode ¶
func (e TL_photos_photos) Encode() []byte
Encoding TL_photos_photos
type TL_photos_photosSlice ¶
type TL_photos_photosSlice struct { Count int32 // count:int Photos []TL // photos:Vector<Photo> Users []TL // users:Vector<User> }
func (TL_photos_photosSlice) Encode ¶
func (e TL_photos_photosSlice) Encode() []byte
Encoding TL_photos_photosSlice
type TL_photos_updateProfilePhoto ¶
type TL_photos_updateProfilePhoto struct {
Id TL // id:InputPhoto
}
func (TL_photos_updateProfilePhoto) Encode ¶
func (e TL_photos_updateProfilePhoto) Encode() []byte
Encoding TL_photos_updateProfilePhoto
type TL_photos_uploadProfilePhoto ¶
type TL_photos_uploadProfilePhoto struct {
File TL // file:InputFile
}
func (TL_photos_uploadProfilePhoto) Encode ¶
func (e TL_photos_uploadProfilePhoto) Encode() []byte
Encoding TL_photos_uploadProfilePhoto
type TL_popularContact ¶
type TL_popularContact struct { Client_id int64 // client_id:long Importers int32 // importers:int }
func (TL_popularContact) Encode ¶
func (e TL_popularContact) Encode() []byte
Encoding TL_popularContact
type TL_postAddress ¶
type TL_privacyKeyChatInvite ¶
type TL_privacyKeyChatInvite struct { }
func (TL_privacyKeyChatInvite) Encode ¶
func (e TL_privacyKeyChatInvite) Encode() []byte
Encoding TL_privacyKeyChatInvite
type TL_privacyKeyPhoneCall ¶
type TL_privacyKeyPhoneCall struct { }
func (TL_privacyKeyPhoneCall) Encode ¶
func (e TL_privacyKeyPhoneCall) Encode() []byte
Encoding TL_privacyKeyPhoneCall
type TL_privacyKeyStatusTimestamp ¶
type TL_privacyKeyStatusTimestamp struct { }
func (TL_privacyKeyStatusTimestamp) Encode ¶
func (e TL_privacyKeyStatusTimestamp) Encode() []byte
Encoding TL_privacyKeyStatusTimestamp
type TL_privacyValueAllowAll ¶
type TL_privacyValueAllowAll struct { }
func (TL_privacyValueAllowAll) Encode ¶
func (e TL_privacyValueAllowAll) Encode() []byte
Encoding TL_privacyValueAllowAll
type TL_privacyValueAllowContacts ¶
type TL_privacyValueAllowContacts struct { }
func (TL_privacyValueAllowContacts) Encode ¶
func (e TL_privacyValueAllowContacts) Encode() []byte
Encoding TL_privacyValueAllowContacts
type TL_privacyValueAllowUsers ¶
type TL_privacyValueAllowUsers struct {
Users []int32 // users:Vector<int>
}
func (TL_privacyValueAllowUsers) Encode ¶
func (e TL_privacyValueAllowUsers) Encode() []byte
Encoding TL_privacyValueAllowUsers
type TL_privacyValueDisallowAll ¶
type TL_privacyValueDisallowAll struct { }
func (TL_privacyValueDisallowAll) Encode ¶
func (e TL_privacyValueDisallowAll) Encode() []byte
Encoding TL_privacyValueDisallowAll
type TL_privacyValueDisallowContacts ¶
type TL_privacyValueDisallowContacts struct { }
func (TL_privacyValueDisallowContacts) Encode ¶
func (e TL_privacyValueDisallowContacts) Encode() []byte
Encoding TL_privacyValueDisallowContacts
type TL_privacyValueDisallowUsers ¶
type TL_privacyValueDisallowUsers struct {
Users []int32 // users:Vector<int>
}
func (TL_privacyValueDisallowUsers) Encode ¶
func (e TL_privacyValueDisallowUsers) Encode() []byte
Encoding TL_privacyValueDisallowUsers
type TL_receivedNotifyMessage ¶
func (TL_receivedNotifyMessage) Encode ¶
func (e TL_receivedNotifyMessage) Encode() []byte
Encoding TL_receivedNotifyMessage
type TL_replyInlineMarkup ¶
type TL_replyInlineMarkup struct {
Rows []TL // rows:Vector<KeyboardButtonRow>
}
func (TL_replyInlineMarkup) Encode ¶
func (e TL_replyInlineMarkup) Encode() []byte
Encoding TL_replyInlineMarkup
type TL_replyKeyboardForceReply ¶
type TL_replyKeyboardForceReply struct { Flags int32 Single_use bool // single_use:flags.1?true Selective bool // selective:flags.2?true }
func (TL_replyKeyboardForceReply) Encode ¶
func (e TL_replyKeyboardForceReply) Encode() []byte
Encoding TL_replyKeyboardForceReply
type TL_replyKeyboardHide ¶
func (TL_replyKeyboardHide) Encode ¶
func (e TL_replyKeyboardHide) Encode() []byte
Encoding TL_replyKeyboardHide
type TL_replyKeyboardMarkup ¶
type TL_replyKeyboardMarkup struct { Flags int32 Resize bool // resize:flags.0?true Single_use bool // single_use:flags.1?true Selective bool // selective:flags.2?true Rows []TL // rows:Vector<KeyboardButtonRow> }
func (TL_replyKeyboardMarkup) Encode ¶
func (e TL_replyKeyboardMarkup) Encode() []byte
Encoding TL_replyKeyboardMarkup
type TL_req_DH_params ¶
type TL_req_DH_params struct { Nonce []byte Server_nonce []byte P *big.Int Q *big.Int Fp uint64 Encdata []byte }
func (TL_req_DH_params) Encode ¶
func (e TL_req_DH_params) Encode() []byte
type TL_rpc_error ¶
func (TL_rpc_error) Encode ¶
func (e TL_rpc_error) Encode() []byte
type TL_rpc_result ¶
type TL_rpc_result struct { Req_msg_id int64 Obj interface{} }
func (TL_rpc_result) Encode ¶
func (e TL_rpc_result) Encode() []byte
type TL_sendMessageCancelAction ¶
type TL_sendMessageCancelAction struct { }
func (TL_sendMessageCancelAction) Encode ¶
func (e TL_sendMessageCancelAction) Encode() []byte
Encoding TL_sendMessageCancelAction
type TL_sendMessageChooseContactAction ¶
type TL_sendMessageChooseContactAction struct { }
func (TL_sendMessageChooseContactAction) Encode ¶
func (e TL_sendMessageChooseContactAction) Encode() []byte
Encoding TL_sendMessageChooseContactAction
type TL_sendMessageGamePlayAction ¶
type TL_sendMessageGamePlayAction struct { }
func (TL_sendMessageGamePlayAction) Encode ¶
func (e TL_sendMessageGamePlayAction) Encode() []byte
Encoding TL_sendMessageGamePlayAction
type TL_sendMessageGeoLocationAction ¶
type TL_sendMessageGeoLocationAction struct { }
func (TL_sendMessageGeoLocationAction) Encode ¶
func (e TL_sendMessageGeoLocationAction) Encode() []byte
Encoding TL_sendMessageGeoLocationAction
type TL_sendMessageRecordAudioAction ¶
type TL_sendMessageRecordAudioAction struct { }
func (TL_sendMessageRecordAudioAction) Encode ¶
func (e TL_sendMessageRecordAudioAction) Encode() []byte
Encoding TL_sendMessageRecordAudioAction
type TL_sendMessageRecordRoundAction ¶
type TL_sendMessageRecordRoundAction struct { }
func (TL_sendMessageRecordRoundAction) Encode ¶
func (e TL_sendMessageRecordRoundAction) Encode() []byte
Encoding TL_sendMessageRecordRoundAction
type TL_sendMessageRecordVideoAction ¶
type TL_sendMessageRecordVideoAction struct { }
func (TL_sendMessageRecordVideoAction) Encode ¶
func (e TL_sendMessageRecordVideoAction) Encode() []byte
Encoding TL_sendMessageRecordVideoAction
type TL_sendMessageTypingAction ¶
type TL_sendMessageTypingAction struct { }
func (TL_sendMessageTypingAction) Encode ¶
func (e TL_sendMessageTypingAction) Encode() []byte
Encoding TL_sendMessageTypingAction
type TL_sendMessageUploadAudioAction ¶
type TL_sendMessageUploadAudioAction struct {
Progress int32 // progress:int
}
func (TL_sendMessageUploadAudioAction) Encode ¶
func (e TL_sendMessageUploadAudioAction) Encode() []byte
Encoding TL_sendMessageUploadAudioAction
type TL_sendMessageUploadDocumentAction ¶
type TL_sendMessageUploadDocumentAction struct {
Progress int32 // progress:int
}
func (TL_sendMessageUploadDocumentAction) Encode ¶
func (e TL_sendMessageUploadDocumentAction) Encode() []byte
Encoding TL_sendMessageUploadDocumentAction
type TL_sendMessageUploadPhotoAction ¶
type TL_sendMessageUploadPhotoAction struct {
Progress int32 // progress:int
}
func (TL_sendMessageUploadPhotoAction) Encode ¶
func (e TL_sendMessageUploadPhotoAction) Encode() []byte
Encoding TL_sendMessageUploadPhotoAction
type TL_sendMessageUploadRoundAction ¶
type TL_sendMessageUploadRoundAction struct {
Progress int32 // progress:int
}
func (TL_sendMessageUploadRoundAction) Encode ¶
func (e TL_sendMessageUploadRoundAction) Encode() []byte
Encoding TL_sendMessageUploadRoundAction
type TL_sendMessageUploadVideoAction ¶
type TL_sendMessageUploadVideoAction struct {
Progress int32 // progress:int
}
func (TL_sendMessageUploadVideoAction) Encode ¶
func (e TL_sendMessageUploadVideoAction) Encode() []byte
Encoding TL_sendMessageUploadVideoAction
type TL_server_DH_inner_data ¶
type TL_server_DH_inner_data struct { Nonce []byte Server_nonce []byte G int32 Dh_prime *big.Int G_a *big.Int Server_time int32 }
func (TL_server_DH_inner_data) Encode ¶
func (e TL_server_DH_inner_data) Encode() []byte
type TL_server_DH_params_fail ¶
func (TL_server_DH_params_fail) Encode ¶
func (e TL_server_DH_params_fail) Encode() []byte
type TL_server_DH_params_ok ¶
func (TL_server_DH_params_ok) Encode ¶
func (e TL_server_DH_params_ok) Encode() []byte
type TL_set_client_DH_params ¶
func (TL_set_client_DH_params) Encode ¶
func (e TL_set_client_DH_params) Encode() []byte
type TL_shippingOption ¶
type TL_shippingOption struct { Id string // id:string Title string // title:string Prices []TL // prices:Vector<LabeledPrice> }
func (TL_shippingOption) Encode ¶
func (e TL_shippingOption) Encode() []byte
Encoding TL_shippingOption
type TL_stickerPack ¶
type TL_stickerSet ¶
type TL_stickerSet struct { Flags int32 Installed bool // installed:flags.0?true Archived bool // archived:flags.1?true Official bool // official:flags.2?true Masks bool // masks:flags.3?true Id int64 // id:long Access_hash int64 // access_hash:long Title string // title:string Short_name string // short_name:string Count int32 // count:int Hash int32 // hash:int }
type TL_stickerSetCovered ¶
func (TL_stickerSetCovered) Encode ¶
func (e TL_stickerSetCovered) Encode() []byte
Encoding TL_stickerSetCovered
type TL_stickerSetMultiCovered ¶
type TL_stickerSetMultiCovered struct { Set TL // set:StickerSet Covers []TL // covers:Vector<Document> }
func (TL_stickerSetMultiCovered) Encode ¶
func (e TL_stickerSetMultiCovered) Encode() []byte
Encoding TL_stickerSetMultiCovered
type TL_stickers_addStickerToSet ¶
type TL_stickers_addStickerToSet struct { Stickerset TL // stickerset:InputStickerSet Sticker TL // sticker:InputStickerSetItem }
func (TL_stickers_addStickerToSet) Encode ¶
func (e TL_stickers_addStickerToSet) Encode() []byte
Encoding TL_stickers_addStickerToSet
type TL_stickers_changeStickerPosition ¶
type TL_stickers_changeStickerPosition struct { Sticker TL // sticker:InputDocument Position int32 // position:int }
func (TL_stickers_changeStickerPosition) Encode ¶
func (e TL_stickers_changeStickerPosition) Encode() []byte
Encoding TL_stickers_changeStickerPosition
type TL_stickers_createStickerSet ¶
type TL_stickers_createStickerSet struct { Flags int32 Masks bool // masks:flags.0?true User_id TL // user_id:InputUser Title string // title:string Short_name string // short_name:string Stickers []TL // stickers:Vector<InputStickerSetItem> }
func (TL_stickers_createStickerSet) Encode ¶
func (e TL_stickers_createStickerSet) Encode() []byte
Encoding TL_stickers_createStickerSet
type TL_stickers_removeStickerFromSet ¶
type TL_stickers_removeStickerFromSet struct {
Sticker TL // sticker:InputDocument
}
func (TL_stickers_removeStickerFromSet) Encode ¶
func (e TL_stickers_removeStickerFromSet) Encode() []byte
Encoding TL_stickers_removeStickerFromSet
type TL_storage_fileGif ¶
type TL_storage_fileGif struct { }
func (TL_storage_fileGif) Encode ¶
func (e TL_storage_fileGif) Encode() []byte
Encoding TL_storage_fileGif
type TL_storage_fileJpeg ¶
type TL_storage_fileJpeg struct { }
func (TL_storage_fileJpeg) Encode ¶
func (e TL_storage_fileJpeg) Encode() []byte
Encoding TL_storage_fileJpeg
type TL_storage_fileMov ¶
type TL_storage_fileMov struct { }
func (TL_storage_fileMov) Encode ¶
func (e TL_storage_fileMov) Encode() []byte
Encoding TL_storage_fileMov
type TL_storage_fileMp3 ¶
type TL_storage_fileMp3 struct { }
func (TL_storage_fileMp3) Encode ¶
func (e TL_storage_fileMp3) Encode() []byte
Encoding TL_storage_fileMp3
type TL_storage_fileMp4 ¶
type TL_storage_fileMp4 struct { }
func (TL_storage_fileMp4) Encode ¶
func (e TL_storage_fileMp4) Encode() []byte
Encoding TL_storage_fileMp4
type TL_storage_filePartial ¶
type TL_storage_filePartial struct { }
func (TL_storage_filePartial) Encode ¶
func (e TL_storage_filePartial) Encode() []byte
Encoding TL_storage_filePartial
type TL_storage_filePdf ¶
type TL_storage_filePdf struct { }
func (TL_storage_filePdf) Encode ¶
func (e TL_storage_filePdf) Encode() []byte
Encoding TL_storage_filePdf
type TL_storage_filePng ¶
type TL_storage_filePng struct { }
func (TL_storage_filePng) Encode ¶
func (e TL_storage_filePng) Encode() []byte
Encoding TL_storage_filePng
type TL_storage_fileUnknown ¶
type TL_storage_fileUnknown struct { }
func (TL_storage_fileUnknown) Encode ¶
func (e TL_storage_fileUnknown) Encode() []byte
Encoding TL_storage_fileUnknown
type TL_storage_fileWebp ¶
type TL_storage_fileWebp struct { }
func (TL_storage_fileWebp) Encode ¶
func (e TL_storage_fileWebp) Encode() []byte
Encoding TL_storage_fileWebp
type TL_textBold ¶
type TL_textBold struct {
Text TL // text:RichText
}
type TL_textConcat ¶
type TL_textConcat struct {
Texts []TL // texts:Vector<RichText>
}
type TL_textEmail ¶
type TL_textEmpty ¶
type TL_textEmpty struct { }
type TL_textFixed ¶
type TL_textFixed struct {
Text TL // text:RichText
}
type TL_textItalic ¶
type TL_textItalic struct {
Text TL // text:RichText
}
type TL_textPlain ¶
type TL_textPlain struct {
Text string // text:string
}
type TL_textStrike ¶
type TL_textStrike struct {
Text TL // text:RichText
}
type TL_textUnderline ¶
type TL_textUnderline struct {
Text TL // text:RichText
}
func (TL_textUnderline) Encode ¶
func (e TL_textUnderline) Encode() []byte
Encoding TL_textUnderline
type TL_textUrl ¶
type TL_topPeer ¶
type TL_topPeerCategoryBotsInline ¶
type TL_topPeerCategoryBotsInline struct { }
func (TL_topPeerCategoryBotsInline) Encode ¶
func (e TL_topPeerCategoryBotsInline) Encode() []byte
Encoding TL_topPeerCategoryBotsInline
type TL_topPeerCategoryBotsPM ¶
type TL_topPeerCategoryBotsPM struct { }
func (TL_topPeerCategoryBotsPM) Encode ¶
func (e TL_topPeerCategoryBotsPM) Encode() []byte
Encoding TL_topPeerCategoryBotsPM
type TL_topPeerCategoryChannels ¶
type TL_topPeerCategoryChannels struct { }
func (TL_topPeerCategoryChannels) Encode ¶
func (e TL_topPeerCategoryChannels) Encode() []byte
Encoding TL_topPeerCategoryChannels
type TL_topPeerCategoryCorrespondents ¶
type TL_topPeerCategoryCorrespondents struct { }
func (TL_topPeerCategoryCorrespondents) Encode ¶
func (e TL_topPeerCategoryCorrespondents) Encode() []byte
Encoding TL_topPeerCategoryCorrespondents
type TL_topPeerCategoryGroups ¶
type TL_topPeerCategoryGroups struct { }
func (TL_topPeerCategoryGroups) Encode ¶
func (e TL_topPeerCategoryGroups) Encode() []byte
Encoding TL_topPeerCategoryGroups
type TL_topPeerCategoryPeers ¶
type TL_topPeerCategoryPeers struct { Category TL // category:TopPeerCategory Count int32 // count:int Peers []TL // peers:Vector<TopPeer> }
func (TL_topPeerCategoryPeers) Encode ¶
func (e TL_topPeerCategoryPeers) Encode() []byte
Encoding TL_topPeerCategoryPeers
type TL_topPeerCategoryPhoneCalls ¶
type TL_topPeerCategoryPhoneCalls struct { }
func (TL_topPeerCategoryPhoneCalls) Encode ¶
func (e TL_topPeerCategoryPhoneCalls) Encode() []byte
Encoding TL_topPeerCategoryPhoneCalls
type TL_updateBotCallbackQuery ¶
type TL_updateBotCallbackQuery struct { Flags int32 Query_id int64 // query_id:long User_id int32 // user_id:int Peer TL // peer:Peer Msg_id int32 // msg_id:int Chat_instance int64 // chat_instance:long Data []byte // data:flags.0?bytes Game_short_name string // game_short_name:flags.1?string }
func (TL_updateBotCallbackQuery) Encode ¶
func (e TL_updateBotCallbackQuery) Encode() []byte
Encoding TL_updateBotCallbackQuery
type TL_updateBotInlineQuery ¶
type TL_updateBotInlineQuery struct { Flags int32 Query_id int64 // query_id:long User_id int32 // user_id:int Query string // query:string Geo TL // geo:flags.0?GeoPoint Offset string // offset:string }
func (TL_updateBotInlineQuery) Encode ¶
func (e TL_updateBotInlineQuery) Encode() []byte
Encoding TL_updateBotInlineQuery
type TL_updateBotInlineSend ¶
type TL_updateBotInlineSend struct { Flags int32 User_id int32 // user_id:int Query string // query:string Geo TL // geo:flags.0?GeoPoint Id string // id:string Msg_id TL // msg_id:flags.1?InputBotInlineMessageID }
func (TL_updateBotInlineSend) Encode ¶
func (e TL_updateBotInlineSend) Encode() []byte
Encoding TL_updateBotInlineSend
type TL_updateBotPrecheckoutQuery ¶
type TL_updateBotPrecheckoutQuery struct { Flags int32 Query_id int64 // query_id:long User_id int32 // user_id:int Payload []byte // payload:bytes Info TL // info:flags.0?PaymentRequestedInfo Shipping_option_id string // shipping_option_id:flags.1?string Currency string // currency:string Total_amount int64 // total_amount:long }
func (TL_updateBotPrecheckoutQuery) Encode ¶
func (e TL_updateBotPrecheckoutQuery) Encode() []byte
Encoding TL_updateBotPrecheckoutQuery
type TL_updateBotShippingQuery ¶
type TL_updateBotShippingQuery struct { Query_id int64 // query_id:long User_id int32 // user_id:int Payload []byte // payload:bytes Shipping_address TL // shipping_address:PostAddress }
func (TL_updateBotShippingQuery) Encode ¶
func (e TL_updateBotShippingQuery) Encode() []byte
Encoding TL_updateBotShippingQuery
type TL_updateBotWebhookJSON ¶
type TL_updateBotWebhookJSON struct {
Data TL // data:DataJSON
}
func (TL_updateBotWebhookJSON) Encode ¶
func (e TL_updateBotWebhookJSON) Encode() []byte
Encoding TL_updateBotWebhookJSON
type TL_updateBotWebhookJSONQuery ¶
type TL_updateBotWebhookJSONQuery struct { Query_id int64 // query_id:long Data TL // data:DataJSON Timeout int32 // timeout:int }
func (TL_updateBotWebhookJSONQuery) Encode ¶
func (e TL_updateBotWebhookJSONQuery) Encode() []byte
Encoding TL_updateBotWebhookJSONQuery
type TL_updateChannel ¶
type TL_updateChannel struct {
Channel_id int32 // channel_id:int
}
func (TL_updateChannel) Encode ¶
func (e TL_updateChannel) Encode() []byte
Encoding TL_updateChannel
type TL_updateChannelMessageViews ¶
type TL_updateChannelMessageViews struct { Channel_id int32 // channel_id:int Id int32 // id:int Views int32 // views:int }
func (TL_updateChannelMessageViews) Encode ¶
func (e TL_updateChannelMessageViews) Encode() []byte
Encoding TL_updateChannelMessageViews
type TL_updateChannelPinnedMessage ¶
func (TL_updateChannelPinnedMessage) Encode ¶
func (e TL_updateChannelPinnedMessage) Encode() []byte
Encoding TL_updateChannelPinnedMessage
type TL_updateChannelReadMessagesContents ¶
type TL_updateChannelReadMessagesContents struct { Channel_id int32 // channel_id:int Messages []int32 // messages:Vector<int> }
func (TL_updateChannelReadMessagesContents) Encode ¶
func (e TL_updateChannelReadMessagesContents) Encode() []byte
Encoding TL_updateChannelReadMessagesContents
type TL_updateChannelTooLong ¶
type TL_updateChannelTooLong struct { Flags int32 Channel_id int32 // channel_id:int Pts int32 // pts:flags.0?int }
func (TL_updateChannelTooLong) Encode ¶
func (e TL_updateChannelTooLong) Encode() []byte
Encoding TL_updateChannelTooLong
type TL_updateChannelWebPage ¶
type TL_updateChannelWebPage struct { Channel_id int32 // channel_id:int Webpage TL // webpage:WebPage Pts int32 // pts:int Pts_count int32 // pts_count:int }
func (TL_updateChannelWebPage) Encode ¶
func (e TL_updateChannelWebPage) Encode() []byte
Encoding TL_updateChannelWebPage
type TL_updateChatAdmins ¶
type TL_updateChatAdmins struct { Chat_id int32 // chat_id:int Enabled TL // enabled:Bool Version int32 // version:int }
func (TL_updateChatAdmins) Encode ¶
func (e TL_updateChatAdmins) Encode() []byte
Encoding TL_updateChatAdmins
type TL_updateChatParticipantAdd ¶
type TL_updateChatParticipantAdd struct { Chat_id int32 // chat_id:int User_id int32 // user_id:int Inviter_id int32 // inviter_id:int Date int32 // date:int Version int32 // version:int }
func (TL_updateChatParticipantAdd) Encode ¶
func (e TL_updateChatParticipantAdd) Encode() []byte
Encoding TL_updateChatParticipantAdd
type TL_updateChatParticipantAdmin ¶
type TL_updateChatParticipantAdmin struct { Chat_id int32 // chat_id:int User_id int32 // user_id:int Is_admin TL // is_admin:Bool Version int32 // version:int }
func (TL_updateChatParticipantAdmin) Encode ¶
func (e TL_updateChatParticipantAdmin) Encode() []byte
Encoding TL_updateChatParticipantAdmin
type TL_updateChatParticipantDelete ¶
type TL_updateChatParticipantDelete struct { Chat_id int32 // chat_id:int User_id int32 // user_id:int Version int32 // version:int }
func (TL_updateChatParticipantDelete) Encode ¶
func (e TL_updateChatParticipantDelete) Encode() []byte
Encoding TL_updateChatParticipantDelete
type TL_updateChatParticipants ¶
type TL_updateChatParticipants struct {
Participants TL // participants:ChatParticipants
}
func (TL_updateChatParticipants) Encode ¶
func (e TL_updateChatParticipants) Encode() []byte
Encoding TL_updateChatParticipants
type TL_updateChatUserTyping ¶
type TL_updateChatUserTyping struct { Chat_id int32 // chat_id:int User_id int32 // user_id:int Action TL // action:SendMessageAction }
func (TL_updateChatUserTyping) Encode ¶
func (e TL_updateChatUserTyping) Encode() []byte
Encoding TL_updateChatUserTyping
type TL_updateConfig ¶
type TL_updateConfig struct { }
type TL_updateContactLink ¶
type TL_updateContactLink struct { User_id int32 // user_id:int My_link TL // my_link:ContactLink Foreign_link TL // foreign_link:ContactLink }
func (TL_updateContactLink) Encode ¶
func (e TL_updateContactLink) Encode() []byte
Encoding TL_updateContactLink
type TL_updateContactRegistered ¶
func (TL_updateContactRegistered) Encode ¶
func (e TL_updateContactRegistered) Encode() []byte
Encoding TL_updateContactRegistered
type TL_updateContactsReset ¶
type TL_updateContactsReset struct { }
func (TL_updateContactsReset) Encode ¶
func (e TL_updateContactsReset) Encode() []byte
Encoding TL_updateContactsReset
type TL_updateDcOptions ¶
type TL_updateDcOptions struct {
Dc_options []TL // dc_options:Vector<DcOption>
}
func (TL_updateDcOptions) Encode ¶
func (e TL_updateDcOptions) Encode() []byte
Encoding TL_updateDcOptions
type TL_updateDeleteChannelMessages ¶
type TL_updateDeleteChannelMessages struct { Channel_id int32 // channel_id:int Messages []int32 // messages:Vector<int> Pts int32 // pts:int Pts_count int32 // pts_count:int }
func (TL_updateDeleteChannelMessages) Encode ¶
func (e TL_updateDeleteChannelMessages) Encode() []byte
Encoding TL_updateDeleteChannelMessages
type TL_updateDeleteMessages ¶
type TL_updateDeleteMessages struct { Messages []int32 // messages:Vector<int> Pts int32 // pts:int Pts_count int32 // pts_count:int }
func (TL_updateDeleteMessages) Encode ¶
func (e TL_updateDeleteMessages) Encode() []byte
Encoding TL_updateDeleteMessages
type TL_updateDialogPinned ¶
type TL_updateDialogPinned struct { Flags int32 Pinned bool // pinned:flags.0?true Peer TL // peer:Peer }
func (TL_updateDialogPinned) Encode ¶
func (e TL_updateDialogPinned) Encode() []byte
Encoding TL_updateDialogPinned
type TL_updateDraftMessage ¶
func (TL_updateDraftMessage) Encode ¶
func (e TL_updateDraftMessage) Encode() []byte
Encoding TL_updateDraftMessage
type TL_updateEditChannelMessage ¶
type TL_updateEditChannelMessage struct { Message TL // message:Message Pts int32 // pts:int Pts_count int32 // pts_count:int }
func (TL_updateEditChannelMessage) Encode ¶
func (e TL_updateEditChannelMessage) Encode() []byte
Encoding TL_updateEditChannelMessage
type TL_updateEditMessage ¶
type TL_updateEditMessage struct { Message TL // message:Message Pts int32 // pts:int Pts_count int32 // pts_count:int }
func (TL_updateEditMessage) Encode ¶
func (e TL_updateEditMessage) Encode() []byte
Encoding TL_updateEditMessage
type TL_updateEncryptedChatTyping ¶
type TL_updateEncryptedChatTyping struct {
Chat_id int32 // chat_id:int
}
func (TL_updateEncryptedChatTyping) Encode ¶
func (e TL_updateEncryptedChatTyping) Encode() []byte
Encoding TL_updateEncryptedChatTyping
type TL_updateEncryptedMessagesRead ¶
type TL_updateEncryptedMessagesRead struct { Chat_id int32 // chat_id:int Max_date int32 // max_date:int Date int32 // date:int }
func (TL_updateEncryptedMessagesRead) Encode ¶
func (e TL_updateEncryptedMessagesRead) Encode() []byte
Encoding TL_updateEncryptedMessagesRead
type TL_updateEncryption ¶
func (TL_updateEncryption) Encode ¶
func (e TL_updateEncryption) Encode() []byte
Encoding TL_updateEncryption
type TL_updateFavedStickers ¶
type TL_updateFavedStickers struct { }
func (TL_updateFavedStickers) Encode ¶
func (e TL_updateFavedStickers) Encode() []byte
Encoding TL_updateFavedStickers
type TL_updateInlineBotCallbackQuery ¶
type TL_updateInlineBotCallbackQuery struct { Flags int32 Query_id int64 // query_id:long User_id int32 // user_id:int Msg_id TL // msg_id:InputBotInlineMessageID Chat_instance int64 // chat_instance:long Data []byte // data:flags.0?bytes Game_short_name string // game_short_name:flags.1?string }
func (TL_updateInlineBotCallbackQuery) Encode ¶
func (e TL_updateInlineBotCallbackQuery) Encode() []byte
Encoding TL_updateInlineBotCallbackQuery
type TL_updateLangPack ¶
type TL_updateLangPack struct {
Difference TL // difference:LangPackDifference
}
func (TL_updateLangPack) Encode ¶
func (e TL_updateLangPack) Encode() []byte
Encoding TL_updateLangPack
type TL_updateLangPackTooLong ¶
type TL_updateLangPackTooLong struct { }
func (TL_updateLangPackTooLong) Encode ¶
func (e TL_updateLangPackTooLong) Encode() []byte
Encoding TL_updateLangPackTooLong
type TL_updateMessageID ¶
func (TL_updateMessageID) Encode ¶
func (e TL_updateMessageID) Encode() []byte
Encoding TL_updateMessageID
type TL_updateNewChannelMessage ¶
type TL_updateNewChannelMessage struct { Message TL // message:Message Pts int32 // pts:int Pts_count int32 // pts_count:int }
func (TL_updateNewChannelMessage) Encode ¶
func (e TL_updateNewChannelMessage) Encode() []byte
Encoding TL_updateNewChannelMessage
type TL_updateNewEncryptedMessage ¶
type TL_updateNewEncryptedMessage struct { Message TL // message:EncryptedMessage Qts int32 // qts:int }
func (TL_updateNewEncryptedMessage) Encode ¶
func (e TL_updateNewEncryptedMessage) Encode() []byte
Encoding TL_updateNewEncryptedMessage
type TL_updateNewMessage ¶
type TL_updateNewMessage struct { Message TL // message:Message Pts int32 // pts:int Pts_count int32 // pts_count:int }
func (TL_updateNewMessage) Encode ¶
func (e TL_updateNewMessage) Encode() []byte
Encoding TL_updateNewMessage
type TL_updateNewStickerSet ¶
type TL_updateNewStickerSet struct {
Stickerset TL // stickerset:messages.StickerSet
}
func (TL_updateNewStickerSet) Encode ¶
func (e TL_updateNewStickerSet) Encode() []byte
Encoding TL_updateNewStickerSet
type TL_updateNotifySettings ¶
type TL_updateNotifySettings struct { Peer TL // peer:NotifyPeer Notify_settings TL // notify_settings:PeerNotifySettings }
func (TL_updateNotifySettings) Encode ¶
func (e TL_updateNotifySettings) Encode() []byte
Encoding TL_updateNotifySettings
type TL_updatePhoneCall ¶
type TL_updatePhoneCall struct {
Phone_call TL // phone_call:PhoneCall
}
func (TL_updatePhoneCall) Encode ¶
func (e TL_updatePhoneCall) Encode() []byte
Encoding TL_updatePhoneCall
type TL_updatePinnedDialogs ¶
func (TL_updatePinnedDialogs) Encode ¶
func (e TL_updatePinnedDialogs) Encode() []byte
Encoding TL_updatePinnedDialogs
type TL_updatePrivacy ¶
func (TL_updatePrivacy) Encode ¶
func (e TL_updatePrivacy) Encode() []byte
Encoding TL_updatePrivacy
type TL_updatePtsChanged ¶
type TL_updatePtsChanged struct { }
func (TL_updatePtsChanged) Encode ¶
func (e TL_updatePtsChanged) Encode() []byte
Encoding TL_updatePtsChanged
type TL_updateReadChannelInbox ¶
type TL_updateReadChannelInbox struct { Channel_id int32 // channel_id:int Max_id int32 // max_id:int }
func (TL_updateReadChannelInbox) Encode ¶
func (e TL_updateReadChannelInbox) Encode() []byte
Encoding TL_updateReadChannelInbox
type TL_updateReadChannelOutbox ¶
type TL_updateReadChannelOutbox struct { Channel_id int32 // channel_id:int Max_id int32 // max_id:int }
func (TL_updateReadChannelOutbox) Encode ¶
func (e TL_updateReadChannelOutbox) Encode() []byte
Encoding TL_updateReadChannelOutbox
type TL_updateReadFeaturedStickers ¶
type TL_updateReadFeaturedStickers struct { }
func (TL_updateReadFeaturedStickers) Encode ¶
func (e TL_updateReadFeaturedStickers) Encode() []byte
Encoding TL_updateReadFeaturedStickers
type TL_updateReadHistoryInbox ¶
type TL_updateReadHistoryInbox struct { Peer TL // peer:Peer Max_id int32 // max_id:int Pts int32 // pts:int Pts_count int32 // pts_count:int }
func (TL_updateReadHistoryInbox) Encode ¶
func (e TL_updateReadHistoryInbox) Encode() []byte
Encoding TL_updateReadHistoryInbox
type TL_updateReadHistoryOutbox ¶
type TL_updateReadHistoryOutbox struct { Peer TL // peer:Peer Max_id int32 // max_id:int Pts int32 // pts:int Pts_count int32 // pts_count:int }
func (TL_updateReadHistoryOutbox) Encode ¶
func (e TL_updateReadHistoryOutbox) Encode() []byte
Encoding TL_updateReadHistoryOutbox
type TL_updateReadMessagesContents ¶
type TL_updateReadMessagesContents struct { Messages []int32 // messages:Vector<int> Pts int32 // pts:int Pts_count int32 // pts_count:int }
func (TL_updateReadMessagesContents) Encode ¶
func (e TL_updateReadMessagesContents) Encode() []byte
Encoding TL_updateReadMessagesContents
type TL_updateRecentStickers ¶
type TL_updateRecentStickers struct { }
func (TL_updateRecentStickers) Encode ¶
func (e TL_updateRecentStickers) Encode() []byte
Encoding TL_updateRecentStickers
type TL_updateSavedGifs ¶
type TL_updateSavedGifs struct { }
func (TL_updateSavedGifs) Encode ¶
func (e TL_updateSavedGifs) Encode() []byte
Encoding TL_updateSavedGifs
type TL_updateServiceNotification ¶
type TL_updateServiceNotification struct { Flags int32 Popup bool // popup:flags.0?true Inbox_date int32 // inbox_date:flags.1?int Code_type string // type:string Message string // message:string Media TL // media:MessageMedia Entities []TL // entities:Vector<MessageEntity> }
func (TL_updateServiceNotification) Encode ¶
func (e TL_updateServiceNotification) Encode() []byte
Encoding TL_updateServiceNotification
type TL_updateShort ¶
type TL_updateShortChatMessage ¶
type TL_updateShortChatMessage struct { Flags int32 Out bool // out:flags.1?true Mentioned bool // mentioned:flags.4?true Media_unread bool // media_unread:flags.5?true Silent bool // silent:flags.13?true Id int32 // id:int From_id int32 // from_id:int Chat_id int32 // chat_id:int Message string // message:string Pts int32 // pts:int Pts_count int32 // pts_count:int Date int32 // date:int Fwd_from TL // fwd_from:flags.2?MessageFwdHeader Via_bot_id int32 // via_bot_id:flags.11?int Reply_to_msg_id int32 // reply_to_msg_id:flags.3?int Entities []TL // entities:flags.7?Vector<MessageEntity> }
func (TL_updateShortChatMessage) Encode ¶
func (e TL_updateShortChatMessage) Encode() []byte
Encoding TL_updateShortChatMessage
type TL_updateShortMessage ¶
type TL_updateShortMessage struct { Flags int32 Out bool // out:flags.1?true Mentioned bool // mentioned:flags.4?true Media_unread bool // media_unread:flags.5?true Silent bool // silent:flags.13?true Id int32 // id:int User_id int32 // user_id:int Message string // message:string Pts int32 // pts:int Pts_count int32 // pts_count:int Date int32 // date:int Fwd_from TL // fwd_from:flags.2?MessageFwdHeader Via_bot_id int32 // via_bot_id:flags.11?int Reply_to_msg_id int32 // reply_to_msg_id:flags.3?int Entities []TL // entities:flags.7?Vector<MessageEntity> }
func (TL_updateShortMessage) Encode ¶
func (e TL_updateShortMessage) Encode() []byte
Encoding TL_updateShortMessage
type TL_updateShortSentMessage ¶
type TL_updateShortSentMessage struct { Flags int32 Out bool // out:flags.1?true Id int32 // id:int Pts int32 // pts:int Pts_count int32 // pts_count:int Date int32 // date:int Media TL // media:flags.9?MessageMedia Entities []TL // entities:flags.7?Vector<MessageEntity> }
func (TL_updateShortSentMessage) Encode ¶
func (e TL_updateShortSentMessage) Encode() []byte
Encoding TL_updateShortSentMessage
type TL_updateStickerSets ¶
type TL_updateStickerSets struct { }
func (TL_updateStickerSets) Encode ¶
func (e TL_updateStickerSets) Encode() []byte
Encoding TL_updateStickerSets
type TL_updateStickerSetsOrder ¶
type TL_updateStickerSetsOrder struct { Flags int32 Masks bool // masks:flags.0?true Order []int64 // order:Vector<long> }
func (TL_updateStickerSetsOrder) Encode ¶
func (e TL_updateStickerSetsOrder) Encode() []byte
Encoding TL_updateStickerSetsOrder
type TL_updateUserBlocked ¶
func (TL_updateUserBlocked) Encode ¶
func (e TL_updateUserBlocked) Encode() []byte
Encoding TL_updateUserBlocked
type TL_updateUserName ¶
type TL_updateUserName struct { User_id int32 // user_id:int First_name string // first_name:string Last_name string // last_name:string Username string // username:string }
func (TL_updateUserName) Encode ¶
func (e TL_updateUserName) Encode() []byte
Encoding TL_updateUserName
type TL_updateUserPhone ¶
func (TL_updateUserPhone) Encode ¶
func (e TL_updateUserPhone) Encode() []byte
Encoding TL_updateUserPhone
type TL_updateUserPhoto ¶
type TL_updateUserPhoto struct { User_id int32 // user_id:int Date int32 // date:int Photo TL // photo:UserProfilePhoto Previous TL // previous:Bool }
func (TL_updateUserPhoto) Encode ¶
func (e TL_updateUserPhoto) Encode() []byte
Encoding TL_updateUserPhoto
type TL_updateUserStatus ¶
func (TL_updateUserStatus) Encode ¶
func (e TL_updateUserStatus) Encode() []byte
Encoding TL_updateUserStatus
type TL_updateUserTyping ¶
type TL_updateUserTyping struct { User_id int32 // user_id:int Action TL // action:SendMessageAction }
func (TL_updateUserTyping) Encode ¶
func (e TL_updateUserTyping) Encode() []byte
Encoding TL_updateUserTyping
type TL_updateWebPage ¶
type TL_updateWebPage struct { Webpage TL // webpage:WebPage Pts int32 // pts:int Pts_count int32 // pts_count:int }
func (TL_updateWebPage) Encode ¶
func (e TL_updateWebPage) Encode() []byte
Encoding TL_updateWebPage
type TL_updates ¶
type TL_updatesCombined ¶
type TL_updatesCombined struct { Updates []TL // updates:Vector<Update> Users []TL // users:Vector<User> Chats []TL // chats:Vector<Chat> Date int32 // date:int Seq_start int32 // seq_start:int Seq int32 // seq:int }
func (TL_updatesCombined) Encode ¶
func (e TL_updatesCombined) Encode() []byte
Encoding TL_updatesCombined
type TL_updatesTooLong ¶
type TL_updatesTooLong struct { }
func (TL_updatesTooLong) Encode ¶
func (e TL_updatesTooLong) Encode() []byte
Encoding TL_updatesTooLong
type TL_updates_channelDifference ¶
type TL_updates_channelDifference struct { Flags int32 Final bool // final:flags.0?true Pts int32 // pts:int Timeout int32 // timeout:flags.1?int New_messages []TL // new_messages:Vector<Message> Other_updates []TL // other_updates:Vector<Update> Chats []TL // chats:Vector<Chat> Users []TL // users:Vector<User> }
func (TL_updates_channelDifference) Encode ¶
func (e TL_updates_channelDifference) Encode() []byte
Encoding TL_updates_channelDifference
type TL_updates_channelDifferenceEmpty ¶
type TL_updates_channelDifferenceEmpty struct { Flags int32 Final bool // final:flags.0?true Pts int32 // pts:int Timeout int32 // timeout:flags.1?int }
func (TL_updates_channelDifferenceEmpty) Encode ¶
func (e TL_updates_channelDifferenceEmpty) Encode() []byte
Encoding TL_updates_channelDifferenceEmpty
type TL_updates_channelDifferenceTooLong ¶
type TL_updates_channelDifferenceTooLong struct { Flags int32 Final bool // final:flags.0?true Pts int32 // pts:int Timeout int32 // timeout:flags.1?int Top_message int32 // top_message:int Read_inbox_max_id int32 // read_inbox_max_id:int Read_outbox_max_id int32 // read_outbox_max_id:int Unread_count int32 // unread_count:int Unread_mentions_count int32 // unread_mentions_count:int Messages []TL // messages:Vector<Message> Chats []TL // chats:Vector<Chat> Users []TL // users:Vector<User> }
func (TL_updates_channelDifferenceTooLong) Encode ¶
func (e TL_updates_channelDifferenceTooLong) Encode() []byte
Encoding TL_updates_channelDifferenceTooLong
type TL_updates_difference ¶
type TL_updates_difference struct { New_messages []TL // new_messages:Vector<Message> New_encrypted_messages []TL // new_encrypted_messages:Vector<EncryptedMessage> Other_updates []TL // other_updates:Vector<Update> Chats []TL // chats:Vector<Chat> Users []TL // users:Vector<User> State TL // state:updates.State }
func (TL_updates_difference) Encode ¶
func (e TL_updates_difference) Encode() []byte
Encoding TL_updates_difference
type TL_updates_differenceEmpty ¶
func (TL_updates_differenceEmpty) Encode ¶
func (e TL_updates_differenceEmpty) Encode() []byte
Encoding TL_updates_differenceEmpty
type TL_updates_differenceSlice ¶
type TL_updates_differenceSlice struct { New_messages []TL // new_messages:Vector<Message> New_encrypted_messages []TL // new_encrypted_messages:Vector<EncryptedMessage> Other_updates []TL // other_updates:Vector<Update> Chats []TL // chats:Vector<Chat> Users []TL // users:Vector<User> Intermediate_state TL // intermediate_state:updates.State }
func (TL_updates_differenceSlice) Encode ¶
func (e TL_updates_differenceSlice) Encode() []byte
Encoding TL_updates_differenceSlice
type TL_updates_differenceTooLong ¶
type TL_updates_differenceTooLong struct {
Pts int32 // pts:int
}
func (TL_updates_differenceTooLong) Encode ¶
func (e TL_updates_differenceTooLong) Encode() []byte
Encoding TL_updates_differenceTooLong
type TL_updates_getChannelDifference ¶
type TL_updates_getChannelDifference struct { Flags int32 Force bool // force:flags.0?true Channel TL // channel:InputChannel Filter TL // filter:ChannelMessagesFilter Pts int32 // pts:int Limit int32 // limit:int }
func (TL_updates_getChannelDifference) Encode ¶
func (e TL_updates_getChannelDifference) Encode() []byte
Encoding TL_updates_getChannelDifference
type TL_updates_getDifference ¶
type TL_updates_getDifference struct { Flags int32 Pts int32 // pts:int Pts_total_limit int32 // pts_total_limit:flags.0?int Date int32 // date:int Qts int32 // qts:int }
func (TL_updates_getDifference) Encode ¶
func (e TL_updates_getDifference) Encode() []byte
Encoding TL_updates_getDifference
type TL_updates_getState ¶
type TL_updates_getState struct { }
func (TL_updates_getState) Encode ¶
func (e TL_updates_getState) Encode() []byte
Encoding TL_updates_getState
type TL_updates_state ¶
type TL_updates_state struct { Pts int32 // pts:int Qts int32 // qts:int Date int32 // date:int Seq int32 // seq:int Unread_count int32 // unread_count:int }
func (TL_updates_state) Encode ¶
func (e TL_updates_state) Encode() []byte
Encoding TL_updates_state
type TL_upload_cdnFile ¶
type TL_upload_cdnFile struct {
Bytes []byte // bytes:bytes
}
func (TL_upload_cdnFile) Encode ¶
func (e TL_upload_cdnFile) Encode() []byte
Encoding TL_upload_cdnFile
type TL_upload_cdnFileReuploadNeeded ¶
type TL_upload_cdnFileReuploadNeeded struct {
Request_token []byte // request_token:bytes
}
func (TL_upload_cdnFileReuploadNeeded) Encode ¶
func (e TL_upload_cdnFileReuploadNeeded) Encode() []byte
Encoding TL_upload_cdnFileReuploadNeeded
type TL_upload_file ¶
type TL_upload_fileCdnRedirect ¶
type TL_upload_fileCdnRedirect struct { Dc_id int32 // dc_id:int File_token []byte // file_token:bytes Encryption_key []byte // encryption_key:bytes Encryption_iv []byte // encryption_iv:bytes Cdn_file_hashes []TL // cdn_file_hashes:Vector<CdnFileHash> }
func (TL_upload_fileCdnRedirect) Encode ¶
func (e TL_upload_fileCdnRedirect) Encode() []byte
Encoding TL_upload_fileCdnRedirect
type TL_upload_getCdnFile ¶
type TL_upload_getCdnFile struct { File_token []byte // file_token:bytes Offset int32 // offset:int Limit int32 // limit:int }
func (TL_upload_getCdnFile) Encode ¶
func (e TL_upload_getCdnFile) Encode() []byte
Encoding TL_upload_getCdnFile
type TL_upload_getCdnFileHashes ¶
type TL_upload_getCdnFileHashes struct { File_token []byte // file_token:bytes Offset int32 // offset:int }
func (TL_upload_getCdnFileHashes) Encode ¶
func (e TL_upload_getCdnFileHashes) Encode() []byte
Encoding TL_upload_getCdnFileHashes
type TL_upload_getFile ¶
type TL_upload_getFile struct { Location TL // location:InputFileLocation Offset int32 // offset:int Limit int32 // limit:int }
func (TL_upload_getFile) Encode ¶
func (e TL_upload_getFile) Encode() []byte
Encoding TL_upload_getFile
type TL_upload_getWebFile ¶
type TL_upload_getWebFile struct { Location TL // location:InputWebFileLocation Offset int32 // offset:int Limit int32 // limit:int }
func (TL_upload_getWebFile) Encode ¶
func (e TL_upload_getWebFile) Encode() []byte
Encoding TL_upload_getWebFile
type TL_upload_reuploadCdnFile ¶
type TL_upload_reuploadCdnFile struct { File_token []byte // file_token:bytes Request_token []byte // request_token:bytes }
func (TL_upload_reuploadCdnFile) Encode ¶
func (e TL_upload_reuploadCdnFile) Encode() []byte
Encoding TL_upload_reuploadCdnFile
type TL_upload_saveBigFilePart ¶
type TL_upload_saveBigFilePart struct { File_id int64 // file_id:long File_part int32 // file_part:int File_total_parts int32 // file_total_parts:int Bytes []byte // bytes:bytes }
func (TL_upload_saveBigFilePart) Encode ¶
func (e TL_upload_saveBigFilePart) Encode() []byte
Encoding TL_upload_saveBigFilePart
type TL_upload_saveFilePart ¶
type TL_upload_saveFilePart struct { File_id int64 // file_id:long File_part int32 // file_part:int Bytes []byte // bytes:bytes }
func (TL_upload_saveFilePart) Encode ¶
func (e TL_upload_saveFilePart) Encode() []byte
Encoding TL_upload_saveFilePart
type TL_upload_webFile ¶
type TL_upload_webFile struct { Size int32 // size:int Mime_type string // mime_type:string File_type TL // file_type:storage.FileType Mtime int32 // mtime:int Bytes []byte // bytes:bytes }
func (TL_upload_webFile) Encode ¶
func (e TL_upload_webFile) Encode() []byte
Encoding TL_upload_webFile
type TL_user ¶
type TL_user struct { Flags int32 Self bool // self:flags.10?true Contact bool // contact:flags.11?true Mutual_contact bool // mutual_contact:flags.12?true Deleted bool // deleted:flags.13?true Bot bool // bot:flags.14?true Bot_chat_history bool // bot_chat_history:flags.15?true Bot_nochats bool // bot_nochats:flags.16?true Verified bool // verified:flags.17?true Restricted bool // restricted:flags.18?true Min bool // min:flags.20?true Bot_inline_geo bool // bot_inline_geo:flags.21?true Id int32 // id:int Access_hash int64 // access_hash:flags.0?long First_name string // first_name:flags.1?string Last_name string // last_name:flags.2?string Username string // username:flags.3?string Phone string // phone:flags.4?string Photo TL // photo:flags.5?UserProfilePhoto Status TL // status:flags.6?UserStatus Bot_info_version int32 // bot_info_version:flags.14?int Restriction_reason string // restriction_reason:flags.18?string Bot_inline_placeholder string // bot_inline_placeholder:flags.19?string Lang_code string // lang_code:flags.22?string }
type TL_userEmpty ¶
type TL_userEmpty struct {
Id int32 // id:int
}
type TL_userFull ¶
type TL_userFull struct { Flags int32 Blocked bool // blocked:flags.0?true Phone_calls_available bool // phone_calls_available:flags.4?true Phone_calls_private bool // phone_calls_private:flags.5?true User TL // user:User About string // about:flags.1?string Link TL // link:contacts.Link Profile_photo TL // profile_photo:flags.2?Photo Notify_settings TL // notify_settings:PeerNotifySettings Bot_info TL // bot_info:flags.3?BotInfo Common_chats_count int32 // common_chats_count:int }
type TL_userProfilePhoto ¶
type TL_userProfilePhoto struct { Photo_id int64 // photo_id:long Photo_small TL // photo_small:FileLocation Photo_big TL // photo_big:FileLocation }
func (TL_userProfilePhoto) Encode ¶
func (e TL_userProfilePhoto) Encode() []byte
Encoding TL_userProfilePhoto
type TL_userProfilePhotoEmpty ¶
type TL_userProfilePhotoEmpty struct { }
func (TL_userProfilePhotoEmpty) Encode ¶
func (e TL_userProfilePhotoEmpty) Encode() []byte
Encoding TL_userProfilePhotoEmpty
type TL_userStatusEmpty ¶
type TL_userStatusEmpty struct { }
func (TL_userStatusEmpty) Encode ¶
func (e TL_userStatusEmpty) Encode() []byte
Encoding TL_userStatusEmpty
type TL_userStatusLastMonth ¶
type TL_userStatusLastMonth struct { }
func (TL_userStatusLastMonth) Encode ¶
func (e TL_userStatusLastMonth) Encode() []byte
Encoding TL_userStatusLastMonth
type TL_userStatusLastWeek ¶
type TL_userStatusLastWeek struct { }
func (TL_userStatusLastWeek) Encode ¶
func (e TL_userStatusLastWeek) Encode() []byte
Encoding TL_userStatusLastWeek
type TL_userStatusOffline ¶
type TL_userStatusOffline struct {
Was_online int32 // was_online:int
}
func (TL_userStatusOffline) Encode ¶
func (e TL_userStatusOffline) Encode() []byte
Encoding TL_userStatusOffline
type TL_userStatusOnline ¶
type TL_userStatusOnline struct {
Expires int32 // expires:int
}
func (TL_userStatusOnline) Encode ¶
func (e TL_userStatusOnline) Encode() []byte
Encoding TL_userStatusOnline
type TL_userStatusRecently ¶
type TL_userStatusRecently struct { }
func (TL_userStatusRecently) Encode ¶
func (e TL_userStatusRecently) Encode() []byte
Encoding TL_userStatusRecently
type TL_users_getFullUser ¶
type TL_users_getFullUser struct {
Id TL // id:InputUser
}
func (TL_users_getFullUser) Encode ¶
func (e TL_users_getFullUser) Encode() []byte
Encoding TL_users_getFullUser
type TL_users_getUsers ¶
type TL_users_getUsers struct {
Id []TL // id:Vector<InputUser>
}
func (TL_users_getUsers) Encode ¶
func (e TL_users_getUsers) Encode() []byte
Encoding TL_users_getUsers
type TL_wallPaper ¶
type TL_wallPaperSolid ¶
type TL_wallPaperSolid struct { Id int32 // id:int Title string // title:string Bg_color int32 // bg_color:int Color int32 // color:int }
func (TL_wallPaperSolid) Encode ¶
func (e TL_wallPaperSolid) Encode() []byte
Encoding TL_wallPaperSolid
type TL_webDocument ¶
type TL_webPage ¶
type TL_webPage struct { Flags int32 Id int64 // id:long Url string // url:string Display_url string // display_url:string Hash int32 // hash:int Code_type string // type:flags.0?string Site_name string // site_name:flags.1?string Title string // title:flags.2?string Description string // description:flags.3?string Photo TL // photo:flags.4?Photo Embed_url string // embed_url:flags.5?string Embed_type string // embed_type:flags.5?string Embed_width int32 // embed_width:flags.6?int Embed_height int32 // embed_height:flags.6?int Duration int32 // duration:flags.7?int Author string // author:flags.8?string Document TL // document:flags.9?Document Cached_page TL // cached_page:flags.10?Page }
type TL_webPageEmpty ¶
type TL_webPageEmpty struct {
Id int64 // id:long
}
type TL_webPageNotModified ¶
type TL_webPageNotModified struct { }
func (TL_webPageNotModified) Encode ¶
func (e TL_webPageNotModified) Encode() []byte
Encoding TL_webPageNotModified
type TL_webPagePending ¶
func (TL_webPagePending) Encode ¶
func (e TL_webPagePending) Encode() []byte
Encoding TL_webPagePending