package mt
Import Path
github.com/gotd/td/internal/mt (on go.dev)
Dependency Relation
imports 10 packages, and imported by 4 packages
Involved Source Files
Package mt contains generated code based on mtproto schema.
See https://core.telegram.org/schema/mtproto for reference.
Some types are implemented manually in "proto" package.
tl_bad_msg_notification_gen.go
tl_client_d_h_inner_data_gen.go
tl_destroy_session_gen.go
tl_destroy_session_res_gen.go
tl_future_salt_gen.go
tl_future_salts_gen.go
tl_get_future_salts_gen.go
tl_gzip_packed_gen.go
tl_http_wait_gen.go
tl_message_gen.go
tl_msg_container_gen.go
tl_msg_copy_gen.go
tl_msg_detailed_info_gen.go
tl_msg_resend_req_gen.go
tl_msgs_ack_gen.go
tl_msgs_all_info_gen.go
tl_msgs_state_info_gen.go
tl_msgs_state_req_gen.go
tl_new_session_created_gen.go
tl_p_q_inner_data_gen.go
tl_ping_delay_disconnect_gen.go
tl_ping_gen.go
tl_pong_gen.go
tl_registry_gen.go
tl_req_d_h_params_gen.go
tl_req_pq_gen.go
tl_req_pq_multi_gen.go
tl_res_p_q_gen.go
tl_rpc_drop_answer_const_gen.go
tl_rpc_drop_answer_gen.go
tl_rpc_error_gen.go
tl_rpc_result_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
Package-Level Type Names (total 59, all are exported)
BadMsgNotification represents TL type `bad_msg_notification#a7eff811`.
BadMsgID field of BadMsgNotification.
BadMsgSeqno field of BadMsgNotification.
ErrorCode field of BadMsgNotification.
Decode implements bin.Decoder.
DecodeBare implements bin.BareDecoder.
Encode implements bin.Encoder.
EncodeBare implements bin.BareEncoder.
GetBadMsgID returns value of BadMsgID field.
GetBadMsgSeqno returns value of BadMsgSeqno field.
GetErrorCode returns value of ErrorCode field.
String implements fmt.Stringer.
TypeID returns type id in TL schema.
See https://core.telegram.org/mtproto/TL-tl#remarks.
TypeInfo returns info about TL type.
TypeName returns name of type in TL schema.
(*BadMsgNotification) Zero() bool
construct implements constructor of BadMsgNotificationClass.
*BadMsgNotification : BadMsgNotificationClass
*BadMsgNotification : github.com/gotd/td/bin.BareDecoder
*BadMsgNotification : github.com/gotd/td/bin.BareEncoder
*BadMsgNotification : github.com/gotd/td/bin.Decoder
*BadMsgNotification : github.com/gotd/td/bin.Encoder
*BadMsgNotification : github.com/gotd/td/bin.Object
*BadMsgNotification : github.com/gotd/td/tdp.Object
*BadMsgNotification : fmt.Stringer
*BadMsgNotification : context.stringer
*BadMsgNotification : runtime.stringer
BadMsgNotification boxes the BadMsgNotificationClass providing a helper.
BadMsgNotification BadMsgNotificationClass
Decode implements bin.Decoder for BadMsgNotificationBox.
Encode implements bin.Encode for BadMsgNotificationBox.
*BadMsgNotificationBox : github.com/gotd/td/bin.Decoder
*BadMsgNotificationBox : github.com/gotd/td/bin.Encoder
*BadMsgNotificationBox : github.com/gotd/td/bin.Object
BadMsgNotificationClass represents BadMsgNotification generic type.
Example:
g, err := mt.DecodeBadMsgNotification(buf)
if err != nil {
panic(err)
}
switch v := g.(type) {
case *mt.BadMsgNotification: // bad_msg_notification#a7eff811
case *mt.BadServerSalt: // bad_server_salt#edab447b
default: panic(v)
}
( BadMsgNotificationClass) Decode(b *bin.Buffer) error
( BadMsgNotificationClass) DecodeBare(b *bin.Buffer) error
( BadMsgNotificationClass) Encode(b *bin.Buffer) error
( BadMsgNotificationClass) EncodeBare(b *bin.Buffer) error
BadMsgID field of BadMsgNotification.
BadMsgSeqno field of BadMsgNotification.
ErrorCode field of BadMsgNotification.
String implements fmt.Stringer.
TypeID returns type id in TL schema.
See https://core.telegram.org/mtproto/TL-tl#remarks.
TypeName returns name of type in TL schema.
Zero returns true if current object has a zero value.
( BadMsgNotificationClass) construct() BadMsgNotificationClass
*BadMsgNotification
*BadServerSalt
BadMsgNotificationClass : github.com/gotd/td/bin.BareDecoder
BadMsgNotificationClass : github.com/gotd/td/bin.BareEncoder
BadMsgNotificationClass : github.com/gotd/td/bin.Decoder
BadMsgNotificationClass : github.com/gotd/td/bin.Encoder
BadMsgNotificationClass : github.com/gotd/td/bin.Object
BadMsgNotificationClass : fmt.Stringer
BadMsgNotificationClass : context.stringer
BadMsgNotificationClass : runtime.stringer
func DecodeBadMsgNotification(buf *bin.Buffer) (BadMsgNotificationClass, error)
func BadMsgNotification.construct() BadMsgNotificationClass
func BadServerSalt.construct() BadMsgNotificationClass
BadServerSalt represents TL type `bad_server_salt#edab447b`.
BadMsgID field of BadServerSalt.
BadMsgSeqno field of BadServerSalt.
ErrorCode field of BadServerSalt.
NewServerSalt field of BadServerSalt.
Decode implements bin.Decoder.
DecodeBare implements bin.BareDecoder.
Encode implements bin.Encoder.
EncodeBare implements bin.BareEncoder.
GetBadMsgID returns value of BadMsgID field.
GetBadMsgSeqno returns value of BadMsgSeqno field.
GetErrorCode returns value of ErrorCode field.
GetNewServerSalt returns value of NewServerSalt field.
String implements fmt.Stringer.
TypeID returns type id in TL schema.
See https://core.telegram.org/mtproto/TL-tl#remarks.
TypeInfo returns info about TL type.
TypeName returns name of type in TL schema.
(*BadServerSalt) Zero() bool
construct implements constructor of BadMsgNotificationClass.
*BadServerSalt : BadMsgNotificationClass
*BadServerSalt : github.com/gotd/td/bin.BareDecoder
*BadServerSalt : github.com/gotd/td/bin.BareEncoder
*BadServerSalt : github.com/gotd/td/bin.Decoder
*BadServerSalt : github.com/gotd/td/bin.Encoder
*BadServerSalt : github.com/gotd/td/bin.Object
*BadServerSalt : github.com/gotd/td/tdp.Object
*BadServerSalt : fmt.Stringer
*BadServerSalt : context.stringer
*BadServerSalt : runtime.stringer
ClientDHInnerData represents TL type `client_DH_inner_data#6643b654`.
GB field of ClientDHInnerData.
Nonce field of ClientDHInnerData.
RetryID field of ClientDHInnerData.
ServerNonce field of ClientDHInnerData.
Decode implements bin.Decoder.
DecodeBare implements bin.BareDecoder.
Encode implements bin.Encoder.
EncodeBare implements bin.BareEncoder.
GetGB returns value of GB field.
GetNonce returns value of Nonce field.
GetRetryID returns value of RetryID field.
GetServerNonce returns value of ServerNonce field.
String implements fmt.Stringer.
TypeID returns type id in TL schema.
See https://core.telegram.org/mtproto/TL-tl#remarks.
TypeInfo returns info about TL type.
TypeName returns name of type in TL schema.
(*ClientDHInnerData) Zero() bool
*ClientDHInnerData : github.com/gotd/td/bin.BareDecoder
*ClientDHInnerData : github.com/gotd/td/bin.BareEncoder
*ClientDHInnerData : github.com/gotd/td/bin.Decoder
*ClientDHInnerData : github.com/gotd/td/bin.Encoder
*ClientDHInnerData : github.com/gotd/td/bin.Object
*ClientDHInnerData : github.com/gotd/td/tdp.Object
*ClientDHInnerData : fmt.Stringer
*ClientDHInnerData : context.stringer
*ClientDHInnerData : runtime.stringer
DestroySessionNone represents TL type `destroy_session_none#62d350c9`.
SessionID field of DestroySessionRequest.
Decode implements bin.Decoder.
DecodeBare implements bin.BareDecoder.
Encode implements bin.Encoder.
EncodeBare implements bin.BareEncoder.
GetSessionID returns value of SessionID field.
String implements fmt.Stringer.
TypeID returns type id in TL schema.
See https://core.telegram.org/mtproto/TL-tl#remarks.
TypeInfo returns info about TL type.
TypeName returns name of type in TL schema.
(*DestroySessionNone) Zero() bool
construct implements constructor of DestroySessionResClass.
*DestroySessionNone : DestroySessionResClass
*DestroySessionNone : github.com/gotd/td/bin.BareDecoder
*DestroySessionNone : github.com/gotd/td/bin.BareEncoder
*DestroySessionNone : github.com/gotd/td/bin.Decoder
*DestroySessionNone : github.com/gotd/td/bin.Encoder
*DestroySessionNone : github.com/gotd/td/bin.Object
*DestroySessionNone : github.com/gotd/td/tdp.Object
*DestroySessionNone : fmt.Stringer
*DestroySessionNone : context.stringer
*DestroySessionNone : runtime.stringer
DestroySessionOk represents TL type `destroy_session_ok#e22045fc`.
SessionID field of DestroySessionRequest.
Decode implements bin.Decoder.
DecodeBare implements bin.BareDecoder.
Encode implements bin.Encoder.
EncodeBare implements bin.BareEncoder.
GetSessionID returns value of SessionID field.
String implements fmt.Stringer.
TypeID returns type id in TL schema.
See https://core.telegram.org/mtproto/TL-tl#remarks.
TypeInfo returns info about TL type.
TypeName returns name of type in TL schema.
(*DestroySessionOk) Zero() bool
construct implements constructor of DestroySessionResClass.
*DestroySessionOk : DestroySessionResClass
*DestroySessionOk : github.com/gotd/td/bin.BareDecoder
*DestroySessionOk : github.com/gotd/td/bin.BareEncoder
*DestroySessionOk : github.com/gotd/td/bin.Decoder
*DestroySessionOk : github.com/gotd/td/bin.Encoder
*DestroySessionOk : github.com/gotd/td/bin.Object
*DestroySessionOk : github.com/gotd/td/tdp.Object
*DestroySessionOk : fmt.Stringer
*DestroySessionOk : context.stringer
*DestroySessionOk : runtime.stringer
DestroySessionRequest represents TL type `destroy_session#e7512126`.
SessionID field of DestroySessionRequest.
Decode implements bin.Decoder.
DecodeBare implements bin.BareDecoder.
Encode implements bin.Encoder.
EncodeBare implements bin.BareEncoder.
GetSessionID returns value of SessionID field.
String implements fmt.Stringer.
TypeID returns type id in TL schema.
See https://core.telegram.org/mtproto/TL-tl#remarks.
TypeInfo returns info about TL type.
TypeName returns name of type in TL schema.
(*DestroySessionRequest) Zero() bool
*DestroySessionRequest : github.com/gotd/td/bin.BareDecoder
*DestroySessionRequest : github.com/gotd/td/bin.BareEncoder
*DestroySessionRequest : github.com/gotd/td/bin.Decoder
*DestroySessionRequest : github.com/gotd/td/bin.Encoder
*DestroySessionRequest : github.com/gotd/td/bin.Object
*DestroySessionRequest : github.com/gotd/td/tdp.Object
*DestroySessionRequest : fmt.Stringer
*DestroySessionRequest : context.stringer
*DestroySessionRequest : runtime.stringer
DestroySessionRes boxes the DestroySessionResClass providing a helper.
DestroySessionRes DestroySessionResClass
Decode implements bin.Decoder for DestroySessionResBox.
Encode implements bin.Encode for DestroySessionResBox.
*DestroySessionResBox : github.com/gotd/td/bin.Decoder
*DestroySessionResBox : github.com/gotd/td/bin.Encoder
*DestroySessionResBox : github.com/gotd/td/bin.Object
DestroySessionResClass represents DestroySessionRes generic type.
Example:
g, err := mt.DecodeDestroySessionRes(buf)
if err != nil {
panic(err)
}
switch v := g.(type) {
case *mt.DestroySessionOk: // destroy_session_ok#e22045fc
case *mt.DestroySessionNone: // destroy_session_none#62d350c9
default: panic(v)
}
( DestroySessionResClass) Decode(b *bin.Buffer) error
( DestroySessionResClass) DecodeBare(b *bin.Buffer) error
( DestroySessionResClass) Encode(b *bin.Buffer) error
( DestroySessionResClass) EncodeBare(b *bin.Buffer) error
SessionID field of DestroySessionOk.
String implements fmt.Stringer.
TypeID returns type id in TL schema.
See https://core.telegram.org/mtproto/TL-tl#remarks.
TypeName returns name of type in TL schema.
Zero returns true if current object has a zero value.
( DestroySessionResClass) construct() DestroySessionResClass
*DestroySessionNone
*DestroySessionOk
DestroySessionResClass : github.com/gotd/td/bin.BareDecoder
DestroySessionResClass : github.com/gotd/td/bin.BareEncoder
DestroySessionResClass : github.com/gotd/td/bin.Decoder
DestroySessionResClass : github.com/gotd/td/bin.Encoder
DestroySessionResClass : github.com/gotd/td/bin.Object
DestroySessionResClass : fmt.Stringer
DestroySessionResClass : context.stringer
DestroySessionResClass : runtime.stringer
func DecodeDestroySessionRes(buf *bin.Buffer) (DestroySessionResClass, error)
func DestroySessionNone.construct() DestroySessionResClass
func DestroySessionOk.construct() DestroySessionResClass
DhGenFail represents TL type `dh_gen_fail#a69dae02`.
NewNonceHash3 field of DhGenFail.
Nonce field of DhGenFail.
ServerNonce field of DhGenFail.
Decode implements bin.Decoder.
DecodeBare implements bin.BareDecoder.
Encode implements bin.Encoder.
EncodeBare implements bin.BareEncoder.
GetNewNonceHash3 returns value of NewNonceHash3 field.
GetNonce returns value of Nonce field.
GetServerNonce returns value of ServerNonce field.
String implements fmt.Stringer.
TypeID returns type id in TL schema.
See https://core.telegram.org/mtproto/TL-tl#remarks.
TypeInfo returns info about TL type.
TypeName returns name of type in TL schema.
(*DhGenFail) Zero() bool
construct implements constructor of SetClientDHParamsAnswerClass.
*DhGenFail : SetClientDHParamsAnswerClass
*DhGenFail : github.com/gotd/td/bin.BareDecoder
*DhGenFail : github.com/gotd/td/bin.BareEncoder
*DhGenFail : github.com/gotd/td/bin.Decoder
*DhGenFail : github.com/gotd/td/bin.Encoder
*DhGenFail : github.com/gotd/td/bin.Object
*DhGenFail : github.com/gotd/td/tdp.Object
*DhGenFail : fmt.Stringer
*DhGenFail : context.stringer
*DhGenFail : runtime.stringer
DhGenOk represents TL type `dh_gen_ok#3bcbf734`.
NewNonceHash1 field of DhGenOk.
Nonce field of DhGenOk.
ServerNonce field of DhGenOk.
Decode implements bin.Decoder.
DecodeBare implements bin.BareDecoder.
Encode implements bin.Encoder.
EncodeBare implements bin.BareEncoder.
GetNewNonceHash1 returns value of NewNonceHash1 field.
GetNonce returns value of Nonce field.
GetServerNonce returns value of ServerNonce field.
String implements fmt.Stringer.
TypeID returns type id in TL schema.
See https://core.telegram.org/mtproto/TL-tl#remarks.
TypeInfo returns info about TL type.
TypeName returns name of type in TL schema.
(*DhGenOk) Zero() bool
construct implements constructor of SetClientDHParamsAnswerClass.
*DhGenOk : SetClientDHParamsAnswerClass
*DhGenOk : github.com/gotd/td/bin.BareDecoder
*DhGenOk : github.com/gotd/td/bin.BareEncoder
*DhGenOk : github.com/gotd/td/bin.Decoder
*DhGenOk : github.com/gotd/td/bin.Encoder
*DhGenOk : github.com/gotd/td/bin.Object
*DhGenOk : github.com/gotd/td/tdp.Object
*DhGenOk : fmt.Stringer
*DhGenOk : context.stringer
*DhGenOk : runtime.stringer
DhGenRetry represents TL type `dh_gen_retry#46dc1fb9`.
NewNonceHash2 field of DhGenRetry.
Nonce field of DhGenRetry.
ServerNonce field of DhGenRetry.
Decode implements bin.Decoder.
DecodeBare implements bin.BareDecoder.
Encode implements bin.Encoder.
EncodeBare implements bin.BareEncoder.
GetNewNonceHash2 returns value of NewNonceHash2 field.
GetNonce returns value of Nonce field.
GetServerNonce returns value of ServerNonce field.
String implements fmt.Stringer.
TypeID returns type id in TL schema.
See https://core.telegram.org/mtproto/TL-tl#remarks.
TypeInfo returns info about TL type.
TypeName returns name of type in TL schema.
(*DhGenRetry) Zero() bool
construct implements constructor of SetClientDHParamsAnswerClass.
*DhGenRetry : SetClientDHParamsAnswerClass
*DhGenRetry : github.com/gotd/td/bin.BareDecoder
*DhGenRetry : github.com/gotd/td/bin.BareEncoder
*DhGenRetry : github.com/gotd/td/bin.Decoder
*DhGenRetry : github.com/gotd/td/bin.Encoder
*DhGenRetry : github.com/gotd/td/bin.Object
*DhGenRetry : github.com/gotd/td/tdp.Object
*DhGenRetry : fmt.Stringer
*DhGenRetry : context.stringer
*DhGenRetry : runtime.stringer
FutureSalt represents TL type `future_salt#949d9dc`.
Salt field of FutureSalt.
ValidSince field of FutureSalt.
ValidUntil field of FutureSalt.
Decode implements bin.Decoder.
DecodeBare implements bin.BareDecoder.
Encode implements bin.Encoder.
EncodeBare implements bin.BareEncoder.
GetSalt returns value of Salt field.
GetValidSince returns value of ValidSince field.
GetValidUntil returns value of ValidUntil field.
String implements fmt.Stringer.
TypeID returns type id in TL schema.
See https://core.telegram.org/mtproto/TL-tl#remarks.
TypeInfo returns info about TL type.
TypeName returns name of type in TL schema.
(*FutureSalt) Zero() bool
*FutureSalt : github.com/gotd/td/bin.BareDecoder
*FutureSalt : github.com/gotd/td/bin.BareEncoder
*FutureSalt : github.com/gotd/td/bin.Decoder
*FutureSalt : github.com/gotd/td/bin.Encoder
*FutureSalt : github.com/gotd/td/bin.Object
*FutureSalt : github.com/gotd/td/tdp.Object
*FutureSalt : fmt.Stringer
*FutureSalt : context.stringer
*FutureSalt : runtime.stringer
func (*FutureSalts).GetSalts() (value []FutureSalt)
func github.com/gotd/td/internal/mtproto/salts.(*Salts).Store(salts []FutureSalt)
FutureSalts represents TL type `future_salts#ae500895`.
Now field of FutureSalts.
ReqMsgID field of FutureSalts.
Salts field of FutureSalts.
Decode implements bin.Decoder.
DecodeBare implements bin.BareDecoder.
Encode implements bin.Encoder.
EncodeBare implements bin.BareEncoder.
GetNow returns value of Now field.
GetReqMsgID returns value of ReqMsgID field.
GetSalts returns value of Salts field.
String implements fmt.Stringer.
TypeID returns type id in TL schema.
See https://core.telegram.org/mtproto/TL-tl#remarks.
TypeInfo returns info about TL type.
TypeName returns name of type in TL schema.
(*FutureSalts) Zero() bool
*FutureSalts : github.com/gotd/td/bin.BareDecoder
*FutureSalts : github.com/gotd/td/bin.BareEncoder
*FutureSalts : github.com/gotd/td/bin.Decoder
*FutureSalts : github.com/gotd/td/bin.Encoder
*FutureSalts : github.com/gotd/td/bin.Object
*FutureSalts : github.com/gotd/td/tdp.Object
*FutureSalts : fmt.Stringer
*FutureSalts : context.stringer
*FutureSalts : runtime.stringer
GetFutureSaltsRequest represents TL type `get_future_salts#b921bd04`.
Num field of GetFutureSaltsRequest.
Decode implements bin.Decoder.
DecodeBare implements bin.BareDecoder.
Encode implements bin.Encoder.
EncodeBare implements bin.BareEncoder.
GetNum returns value of Num field.
String implements fmt.Stringer.
TypeID returns type id in TL schema.
See https://core.telegram.org/mtproto/TL-tl#remarks.
TypeInfo returns info about TL type.
TypeName returns name of type in TL schema.
(*GetFutureSaltsRequest) Zero() bool
*GetFutureSaltsRequest : github.com/gotd/td/bin.BareDecoder
*GetFutureSaltsRequest : github.com/gotd/td/bin.BareEncoder
*GetFutureSaltsRequest : github.com/gotd/td/bin.Decoder
*GetFutureSaltsRequest : github.com/gotd/td/bin.Encoder
*GetFutureSaltsRequest : github.com/gotd/td/bin.Object
*GetFutureSaltsRequest : github.com/gotd/td/tdp.Object
*GetFutureSaltsRequest : fmt.Stringer
*GetFutureSaltsRequest : context.stringer
*GetFutureSaltsRequest : runtime.stringer
GzipPacked represents TL type `gzip_packed#3072cfa1`.
PackedData field of GzipPacked.
Decode implements bin.Decoder.
DecodeBare implements bin.BareDecoder.
Encode implements bin.Encoder.
EncodeBare implements bin.BareEncoder.
GetPackedData returns value of PackedData field.
String implements fmt.Stringer.
TypeID returns type id in TL schema.
See https://core.telegram.org/mtproto/TL-tl#remarks.
TypeInfo returns info about TL type.
TypeName returns name of type in TL schema.
(*GzipPacked) Zero() bool
*GzipPacked : github.com/gotd/td/bin.BareDecoder
*GzipPacked : github.com/gotd/td/bin.BareEncoder
*GzipPacked : github.com/gotd/td/bin.Decoder
*GzipPacked : github.com/gotd/td/bin.Encoder
*GzipPacked : github.com/gotd/td/bin.Object
*GzipPacked : github.com/gotd/td/tdp.Object
*GzipPacked : fmt.Stringer
*GzipPacked : context.stringer
*GzipPacked : runtime.stringer
func (*Message).GetBody() (value GzipPacked)
func (*RPCResult).GetResult() (value GzipPacked)
HTTPWaitRequest represents TL type `http_wait#9299359f`.
MaxDelay field of HTTPWaitRequest.
MaxWait field of HTTPWaitRequest.
WaitAfter field of HTTPWaitRequest.
Decode implements bin.Decoder.
DecodeBare implements bin.BareDecoder.
Encode implements bin.Encoder.
EncodeBare implements bin.BareEncoder.
GetMaxDelay returns value of MaxDelay field.
GetMaxWait returns value of MaxWait field.
GetWaitAfter returns value of WaitAfter field.
String implements fmt.Stringer.
TypeID returns type id in TL schema.
See https://core.telegram.org/mtproto/TL-tl#remarks.
TypeInfo returns info about TL type.
TypeName returns name of type in TL schema.
(*HTTPWaitRequest) Zero() bool
*HTTPWaitRequest : github.com/gotd/td/bin.BareDecoder
*HTTPWaitRequest : github.com/gotd/td/bin.BareEncoder
*HTTPWaitRequest : github.com/gotd/td/bin.Decoder
*HTTPWaitRequest : github.com/gotd/td/bin.Encoder
*HTTPWaitRequest : github.com/gotd/td/bin.Object
*HTTPWaitRequest : github.com/gotd/td/tdp.Object
*HTTPWaitRequest : fmt.Stringer
*HTTPWaitRequest : context.stringer
*HTTPWaitRequest : runtime.stringer
Message represents TL type `message#5bb8e511`.
Body field of Message.
Bytes field of Message.
MsgID field of Message.
Seqno field of Message.
Decode implements bin.Decoder.
DecodeBare implements bin.BareDecoder.
Encode implements bin.Encoder.
EncodeBare implements bin.BareEncoder.
GetBody returns value of Body field.
GetBytes returns value of Bytes field.
GetMsgID returns value of MsgID field.
GetSeqno returns value of Seqno field.
String implements fmt.Stringer.
TypeID returns type id in TL schema.
See https://core.telegram.org/mtproto/TL-tl#remarks.
TypeInfo returns info about TL type.
TypeName returns name of type in TL schema.
(*Message) Zero() bool
*Message : github.com/gotd/td/bin.BareDecoder
*Message : github.com/gotd/td/bin.BareEncoder
*Message : github.com/gotd/td/bin.Decoder
*Message : github.com/gotd/td/bin.Encoder
*Message : github.com/gotd/td/bin.Object
*Message : github.com/gotd/td/tdp.Object
*Message : fmt.Stringer
*Message : context.stringer
*Message : runtime.stringer
func (*MsgContainer).GetMessages() (value []Message)
func (*MsgCopy).GetOrigMessage() (value Message)
MsgContainer represents TL type `msg_container#73f1f8dc`.
Messages field of MsgContainer.
Decode implements bin.Decoder.
DecodeBare implements bin.BareDecoder.
Encode implements bin.Encoder.
EncodeBare implements bin.BareEncoder.
GetMessages returns value of Messages field.
String implements fmt.Stringer.
TypeID returns type id in TL schema.
See https://core.telegram.org/mtproto/TL-tl#remarks.
TypeInfo returns info about TL type.
TypeName returns name of type in TL schema.
(*MsgContainer) Zero() bool
*MsgContainer : github.com/gotd/td/bin.BareDecoder
*MsgContainer : github.com/gotd/td/bin.BareEncoder
*MsgContainer : github.com/gotd/td/bin.Decoder
*MsgContainer : github.com/gotd/td/bin.Encoder
*MsgContainer : github.com/gotd/td/bin.Object
*MsgContainer : github.com/gotd/td/tdp.Object
*MsgContainer : fmt.Stringer
*MsgContainer : context.stringer
*MsgContainer : runtime.stringer
MsgCopy represents TL type `msg_copy#e06046b2`.
OrigMessage field of MsgCopy.
Decode implements bin.Decoder.
DecodeBare implements bin.BareDecoder.
Encode implements bin.Encoder.
EncodeBare implements bin.BareEncoder.
GetOrigMessage returns value of OrigMessage field.
String implements fmt.Stringer.
TypeID returns type id in TL schema.
See https://core.telegram.org/mtproto/TL-tl#remarks.
TypeInfo returns info about TL type.
TypeName returns name of type in TL schema.
(*MsgCopy) Zero() bool
*MsgCopy : github.com/gotd/td/bin.BareDecoder
*MsgCopy : github.com/gotd/td/bin.BareEncoder
*MsgCopy : github.com/gotd/td/bin.Decoder
*MsgCopy : github.com/gotd/td/bin.Encoder
*MsgCopy : github.com/gotd/td/bin.Object
*MsgCopy : github.com/gotd/td/tdp.Object
*MsgCopy : fmt.Stringer
*MsgCopy : context.stringer
*MsgCopy : runtime.stringer
MsgDetailedInfo represents TL type `msg_detailed_info#276d3ec6`.
AnswerMsgID field of MsgDetailedInfo.
Bytes field of MsgDetailedInfo.
MsgID field of MsgDetailedInfo.
Status field of MsgDetailedInfo.
Decode implements bin.Decoder.
DecodeBare implements bin.BareDecoder.
Encode implements bin.Encoder.
EncodeBare implements bin.BareEncoder.
GetAnswerMsgID returns value of AnswerMsgID field.
GetBytes returns value of Bytes field.
GetMsgID returns value of MsgID field.
GetStatus returns value of Status field.
String implements fmt.Stringer.
TypeID returns type id in TL schema.
See https://core.telegram.org/mtproto/TL-tl#remarks.
TypeInfo returns info about TL type.
TypeName returns name of type in TL schema.
(*MsgDetailedInfo) Zero() bool
construct implements constructor of MsgDetailedInfoClass.
*MsgDetailedInfo : MsgDetailedInfoClass
*MsgDetailedInfo : github.com/gotd/td/bin.BareDecoder
*MsgDetailedInfo : github.com/gotd/td/bin.BareEncoder
*MsgDetailedInfo : github.com/gotd/td/bin.Decoder
*MsgDetailedInfo : github.com/gotd/td/bin.Encoder
*MsgDetailedInfo : github.com/gotd/td/bin.Object
*MsgDetailedInfo : github.com/gotd/td/tdp.Object
*MsgDetailedInfo : fmt.Stringer
*MsgDetailedInfo : context.stringer
*MsgDetailedInfo : runtime.stringer
MsgDetailedInfo boxes the MsgDetailedInfoClass providing a helper.
MsgDetailedInfo MsgDetailedInfoClass
Decode implements bin.Decoder for MsgDetailedInfoBox.
Encode implements bin.Encode for MsgDetailedInfoBox.
*MsgDetailedInfoBox : github.com/gotd/td/bin.Decoder
*MsgDetailedInfoBox : github.com/gotd/td/bin.Encoder
*MsgDetailedInfoBox : github.com/gotd/td/bin.Object
MsgDetailedInfoClass represents MsgDetailedInfo generic type.
Example:
g, err := mt.DecodeMsgDetailedInfo(buf)
if err != nil {
panic(err)
}
switch v := g.(type) {
case *mt.MsgDetailedInfo: // msg_detailed_info#276d3ec6
case *mt.MsgNewDetailedInfo: // msg_new_detailed_info#809db6df
default: panic(v)
}
( MsgDetailedInfoClass) Decode(b *bin.Buffer) error
( MsgDetailedInfoClass) DecodeBare(b *bin.Buffer) error
( MsgDetailedInfoClass) Encode(b *bin.Buffer) error
( MsgDetailedInfoClass) EncodeBare(b *bin.Buffer) error
AnswerMsgID field of MsgDetailedInfo.
Bytes field of MsgDetailedInfo.
Status field of MsgDetailedInfo.
String implements fmt.Stringer.
TypeID returns type id in TL schema.
See https://core.telegram.org/mtproto/TL-tl#remarks.
TypeName returns name of type in TL schema.
Zero returns true if current object has a zero value.
( MsgDetailedInfoClass) construct() MsgDetailedInfoClass
*MsgDetailedInfo
*MsgNewDetailedInfo
MsgDetailedInfoClass : github.com/gotd/td/bin.BareDecoder
MsgDetailedInfoClass : github.com/gotd/td/bin.BareEncoder
MsgDetailedInfoClass : github.com/gotd/td/bin.Decoder
MsgDetailedInfoClass : github.com/gotd/td/bin.Encoder
MsgDetailedInfoClass : github.com/gotd/td/bin.Object
MsgDetailedInfoClass : fmt.Stringer
MsgDetailedInfoClass : context.stringer
MsgDetailedInfoClass : runtime.stringer
func DecodeMsgDetailedInfo(buf *bin.Buffer) (MsgDetailedInfoClass, error)
func MsgDetailedInfo.construct() MsgDetailedInfoClass
func MsgNewDetailedInfo.construct() MsgDetailedInfoClass
MsgNewDetailedInfo represents TL type `msg_new_detailed_info#809db6df`.
AnswerMsgID field of MsgNewDetailedInfo.
Bytes field of MsgNewDetailedInfo.
Status field of MsgNewDetailedInfo.
Decode implements bin.Decoder.
DecodeBare implements bin.BareDecoder.
Encode implements bin.Encoder.
EncodeBare implements bin.BareEncoder.
GetAnswerMsgID returns value of AnswerMsgID field.
GetBytes returns value of Bytes field.
GetStatus returns value of Status field.
String implements fmt.Stringer.
TypeID returns type id in TL schema.
See https://core.telegram.org/mtproto/TL-tl#remarks.
TypeInfo returns info about TL type.
TypeName returns name of type in TL schema.
(*MsgNewDetailedInfo) Zero() bool
construct implements constructor of MsgDetailedInfoClass.
*MsgNewDetailedInfo : MsgDetailedInfoClass
*MsgNewDetailedInfo : github.com/gotd/td/bin.BareDecoder
*MsgNewDetailedInfo : github.com/gotd/td/bin.BareEncoder
*MsgNewDetailedInfo : github.com/gotd/td/bin.Decoder
*MsgNewDetailedInfo : github.com/gotd/td/bin.Encoder
*MsgNewDetailedInfo : github.com/gotd/td/bin.Object
*MsgNewDetailedInfo : github.com/gotd/td/tdp.Object
*MsgNewDetailedInfo : fmt.Stringer
*MsgNewDetailedInfo : context.stringer
*MsgNewDetailedInfo : runtime.stringer
MsgResendReq represents TL type `msg_resend_req#7d861a08`.
MsgIDs field of MsgResendReq.
Decode implements bin.Decoder.
DecodeBare implements bin.BareDecoder.
Encode implements bin.Encoder.
EncodeBare implements bin.BareEncoder.
GetMsgIDs returns value of MsgIDs field.
String implements fmt.Stringer.
TypeID returns type id in TL schema.
See https://core.telegram.org/mtproto/TL-tl#remarks.
TypeInfo returns info about TL type.
TypeName returns name of type in TL schema.
(*MsgResendReq) Zero() bool
*MsgResendReq : github.com/gotd/td/bin.BareDecoder
*MsgResendReq : github.com/gotd/td/bin.BareEncoder
*MsgResendReq : github.com/gotd/td/bin.Decoder
*MsgResendReq : github.com/gotd/td/bin.Encoder
*MsgResendReq : github.com/gotd/td/bin.Object
*MsgResendReq : github.com/gotd/td/tdp.Object
*MsgResendReq : fmt.Stringer
*MsgResendReq : context.stringer
*MsgResendReq : runtime.stringer
MsgsAck represents TL type `msgs_ack#62d6b459`.
MsgIDs field of MsgResendReq.
Decode implements bin.Decoder.
DecodeBare implements bin.BareDecoder.
Encode implements bin.Encoder.
EncodeBare implements bin.BareEncoder.
GetMsgIDs returns value of MsgIDs field.
String implements fmt.Stringer.
TypeID returns type id in TL schema.
See https://core.telegram.org/mtproto/TL-tl#remarks.
TypeInfo returns info about TL type.
TypeName returns name of type in TL schema.
(*MsgsAck) Zero() bool
*MsgsAck : github.com/gotd/td/bin.BareDecoder
*MsgsAck : github.com/gotd/td/bin.BareEncoder
*MsgsAck : github.com/gotd/td/bin.Decoder
*MsgsAck : github.com/gotd/td/bin.Encoder
*MsgsAck : github.com/gotd/td/bin.Object
*MsgsAck : github.com/gotd/td/tdp.Object
*MsgsAck : fmt.Stringer
*MsgsAck : context.stringer
*MsgsAck : runtime.stringer
MsgsAllInfo represents TL type `msgs_all_info#8cc0d131`.
Info field of MsgsAllInfo.
MsgIDs field of MsgsAllInfo.
Decode implements bin.Decoder.
DecodeBare implements bin.BareDecoder.
Encode implements bin.Encoder.
EncodeBare implements bin.BareEncoder.
GetInfo returns value of Info field.
GetMsgIDs returns value of MsgIDs field.
String implements fmt.Stringer.
TypeID returns type id in TL schema.
See https://core.telegram.org/mtproto/TL-tl#remarks.
TypeInfo returns info about TL type.
TypeName returns name of type in TL schema.
(*MsgsAllInfo) Zero() bool
*MsgsAllInfo : github.com/gotd/td/bin.BareDecoder
*MsgsAllInfo : github.com/gotd/td/bin.BareEncoder
*MsgsAllInfo : github.com/gotd/td/bin.Decoder
*MsgsAllInfo : github.com/gotd/td/bin.Encoder
*MsgsAllInfo : github.com/gotd/td/bin.Object
*MsgsAllInfo : github.com/gotd/td/tdp.Object
*MsgsAllInfo : fmt.Stringer
*MsgsAllInfo : context.stringer
*MsgsAllInfo : runtime.stringer
MsgsStateInfo represents TL type `msgs_state_info#4deb57d`.
Info field of MsgsStateInfo.
ReqMsgID field of MsgsStateInfo.
Decode implements bin.Decoder.
DecodeBare implements bin.BareDecoder.
Encode implements bin.Encoder.
EncodeBare implements bin.BareEncoder.
GetInfo returns value of Info field.
GetReqMsgID returns value of ReqMsgID field.
String implements fmt.Stringer.
TypeID returns type id in TL schema.
See https://core.telegram.org/mtproto/TL-tl#remarks.
TypeInfo returns info about TL type.
TypeName returns name of type in TL schema.
(*MsgsStateInfo) Zero() bool
*MsgsStateInfo : github.com/gotd/td/bin.BareDecoder
*MsgsStateInfo : github.com/gotd/td/bin.BareEncoder
*MsgsStateInfo : github.com/gotd/td/bin.Decoder
*MsgsStateInfo : github.com/gotd/td/bin.Encoder
*MsgsStateInfo : github.com/gotd/td/bin.Object
*MsgsStateInfo : github.com/gotd/td/tdp.Object
*MsgsStateInfo : fmt.Stringer
*MsgsStateInfo : context.stringer
*MsgsStateInfo : runtime.stringer
MsgsStateReq represents TL type `msgs_state_req#da69fb52`.
MsgIDs field of MsgResendReq.
Decode implements bin.Decoder.
DecodeBare implements bin.BareDecoder.
Encode implements bin.Encoder.
EncodeBare implements bin.BareEncoder.
GetMsgIDs returns value of MsgIDs field.
String implements fmt.Stringer.
TypeID returns type id in TL schema.
See https://core.telegram.org/mtproto/TL-tl#remarks.
TypeInfo returns info about TL type.
TypeName returns name of type in TL schema.
(*MsgsStateReq) Zero() bool
*MsgsStateReq : github.com/gotd/td/bin.BareDecoder
*MsgsStateReq : github.com/gotd/td/bin.BareEncoder
*MsgsStateReq : github.com/gotd/td/bin.Decoder
*MsgsStateReq : github.com/gotd/td/bin.Encoder
*MsgsStateReq : github.com/gotd/td/bin.Object
*MsgsStateReq : github.com/gotd/td/tdp.Object
*MsgsStateReq : fmt.Stringer
*MsgsStateReq : context.stringer
*MsgsStateReq : runtime.stringer
NewSessionCreated represents TL type `new_session_created#9ec20908`.
FirstMsgID field of NewSessionCreated.
ServerSalt field of NewSessionCreated.
UniqueID field of NewSessionCreated.
Decode implements bin.Decoder.
DecodeBare implements bin.BareDecoder.
Encode implements bin.Encoder.
EncodeBare implements bin.BareEncoder.
GetFirstMsgID returns value of FirstMsgID field.
GetServerSalt returns value of ServerSalt field.
GetUniqueID returns value of UniqueID field.
String implements fmt.Stringer.
TypeID returns type id in TL schema.
See https://core.telegram.org/mtproto/TL-tl#remarks.
TypeInfo returns info about TL type.
TypeName returns name of type in TL schema.
(*NewSessionCreated) Zero() bool
*NewSessionCreated : github.com/gotd/td/bin.BareDecoder
*NewSessionCreated : github.com/gotd/td/bin.BareEncoder
*NewSessionCreated : github.com/gotd/td/bin.Decoder
*NewSessionCreated : github.com/gotd/td/bin.Encoder
*NewSessionCreated : github.com/gotd/td/bin.Object
*NewSessionCreated : github.com/gotd/td/tdp.Object
*NewSessionCreated : fmt.Stringer
*NewSessionCreated : context.stringer
*NewSessionCreated : runtime.stringer
PingDelayDisconnectRequest represents TL type `ping_delay_disconnect#f3427b8c`.
DisconnectDelay field of PingDelayDisconnectRequest.
PingID field of PingDelayDisconnectRequest.
Decode implements bin.Decoder.
DecodeBare implements bin.BareDecoder.
Encode implements bin.Encoder.
EncodeBare implements bin.BareEncoder.
GetDisconnectDelay returns value of DisconnectDelay field.
GetPingID returns value of PingID field.
String implements fmt.Stringer.
TypeID returns type id in TL schema.
See https://core.telegram.org/mtproto/TL-tl#remarks.
TypeInfo returns info about TL type.
TypeName returns name of type in TL schema.
(*PingDelayDisconnectRequest) Zero() bool
*PingDelayDisconnectRequest : github.com/gotd/td/bin.BareDecoder
*PingDelayDisconnectRequest : github.com/gotd/td/bin.BareEncoder
*PingDelayDisconnectRequest : github.com/gotd/td/bin.Decoder
*PingDelayDisconnectRequest : github.com/gotd/td/bin.Encoder
*PingDelayDisconnectRequest : github.com/gotd/td/bin.Object
*PingDelayDisconnectRequest : github.com/gotd/td/tdp.Object
*PingDelayDisconnectRequest : fmt.Stringer
*PingDelayDisconnectRequest : context.stringer
*PingDelayDisconnectRequest : runtime.stringer
PingRequest represents TL type `ping#7abe77ec`.
PingID field of PingRequest.
Decode implements bin.Decoder.
DecodeBare implements bin.BareDecoder.
Encode implements bin.Encoder.
EncodeBare implements bin.BareEncoder.
GetPingID returns value of PingID field.
String implements fmt.Stringer.
TypeID returns type id in TL schema.
See https://core.telegram.org/mtproto/TL-tl#remarks.
TypeInfo returns info about TL type.
TypeName returns name of type in TL schema.
(*PingRequest) Zero() bool
*PingRequest : github.com/gotd/td/bin.BareDecoder
*PingRequest : github.com/gotd/td/bin.BareEncoder
*PingRequest : github.com/gotd/td/bin.Decoder
*PingRequest : github.com/gotd/td/bin.Encoder
*PingRequest : github.com/gotd/td/bin.Object
*PingRequest : github.com/gotd/td/tdp.Object
*PingRequest : fmt.Stringer
*PingRequest : context.stringer
*PingRequest : runtime.stringer
Pong represents TL type `pong#347773c5`.
MsgID field of Pong.
PingID field of Pong.
Decode implements bin.Decoder.
DecodeBare implements bin.BareDecoder.
Encode implements bin.Encoder.
EncodeBare implements bin.BareEncoder.
GetMsgID returns value of MsgID field.
GetPingID returns value of PingID field.
String implements fmt.Stringer.
TypeID returns type id in TL schema.
See https://core.telegram.org/mtproto/TL-tl#remarks.
TypeInfo returns info about TL type.
TypeName returns name of type in TL schema.
(*Pong) Zero() bool
*Pong : github.com/gotd/td/bin.BareDecoder
*Pong : github.com/gotd/td/bin.BareEncoder
*Pong : github.com/gotd/td/bin.Decoder
*Pong : github.com/gotd/td/bin.Encoder
*Pong : github.com/gotd/td/bin.Object
*Pong : github.com/gotd/td/tdp.Object
*Pong : fmt.Stringer
*Pong : context.stringer
*Pong : runtime.stringer
PQInnerData represents TL type `p_q_inner_data#83c95aec`.
NewNonce field of PQInnerData.
Nonce field of PQInnerData.
P field of PQInnerData.
Pq field of PQInnerData.
Q field of PQInnerData.
ServerNonce field of PQInnerData.
Decode implements bin.Decoder.
DecodeBare implements bin.BareDecoder.
Encode implements bin.Encoder.
EncodeBare implements bin.BareEncoder.
GetNewNonce returns value of NewNonce field.
GetNonce returns value of Nonce field.
GetP returns value of P field.
GetPq returns value of Pq field.
GetQ returns value of Q field.
GetServerNonce returns value of ServerNonce field.
String implements fmt.Stringer.
TypeID returns type id in TL schema.
See https://core.telegram.org/mtproto/TL-tl#remarks.
TypeInfo returns info about TL type.
TypeName returns name of type in TL schema.
(*PQInnerData) Zero() bool
construct implements constructor of PQInnerDataClass.
*PQInnerData : PQInnerDataClass
*PQInnerData : github.com/gotd/td/bin.BareDecoder
*PQInnerData : github.com/gotd/td/bin.BareEncoder
*PQInnerData : github.com/gotd/td/bin.Decoder
*PQInnerData : github.com/gotd/td/bin.Encoder
*PQInnerData : github.com/gotd/td/bin.Object
*PQInnerData : github.com/gotd/td/tdp.Object
*PQInnerData : fmt.Stringer
*PQInnerData : context.stringer
*PQInnerData : runtime.stringer
PQInnerData boxes the PQInnerDataClass providing a helper.
P_Q_inner_data PQInnerDataClass
Decode implements bin.Decoder for PQInnerDataBox.
Encode implements bin.Encode for PQInnerDataBox.
*PQInnerDataBox : github.com/gotd/td/bin.Decoder
*PQInnerDataBox : github.com/gotd/td/bin.Encoder
*PQInnerDataBox : github.com/gotd/td/bin.Object
PQInnerDataClass represents P_Q_inner_data generic type.
Example:
g, err := mt.DecodePQInnerData(buf)
if err != nil {
panic(err)
}
switch v := g.(type) {
case *mt.PQInnerData: // p_q_inner_data#83c95aec
case *mt.PQInnerDataDC: // p_q_inner_data_dc#a9f55f95
case *mt.PQInnerDataTempDC: // p_q_inner_data_temp_dc#56fddf88
default: panic(v)
}
( PQInnerDataClass) Decode(b *bin.Buffer) error
( PQInnerDataClass) DecodeBare(b *bin.Buffer) error
( PQInnerDataClass) Encode(b *bin.Buffer) error
( PQInnerDataClass) EncodeBare(b *bin.Buffer) error
NewNonce field of PQInnerData.
Nonce field of PQInnerData.
P field of PQInnerData.
Pq field of PQInnerData.
Q field of PQInnerData.
ServerNonce field of PQInnerData.
String implements fmt.Stringer.
TypeID returns type id in TL schema.
See https://core.telegram.org/mtproto/TL-tl#remarks.
TypeName returns name of type in TL schema.
Zero returns true if current object has a zero value.
( PQInnerDataClass) construct() PQInnerDataClass
*PQInnerData
*PQInnerDataDC
*PQInnerDataTempDC
PQInnerDataClass : github.com/gotd/td/bin.BareDecoder
PQInnerDataClass : github.com/gotd/td/bin.BareEncoder
PQInnerDataClass : github.com/gotd/td/bin.Decoder
PQInnerDataClass : github.com/gotd/td/bin.Encoder
PQInnerDataClass : github.com/gotd/td/bin.Object
PQInnerDataClass : fmt.Stringer
PQInnerDataClass : context.stringer
PQInnerDataClass : runtime.stringer
func DecodePQInnerData(buf *bin.Buffer) (PQInnerDataClass, error)
func PQInnerData.construct() PQInnerDataClass
func PQInnerDataDC.construct() PQInnerDataClass
func PQInnerDataTempDC.construct() PQInnerDataClass
PQInnerDataDC represents TL type `p_q_inner_data_dc#a9f55f95`.
DC field of PQInnerDataDC.
NewNonce field of PQInnerDataDC.
Nonce field of PQInnerDataDC.
P field of PQInnerDataDC.
Pq field of PQInnerDataDC.
Q field of PQInnerDataDC.
ServerNonce field of PQInnerDataDC.
Decode implements bin.Decoder.
DecodeBare implements bin.BareDecoder.
Encode implements bin.Encoder.
EncodeBare implements bin.BareEncoder.
GetDC returns value of DC field.
GetNewNonce returns value of NewNonce field.
GetNonce returns value of Nonce field.
GetP returns value of P field.
GetPq returns value of Pq field.
GetQ returns value of Q field.
GetServerNonce returns value of ServerNonce field.
String implements fmt.Stringer.
TypeID returns type id in TL schema.
See https://core.telegram.org/mtproto/TL-tl#remarks.
TypeInfo returns info about TL type.
TypeName returns name of type in TL schema.
(*PQInnerDataDC) Zero() bool
construct implements constructor of PQInnerDataClass.
*PQInnerDataDC : PQInnerDataClass
*PQInnerDataDC : github.com/gotd/td/bin.BareDecoder
*PQInnerDataDC : github.com/gotd/td/bin.BareEncoder
*PQInnerDataDC : github.com/gotd/td/bin.Decoder
*PQInnerDataDC : github.com/gotd/td/bin.Encoder
*PQInnerDataDC : github.com/gotd/td/bin.Object
*PQInnerDataDC : github.com/gotd/td/tdp.Object
*PQInnerDataDC : fmt.Stringer
*PQInnerDataDC : context.stringer
*PQInnerDataDC : runtime.stringer
PQInnerDataTempDC represents TL type `p_q_inner_data_temp_dc#56fddf88`.
DC field of PQInnerDataTempDC.
ExpiresIn field of PQInnerDataTempDC.
NewNonce field of PQInnerDataTempDC.
Nonce field of PQInnerDataTempDC.
P field of PQInnerDataTempDC.
Pq field of PQInnerDataTempDC.
Q field of PQInnerDataTempDC.
ServerNonce field of PQInnerDataTempDC.
Decode implements bin.Decoder.
DecodeBare implements bin.BareDecoder.
Encode implements bin.Encoder.
EncodeBare implements bin.BareEncoder.
GetDC returns value of DC field.
GetExpiresIn returns value of ExpiresIn field.
GetNewNonce returns value of NewNonce field.
GetNonce returns value of Nonce field.
GetP returns value of P field.
GetPq returns value of Pq field.
GetQ returns value of Q field.
GetServerNonce returns value of ServerNonce field.
String implements fmt.Stringer.
TypeID returns type id in TL schema.
See https://core.telegram.org/mtproto/TL-tl#remarks.
TypeInfo returns info about TL type.
TypeName returns name of type in TL schema.
(*PQInnerDataTempDC) Zero() bool
construct implements constructor of PQInnerDataClass.
*PQInnerDataTempDC : PQInnerDataClass
*PQInnerDataTempDC : github.com/gotd/td/bin.BareDecoder
*PQInnerDataTempDC : github.com/gotd/td/bin.BareEncoder
*PQInnerDataTempDC : github.com/gotd/td/bin.Decoder
*PQInnerDataTempDC : github.com/gotd/td/bin.Encoder
*PQInnerDataTempDC : github.com/gotd/td/bin.Object
*PQInnerDataTempDC : github.com/gotd/td/tdp.Object
*PQInnerDataTempDC : fmt.Stringer
*PQInnerDataTempDC : context.stringer
*PQInnerDataTempDC : runtime.stringer
ReqDHParamsRequest represents TL type `req_DH_params#d712e4be`.
EncryptedData field of ReqDHParamsRequest.
Nonce field of ReqDHParamsRequest.
P field of ReqDHParamsRequest.
PublicKeyFingerprint field of ReqDHParamsRequest.
Q field of ReqDHParamsRequest.
ServerNonce field of ReqDHParamsRequest.
Decode implements bin.Decoder.
DecodeBare implements bin.BareDecoder.
Encode implements bin.Encoder.
EncodeBare implements bin.BareEncoder.
GetEncryptedData returns value of EncryptedData field.
GetNonce returns value of Nonce field.
GetP returns value of P field.
GetPublicKeyFingerprint returns value of PublicKeyFingerprint field.
GetQ returns value of Q field.
GetServerNonce returns value of ServerNonce field.
String implements fmt.Stringer.
TypeID returns type id in TL schema.
See https://core.telegram.org/mtproto/TL-tl#remarks.
TypeInfo returns info about TL type.
TypeName returns name of type in TL schema.
(*ReqDHParamsRequest) Zero() bool
*ReqDHParamsRequest : github.com/gotd/td/bin.BareDecoder
*ReqDHParamsRequest : github.com/gotd/td/bin.BareEncoder
*ReqDHParamsRequest : github.com/gotd/td/bin.Decoder
*ReqDHParamsRequest : github.com/gotd/td/bin.Encoder
*ReqDHParamsRequest : github.com/gotd/td/bin.Object
*ReqDHParamsRequest : github.com/gotd/td/tdp.Object
*ReqDHParamsRequest : fmt.Stringer
*ReqDHParamsRequest : context.stringer
*ReqDHParamsRequest : runtime.stringer
ReqPqMultiRequest represents TL type `req_pq_multi#be7e8ef1`.
Nonce field of ReqPqRequest.
Decode implements bin.Decoder.
DecodeBare implements bin.BareDecoder.
Encode implements bin.Encoder.
EncodeBare implements bin.BareEncoder.
GetNonce returns value of Nonce field.
String implements fmt.Stringer.
TypeID returns type id in TL schema.
See https://core.telegram.org/mtproto/TL-tl#remarks.
TypeInfo returns info about TL type.
TypeName returns name of type in TL schema.
(*ReqPqMultiRequest) Zero() bool
*ReqPqMultiRequest : github.com/gotd/td/bin.BareDecoder
*ReqPqMultiRequest : github.com/gotd/td/bin.BareEncoder
*ReqPqMultiRequest : github.com/gotd/td/bin.Decoder
*ReqPqMultiRequest : github.com/gotd/td/bin.Encoder
*ReqPqMultiRequest : github.com/gotd/td/bin.Object
*ReqPqMultiRequest : github.com/gotd/td/tdp.Object
*ReqPqMultiRequest : fmt.Stringer
*ReqPqMultiRequest : context.stringer
*ReqPqMultiRequest : runtime.stringer
ReqPqRequest represents TL type `req_pq#60469778`.
Nonce field of ReqPqRequest.
Decode implements bin.Decoder.
DecodeBare implements bin.BareDecoder.
Encode implements bin.Encoder.
EncodeBare implements bin.BareEncoder.
GetNonce returns value of Nonce field.
String implements fmt.Stringer.
TypeID returns type id in TL schema.
See https://core.telegram.org/mtproto/TL-tl#remarks.
TypeInfo returns info about TL type.
TypeName returns name of type in TL schema.
(*ReqPqRequest) Zero() bool
*ReqPqRequest : github.com/gotd/td/bin.BareDecoder
*ReqPqRequest : github.com/gotd/td/bin.BareEncoder
*ReqPqRequest : github.com/gotd/td/bin.Decoder
*ReqPqRequest : github.com/gotd/td/bin.Encoder
*ReqPqRequest : github.com/gotd/td/bin.Object
*ReqPqRequest : github.com/gotd/td/tdp.Object
*ReqPqRequest : fmt.Stringer
*ReqPqRequest : context.stringer
*ReqPqRequest : runtime.stringer
ResPQ represents TL type `resPQ#5162463`.
Nonce field of ResPQ.
Pq field of ResPQ.
ServerNonce field of ResPQ.
ServerPublicKeyFingerprints field of ResPQ.
Decode implements bin.Decoder.
DecodeBare implements bin.BareDecoder.
Encode implements bin.Encoder.
EncodeBare implements bin.BareEncoder.
GetNonce returns value of Nonce field.
GetPq returns value of Pq field.
GetServerNonce returns value of ServerNonce field.
GetServerPublicKeyFingerprints returns value of ServerPublicKeyFingerprints field.
String implements fmt.Stringer.
TypeID returns type id in TL schema.
See https://core.telegram.org/mtproto/TL-tl#remarks.
TypeInfo returns info about TL type.
TypeName returns name of type in TL schema.
(*ResPQ) Zero() bool
*ResPQ : github.com/gotd/td/bin.BareDecoder
*ResPQ : github.com/gotd/td/bin.BareEncoder
*ResPQ : github.com/gotd/td/bin.Decoder
*ResPQ : github.com/gotd/td/bin.Encoder
*ResPQ : github.com/gotd/td/bin.Object
*ResPQ : github.com/gotd/td/tdp.Object
*ResPQ : fmt.Stringer
*ResPQ : context.stringer
*ResPQ : runtime.stringer
RPCAnswerDropped represents TL type `rpc_answer_dropped#a43ad8b7`.
Bytes field of RPCAnswerDropped.
MsgID field of RPCAnswerDropped.
SeqNo field of RPCAnswerDropped.
Decode implements bin.Decoder.
DecodeBare implements bin.BareDecoder.
Encode implements bin.Encoder.
EncodeBare implements bin.BareEncoder.
GetBytes returns value of Bytes field.
GetMsgID returns value of MsgID field.
GetSeqNo returns value of SeqNo field.
String implements fmt.Stringer.
TypeID returns type id in TL schema.
See https://core.telegram.org/mtproto/TL-tl#remarks.
TypeInfo returns info about TL type.
TypeName returns name of type in TL schema.
(*RPCAnswerDropped) Zero() bool
construct implements constructor of RPCDropAnswerClass.
*RPCAnswerDropped : RPCDropAnswerClass
*RPCAnswerDropped : github.com/gotd/td/bin.BareDecoder
*RPCAnswerDropped : github.com/gotd/td/bin.BareEncoder
*RPCAnswerDropped : github.com/gotd/td/bin.Decoder
*RPCAnswerDropped : github.com/gotd/td/bin.Encoder
*RPCAnswerDropped : github.com/gotd/td/bin.Object
*RPCAnswerDropped : github.com/gotd/td/tdp.Object
*RPCAnswerDropped : fmt.Stringer
*RPCAnswerDropped : context.stringer
*RPCAnswerDropped : runtime.stringer
RPCAnswerDroppedRunning represents TL type `rpc_answer_dropped_running#cd78e586`.
Decode implements bin.Decoder.
DecodeBare implements bin.BareDecoder.
Encode implements bin.Encoder.
EncodeBare implements bin.BareEncoder.
String implements fmt.Stringer.
TypeID returns type id in TL schema.
See https://core.telegram.org/mtproto/TL-tl#remarks.
TypeInfo returns info about TL type.
TypeName returns name of type in TL schema.
(*RPCAnswerDroppedRunning) Zero() bool
construct implements constructor of RPCDropAnswerClass.
*RPCAnswerDroppedRunning : RPCDropAnswerClass
*RPCAnswerDroppedRunning : github.com/gotd/td/bin.BareDecoder
*RPCAnswerDroppedRunning : github.com/gotd/td/bin.BareEncoder
*RPCAnswerDroppedRunning : github.com/gotd/td/bin.Decoder
*RPCAnswerDroppedRunning : github.com/gotd/td/bin.Encoder
*RPCAnswerDroppedRunning : github.com/gotd/td/bin.Object
*RPCAnswerDroppedRunning : github.com/gotd/td/tdp.Object
*RPCAnswerDroppedRunning : fmt.Stringer
*RPCAnswerDroppedRunning : context.stringer
*RPCAnswerDroppedRunning : runtime.stringer
RPCAnswerUnknown represents TL type `rpc_answer_unknown#5e2ad36e`.
Decode implements bin.Decoder.
DecodeBare implements bin.BareDecoder.
Encode implements bin.Encoder.
EncodeBare implements bin.BareEncoder.
String implements fmt.Stringer.
TypeID returns type id in TL schema.
See https://core.telegram.org/mtproto/TL-tl#remarks.
TypeInfo returns info about TL type.
TypeName returns name of type in TL schema.
(*RPCAnswerUnknown) Zero() bool
construct implements constructor of RPCDropAnswerClass.
*RPCAnswerUnknown : RPCDropAnswerClass
*RPCAnswerUnknown : github.com/gotd/td/bin.BareDecoder
*RPCAnswerUnknown : github.com/gotd/td/bin.BareEncoder
*RPCAnswerUnknown : github.com/gotd/td/bin.Decoder
*RPCAnswerUnknown : github.com/gotd/td/bin.Encoder
*RPCAnswerUnknown : github.com/gotd/td/bin.Object
*RPCAnswerUnknown : github.com/gotd/td/tdp.Object
*RPCAnswerUnknown : fmt.Stringer
*RPCAnswerUnknown : context.stringer
*RPCAnswerUnknown : runtime.stringer
RPCDropAnswer boxes the RPCDropAnswerClass providing a helper.
RpcDropAnswer RPCDropAnswerClass
Decode implements bin.Decoder for RPCDropAnswerBox.
Encode implements bin.Encode for RPCDropAnswerBox.
*RPCDropAnswerBox : github.com/gotd/td/bin.Decoder
*RPCDropAnswerBox : github.com/gotd/td/bin.Encoder
*RPCDropAnswerBox : github.com/gotd/td/bin.Object
RPCDropAnswerClass represents RpcDropAnswer generic type.
Example:
g, err := mt.DecodeRPCDropAnswer(buf)
if err != nil {
panic(err)
}
switch v := g.(type) {
case *mt.RPCAnswerUnknown: // rpc_answer_unknown#5e2ad36e
case *mt.RPCAnswerDroppedRunning: // rpc_answer_dropped_running#cd78e586
case *mt.RPCAnswerDropped: // rpc_answer_dropped#a43ad8b7
default: panic(v)
}
( RPCDropAnswerClass) Decode(b *bin.Buffer) error
( RPCDropAnswerClass) DecodeBare(b *bin.Buffer) error
( RPCDropAnswerClass) Encode(b *bin.Buffer) error
( RPCDropAnswerClass) EncodeBare(b *bin.Buffer) error
String implements fmt.Stringer.
TypeID returns type id in TL schema.
See https://core.telegram.org/mtproto/TL-tl#remarks.
TypeName returns name of type in TL schema.
Zero returns true if current object has a zero value.
( RPCDropAnswerClass) construct() RPCDropAnswerClass
*RPCAnswerDropped
*RPCAnswerDroppedRunning
*RPCAnswerUnknown
RPCDropAnswerClass : github.com/gotd/td/bin.BareDecoder
RPCDropAnswerClass : github.com/gotd/td/bin.BareEncoder
RPCDropAnswerClass : github.com/gotd/td/bin.Decoder
RPCDropAnswerClass : github.com/gotd/td/bin.Encoder
RPCDropAnswerClass : github.com/gotd/td/bin.Object
RPCDropAnswerClass : fmt.Stringer
RPCDropAnswerClass : context.stringer
RPCDropAnswerClass : runtime.stringer
func DecodeRPCDropAnswer(buf *bin.Buffer) (RPCDropAnswerClass, error)
func RPCAnswerDropped.construct() RPCDropAnswerClass
func RPCAnswerDroppedRunning.construct() RPCDropAnswerClass
func RPCAnswerUnknown.construct() RPCDropAnswerClass
RPCDropAnswerRequest represents TL type `rpc_drop_answer#58e4a740`.
ReqMsgID field of RPCDropAnswerRequest.
Decode implements bin.Decoder.
DecodeBare implements bin.BareDecoder.
Encode implements bin.Encoder.
EncodeBare implements bin.BareEncoder.
GetReqMsgID returns value of ReqMsgID field.
String implements fmt.Stringer.
TypeID returns type id in TL schema.
See https://core.telegram.org/mtproto/TL-tl#remarks.
TypeInfo returns info about TL type.
TypeName returns name of type in TL schema.
(*RPCDropAnswerRequest) Zero() bool
*RPCDropAnswerRequest : github.com/gotd/td/bin.BareDecoder
*RPCDropAnswerRequest : github.com/gotd/td/bin.BareEncoder
*RPCDropAnswerRequest : github.com/gotd/td/bin.Decoder
*RPCDropAnswerRequest : github.com/gotd/td/bin.Encoder
*RPCDropAnswerRequest : github.com/gotd/td/bin.Object
*RPCDropAnswerRequest : github.com/gotd/td/tdp.Object
*RPCDropAnswerRequest : fmt.Stringer
*RPCDropAnswerRequest : context.stringer
*RPCDropAnswerRequest : runtime.stringer
RPCError represents TL type `rpc_error#2144ca19`.
ErrorCode field of RPCError.
ErrorMessage field of RPCError.
Decode implements bin.Decoder.
DecodeBare implements bin.BareDecoder.
Encode implements bin.Encoder.
EncodeBare implements bin.BareEncoder.
GetErrorCode returns value of ErrorCode field.
GetErrorMessage returns value of ErrorMessage field.
String implements fmt.Stringer.
TypeID returns type id in TL schema.
See https://core.telegram.org/mtproto/TL-tl#remarks.
TypeInfo returns info about TL type.
TypeName returns name of type in TL schema.
(*RPCError) Zero() bool
*RPCError : github.com/gotd/td/bin.BareDecoder
*RPCError : github.com/gotd/td/bin.BareEncoder
*RPCError : github.com/gotd/td/bin.Decoder
*RPCError : github.com/gotd/td/bin.Encoder
*RPCError : github.com/gotd/td/bin.Object
*RPCError : github.com/gotd/td/tdp.Object
*RPCError : fmt.Stringer
*RPCError : context.stringer
*RPCError : runtime.stringer
RPCResult represents TL type `rpc_result#f35c6d01`.
ReqMsgID field of RPCResult.
Result field of RPCResult.
Decode implements bin.Decoder.
DecodeBare implements bin.BareDecoder.
Encode implements bin.Encoder.
EncodeBare implements bin.BareEncoder.
GetReqMsgID returns value of ReqMsgID field.
GetResult returns value of Result field.
String implements fmt.Stringer.
TypeID returns type id in TL schema.
See https://core.telegram.org/mtproto/TL-tl#remarks.
TypeInfo returns info about TL type.
TypeName returns name of type in TL schema.
(*RPCResult) Zero() bool
*RPCResult : github.com/gotd/td/bin.BareDecoder
*RPCResult : github.com/gotd/td/bin.BareEncoder
*RPCResult : github.com/gotd/td/bin.Decoder
*RPCResult : github.com/gotd/td/bin.Encoder
*RPCResult : github.com/gotd/td/bin.Object
*RPCResult : github.com/gotd/td/tdp.Object
*RPCResult : fmt.Stringer
*RPCResult : context.stringer
*RPCResult : runtime.stringer
ServerDHInnerData represents TL type `server_DH_inner_data#b5890dba`.
DhPrime field of ServerDHInnerData.
G field of ServerDHInnerData.
GA field of ServerDHInnerData.
Nonce field of ServerDHInnerData.
ServerNonce field of ServerDHInnerData.
ServerTime field of ServerDHInnerData.
Decode implements bin.Decoder.
DecodeBare implements bin.BareDecoder.
Encode implements bin.Encoder.
EncodeBare implements bin.BareEncoder.
GetDhPrime returns value of DhPrime field.
GetG returns value of G field.
GetGA returns value of GA field.
GetNonce returns value of Nonce field.
GetServerNonce returns value of ServerNonce field.
GetServerTime returns value of ServerTime field.
String implements fmt.Stringer.
TypeID returns type id in TL schema.
See https://core.telegram.org/mtproto/TL-tl#remarks.
TypeInfo returns info about TL type.
TypeName returns name of type in TL schema.
(*ServerDHInnerData) Zero() bool
*ServerDHInnerData : github.com/gotd/td/bin.BareDecoder
*ServerDHInnerData : github.com/gotd/td/bin.BareEncoder
*ServerDHInnerData : github.com/gotd/td/bin.Decoder
*ServerDHInnerData : github.com/gotd/td/bin.Encoder
*ServerDHInnerData : github.com/gotd/td/bin.Object
*ServerDHInnerData : github.com/gotd/td/tdp.Object
*ServerDHInnerData : fmt.Stringer
*ServerDHInnerData : context.stringer
*ServerDHInnerData : runtime.stringer
ServerDHParams boxes the ServerDHParamsClass providing a helper.
Server_DH_Params ServerDHParamsClass
Decode implements bin.Decoder for ServerDHParamsBox.
Encode implements bin.Encode for ServerDHParamsBox.
*ServerDHParamsBox : github.com/gotd/td/bin.Decoder
*ServerDHParamsBox : github.com/gotd/td/bin.Encoder
*ServerDHParamsBox : github.com/gotd/td/bin.Object
ServerDHParamsClass represents Server_DH_Params generic type.
Example:
g, err := mt.DecodeServerDHParams(buf)
if err != nil {
panic(err)
}
switch v := g.(type) {
case *mt.ServerDHParamsFail: // server_DH_params_fail#79cb045d
case *mt.ServerDHParamsOk: // server_DH_params_ok#d0e8075c
default: panic(v)
}
( ServerDHParamsClass) Decode(b *bin.Buffer) error
( ServerDHParamsClass) DecodeBare(b *bin.Buffer) error
( ServerDHParamsClass) Encode(b *bin.Buffer) error
( ServerDHParamsClass) EncodeBare(b *bin.Buffer) error
Nonce field of ServerDHParamsFail.
ServerNonce field of ServerDHParamsFail.
String implements fmt.Stringer.
TypeID returns type id in TL schema.
See https://core.telegram.org/mtproto/TL-tl#remarks.
TypeName returns name of type in TL schema.
Zero returns true if current object has a zero value.
( ServerDHParamsClass) construct() ServerDHParamsClass
*ServerDHParamsFail
*ServerDHParamsOk
ServerDHParamsClass : github.com/gotd/td/bin.BareDecoder
ServerDHParamsClass : github.com/gotd/td/bin.BareEncoder
ServerDHParamsClass : github.com/gotd/td/bin.Decoder
ServerDHParamsClass : github.com/gotd/td/bin.Encoder
ServerDHParamsClass : github.com/gotd/td/bin.Object
ServerDHParamsClass : fmt.Stringer
ServerDHParamsClass : context.stringer
ServerDHParamsClass : runtime.stringer
func DecodeServerDHParams(buf *bin.Buffer) (ServerDHParamsClass, error)
func ServerDHParamsFail.construct() ServerDHParamsClass
func ServerDHParamsOk.construct() ServerDHParamsClass
ServerDHParamsFail represents TL type `server_DH_params_fail#79cb045d`.
NewNonceHash field of ServerDHParamsFail.
Nonce field of ServerDHParamsFail.
ServerNonce field of ServerDHParamsFail.
Decode implements bin.Decoder.
DecodeBare implements bin.BareDecoder.
Encode implements bin.Encoder.
EncodeBare implements bin.BareEncoder.
GetNewNonceHash returns value of NewNonceHash field.
GetNonce returns value of Nonce field.
GetServerNonce returns value of ServerNonce field.
String implements fmt.Stringer.
TypeID returns type id in TL schema.
See https://core.telegram.org/mtproto/TL-tl#remarks.
TypeInfo returns info about TL type.
TypeName returns name of type in TL schema.
(*ServerDHParamsFail) Zero() bool
construct implements constructor of ServerDHParamsClass.
*ServerDHParamsFail : ServerDHParamsClass
*ServerDHParamsFail : github.com/gotd/td/bin.BareDecoder
*ServerDHParamsFail : github.com/gotd/td/bin.BareEncoder
*ServerDHParamsFail : github.com/gotd/td/bin.Decoder
*ServerDHParamsFail : github.com/gotd/td/bin.Encoder
*ServerDHParamsFail : github.com/gotd/td/bin.Object
*ServerDHParamsFail : github.com/gotd/td/tdp.Object
*ServerDHParamsFail : fmt.Stringer
*ServerDHParamsFail : context.stringer
*ServerDHParamsFail : runtime.stringer
ServerDHParamsOk represents TL type `server_DH_params_ok#d0e8075c`.
EncryptedAnswer field of ServerDHParamsOk.
Nonce field of ServerDHParamsOk.
ServerNonce field of ServerDHParamsOk.
Decode implements bin.Decoder.
DecodeBare implements bin.BareDecoder.
Encode implements bin.Encoder.
EncodeBare implements bin.BareEncoder.
GetEncryptedAnswer returns value of EncryptedAnswer field.
GetNonce returns value of Nonce field.
GetServerNonce returns value of ServerNonce field.
String implements fmt.Stringer.
TypeID returns type id in TL schema.
See https://core.telegram.org/mtproto/TL-tl#remarks.
TypeInfo returns info about TL type.
TypeName returns name of type in TL schema.
(*ServerDHParamsOk) Zero() bool
construct implements constructor of ServerDHParamsClass.
*ServerDHParamsOk : ServerDHParamsClass
*ServerDHParamsOk : github.com/gotd/td/bin.BareDecoder
*ServerDHParamsOk : github.com/gotd/td/bin.BareEncoder
*ServerDHParamsOk : github.com/gotd/td/bin.Decoder
*ServerDHParamsOk : github.com/gotd/td/bin.Encoder
*ServerDHParamsOk : github.com/gotd/td/bin.Object
*ServerDHParamsOk : github.com/gotd/td/tdp.Object
*ServerDHParamsOk : fmt.Stringer
*ServerDHParamsOk : context.stringer
*ServerDHParamsOk : runtime.stringer
SetClientDHParamsAnswer boxes the SetClientDHParamsAnswerClass providing a helper.
Set_client_DH_params_answer SetClientDHParamsAnswerClass
Decode implements bin.Decoder for SetClientDHParamsAnswerBox.
Encode implements bin.Encode for SetClientDHParamsAnswerBox.
*SetClientDHParamsAnswerBox : github.com/gotd/td/bin.Decoder
*SetClientDHParamsAnswerBox : github.com/gotd/td/bin.Encoder
*SetClientDHParamsAnswerBox : github.com/gotd/td/bin.Object
SetClientDHParamsAnswerClass represents Set_client_DH_params_answer generic type.
Example:
g, err := mt.DecodeSetClientDHParamsAnswer(buf)
if err != nil {
panic(err)
}
switch v := g.(type) {
case *mt.DhGenOk: // dh_gen_ok#3bcbf734
case *mt.DhGenRetry: // dh_gen_retry#46dc1fb9
case *mt.DhGenFail: // dh_gen_fail#a69dae02
default: panic(v)
}
( SetClientDHParamsAnswerClass) Decode(b *bin.Buffer) error
( SetClientDHParamsAnswerClass) DecodeBare(b *bin.Buffer) error
( SetClientDHParamsAnswerClass) Encode(b *bin.Buffer) error
( SetClientDHParamsAnswerClass) EncodeBare(b *bin.Buffer) error
Nonce field of DhGenOk.
ServerNonce field of DhGenOk.
String implements fmt.Stringer.
TypeID returns type id in TL schema.
See https://core.telegram.org/mtproto/TL-tl#remarks.
TypeName returns name of type in TL schema.
Zero returns true if current object has a zero value.
( SetClientDHParamsAnswerClass) construct() SetClientDHParamsAnswerClass
*DhGenFail
*DhGenOk
*DhGenRetry
SetClientDHParamsAnswerClass : github.com/gotd/td/bin.BareDecoder
SetClientDHParamsAnswerClass : github.com/gotd/td/bin.BareEncoder
SetClientDHParamsAnswerClass : github.com/gotd/td/bin.Decoder
SetClientDHParamsAnswerClass : github.com/gotd/td/bin.Encoder
SetClientDHParamsAnswerClass : github.com/gotd/td/bin.Object
SetClientDHParamsAnswerClass : fmt.Stringer
SetClientDHParamsAnswerClass : context.stringer
SetClientDHParamsAnswerClass : runtime.stringer
func DecodeSetClientDHParamsAnswer(buf *bin.Buffer) (SetClientDHParamsAnswerClass, error)
func DhGenFail.construct() SetClientDHParamsAnswerClass
func DhGenOk.construct() SetClientDHParamsAnswerClass
func DhGenRetry.construct() SetClientDHParamsAnswerClass
SetClientDHParamsRequest represents TL type `set_client_DH_params#f5045f1f`.
EncryptedData field of SetClientDHParamsRequest.
Nonce field of SetClientDHParamsRequest.
ServerNonce field of SetClientDHParamsRequest.
Decode implements bin.Decoder.
DecodeBare implements bin.BareDecoder.
Encode implements bin.Encoder.
EncodeBare implements bin.BareEncoder.
GetEncryptedData returns value of EncryptedData field.
GetNonce returns value of Nonce field.
GetServerNonce returns value of ServerNonce field.
String implements fmt.Stringer.
TypeID returns type id in TL schema.
See https://core.telegram.org/mtproto/TL-tl#remarks.
TypeInfo returns info about TL type.
TypeName returns name of type in TL schema.
(*SetClientDHParamsRequest) Zero() bool
*SetClientDHParamsRequest : github.com/gotd/td/bin.BareDecoder
*SetClientDHParamsRequest : github.com/gotd/td/bin.BareEncoder
*SetClientDHParamsRequest : github.com/gotd/td/bin.Decoder
*SetClientDHParamsRequest : github.com/gotd/td/bin.Encoder
*SetClientDHParamsRequest : github.com/gotd/td/bin.Object
*SetClientDHParamsRequest : github.com/gotd/td/tdp.Object
*SetClientDHParamsRequest : fmt.Stringer
*SetClientDHParamsRequest : context.stringer
*SetClientDHParamsRequest : runtime.stringer
Package-Level Functions (total 11, all are exported)
ClassConstructorsMap maps class schema name to constructors type ids.
DecodeBadMsgNotification implements binary de-serialization for BadMsgNotificationClass.
DecodeDestroySessionRes implements binary de-serialization for DestroySessionResClass.
DecodeMsgDetailedInfo implements binary de-serialization for MsgDetailedInfoClass.
DecodePQInnerData implements binary de-serialization for PQInnerDataClass.
DecodeRPCDropAnswer implements binary de-serialization for RPCDropAnswerClass.
DecodeServerDHParams implements binary de-serialization for ServerDHParamsClass.
DecodeSetClientDHParamsAnswer implements binary de-serialization for SetClientDHParamsAnswerClass.
NamesMap returns mapping from type names to TL type ids.
TypesConstructorMap maps type ids to constructors.
TypesMap returns mapping from type ids to TL type names.
Package-Level Constants (total 52, all are exported)
BadMsgNotificationClassName is schema name of BadMsgNotificationClass.
BadMsgNotificationTypeID is TL type id of BadMsgNotification.
BadServerSaltTypeID is TL type id of BadServerSalt.
ClientDHInnerDataTypeID is TL type id of ClientDHInnerData.
DestroySessionNoneTypeID is TL type id of DestroySessionNone.
DestroySessionOkTypeID is TL type id of DestroySessionOk.
DestroySessionRequestTypeID is TL type id of DestroySessionRequest.
DestroySessionResClassName is schema name of DestroySessionResClass.
DhGenFailTypeID is TL type id of DhGenFail.
DhGenOkTypeID is TL type id of DhGenOk.
DhGenRetryTypeID is TL type id of DhGenRetry.
FutureSaltsTypeID is TL type id of FutureSalts.
FutureSaltTypeID is TL type id of FutureSalt.
GetFutureSaltsRequestTypeID is TL type id of GetFutureSaltsRequest.
GzipPackedTypeID is TL type id of GzipPacked.
HTTPWaitRequestTypeID is TL type id of HTTPWaitRequest.
MessageTypeID is TL type id of Message.
MsgContainerTypeID is TL type id of MsgContainer.
MsgCopyTypeID is TL type id of MsgCopy.
MsgDetailedInfoClassName is schema name of MsgDetailedInfoClass.
MsgDetailedInfoTypeID is TL type id of MsgDetailedInfo.
MsgNewDetailedInfoTypeID is TL type id of MsgNewDetailedInfo.
MsgResendReqTypeID is TL type id of MsgResendReq.
MsgsAckTypeID is TL type id of MsgsAck.
MsgsAllInfoTypeID is TL type id of MsgsAllInfo.
MsgsStateInfoTypeID is TL type id of MsgsStateInfo.
MsgsStateReqTypeID is TL type id of MsgsStateReq.
NewSessionCreatedTypeID is TL type id of NewSessionCreated.
PingDelayDisconnectRequestTypeID is TL type id of PingDelayDisconnectRequest.
PingRequestTypeID is TL type id of PingRequest.
PongTypeID is TL type id of Pong.
PQInnerDataClassName is schema name of PQInnerDataClass.
PQInnerDataDCTypeID is TL type id of PQInnerDataDC.
PQInnerDataTempDCTypeID is TL type id of PQInnerDataTempDC.
PQInnerDataTypeID is TL type id of PQInnerData.
ReqDHParamsRequestTypeID is TL type id of ReqDHParamsRequest.
ReqPqMultiRequestTypeID is TL type id of ReqPqMultiRequest.
ReqPqRequestTypeID is TL type id of ReqPqRequest.
ResPQTypeID is TL type id of ResPQ.
RPCAnswerDroppedRunningTypeID is TL type id of RPCAnswerDroppedRunning.
RPCAnswerDroppedTypeID is TL type id of RPCAnswerDropped.
RPCAnswerUnknownTypeID is TL type id of RPCAnswerUnknown.
RPCDropAnswerClassName is schema name of RPCDropAnswerClass.
RPCDropAnswerRequestTypeID is TL type id of RPCDropAnswerRequest.
RPCErrorTypeID is TL type id of RPCError.
RPCResultTypeID is TL type id of RPCResult.
ServerDHInnerDataTypeID is TL type id of ServerDHInnerData.
ServerDHParamsClassName is schema name of ServerDHParamsClass.
ServerDHParamsFailTypeID is TL type id of ServerDHParamsFail.
ServerDHParamsOkTypeID is TL type id of ServerDHParamsOk.
SetClientDHParamsAnswerClassName is schema name of SetClientDHParamsAnswerClass.
SetClientDHParamsRequestTypeID is TL type id of SetClientDHParamsRequest.
The pages are generated with Golds v0.6.7. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |