Versions in this module Expand all Collapse all v1 v1.0.1 Oct 8, 2022 Changes in this version + const CrcGzipPacked + const CrcRpcResult + type BadMsgNotification struct + BadMsgID int64 + BadMsgSeqNo int32 + Code int32 + func (*BadMsgNotification) CRC() uint32 + func (*BadMsgNotification) ImplementsBadMsgNotification() + type BadServerSalt struct + BadMsgID int64 + BadMsgSeqNo int32 + ErrorCode int32 + NewSalt int64 + func (*BadServerSalt) CRC() uint32 + func (*BadServerSalt) ImplementsBadMsgNotification() + type ClientDHInnerData struct + GB []byte + Nonce *tl.Int128 + Retry int64 + ServerNonce *tl.Int128 + func (*ClientDHInnerData) CRC() uint32 + type DHGenFail struct + NewNonceHash3 *tl.Int128 + Nonce *tl.Int128 + ServerNonce *tl.Int128 + func (*DHGenFail) CRC() uint32 + func (*DHGenFail) ImplementsSetClientDHParamsAnswer() + type DHGenOk struct + NewNonceHash1 *tl.Int128 + Nonce *tl.Int128 + ServerNonce *tl.Int128 + func (*DHGenOk) CRC() uint32 + func (t *DHGenOk) ImplementsSetClientDHParamsAnswer() + type DHGenRetry struct + NewNonceHash2 *tl.Int128 + Nonce *tl.Int128 + ServerNonce *tl.Int128 + func (*DHGenRetry) CRC() uint32 + func (*DHGenRetry) ImplementsSetClientDHParamsAnswer() + type FutureSalt struct + Salt int64 + ValidSince int32 + ValidUntil int32 + func (*FutureSalt) CRC() uint32 + type FutureSalts struct + Now int32 + ReqMsgID int64 + Salts []*FutureSalt + func (*FutureSalts) CRC() uint32 + type GzipPacked struct + Obj tl.Object + func (*GzipPacked) CRC() uint32 + func (*GzipPacked) MarshalTL(e *tl.Encoder) error + func (t *GzipPacked) UnmarshalTL(d *tl.Decoder) error + type Message struct + Body tl.Object + Bytes int32 + MsgID int64 + SeqNo int32 + type MessageContainer []*messages.Encrypted + func (*MessageContainer) CRC() uint32 + func (t *MessageContainer) MarshalTL(e *tl.Encoder) error + func (t *MessageContainer) UnmarshalTL(d *tl.Decoder) error + type MsgCopy struct + OrigMessage *Message + func (*MsgCopy) CRC() uint32 + type MsgResendReq struct + MsgIDs []int64 + func (*MsgResendReq) CRC() uint32 + type MsgsAck struct + MsgIDs []int64 + func (*MsgsAck) CRC() uint32 + type MsgsAllInfo struct + Info []byte + MsgIDs []int64 + func (*MsgsAllInfo) CRC() uint32 + type MsgsDetailedInfo struct + AnswerMsgID int64 + Bytes int32 + MsgID int64 + Status int32 + func (*MsgsDetailedInfo) CRC() uint32 + type MsgsNewDetailedInfo struct + AnswerMsgID int64 + Bytes int32 + Status int32 + func (*MsgsNewDetailedInfo) CRC() uint32 + type MsgsStateInfo struct + Info []byte + ReqMsgID int64 + func (*MsgsStateInfo) CRC() uint32 + type MsgsStateReq struct + MsgIDs []int64 + func (*MsgsStateReq) CRC() uint32 + type NewSessionCreated struct + FirstMsgID int64 + ServerSalt int64 + UniqueID int64 + func (*NewSessionCreated) CRC() uint32 + type Null struct + func (*Null) CRC() uint32 + type PQInnerData struct + NewNonce *tl.Int256 + Nonce *tl.Int128 + P []byte + Pq []byte + Q []byte + ServerNonce *tl.Int128 + func (*PQInnerData) CRC() uint32 + type PingParams struct + PingID int64 + func (*PingParams) CRC() uint32 + type Pong struct + MsgID int64 + PingID int64 + func Ping(m requester, pingID int64) (*Pong, error) + func (*Pong) CRC() uint32 + type ReqDHParamsParams struct + EncryptedData []byte + Nonce *tl.Int128 + P []byte + PublicKeyFingerprint int64 + Q []byte + ServerNonce *tl.Int128 + func (*ReqDHParamsParams) CRC() uint32 + type ReqPQParams struct + Nonce *tl.Int128 + func (*ReqPQParams) CRC() uint32 + type ResPQ struct + Fingerprints []int64 + Nonce *tl.Int128 + Pq []byte + ServerNonce *tl.Int128 + func ReqPQ(m requester, nonce *tl.Int128) (*ResPQ, error) + func (*ResPQ) CRC() uint32 + type RpcAnswerDropped struct + Bytes int32 + MsgID int64 + SewNo int32 + func (*RpcAnswerDropped) CRC() uint32 + func (*RpcAnswerDropped) ImplementsRpcDropAnswer() + type RpcAnswerDroppedRunning null + func (*RpcAnswerDroppedRunning) CRC() uint32 + func (*RpcAnswerDroppedRunning) ImplementsRpcDropAnswer() + type RpcAnswerUnknown null + func (*RpcAnswerUnknown) CRC() uint32 + func (*RpcAnswerUnknown) ImplementsRpcDropAnswer() + type RpcDropAnswer interface + ImplementsRpcDropAnswer func() + type RpcError struct + ErrorCode int32 + ErrorMessage string + func (*RpcError) CRC() uint32 + type RpcResult struct + Obj tl.Object + ReqMsgID int64 + func (*RpcResult) CRC() uint32 + type ServerDHInnerData struct + DhPrime []byte + G int32 + GA []byte + Nonce *tl.Int128 + ServerNonce *tl.Int128 + ServerTime int32 + func (*ServerDHInnerData) CRC() uint32 + type ServerDHParams interface + ImplementsServerDHParams func() + func ReqDHParams(m requester, nonce, serverNonce *tl.Int128, p, q []byte, ...) (ServerDHParams, error) + type ServerDHParamsFail struct + NewNonceHash *tl.Int128 + Nonce *tl.Int128 + ServerNonce *tl.Int128 + func (*ServerDHParamsFail) CRC() uint32 + func (*ServerDHParamsFail) ImplementsServerDHParams() + type ServerDHParamsOk struct + EncryptedAnswer []byte + Nonce *tl.Int128 + ServerNonce *tl.Int128 + func (*ServerDHParamsOk) CRC() uint32 + func (*ServerDHParamsOk) ImplementsServerDHParams() + type SetClientDHParamsAnswer interface + ImplementsSetClientDHParamsAnswer func() + func SetClientDHParams(m requester, nonce, serverNonce *tl.Int128, encryptedData []byte) (SetClientDHParamsAnswer, error) + type SetClientDHParamsParams struct + EncryptedData []byte + Nonce *tl.Int128 + ServerNonce *tl.Int128 + func (*SetClientDHParamsParams) CRC() uint32