Documentation ¶
Index ¶
- Constants
- func TypesMap() map[uint32]string
- type BadMsgNotification
- type BadServerSalt
- type Client
- type ClientDHInnerData
- type DhGenFail
- type DhGenOk
- type DhGenRetry
- type Invoker
- type MsgsAck
- type NewSessionCreated
- type PQInnerDataBox
- type PQInnerDataClass
- type PQInnerDataConst
- type PQInnerDataTemp
- type Pong
- type RPCError
- type ReqDHParams
- type ReqPqMulti
- type ResPQ
- type ServerDHInnerData
- type ServerDHParamsBox
- type ServerDHParamsClass
- type ServerDHParamsFail
- type ServerDHParamsOk
- type SetClientDHParams
- type SetClientDHParamsAnswerBox
- type SetClientDHParamsAnswerClass
Constants ¶
const BadMsgNotificationTypeID = 0xa7eff811
BadMsgNotificationTypeID is TL type id of BadMsgNotification.
const BadServerSaltTypeID = 0xedab447b
BadServerSaltTypeID is TL type id of BadServerSalt.
const ClientDHInnerDataTypeID = 0x6643b654
ClientDHInnerDataTypeID is TL type id of ClientDHInnerData.
const DhGenFailTypeID = 0xa69dae02
DhGenFailTypeID is TL type id of DhGenFail.
const DhGenOkTypeID = 0x3bcbf734
DhGenOkTypeID is TL type id of DhGenOk.
const DhGenRetryTypeID = 0x46dc1fb9
DhGenRetryTypeID is TL type id of DhGenRetry.
const MsgsAckTypeID = 0x62d6b459
MsgsAckTypeID is TL type id of MsgsAck.
const NewSessionCreatedTypeID = 0x9ec20908
NewSessionCreatedTypeID is TL type id of NewSessionCreated.
const PQInnerDataConstTypeID = 0x83c95aec
PQInnerDataConstTypeID is TL type id of PQInnerDataConst.
const PQInnerDataTempTypeID = 0x3c6a84d4
PQInnerDataTempTypeID is TL type id of PQInnerDataTemp.
const PongTypeID = 0x347773c5
PongTypeID is TL type id of Pong.
const RPCErrorTypeID = 0x2144ca19
RPCErrorTypeID is TL type id of RPCError.
const ReqDHParamsTypeID = 0xd712e4be
ReqDHParamsTypeID is TL type id of ReqDHParams.
const ReqPqMultiTypeID = 0xbe7e8ef1
ReqPqMultiTypeID is TL type id of ReqPqMulti.
const ResPQTypeID = 0x5162463
ResPQTypeID is TL type id of ResPQ.
const ServerDHInnerDataTypeID = 0xb5890dba
ServerDHInnerDataTypeID is TL type id of ServerDHInnerData.
const ServerDHParamsFailTypeID = 0x79cb045d
ServerDHParamsFailTypeID is TL type id of ServerDHParamsFail.
const ServerDHParamsOkTypeID = 0xd0e8075c
ServerDHParamsOkTypeID is TL type id of ServerDHParamsOk.
const SetClientDHParamsTypeID = 0xf5045f1f
SetClientDHParamsTypeID is TL type id of SetClientDHParams.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BadMsgNotification ¶
type BadMsgNotification struct { // BadMsgID field of BadMsgNotification. BadMsgID int64 // BadMsgSeqno field of BadMsgNotification. BadMsgSeqno int // ErrorCode field of BadMsgNotification. ErrorCode int }
BadMsgNotification represents TL type `bad_msg_notification#a7eff811`.
type BadServerSalt ¶
type BadServerSalt struct { // BadMsgID field of BadServerSalt. BadMsgID int64 // BadMsgSeqno field of BadServerSalt. BadMsgSeqno int // ErrorCode field of BadServerSalt. ErrorCode int // NewServerSalt field of BadServerSalt. NewServerSalt int64 }
BadServerSalt represents TL type `bad_server_salt#edab447b`.
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client implement methods for calling functions from TL schema via Invoker.
type ClientDHInnerData ¶
type ClientDHInnerData struct { // Nonce field of ClientDHInnerData. Nonce bin.Int128 // ServerNonce field of ClientDHInnerData. ServerNonce bin.Int128 // RetryID field of ClientDHInnerData. RetryID int64 // GB field of ClientDHInnerData. GB []byte }
ClientDHInnerData represents TL type `client_DH_inner_data#6643b654`.
type DhGenFail ¶
type DhGenFail struct { // Nonce field of DhGenFail. Nonce bin.Int128 // ServerNonce field of DhGenFail. ServerNonce bin.Int128 // NewNonceHash3 field of DhGenFail. NewNonceHash3 bin.Int128 }
DhGenFail represents TL type `dh_gen_fail#a69dae02`.
type DhGenOk ¶
type DhGenOk struct { // Nonce field of DhGenOk. Nonce bin.Int128 // ServerNonce field of DhGenOk. ServerNonce bin.Int128 // NewNonceHash1 field of DhGenOk. NewNonceHash1 bin.Int128 }
DhGenOk represents TL type `dh_gen_ok#3bcbf734`.
type DhGenRetry ¶
type DhGenRetry struct { // Nonce field of DhGenRetry. Nonce bin.Int128 // ServerNonce field of DhGenRetry. ServerNonce bin.Int128 // NewNonceHash2 field of DhGenRetry. NewNonceHash2 bin.Int128 }
DhGenRetry represents TL type `dh_gen_retry#46dc1fb9`.
type Invoker ¶
type Invoker interface {
InvokeRaw(ctx context.Context, input bin.Encoder, output bin.Decoder) error
}
Invoker can invoke raw MTProto rpc calls.
type MsgsAck ¶
type MsgsAck struct { // MsgIds field of MsgsAck. MsgIds []int64 }
MsgsAck represents TL type `msgs_ack#62d6b459`.
type NewSessionCreated ¶
type NewSessionCreated struct { // FirstMsgID field of NewSessionCreated. FirstMsgID int64 // UniqueID field of NewSessionCreated. UniqueID int64 // ServerSalt field of NewSessionCreated. ServerSalt int64 }
NewSessionCreated represents TL type `new_session_created#9ec20908`.
type PQInnerDataBox ¶
type PQInnerDataBox struct {
P_Q_inner_data PQInnerDataClass
}
PQInnerData boxes the PQInnerDataClass providing a helper.
type PQInnerDataClass ¶
type PQInnerDataClass interface { bin.Encoder bin.Decoder // contains filtered or unexported methods }
PQInnerDataClass represents P_Q_inner_data generic type.
Example:
g, err := DecodePQInnerData(buf) if err != nil { panic(err) } switch v := g.(type) { case *PQInnerDataConst: // p_q_inner_data_const#83c95aec case *PQInnerDataTemp: // p_q_inner_data_temp#3c6a84d4 default: panic(v) }
func DecodePQInnerData ¶
func DecodePQInnerData(buf *bin.Buffer) (PQInnerDataClass, error)
DecodePQInnerData implements binary de-serialization for PQInnerDataClass.
type PQInnerDataConst ¶
type PQInnerDataConst struct { // Pq field of PQInnerDataConst. Pq []byte // P field of PQInnerDataConst. P []byte // Q field of PQInnerDataConst. Q []byte // Nonce field of PQInnerDataConst. Nonce bin.Int128 // ServerNonce field of PQInnerDataConst. ServerNonce bin.Int128 // NewNonce field of PQInnerDataConst. NewNonce bin.Int256 }
PQInnerDataConst represents TL type `p_q_inner_data_const#83c95aec`.
type PQInnerDataTemp ¶
type PQInnerDataTemp struct { // Pq field of PQInnerDataTemp. Pq []byte // P field of PQInnerDataTemp. P []byte // Q field of PQInnerDataTemp. Q []byte // Nonce field of PQInnerDataTemp. Nonce bin.Int128 // ServerNonce field of PQInnerDataTemp. ServerNonce bin.Int128 // NewNonce field of PQInnerDataTemp. NewNonce bin.Int256 // ExpiresIn field of PQInnerDataTemp. ExpiresIn int }
PQInnerDataTemp represents TL type `p_q_inner_data_temp#3c6a84d4`.
type RPCError ¶
type RPCError struct { // ErrorCode field of RPCError. ErrorCode int // ErrorMessage field of RPCError. ErrorMessage string }
RPCError represents TL type `rpc_error#2144ca19`.
type ReqDHParams ¶
type ReqDHParams struct { // Nonce field of ReqDHParams. Nonce bin.Int128 // ServerNonce field of ReqDHParams. ServerNonce bin.Int128 // P field of ReqDHParams. P []byte // Q field of ReqDHParams. Q []byte // PublicKeyFingerprint field of ReqDHParams. PublicKeyFingerprint int64 // EncryptedData field of ReqDHParams. EncryptedData []byte }
ReqDHParams represents TL type `req_DH_params#d712e4be`.
type ReqPqMulti ¶
ReqPqMulti represents TL type `req_pq_multi#be7e8ef1`.
type ResPQ ¶
type ResPQ struct { // Nonce field of ResPQ. Nonce bin.Int128 // ServerNonce field of ResPQ. ServerNonce bin.Int128 // Pq field of ResPQ. Pq []byte // ServerPublicKeyFingerprints field of ResPQ. ServerPublicKeyFingerprints []int64 }
ResPQ represents TL type `resPQ#5162463`.
type ServerDHInnerData ¶
type ServerDHInnerData struct { // Nonce field of ServerDHInnerData. Nonce bin.Int128 // ServerNonce field of ServerDHInnerData. ServerNonce bin.Int128 // G field of ServerDHInnerData. G int // DhPrime field of ServerDHInnerData. DhPrime []byte // GA field of ServerDHInnerData. GA []byte // ServerTime field of ServerDHInnerData. ServerTime int }
ServerDHInnerData represents TL type `server_DH_inner_data#b5890dba`.
type ServerDHParamsBox ¶
type ServerDHParamsBox struct {
Server_DH_Params ServerDHParamsClass
}
ServerDHParams boxes the ServerDHParamsClass providing a helper.
type ServerDHParamsClass ¶
type ServerDHParamsClass interface { bin.Encoder bin.Decoder // contains filtered or unexported methods }
ServerDHParamsClass represents Server_DH_Params generic type.
Example:
g, err := DecodeServerDHParams(buf) if err != nil { panic(err) } switch v := g.(type) { case *ServerDHParamsFail: // server_DH_params_fail#79cb045d case *ServerDHParamsOk: // server_DH_params_ok#d0e8075c default: panic(v) }
func DecodeServerDHParams ¶
func DecodeServerDHParams(buf *bin.Buffer) (ServerDHParamsClass, error)
DecodeServerDHParams implements binary de-serialization for ServerDHParamsClass.
type ServerDHParamsFail ¶
type ServerDHParamsFail struct { // Nonce field of ServerDHParamsFail. Nonce bin.Int128 // ServerNonce field of ServerDHParamsFail. ServerNonce bin.Int128 // NewNonceHash field of ServerDHParamsFail. NewNonceHash bin.Int128 }
ServerDHParamsFail represents TL type `server_DH_params_fail#79cb045d`.
type ServerDHParamsOk ¶
type ServerDHParamsOk struct { // Nonce field of ServerDHParamsOk. Nonce bin.Int128 // ServerNonce field of ServerDHParamsOk. ServerNonce bin.Int128 // EncryptedAnswer field of ServerDHParamsOk. EncryptedAnswer []byte }
ServerDHParamsOk represents TL type `server_DH_params_ok#d0e8075c`.
type SetClientDHParams ¶
type SetClientDHParams struct { // Nonce field of SetClientDHParams. Nonce bin.Int128 // ServerNonce field of SetClientDHParams. ServerNonce bin.Int128 // EncryptedData field of SetClientDHParams. EncryptedData []byte }
SetClientDHParams represents TL type `set_client_DH_params#f5045f1f`.
type SetClientDHParamsAnswerBox ¶
type SetClientDHParamsAnswerBox struct {
Set_client_DH_params_answer SetClientDHParamsAnswerClass
}
SetClientDHParamsAnswer boxes the SetClientDHParamsAnswerClass providing a helper.
type SetClientDHParamsAnswerClass ¶
type SetClientDHParamsAnswerClass interface { bin.Encoder bin.Decoder // contains filtered or unexported methods }
SetClientDHParamsAnswerClass represents Set_client_DH_params_answer generic type.
Example:
g, err := DecodeSetClientDHParamsAnswer(buf) if err != nil { panic(err) } switch v := g.(type) { case *DhGenOk: // dh_gen_ok#3bcbf734 case *DhGenRetry: // dh_gen_retry#46dc1fb9 case *DhGenFail: // dh_gen_fail#a69dae02 default: panic(v) }
func DecodeSetClientDHParamsAnswer ¶
func DecodeSetClientDHParamsAnswer(buf *bin.Buffer) (SetClientDHParamsAnswerClass, error)
DecodeSetClientDHParamsAnswer implements binary de-serialization for SetClientDHParamsAnswerClass.
Source Files ¶
- tl_bad_msg_notification_gen.go
- tl_bad_server_salt_gen.go
- tl_client_d_h_inner_data_gen.go
- tl_client_gen.go
- tl_msgs_ack_gen.go
- tl_new_session_created_gen.go
- tl_p_q_inner_data_gen.go
- tl_pong_gen.go
- tl_registry_gen.go
- tl_req_d_h_params_gen.go
- tl_req_pq_multi_gen.go
- tl_res_p_q_gen.go
- tl_rpc_error_gen.go
- tl_server_d_h_inner_data_gen.go
- tl_server_d_h_params_gen.go
- tl_set_client_d_h_params_answer_gen.go
- tl_set_client_d_h_params_gen.go