mt

package
v0.107.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 1, 2024 License: MIT Imports: 10 Imported by: 12

Documentation

Overview

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.

Index

Constants

View Source
const BadMsgNotificationClassName = "BadMsgNotification"

BadMsgNotificationClassName is schema name of BadMsgNotificationClass.

View Source
const BadMsgNotificationTypeID = 0xa7eff811

BadMsgNotificationTypeID is TL type id of BadMsgNotification.

View Source
const BadServerSaltTypeID = 0xedab447b

BadServerSaltTypeID is TL type id of BadServerSalt.

View Source
const ClientDHInnerDataTypeID = 0x6643b654

ClientDHInnerDataTypeID is TL type id of ClientDHInnerData.

View Source
const DestroySessionNoneTypeID = 0x62d350c9

DestroySessionNoneTypeID is TL type id of DestroySessionNone.

View Source
const DestroySessionOkTypeID = 0xe22045fc

DestroySessionOkTypeID is TL type id of DestroySessionOk.

View Source
const DestroySessionRequestTypeID = 0xe7512126

DestroySessionRequestTypeID is TL type id of DestroySessionRequest.

View Source
const DestroySessionResClassName = "DestroySessionRes"

DestroySessionResClassName is schema name of DestroySessionResClass.

View Source
const DhGenFailTypeID = 0xa69dae02

DhGenFailTypeID is TL type id of DhGenFail.

View Source
const DhGenOkTypeID = 0x3bcbf734

DhGenOkTypeID is TL type id of DhGenOk.

View Source
const DhGenRetryTypeID = 0x46dc1fb9

DhGenRetryTypeID is TL type id of DhGenRetry.

View Source
const FutureSaltTypeID = 0x949d9dc

FutureSaltTypeID is TL type id of FutureSalt.

View Source
const FutureSaltsTypeID = 0xae500895

FutureSaltsTypeID is TL type id of FutureSalts.

View Source
const GetFutureSaltsRequestTypeID = 0xb921bd04

GetFutureSaltsRequestTypeID is TL type id of GetFutureSaltsRequest.

View Source
const GzipPackedTypeID = 0x3072cfa1

GzipPackedTypeID is TL type id of GzipPacked.

View Source
const HTTPWaitRequestTypeID = 0x9299359f

HTTPWaitRequestTypeID is TL type id of HTTPWaitRequest.

View Source
const MessageTypeID = 0x5bb8e511

MessageTypeID is TL type id of Message.

View Source
const MsgContainerTypeID = 0x73f1f8dc

MsgContainerTypeID is TL type id of MsgContainer.

View Source
const MsgCopyTypeID = 0xe06046b2

MsgCopyTypeID is TL type id of MsgCopy.

View Source
const MsgDetailedInfoClassName = "MsgDetailedInfo"

MsgDetailedInfoClassName is schema name of MsgDetailedInfoClass.

View Source
const MsgDetailedInfoTypeID = 0x276d3ec6

MsgDetailedInfoTypeID is TL type id of MsgDetailedInfo.

View Source
const MsgNewDetailedInfoTypeID = 0x809db6df

MsgNewDetailedInfoTypeID is TL type id of MsgNewDetailedInfo.

View Source
const MsgResendReqTypeID = 0x7d861a08

MsgResendReqTypeID is TL type id of MsgResendReq.

View Source
const MsgsAckTypeID = 0x62d6b459

MsgsAckTypeID is TL type id of MsgsAck.

View Source
const MsgsAllInfoTypeID = 0x8cc0d131

MsgsAllInfoTypeID is TL type id of MsgsAllInfo.

View Source
const MsgsStateInfoTypeID = 0x4deb57d

MsgsStateInfoTypeID is TL type id of MsgsStateInfo.

View Source
const MsgsStateReqTypeID = 0xda69fb52

MsgsStateReqTypeID is TL type id of MsgsStateReq.

View Source
const NewSessionCreatedTypeID = 0x9ec20908

NewSessionCreatedTypeID is TL type id of NewSessionCreated.

View Source
const PQInnerDataClassName = "P_Q_inner_data"

PQInnerDataClassName is schema name of PQInnerDataClass.

View Source
const PQInnerDataDCTypeID = 0xa9f55f95

PQInnerDataDCTypeID is TL type id of PQInnerDataDC.

View Source
const PQInnerDataTempDCTypeID = 0x56fddf88

PQInnerDataTempDCTypeID is TL type id of PQInnerDataTempDC.

View Source
const PQInnerDataTypeID = 0x83c95aec

PQInnerDataTypeID is TL type id of PQInnerData.

View Source
const PingDelayDisconnectRequestTypeID = 0xf3427b8c

PingDelayDisconnectRequestTypeID is TL type id of PingDelayDisconnectRequest.

View Source
const PingRequestTypeID = 0x7abe77ec

PingRequestTypeID is TL type id of PingRequest.

View Source
const PongTypeID = 0x347773c5

PongTypeID is TL type id of Pong.

View Source
const RPCAnswerDroppedRunningTypeID = 0xcd78e586

RPCAnswerDroppedRunningTypeID is TL type id of RPCAnswerDroppedRunning.

View Source
const RPCAnswerDroppedTypeID = 0xa43ad8b7

RPCAnswerDroppedTypeID is TL type id of RPCAnswerDropped.

View Source
const RPCAnswerUnknownTypeID = 0x5e2ad36e

RPCAnswerUnknownTypeID is TL type id of RPCAnswerUnknown.

View Source
const RPCDropAnswerClassName = "RpcDropAnswer"

RPCDropAnswerClassName is schema name of RPCDropAnswerClass.

View Source
const RPCDropAnswerRequestTypeID = 0x58e4a740

RPCDropAnswerRequestTypeID is TL type id of RPCDropAnswerRequest.

View Source
const RPCErrorTypeID = 0x2144ca19

RPCErrorTypeID is TL type id of RPCError.

View Source
const RPCResultTypeID = 0xf35c6d01

RPCResultTypeID is TL type id of RPCResult.

View Source
const ReqDHParamsRequestTypeID = 0xd712e4be

ReqDHParamsRequestTypeID is TL type id of ReqDHParamsRequest.

View Source
const ReqPqMultiRequestTypeID = 0xbe7e8ef1

ReqPqMultiRequestTypeID is TL type id of ReqPqMultiRequest.

View Source
const ReqPqRequestTypeID = 0x60469778

ReqPqRequestTypeID is TL type id of ReqPqRequest.

View Source
const ResPQTypeID = 0x5162463

ResPQTypeID is TL type id of ResPQ.

View Source
const ServerDHInnerDataTypeID = 0xb5890dba

ServerDHInnerDataTypeID is TL type id of ServerDHInnerData.

View Source
const ServerDHParamsClassName = "Server_DH_Params"

ServerDHParamsClassName is schema name of ServerDHParamsClass.

View Source
const ServerDHParamsFailTypeID = 0x79cb045d

ServerDHParamsFailTypeID is TL type id of ServerDHParamsFail.

View Source
const ServerDHParamsOkTypeID = 0xd0e8075c

ServerDHParamsOkTypeID is TL type id of ServerDHParamsOk.

View Source
const SetClientDHParamsAnswerClassName = "Set_client_DH_params_answer"

SetClientDHParamsAnswerClassName is schema name of SetClientDHParamsAnswerClass.

View Source
const SetClientDHParamsRequestTypeID = 0xf5045f1f

SetClientDHParamsRequestTypeID is TL type id of SetClientDHParamsRequest.

Variables

This section is empty.

Functions

func ClassConstructorsMap

func ClassConstructorsMap() map[string][]uint32

ClassConstructorsMap maps class schema name to constructors type ids.

func NamesMap

func NamesMap() map[string]uint32

NamesMap returns mapping from type names to TL type ids.

func TypesConstructorMap

func TypesConstructorMap() map[uint32]func() bin.Object

TypesConstructorMap maps type ids to constructors.

func TypesMap

func TypesMap() map[uint32]string

TypesMap returns mapping from type ids to TL type names.

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`.

func (*BadMsgNotification) Decode

func (b *BadMsgNotification) Decode(buf *bin.Buffer) error

Decode implements bin.Decoder.

func (*BadMsgNotification) DecodeBare

func (b *BadMsgNotification) DecodeBare(buf *bin.Buffer) error

DecodeBare implements bin.BareDecoder.

func (*BadMsgNotification) Encode

func (b *BadMsgNotification) Encode(buf *bin.Buffer) error

Encode implements bin.Encoder.

func (*BadMsgNotification) EncodeBare

func (b *BadMsgNotification) EncodeBare(buf *bin.Buffer) error

EncodeBare implements bin.BareEncoder.

func (*BadMsgNotification) GetBadMsgID

func (b *BadMsgNotification) GetBadMsgID() (value int64)

GetBadMsgID returns value of BadMsgID field.

func (*BadMsgNotification) GetBadMsgSeqno

func (b *BadMsgNotification) GetBadMsgSeqno() (value int)

GetBadMsgSeqno returns value of BadMsgSeqno field.

func (*BadMsgNotification) GetErrorCode

func (b *BadMsgNotification) GetErrorCode() (value int)

GetErrorCode returns value of ErrorCode field.

func (*BadMsgNotification) String

func (b *BadMsgNotification) String() string

String implements fmt.Stringer.

func (*BadMsgNotification) TypeID

func (*BadMsgNotification) TypeID() uint32

TypeID returns type id in TL schema.

See https://core.telegram.org/mtproto/TL-tl#remarks.

func (*BadMsgNotification) TypeInfo

func (b *BadMsgNotification) TypeInfo() tdp.Type

TypeInfo returns info about TL type.

func (*BadMsgNotification) TypeName

func (*BadMsgNotification) TypeName() string

TypeName returns name of type in TL schema.

func (*BadMsgNotification) Zero

func (b *BadMsgNotification) Zero() bool

type BadMsgNotificationBox

type BadMsgNotificationBox struct {
	BadMsgNotification BadMsgNotificationClass
}

BadMsgNotification boxes the BadMsgNotificationClass providing a helper.

func (*BadMsgNotificationBox) Decode

func (b *BadMsgNotificationBox) Decode(buf *bin.Buffer) error

Decode implements bin.Decoder for BadMsgNotificationBox.

func (*BadMsgNotificationBox) Encode

func (b *BadMsgNotificationBox) Encode(buf *bin.Buffer) error

Encode implements bin.Encode for BadMsgNotificationBox.

type BadMsgNotificationClass

type BadMsgNotificationClass interface {
	bin.Encoder
	bin.Decoder
	bin.BareEncoder
	bin.BareDecoder

	// TypeID returns type id in TL schema.
	//
	// See https://core.telegram.org/mtproto/TL-tl#remarks.
	TypeID() uint32
	// TypeName returns name of type in TL schema.
	TypeName() string
	// String implements fmt.Stringer.
	String() string
	// Zero returns true if current object has a zero value.
	Zero() bool

	// BadMsgID field of BadMsgNotification.
	GetBadMsgID() (value int64)
	// BadMsgSeqno field of BadMsgNotification.
	GetBadMsgSeqno() (value int)
	// ErrorCode field of BadMsgNotification.
	GetErrorCode() (value int)
	// contains filtered or unexported methods
}

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)
}

func DecodeBadMsgNotification

func DecodeBadMsgNotification(buf *bin.Buffer) (BadMsgNotificationClass, error)

DecodeBadMsgNotification implements binary de-serialization for BadMsgNotificationClass.

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`.

func (*BadServerSalt) Decode

func (b *BadServerSalt) Decode(buf *bin.Buffer) error

Decode implements bin.Decoder.

func (*BadServerSalt) DecodeBare

func (b *BadServerSalt) DecodeBare(buf *bin.Buffer) error

DecodeBare implements bin.BareDecoder.

func (*BadServerSalt) Encode

func (b *BadServerSalt) Encode(buf *bin.Buffer) error

Encode implements bin.Encoder.

func (*BadServerSalt) EncodeBare

func (b *BadServerSalt) EncodeBare(buf *bin.Buffer) error

EncodeBare implements bin.BareEncoder.

func (*BadServerSalt) GetBadMsgID

func (b *BadServerSalt) GetBadMsgID() (value int64)

GetBadMsgID returns value of BadMsgID field.

func (*BadServerSalt) GetBadMsgSeqno

func (b *BadServerSalt) GetBadMsgSeqno() (value int)

GetBadMsgSeqno returns value of BadMsgSeqno field.

func (*BadServerSalt) GetErrorCode

func (b *BadServerSalt) GetErrorCode() (value int)

GetErrorCode returns value of ErrorCode field.

func (*BadServerSalt) GetNewServerSalt

func (b *BadServerSalt) GetNewServerSalt() (value int64)

GetNewServerSalt returns value of NewServerSalt field.

func (*BadServerSalt) String

func (b *BadServerSalt) String() string

String implements fmt.Stringer.

func (*BadServerSalt) TypeID

func (*BadServerSalt) TypeID() uint32

TypeID returns type id in TL schema.

See https://core.telegram.org/mtproto/TL-tl#remarks.

func (*BadServerSalt) TypeInfo

func (b *BadServerSalt) TypeInfo() tdp.Type

TypeInfo returns info about TL type.

func (*BadServerSalt) TypeName

func (*BadServerSalt) TypeName() string

TypeName returns name of type in TL schema.

func (*BadServerSalt) Zero

func (b *BadServerSalt) Zero() bool

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`.

func (*ClientDHInnerData) Decode

func (c *ClientDHInnerData) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*ClientDHInnerData) DecodeBare

func (c *ClientDHInnerData) DecodeBare(b *bin.Buffer) error

DecodeBare implements bin.BareDecoder.

func (*ClientDHInnerData) Encode

func (c *ClientDHInnerData) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

func (*ClientDHInnerData) EncodeBare

func (c *ClientDHInnerData) EncodeBare(b *bin.Buffer) error

EncodeBare implements bin.BareEncoder.

func (*ClientDHInnerData) GetGB

func (c *ClientDHInnerData) GetGB() (value []byte)

GetGB returns value of GB field.

func (*ClientDHInnerData) GetNonce

func (c *ClientDHInnerData) GetNonce() (value bin.Int128)

GetNonce returns value of Nonce field.

func (*ClientDHInnerData) GetRetryID

func (c *ClientDHInnerData) GetRetryID() (value int64)

GetRetryID returns value of RetryID field.

func (*ClientDHInnerData) GetServerNonce

func (c *ClientDHInnerData) GetServerNonce() (value bin.Int128)

GetServerNonce returns value of ServerNonce field.

func (*ClientDHInnerData) String

func (c *ClientDHInnerData) String() string

String implements fmt.Stringer.

func (*ClientDHInnerData) TypeID

func (*ClientDHInnerData) TypeID() uint32

TypeID returns type id in TL schema.

See https://core.telegram.org/mtproto/TL-tl#remarks.

func (*ClientDHInnerData) TypeInfo

func (c *ClientDHInnerData) TypeInfo() tdp.Type

TypeInfo returns info about TL type.

func (*ClientDHInnerData) TypeName

func (*ClientDHInnerData) TypeName() string

TypeName returns name of type in TL schema.

func (*ClientDHInnerData) Zero

func (c *ClientDHInnerData) Zero() bool

type DestroySessionNone

type DestroySessionNone struct {
	// SessionID field of DestroySessionNone.
	SessionID int64
}

DestroySessionNone represents TL type `destroy_session_none#62d350c9`.

func (*DestroySessionNone) Decode

func (d *DestroySessionNone) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*DestroySessionNone) DecodeBare

func (d *DestroySessionNone) DecodeBare(b *bin.Buffer) error

DecodeBare implements bin.BareDecoder.

func (*DestroySessionNone) Encode

func (d *DestroySessionNone) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

func (*DestroySessionNone) EncodeBare

func (d *DestroySessionNone) EncodeBare(b *bin.Buffer) error

EncodeBare implements bin.BareEncoder.

func (*DestroySessionNone) GetSessionID

func (d *DestroySessionNone) GetSessionID() (value int64)

GetSessionID returns value of SessionID field.

func (*DestroySessionNone) String

func (d *DestroySessionNone) String() string

String implements fmt.Stringer.

func (*DestroySessionNone) TypeID

func (*DestroySessionNone) TypeID() uint32

TypeID returns type id in TL schema.

See https://core.telegram.org/mtproto/TL-tl#remarks.

func (*DestroySessionNone) TypeInfo

func (d *DestroySessionNone) TypeInfo() tdp.Type

TypeInfo returns info about TL type.

func (*DestroySessionNone) TypeName

func (*DestroySessionNone) TypeName() string

TypeName returns name of type in TL schema.

func (*DestroySessionNone) Zero

func (d *DestroySessionNone) Zero() bool

type DestroySessionOk

type DestroySessionOk struct {
	// SessionID field of DestroySessionOk.
	SessionID int64
}

DestroySessionOk represents TL type `destroy_session_ok#e22045fc`.

func (*DestroySessionOk) Decode

func (d *DestroySessionOk) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*DestroySessionOk) DecodeBare

func (d *DestroySessionOk) DecodeBare(b *bin.Buffer) error

DecodeBare implements bin.BareDecoder.

func (*DestroySessionOk) Encode

func (d *DestroySessionOk) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

func (*DestroySessionOk) EncodeBare

func (d *DestroySessionOk) EncodeBare(b *bin.Buffer) error

EncodeBare implements bin.BareEncoder.

func (*DestroySessionOk) GetSessionID

func (d *DestroySessionOk) GetSessionID() (value int64)

GetSessionID returns value of SessionID field.

func (*DestroySessionOk) String

func (d *DestroySessionOk) String() string

String implements fmt.Stringer.

func (*DestroySessionOk) TypeID

func (*DestroySessionOk) TypeID() uint32

TypeID returns type id in TL schema.

See https://core.telegram.org/mtproto/TL-tl#remarks.

func (*DestroySessionOk) TypeInfo

func (d *DestroySessionOk) TypeInfo() tdp.Type

TypeInfo returns info about TL type.

func (*DestroySessionOk) TypeName

func (*DestroySessionOk) TypeName() string

TypeName returns name of type in TL schema.

func (*DestroySessionOk) Zero

func (d *DestroySessionOk) Zero() bool

type DestroySessionRequest

type DestroySessionRequest struct {
	// SessionID field of DestroySessionRequest.
	SessionID int64
}

DestroySessionRequest represents TL type `destroy_session#e7512126`.

func (*DestroySessionRequest) Decode

func (d *DestroySessionRequest) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*DestroySessionRequest) DecodeBare

func (d *DestroySessionRequest) DecodeBare(b *bin.Buffer) error

DecodeBare implements bin.BareDecoder.

func (*DestroySessionRequest) Encode

func (d *DestroySessionRequest) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

func (*DestroySessionRequest) EncodeBare

func (d *DestroySessionRequest) EncodeBare(b *bin.Buffer) error

EncodeBare implements bin.BareEncoder.

func (*DestroySessionRequest) GetSessionID

func (d *DestroySessionRequest) GetSessionID() (value int64)

GetSessionID returns value of SessionID field.

func (*DestroySessionRequest) String

func (d *DestroySessionRequest) String() string

String implements fmt.Stringer.

func (*DestroySessionRequest) TypeID

func (*DestroySessionRequest) TypeID() uint32

TypeID returns type id in TL schema.

See https://core.telegram.org/mtproto/TL-tl#remarks.

func (*DestroySessionRequest) TypeInfo

func (d *DestroySessionRequest) TypeInfo() tdp.Type

TypeInfo returns info about TL type.

func (*DestroySessionRequest) TypeName

func (*DestroySessionRequest) TypeName() string

TypeName returns name of type in TL schema.

func (*DestroySessionRequest) Zero

func (d *DestroySessionRequest) Zero() bool

type DestroySessionResBox

type DestroySessionResBox struct {
	DestroySessionRes DestroySessionResClass
}

DestroySessionRes boxes the DestroySessionResClass providing a helper.

func (*DestroySessionResBox) Decode

func (b *DestroySessionResBox) Decode(buf *bin.Buffer) error

Decode implements bin.Decoder for DestroySessionResBox.

func (*DestroySessionResBox) Encode

func (b *DestroySessionResBox) Encode(buf *bin.Buffer) error

Encode implements bin.Encode for DestroySessionResBox.

type DestroySessionResClass

type DestroySessionResClass interface {
	bin.Encoder
	bin.Decoder
	bin.BareEncoder
	bin.BareDecoder

	// TypeID returns type id in TL schema.
	//
	// See https://core.telegram.org/mtproto/TL-tl#remarks.
	TypeID() uint32
	// TypeName returns name of type in TL schema.
	TypeName() string
	// String implements fmt.Stringer.
	String() string
	// Zero returns true if current object has a zero value.
	Zero() bool

	// SessionID field of DestroySessionOk.
	GetSessionID() (value int64)
	// contains filtered or unexported methods
}

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)
}

func DecodeDestroySessionRes

func DecodeDestroySessionRes(buf *bin.Buffer) (DestroySessionResClass, error)

DecodeDestroySessionRes implements binary de-serialization for DestroySessionResClass.

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`.

func (*DhGenFail) Decode

func (d *DhGenFail) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*DhGenFail) DecodeBare

func (d *DhGenFail) DecodeBare(b *bin.Buffer) error

DecodeBare implements bin.BareDecoder.

func (*DhGenFail) Encode

func (d *DhGenFail) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

func (*DhGenFail) EncodeBare

func (d *DhGenFail) EncodeBare(b *bin.Buffer) error

EncodeBare implements bin.BareEncoder.

func (*DhGenFail) GetNewNonceHash3

func (d *DhGenFail) GetNewNonceHash3() (value bin.Int128)

GetNewNonceHash3 returns value of NewNonceHash3 field.

func (*DhGenFail) GetNonce

func (d *DhGenFail) GetNonce() (value bin.Int128)

GetNonce returns value of Nonce field.

func (*DhGenFail) GetServerNonce

func (d *DhGenFail) GetServerNonce() (value bin.Int128)

GetServerNonce returns value of ServerNonce field.

func (*DhGenFail) String

func (d *DhGenFail) String() string

String implements fmt.Stringer.

func (*DhGenFail) TypeID

func (*DhGenFail) TypeID() uint32

TypeID returns type id in TL schema.

See https://core.telegram.org/mtproto/TL-tl#remarks.

func (*DhGenFail) TypeInfo

func (d *DhGenFail) TypeInfo() tdp.Type

TypeInfo returns info about TL type.

func (*DhGenFail) TypeName

func (*DhGenFail) TypeName() string

TypeName returns name of type in TL schema.

func (*DhGenFail) Zero

func (d *DhGenFail) Zero() bool

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`.

func (*DhGenOk) Decode

func (d *DhGenOk) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*DhGenOk) DecodeBare

func (d *DhGenOk) DecodeBare(b *bin.Buffer) error

DecodeBare implements bin.BareDecoder.

func (*DhGenOk) Encode

func (d *DhGenOk) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

func (*DhGenOk) EncodeBare

func (d *DhGenOk) EncodeBare(b *bin.Buffer) error

EncodeBare implements bin.BareEncoder.

func (*DhGenOk) GetNewNonceHash1

func (d *DhGenOk) GetNewNonceHash1() (value bin.Int128)

GetNewNonceHash1 returns value of NewNonceHash1 field.

func (*DhGenOk) GetNonce

func (d *DhGenOk) GetNonce() (value bin.Int128)

GetNonce returns value of Nonce field.

func (*DhGenOk) GetServerNonce

func (d *DhGenOk) GetServerNonce() (value bin.Int128)

GetServerNonce returns value of ServerNonce field.

func (*DhGenOk) String

func (d *DhGenOk) String() string

String implements fmt.Stringer.

func (*DhGenOk) TypeID

func (*DhGenOk) TypeID() uint32

TypeID returns type id in TL schema.

See https://core.telegram.org/mtproto/TL-tl#remarks.

func (*DhGenOk) TypeInfo

func (d *DhGenOk) TypeInfo() tdp.Type

TypeInfo returns info about TL type.

func (*DhGenOk) TypeName

func (*DhGenOk) TypeName() string

TypeName returns name of type in TL schema.

func (*DhGenOk) Zero

func (d *DhGenOk) Zero() bool

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`.

func (*DhGenRetry) Decode

func (d *DhGenRetry) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*DhGenRetry) DecodeBare

func (d *DhGenRetry) DecodeBare(b *bin.Buffer) error

DecodeBare implements bin.BareDecoder.

func (*DhGenRetry) Encode

func (d *DhGenRetry) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

func (*DhGenRetry) EncodeBare

func (d *DhGenRetry) EncodeBare(b *bin.Buffer) error

EncodeBare implements bin.BareEncoder.

func (*DhGenRetry) GetNewNonceHash2

func (d *DhGenRetry) GetNewNonceHash2() (value bin.Int128)

GetNewNonceHash2 returns value of NewNonceHash2 field.

func (*DhGenRetry) GetNonce

func (d *DhGenRetry) GetNonce() (value bin.Int128)

GetNonce returns value of Nonce field.

func (*DhGenRetry) GetServerNonce

func (d *DhGenRetry) GetServerNonce() (value bin.Int128)

GetServerNonce returns value of ServerNonce field.

func (*DhGenRetry) String

func (d *DhGenRetry) String() string

String implements fmt.Stringer.

func (*DhGenRetry) TypeID

func (*DhGenRetry) TypeID() uint32

TypeID returns type id in TL schema.

See https://core.telegram.org/mtproto/TL-tl#remarks.

func (*DhGenRetry) TypeInfo

func (d *DhGenRetry) TypeInfo() tdp.Type

TypeInfo returns info about TL type.

func (*DhGenRetry) TypeName

func (*DhGenRetry) TypeName() string

TypeName returns name of type in TL schema.

func (*DhGenRetry) Zero

func (d *DhGenRetry) Zero() bool

type FutureSalt

type FutureSalt struct {
	// ValidSince field of FutureSalt.
	ValidSince int
	// ValidUntil field of FutureSalt.
	ValidUntil int
	// Salt field of FutureSalt.
	Salt int64
}

FutureSalt represents TL type `future_salt#949d9dc`.

func (*FutureSalt) Decode

func (f *FutureSalt) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*FutureSalt) DecodeBare

func (f *FutureSalt) DecodeBare(b *bin.Buffer) error

DecodeBare implements bin.BareDecoder.

func (*FutureSalt) Encode

func (f *FutureSalt) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

func (*FutureSalt) EncodeBare

func (f *FutureSalt) EncodeBare(b *bin.Buffer) error

EncodeBare implements bin.BareEncoder.

func (*FutureSalt) GetSalt

func (f *FutureSalt) GetSalt() (value int64)

GetSalt returns value of Salt field.

func (*FutureSalt) GetValidSince

func (f *FutureSalt) GetValidSince() (value int)

GetValidSince returns value of ValidSince field.

func (*FutureSalt) GetValidUntil

func (f *FutureSalt) GetValidUntil() (value int)

GetValidUntil returns value of ValidUntil field.

func (*FutureSalt) String

func (f *FutureSalt) String() string

String implements fmt.Stringer.

func (*FutureSalt) TypeID

func (*FutureSalt) TypeID() uint32

TypeID returns type id in TL schema.

See https://core.telegram.org/mtproto/TL-tl#remarks.

func (*FutureSalt) TypeInfo

func (f *FutureSalt) TypeInfo() tdp.Type

TypeInfo returns info about TL type.

func (*FutureSalt) TypeName

func (*FutureSalt) TypeName() string

TypeName returns name of type in TL schema.

func (*FutureSalt) Zero

func (f *FutureSalt) Zero() bool

type FutureSalts

type FutureSalts struct {
	// ReqMsgID field of FutureSalts.
	ReqMsgID int64
	// Now field of FutureSalts.
	Now int
	// Salts field of FutureSalts.
	Salts []FutureSalt
}

FutureSalts represents TL type `future_salts#ae500895`.

func (*FutureSalts) Decode

func (f *FutureSalts) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*FutureSalts) DecodeBare

func (f *FutureSalts) DecodeBare(b *bin.Buffer) error

DecodeBare implements bin.BareDecoder.

func (*FutureSalts) Encode

func (f *FutureSalts) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

func (*FutureSalts) EncodeBare

func (f *FutureSalts) EncodeBare(b *bin.Buffer) error

EncodeBare implements bin.BareEncoder.

func (*FutureSalts) GetNow

func (f *FutureSalts) GetNow() (value int)

GetNow returns value of Now field.

func (*FutureSalts) GetReqMsgID

func (f *FutureSalts) GetReqMsgID() (value int64)

GetReqMsgID returns value of ReqMsgID field.

func (*FutureSalts) GetSalts

func (f *FutureSalts) GetSalts() (value []FutureSalt)

GetSalts returns value of Salts field.

func (*FutureSalts) String

func (f *FutureSalts) String() string

String implements fmt.Stringer.

func (*FutureSalts) TypeID

func (*FutureSalts) TypeID() uint32

TypeID returns type id in TL schema.

See https://core.telegram.org/mtproto/TL-tl#remarks.

func (*FutureSalts) TypeInfo

func (f *FutureSalts) TypeInfo() tdp.Type

TypeInfo returns info about TL type.

func (*FutureSalts) TypeName

func (*FutureSalts) TypeName() string

TypeName returns name of type in TL schema.

func (*FutureSalts) Zero

func (f *FutureSalts) Zero() bool

type GetFutureSaltsRequest

type GetFutureSaltsRequest struct {
	// Num field of GetFutureSaltsRequest.
	Num int
}

GetFutureSaltsRequest represents TL type `get_future_salts#b921bd04`.

func (*GetFutureSaltsRequest) Decode

func (g *GetFutureSaltsRequest) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*GetFutureSaltsRequest) DecodeBare

func (g *GetFutureSaltsRequest) DecodeBare(b *bin.Buffer) error

DecodeBare implements bin.BareDecoder.

func (*GetFutureSaltsRequest) Encode

func (g *GetFutureSaltsRequest) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

func (*GetFutureSaltsRequest) EncodeBare

func (g *GetFutureSaltsRequest) EncodeBare(b *bin.Buffer) error

EncodeBare implements bin.BareEncoder.

func (*GetFutureSaltsRequest) GetNum

func (g *GetFutureSaltsRequest) GetNum() (value int)

GetNum returns value of Num field.

func (*GetFutureSaltsRequest) String

func (g *GetFutureSaltsRequest) String() string

String implements fmt.Stringer.

func (*GetFutureSaltsRequest) TypeID

func (*GetFutureSaltsRequest) TypeID() uint32

TypeID returns type id in TL schema.

See https://core.telegram.org/mtproto/TL-tl#remarks.

func (*GetFutureSaltsRequest) TypeInfo

func (g *GetFutureSaltsRequest) TypeInfo() tdp.Type

TypeInfo returns info about TL type.

func (*GetFutureSaltsRequest) TypeName

func (*GetFutureSaltsRequest) TypeName() string

TypeName returns name of type in TL schema.

func (*GetFutureSaltsRequest) Zero

func (g *GetFutureSaltsRequest) Zero() bool

type GzipPacked

type GzipPacked struct {
	// PackedData field of GzipPacked.
	PackedData []byte
}

GzipPacked represents TL type `gzip_packed#3072cfa1`.

func (*GzipPacked) Decode

func (g *GzipPacked) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*GzipPacked) DecodeBare

func (g *GzipPacked) DecodeBare(b *bin.Buffer) error

DecodeBare implements bin.BareDecoder.

func (*GzipPacked) Encode

func (g *GzipPacked) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

func (*GzipPacked) EncodeBare

func (g *GzipPacked) EncodeBare(b *bin.Buffer) error

EncodeBare implements bin.BareEncoder.

func (*GzipPacked) GetPackedData

func (g *GzipPacked) GetPackedData() (value []byte)

GetPackedData returns value of PackedData field.

func (*GzipPacked) String

func (g *GzipPacked) String() string

String implements fmt.Stringer.

func (*GzipPacked) TypeID

func (*GzipPacked) TypeID() uint32

TypeID returns type id in TL schema.

See https://core.telegram.org/mtproto/TL-tl#remarks.

func (*GzipPacked) TypeInfo

func (g *GzipPacked) TypeInfo() tdp.Type

TypeInfo returns info about TL type.

func (*GzipPacked) TypeName

func (*GzipPacked) TypeName() string

TypeName returns name of type in TL schema.

func (*GzipPacked) Zero

func (g *GzipPacked) Zero() bool

type HTTPWaitRequest

type HTTPWaitRequest struct {
	// MaxDelay field of HTTPWaitRequest.
	MaxDelay int
	// WaitAfter field of HTTPWaitRequest.
	WaitAfter int
	// MaxWait field of HTTPWaitRequest.
	MaxWait int
}

HTTPWaitRequest represents TL type `http_wait#9299359f`.

func (*HTTPWaitRequest) Decode

func (h *HTTPWaitRequest) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*HTTPWaitRequest) DecodeBare

func (h *HTTPWaitRequest) DecodeBare(b *bin.Buffer) error

DecodeBare implements bin.BareDecoder.

func (*HTTPWaitRequest) Encode

func (h *HTTPWaitRequest) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

func (*HTTPWaitRequest) EncodeBare

func (h *HTTPWaitRequest) EncodeBare(b *bin.Buffer) error

EncodeBare implements bin.BareEncoder.

func (*HTTPWaitRequest) GetMaxDelay

func (h *HTTPWaitRequest) GetMaxDelay() (value int)

GetMaxDelay returns value of MaxDelay field.

func (*HTTPWaitRequest) GetMaxWait

func (h *HTTPWaitRequest) GetMaxWait() (value int)

GetMaxWait returns value of MaxWait field.

func (*HTTPWaitRequest) GetWaitAfter

func (h *HTTPWaitRequest) GetWaitAfter() (value int)

GetWaitAfter returns value of WaitAfter field.

func (*HTTPWaitRequest) String

func (h *HTTPWaitRequest) String() string

String implements fmt.Stringer.

func (*HTTPWaitRequest) TypeID

func (*HTTPWaitRequest) TypeID() uint32

TypeID returns type id in TL schema.

See https://core.telegram.org/mtproto/TL-tl#remarks.

func (*HTTPWaitRequest) TypeInfo

func (h *HTTPWaitRequest) TypeInfo() tdp.Type

TypeInfo returns info about TL type.

func (*HTTPWaitRequest) TypeName

func (*HTTPWaitRequest) TypeName() string

TypeName returns name of type in TL schema.

func (*HTTPWaitRequest) Zero

func (h *HTTPWaitRequest) Zero() bool

type Message

type Message struct {
	// MsgID field of Message.
	MsgID int64
	// Seqno field of Message.
	Seqno int
	// Bytes field of Message.
	Bytes int
	// Body field of Message.
	Body GzipPacked
}

Message represents TL type `message#5bb8e511`.

func (*Message) Decode

func (m *Message) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*Message) DecodeBare

func (m *Message) DecodeBare(b *bin.Buffer) error

DecodeBare implements bin.BareDecoder.

func (*Message) Encode

func (m *Message) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

func (*Message) EncodeBare

func (m *Message) EncodeBare(b *bin.Buffer) error

EncodeBare implements bin.BareEncoder.

func (*Message) GetBody

func (m *Message) GetBody() (value GzipPacked)

GetBody returns value of Body field.

func (*Message) GetBytes

func (m *Message) GetBytes() (value int)

GetBytes returns value of Bytes field.

func (*Message) GetMsgID

func (m *Message) GetMsgID() (value int64)

GetMsgID returns value of MsgID field.

func (*Message) GetSeqno

func (m *Message) GetSeqno() (value int)

GetSeqno returns value of Seqno field.

func (*Message) String

func (m *Message) String() string

String implements fmt.Stringer.

func (*Message) TypeID

func (*Message) TypeID() uint32

TypeID returns type id in TL schema.

See https://core.telegram.org/mtproto/TL-tl#remarks.

func (*Message) TypeInfo

func (m *Message) TypeInfo() tdp.Type

TypeInfo returns info about TL type.

func (*Message) TypeName

func (*Message) TypeName() string

TypeName returns name of type in TL schema.

func (*Message) Zero

func (m *Message) Zero() bool

type MsgContainer

type MsgContainer struct {
	// Messages field of MsgContainer.
	Messages []Message
}

MsgContainer represents TL type `msg_container#73f1f8dc`.

func (*MsgContainer) Decode

func (m *MsgContainer) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*MsgContainer) DecodeBare

func (m *MsgContainer) DecodeBare(b *bin.Buffer) error

DecodeBare implements bin.BareDecoder.

func (*MsgContainer) Encode

func (m *MsgContainer) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

func (*MsgContainer) EncodeBare

func (m *MsgContainer) EncodeBare(b *bin.Buffer) error

EncodeBare implements bin.BareEncoder.

func (*MsgContainer) GetMessages

func (m *MsgContainer) GetMessages() (value []Message)

GetMessages returns value of Messages field.

func (*MsgContainer) String

func (m *MsgContainer) String() string

String implements fmt.Stringer.

func (*MsgContainer) TypeID

func (*MsgContainer) TypeID() uint32

TypeID returns type id in TL schema.

See https://core.telegram.org/mtproto/TL-tl#remarks.

func (*MsgContainer) TypeInfo

func (m *MsgContainer) TypeInfo() tdp.Type

TypeInfo returns info about TL type.

func (*MsgContainer) TypeName

func (*MsgContainer) TypeName() string

TypeName returns name of type in TL schema.

func (*MsgContainer) Zero

func (m *MsgContainer) Zero() bool

type MsgCopy

type MsgCopy struct {
	// OrigMessage field of MsgCopy.
	OrigMessage Message
}

MsgCopy represents TL type `msg_copy#e06046b2`.

func (*MsgCopy) Decode

func (m *MsgCopy) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*MsgCopy) DecodeBare

func (m *MsgCopy) DecodeBare(b *bin.Buffer) error

DecodeBare implements bin.BareDecoder.

func (*MsgCopy) Encode

func (m *MsgCopy) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

func (*MsgCopy) EncodeBare

func (m *MsgCopy) EncodeBare(b *bin.Buffer) error

EncodeBare implements bin.BareEncoder.

func (*MsgCopy) GetOrigMessage

func (m *MsgCopy) GetOrigMessage() (value Message)

GetOrigMessage returns value of OrigMessage field.

func (*MsgCopy) String

func (m *MsgCopy) String() string

String implements fmt.Stringer.

func (*MsgCopy) TypeID

func (*MsgCopy) TypeID() uint32

TypeID returns type id in TL schema.

See https://core.telegram.org/mtproto/TL-tl#remarks.

func (*MsgCopy) TypeInfo

func (m *MsgCopy) TypeInfo() tdp.Type

TypeInfo returns info about TL type.

func (*MsgCopy) TypeName

func (*MsgCopy) TypeName() string

TypeName returns name of type in TL schema.

func (*MsgCopy) Zero

func (m *MsgCopy) Zero() bool

type MsgDetailedInfo

type MsgDetailedInfo struct {
	// MsgID field of MsgDetailedInfo.
	MsgID int64
	// AnswerMsgID field of MsgDetailedInfo.
	AnswerMsgID int64
	// Bytes field of MsgDetailedInfo.
	Bytes int
	// Status field of MsgDetailedInfo.
	Status int
}

MsgDetailedInfo represents TL type `msg_detailed_info#276d3ec6`.

func (*MsgDetailedInfo) Decode

func (m *MsgDetailedInfo) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*MsgDetailedInfo) DecodeBare

func (m *MsgDetailedInfo) DecodeBare(b *bin.Buffer) error

DecodeBare implements bin.BareDecoder.

func (*MsgDetailedInfo) Encode

func (m *MsgDetailedInfo) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

func (*MsgDetailedInfo) EncodeBare

func (m *MsgDetailedInfo) EncodeBare(b *bin.Buffer) error

EncodeBare implements bin.BareEncoder.

func (*MsgDetailedInfo) GetAnswerMsgID

func (m *MsgDetailedInfo) GetAnswerMsgID() (value int64)

GetAnswerMsgID returns value of AnswerMsgID field.

func (*MsgDetailedInfo) GetBytes

func (m *MsgDetailedInfo) GetBytes() (value int)

GetBytes returns value of Bytes field.

func (*MsgDetailedInfo) GetMsgID

func (m *MsgDetailedInfo) GetMsgID() (value int64)

GetMsgID returns value of MsgID field.

func (*MsgDetailedInfo) GetStatus

func (m *MsgDetailedInfo) GetStatus() (value int)

GetStatus returns value of Status field.

func (*MsgDetailedInfo) String

func (m *MsgDetailedInfo) String() string

String implements fmt.Stringer.

func (*MsgDetailedInfo) TypeID

func (*MsgDetailedInfo) TypeID() uint32

TypeID returns type id in TL schema.

See https://core.telegram.org/mtproto/TL-tl#remarks.

func (*MsgDetailedInfo) TypeInfo

func (m *MsgDetailedInfo) TypeInfo() tdp.Type

TypeInfo returns info about TL type.

func (*MsgDetailedInfo) TypeName

func (*MsgDetailedInfo) TypeName() string

TypeName returns name of type in TL schema.

func (*MsgDetailedInfo) Zero

func (m *MsgDetailedInfo) Zero() bool

type MsgDetailedInfoBox

type MsgDetailedInfoBox struct {
	MsgDetailedInfo MsgDetailedInfoClass
}

MsgDetailedInfo boxes the MsgDetailedInfoClass providing a helper.

func (*MsgDetailedInfoBox) Decode

func (b *MsgDetailedInfoBox) Decode(buf *bin.Buffer) error

Decode implements bin.Decoder for MsgDetailedInfoBox.

func (*MsgDetailedInfoBox) Encode

func (b *MsgDetailedInfoBox) Encode(buf *bin.Buffer) error

Encode implements bin.Encode for MsgDetailedInfoBox.

type MsgDetailedInfoClass

type MsgDetailedInfoClass interface {
	bin.Encoder
	bin.Decoder
	bin.BareEncoder
	bin.BareDecoder

	// TypeID returns type id in TL schema.
	//
	// See https://core.telegram.org/mtproto/TL-tl#remarks.
	TypeID() uint32
	// TypeName returns name of type in TL schema.
	TypeName() string
	// String implements fmt.Stringer.
	String() string
	// Zero returns true if current object has a zero value.
	Zero() bool

	// AnswerMsgID field of MsgDetailedInfo.
	GetAnswerMsgID() (value int64)
	// Bytes field of MsgDetailedInfo.
	GetBytes() (value int)
	// Status field of MsgDetailedInfo.
	GetStatus() (value int)
	// contains filtered or unexported methods
}

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)
}

func DecodeMsgDetailedInfo

func DecodeMsgDetailedInfo(buf *bin.Buffer) (MsgDetailedInfoClass, error)

DecodeMsgDetailedInfo implements binary de-serialization for MsgDetailedInfoClass.

type MsgNewDetailedInfo

type MsgNewDetailedInfo struct {
	// AnswerMsgID field of MsgNewDetailedInfo.
	AnswerMsgID int64
	// Bytes field of MsgNewDetailedInfo.
	Bytes int
	// Status field of MsgNewDetailedInfo.
	Status int
}

MsgNewDetailedInfo represents TL type `msg_new_detailed_info#809db6df`.

func (*MsgNewDetailedInfo) Decode

func (m *MsgNewDetailedInfo) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*MsgNewDetailedInfo) DecodeBare

func (m *MsgNewDetailedInfo) DecodeBare(b *bin.Buffer) error

DecodeBare implements bin.BareDecoder.

func (*MsgNewDetailedInfo) Encode

func (m *MsgNewDetailedInfo) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

func (*MsgNewDetailedInfo) EncodeBare

func (m *MsgNewDetailedInfo) EncodeBare(b *bin.Buffer) error

EncodeBare implements bin.BareEncoder.

func (*MsgNewDetailedInfo) GetAnswerMsgID

func (m *MsgNewDetailedInfo) GetAnswerMsgID() (value int64)

GetAnswerMsgID returns value of AnswerMsgID field.

func (*MsgNewDetailedInfo) GetBytes

func (m *MsgNewDetailedInfo) GetBytes() (value int)

GetBytes returns value of Bytes field.

func (*MsgNewDetailedInfo) GetStatus

func (m *MsgNewDetailedInfo) GetStatus() (value int)

GetStatus returns value of Status field.

func (*MsgNewDetailedInfo) String

func (m *MsgNewDetailedInfo) String() string

String implements fmt.Stringer.

func (*MsgNewDetailedInfo) TypeID

func (*MsgNewDetailedInfo) TypeID() uint32

TypeID returns type id in TL schema.

See https://core.telegram.org/mtproto/TL-tl#remarks.

func (*MsgNewDetailedInfo) TypeInfo

func (m *MsgNewDetailedInfo) TypeInfo() tdp.Type

TypeInfo returns info about TL type.

func (*MsgNewDetailedInfo) TypeName

func (*MsgNewDetailedInfo) TypeName() string

TypeName returns name of type in TL schema.

func (*MsgNewDetailedInfo) Zero

func (m *MsgNewDetailedInfo) Zero() bool

type MsgResendReq

type MsgResendReq struct {
	// MsgIDs field of MsgResendReq.
	MsgIDs []int64
}

MsgResendReq represents TL type `msg_resend_req#7d861a08`.

func (*MsgResendReq) Decode

func (m *MsgResendReq) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*MsgResendReq) DecodeBare

func (m *MsgResendReq) DecodeBare(b *bin.Buffer) error

DecodeBare implements bin.BareDecoder.

func (*MsgResendReq) Encode

func (m *MsgResendReq) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

func (*MsgResendReq) EncodeBare

func (m *MsgResendReq) EncodeBare(b *bin.Buffer) error

EncodeBare implements bin.BareEncoder.

func (*MsgResendReq) GetMsgIDs

func (m *MsgResendReq) GetMsgIDs() (value []int64)

GetMsgIDs returns value of MsgIDs field.

func (*MsgResendReq) String

func (m *MsgResendReq) String() string

String implements fmt.Stringer.

func (*MsgResendReq) TypeID

func (*MsgResendReq) TypeID() uint32

TypeID returns type id in TL schema.

See https://core.telegram.org/mtproto/TL-tl#remarks.

func (*MsgResendReq) TypeInfo

func (m *MsgResendReq) TypeInfo() tdp.Type

TypeInfo returns info about TL type.

func (*MsgResendReq) TypeName

func (*MsgResendReq) TypeName() string

TypeName returns name of type in TL schema.

func (*MsgResendReq) Zero

func (m *MsgResendReq) Zero() bool

type MsgsAck

type MsgsAck struct {
	// MsgIDs field of MsgsAck.
	MsgIDs []int64
}

MsgsAck represents TL type `msgs_ack#62d6b459`.

func (*MsgsAck) Decode

func (m *MsgsAck) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*MsgsAck) DecodeBare

func (m *MsgsAck) DecodeBare(b *bin.Buffer) error

DecodeBare implements bin.BareDecoder.

func (*MsgsAck) Encode

func (m *MsgsAck) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

func (*MsgsAck) EncodeBare

func (m *MsgsAck) EncodeBare(b *bin.Buffer) error

EncodeBare implements bin.BareEncoder.

func (*MsgsAck) GetMsgIDs

func (m *MsgsAck) GetMsgIDs() (value []int64)

GetMsgIDs returns value of MsgIDs field.

func (*MsgsAck) String

func (m *MsgsAck) String() string

String implements fmt.Stringer.

func (*MsgsAck) TypeID

func (*MsgsAck) TypeID() uint32

TypeID returns type id in TL schema.

See https://core.telegram.org/mtproto/TL-tl#remarks.

func (*MsgsAck) TypeInfo

func (m *MsgsAck) TypeInfo() tdp.Type

TypeInfo returns info about TL type.

func (*MsgsAck) TypeName

func (*MsgsAck) TypeName() string

TypeName returns name of type in TL schema.

func (*MsgsAck) Zero

func (m *MsgsAck) Zero() bool

type MsgsAllInfo

type MsgsAllInfo struct {
	// MsgIDs field of MsgsAllInfo.
	MsgIDs []int64
	// Info field of MsgsAllInfo.
	Info []byte
}

MsgsAllInfo represents TL type `msgs_all_info#8cc0d131`.

func (*MsgsAllInfo) Decode

func (m *MsgsAllInfo) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*MsgsAllInfo) DecodeBare

func (m *MsgsAllInfo) DecodeBare(b *bin.Buffer) error

DecodeBare implements bin.BareDecoder.

func (*MsgsAllInfo) Encode

func (m *MsgsAllInfo) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

func (*MsgsAllInfo) EncodeBare

func (m *MsgsAllInfo) EncodeBare(b *bin.Buffer) error

EncodeBare implements bin.BareEncoder.

func (*MsgsAllInfo) GetInfo

func (m *MsgsAllInfo) GetInfo() (value []byte)

GetInfo returns value of Info field.

func (*MsgsAllInfo) GetMsgIDs

func (m *MsgsAllInfo) GetMsgIDs() (value []int64)

GetMsgIDs returns value of MsgIDs field.

func (*MsgsAllInfo) String

func (m *MsgsAllInfo) String() string

String implements fmt.Stringer.

func (*MsgsAllInfo) TypeID

func (*MsgsAllInfo) TypeID() uint32

TypeID returns type id in TL schema.

See https://core.telegram.org/mtproto/TL-tl#remarks.

func (*MsgsAllInfo) TypeInfo

func (m *MsgsAllInfo) TypeInfo() tdp.Type

TypeInfo returns info about TL type.

func (*MsgsAllInfo) TypeName

func (*MsgsAllInfo) TypeName() string

TypeName returns name of type in TL schema.

func (*MsgsAllInfo) Zero

func (m *MsgsAllInfo) Zero() bool

type MsgsStateInfo

type MsgsStateInfo struct {
	// ReqMsgID field of MsgsStateInfo.
	ReqMsgID int64
	// Info field of MsgsStateInfo.
	Info []byte
}

MsgsStateInfo represents TL type `msgs_state_info#4deb57d`.

func (*MsgsStateInfo) Decode

func (m *MsgsStateInfo) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*MsgsStateInfo) DecodeBare

func (m *MsgsStateInfo) DecodeBare(b *bin.Buffer) error

DecodeBare implements bin.BareDecoder.

func (*MsgsStateInfo) Encode

func (m *MsgsStateInfo) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

func (*MsgsStateInfo) EncodeBare

func (m *MsgsStateInfo) EncodeBare(b *bin.Buffer) error

EncodeBare implements bin.BareEncoder.

func (*MsgsStateInfo) GetInfo

func (m *MsgsStateInfo) GetInfo() (value []byte)

GetInfo returns value of Info field.

func (*MsgsStateInfo) GetReqMsgID

func (m *MsgsStateInfo) GetReqMsgID() (value int64)

GetReqMsgID returns value of ReqMsgID field.

func (*MsgsStateInfo) String

func (m *MsgsStateInfo) String() string

String implements fmt.Stringer.

func (*MsgsStateInfo) TypeID

func (*MsgsStateInfo) TypeID() uint32

TypeID returns type id in TL schema.

See https://core.telegram.org/mtproto/TL-tl#remarks.

func (*MsgsStateInfo) TypeInfo

func (m *MsgsStateInfo) TypeInfo() tdp.Type

TypeInfo returns info about TL type.

func (*MsgsStateInfo) TypeName

func (*MsgsStateInfo) TypeName() string

TypeName returns name of type in TL schema.

func (*MsgsStateInfo) Zero

func (m *MsgsStateInfo) Zero() bool

type MsgsStateReq

type MsgsStateReq struct {
	// MsgIDs field of MsgsStateReq.
	MsgIDs []int64
}

MsgsStateReq represents TL type `msgs_state_req#da69fb52`.

func (*MsgsStateReq) Decode

func (m *MsgsStateReq) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*MsgsStateReq) DecodeBare

func (m *MsgsStateReq) DecodeBare(b *bin.Buffer) error

DecodeBare implements bin.BareDecoder.

func (*MsgsStateReq) Encode

func (m *MsgsStateReq) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

func (*MsgsStateReq) EncodeBare

func (m *MsgsStateReq) EncodeBare(b *bin.Buffer) error

EncodeBare implements bin.BareEncoder.

func (*MsgsStateReq) GetMsgIDs

func (m *MsgsStateReq) GetMsgIDs() (value []int64)

GetMsgIDs returns value of MsgIDs field.

func (*MsgsStateReq) String

func (m *MsgsStateReq) String() string

String implements fmt.Stringer.

func (*MsgsStateReq) TypeID

func (*MsgsStateReq) TypeID() uint32

TypeID returns type id in TL schema.

See https://core.telegram.org/mtproto/TL-tl#remarks.

func (*MsgsStateReq) TypeInfo

func (m *MsgsStateReq) TypeInfo() tdp.Type

TypeInfo returns info about TL type.

func (*MsgsStateReq) TypeName

func (*MsgsStateReq) TypeName() string

TypeName returns name of type in TL schema.

func (*MsgsStateReq) Zero

func (m *MsgsStateReq) Zero() bool

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`.

func (*NewSessionCreated) Decode

func (n *NewSessionCreated) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*NewSessionCreated) DecodeBare

func (n *NewSessionCreated) DecodeBare(b *bin.Buffer) error

DecodeBare implements bin.BareDecoder.

func (*NewSessionCreated) Encode

func (n *NewSessionCreated) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

func (*NewSessionCreated) EncodeBare

func (n *NewSessionCreated) EncodeBare(b *bin.Buffer) error

EncodeBare implements bin.BareEncoder.

func (*NewSessionCreated) GetFirstMsgID

func (n *NewSessionCreated) GetFirstMsgID() (value int64)

GetFirstMsgID returns value of FirstMsgID field.

func (*NewSessionCreated) GetServerSalt

func (n *NewSessionCreated) GetServerSalt() (value int64)

GetServerSalt returns value of ServerSalt field.

func (*NewSessionCreated) GetUniqueID

func (n *NewSessionCreated) GetUniqueID() (value int64)

GetUniqueID returns value of UniqueID field.

func (*NewSessionCreated) String

func (n *NewSessionCreated) String() string

String implements fmt.Stringer.

func (*NewSessionCreated) TypeID

func (*NewSessionCreated) TypeID() uint32

TypeID returns type id in TL schema.

See https://core.telegram.org/mtproto/TL-tl#remarks.

func (*NewSessionCreated) TypeInfo

func (n *NewSessionCreated) TypeInfo() tdp.Type

TypeInfo returns info about TL type.

func (*NewSessionCreated) TypeName

func (*NewSessionCreated) TypeName() string

TypeName returns name of type in TL schema.

func (*NewSessionCreated) Zero

func (n *NewSessionCreated) Zero() bool

type PQInnerData

type PQInnerData struct {
	// Pq field of PQInnerData.
	Pq []byte
	// P field of PQInnerData.
	P []byte
	// Q field of PQInnerData.
	Q []byte
	// Nonce field of PQInnerData.
	Nonce bin.Int128
	// ServerNonce field of PQInnerData.
	ServerNonce bin.Int128
	// NewNonce field of PQInnerData.
	NewNonce bin.Int256
}

PQInnerData represents TL type `p_q_inner_data#83c95aec`.

func (*PQInnerData) Decode

func (p *PQInnerData) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*PQInnerData) DecodeBare

func (p *PQInnerData) DecodeBare(b *bin.Buffer) error

DecodeBare implements bin.BareDecoder.

func (*PQInnerData) Encode

func (p *PQInnerData) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

func (*PQInnerData) EncodeBare

func (p *PQInnerData) EncodeBare(b *bin.Buffer) error

EncodeBare implements bin.BareEncoder.

func (*PQInnerData) GetNewNonce

func (p *PQInnerData) GetNewNonce() (value bin.Int256)

GetNewNonce returns value of NewNonce field.

func (*PQInnerData) GetNonce

func (p *PQInnerData) GetNonce() (value bin.Int128)

GetNonce returns value of Nonce field.

func (*PQInnerData) GetP

func (p *PQInnerData) GetP() (value []byte)

GetP returns value of P field.

func (*PQInnerData) GetPq

func (p *PQInnerData) GetPq() (value []byte)

GetPq returns value of Pq field.

func (*PQInnerData) GetQ

func (p *PQInnerData) GetQ() (value []byte)

GetQ returns value of Q field.

func (*PQInnerData) GetServerNonce

func (p *PQInnerData) GetServerNonce() (value bin.Int128)

GetServerNonce returns value of ServerNonce field.

func (*PQInnerData) String

func (p *PQInnerData) String() string

String implements fmt.Stringer.

func (*PQInnerData) TypeID

func (*PQInnerData) TypeID() uint32

TypeID returns type id in TL schema.

See https://core.telegram.org/mtproto/TL-tl#remarks.

func (*PQInnerData) TypeInfo

func (p *PQInnerData) TypeInfo() tdp.Type

TypeInfo returns info about TL type.

func (*PQInnerData) TypeName

func (*PQInnerData) TypeName() string

TypeName returns name of type in TL schema.

func (*PQInnerData) Zero

func (p *PQInnerData) Zero() bool

type PQInnerDataBox

type PQInnerDataBox struct {
	P_Q_inner_data PQInnerDataClass
}

PQInnerData boxes the PQInnerDataClass providing a helper.

func (*PQInnerDataBox) Decode

func (b *PQInnerDataBox) Decode(buf *bin.Buffer) error

Decode implements bin.Decoder for PQInnerDataBox.

func (*PQInnerDataBox) Encode

func (b *PQInnerDataBox) Encode(buf *bin.Buffer) error

Encode implements bin.Encode for PQInnerDataBox.

type PQInnerDataClass

type PQInnerDataClass interface {
	bin.Encoder
	bin.Decoder
	bin.BareEncoder
	bin.BareDecoder

	// TypeID returns type id in TL schema.
	//
	// See https://core.telegram.org/mtproto/TL-tl#remarks.
	TypeID() uint32
	// TypeName returns name of type in TL schema.
	TypeName() string
	// String implements fmt.Stringer.
	String() string
	// Zero returns true if current object has a zero value.
	Zero() bool

	// Pq field of PQInnerData.
	GetPq() (value []byte)
	// P field of PQInnerData.
	GetP() (value []byte)
	// Q field of PQInnerData.
	GetQ() (value []byte)
	// Nonce field of PQInnerData.
	GetNonce() (value bin.Int128)
	// ServerNonce field of PQInnerData.
	GetServerNonce() (value bin.Int128)
	// NewNonce field of PQInnerData.
	GetNewNonce() (value bin.Int256)
	// contains filtered or unexported methods
}

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)
}

func DecodePQInnerData

func DecodePQInnerData(buf *bin.Buffer) (PQInnerDataClass, error)

DecodePQInnerData implements binary de-serialization for PQInnerDataClass.

type PQInnerDataDC

type PQInnerDataDC struct {
	// Pq field of PQInnerDataDC.
	Pq []byte
	// P field of PQInnerDataDC.
	P []byte
	// Q field of PQInnerDataDC.
	Q []byte
	// Nonce field of PQInnerDataDC.
	Nonce bin.Int128
	// ServerNonce field of PQInnerDataDC.
	ServerNonce bin.Int128
	// NewNonce field of PQInnerDataDC.
	NewNonce bin.Int256
	// DC field of PQInnerDataDC.
	DC int
}

PQInnerDataDC represents TL type `p_q_inner_data_dc#a9f55f95`.

func (*PQInnerDataDC) Decode

func (p *PQInnerDataDC) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*PQInnerDataDC) DecodeBare

func (p *PQInnerDataDC) DecodeBare(b *bin.Buffer) error

DecodeBare implements bin.BareDecoder.

func (*PQInnerDataDC) Encode

func (p *PQInnerDataDC) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

func (*PQInnerDataDC) EncodeBare

func (p *PQInnerDataDC) EncodeBare(b *bin.Buffer) error

EncodeBare implements bin.BareEncoder.

func (*PQInnerDataDC) GetDC

func (p *PQInnerDataDC) GetDC() (value int)

GetDC returns value of DC field.

func (*PQInnerDataDC) GetNewNonce

func (p *PQInnerDataDC) GetNewNonce() (value bin.Int256)

GetNewNonce returns value of NewNonce field.

func (*PQInnerDataDC) GetNonce

func (p *PQInnerDataDC) GetNonce() (value bin.Int128)

GetNonce returns value of Nonce field.

func (*PQInnerDataDC) GetP

func (p *PQInnerDataDC) GetP() (value []byte)

GetP returns value of P field.

func (*PQInnerDataDC) GetPq

func (p *PQInnerDataDC) GetPq() (value []byte)

GetPq returns value of Pq field.

func (*PQInnerDataDC) GetQ

func (p *PQInnerDataDC) GetQ() (value []byte)

GetQ returns value of Q field.

func (*PQInnerDataDC) GetServerNonce

func (p *PQInnerDataDC) GetServerNonce() (value bin.Int128)

GetServerNonce returns value of ServerNonce field.

func (*PQInnerDataDC) String

func (p *PQInnerDataDC) String() string

String implements fmt.Stringer.

func (*PQInnerDataDC) TypeID

func (*PQInnerDataDC) TypeID() uint32

TypeID returns type id in TL schema.

See https://core.telegram.org/mtproto/TL-tl#remarks.

func (*PQInnerDataDC) TypeInfo

func (p *PQInnerDataDC) TypeInfo() tdp.Type

TypeInfo returns info about TL type.

func (*PQInnerDataDC) TypeName

func (*PQInnerDataDC) TypeName() string

TypeName returns name of type in TL schema.

func (*PQInnerDataDC) Zero

func (p *PQInnerDataDC) Zero() bool

type PQInnerDataTempDC

type PQInnerDataTempDC struct {
	// Pq field of PQInnerDataTempDC.
	Pq []byte
	// P field of PQInnerDataTempDC.
	P []byte
	// Q field of PQInnerDataTempDC.
	Q []byte
	// Nonce field of PQInnerDataTempDC.
	Nonce bin.Int128
	// ServerNonce field of PQInnerDataTempDC.
	ServerNonce bin.Int128
	// NewNonce field of PQInnerDataTempDC.
	NewNonce bin.Int256
	// DC field of PQInnerDataTempDC.
	DC int
	// ExpiresIn field of PQInnerDataTempDC.
	ExpiresIn int
}

PQInnerDataTempDC represents TL type `p_q_inner_data_temp_dc#56fddf88`.

func (*PQInnerDataTempDC) Decode

func (p *PQInnerDataTempDC) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*PQInnerDataTempDC) DecodeBare

func (p *PQInnerDataTempDC) DecodeBare(b *bin.Buffer) error

DecodeBare implements bin.BareDecoder.

func (*PQInnerDataTempDC) Encode

func (p *PQInnerDataTempDC) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

func (*PQInnerDataTempDC) EncodeBare

func (p *PQInnerDataTempDC) EncodeBare(b *bin.Buffer) error

EncodeBare implements bin.BareEncoder.

func (*PQInnerDataTempDC) GetDC

func (p *PQInnerDataTempDC) GetDC() (value int)

GetDC returns value of DC field.

func (*PQInnerDataTempDC) GetExpiresIn

func (p *PQInnerDataTempDC) GetExpiresIn() (value int)

GetExpiresIn returns value of ExpiresIn field.

func (*PQInnerDataTempDC) GetNewNonce

func (p *PQInnerDataTempDC) GetNewNonce() (value bin.Int256)

GetNewNonce returns value of NewNonce field.

func (*PQInnerDataTempDC) GetNonce

func (p *PQInnerDataTempDC) GetNonce() (value bin.Int128)

GetNonce returns value of Nonce field.

func (*PQInnerDataTempDC) GetP

func (p *PQInnerDataTempDC) GetP() (value []byte)

GetP returns value of P field.

func (*PQInnerDataTempDC) GetPq

func (p *PQInnerDataTempDC) GetPq() (value []byte)

GetPq returns value of Pq field.

func (*PQInnerDataTempDC) GetQ

func (p *PQInnerDataTempDC) GetQ() (value []byte)

GetQ returns value of Q field.

func (*PQInnerDataTempDC) GetServerNonce

func (p *PQInnerDataTempDC) GetServerNonce() (value bin.Int128)

GetServerNonce returns value of ServerNonce field.

func (*PQInnerDataTempDC) String

func (p *PQInnerDataTempDC) String() string

String implements fmt.Stringer.

func (*PQInnerDataTempDC) TypeID

func (*PQInnerDataTempDC) TypeID() uint32

TypeID returns type id in TL schema.

See https://core.telegram.org/mtproto/TL-tl#remarks.

func (*PQInnerDataTempDC) TypeInfo

func (p *PQInnerDataTempDC) TypeInfo() tdp.Type

TypeInfo returns info about TL type.

func (*PQInnerDataTempDC) TypeName

func (*PQInnerDataTempDC) TypeName() string

TypeName returns name of type in TL schema.

func (*PQInnerDataTempDC) Zero

func (p *PQInnerDataTempDC) Zero() bool

type PingDelayDisconnectRequest

type PingDelayDisconnectRequest struct {
	// PingID field of PingDelayDisconnectRequest.
	PingID int64
	// DisconnectDelay field of PingDelayDisconnectRequest.
	DisconnectDelay int
}

PingDelayDisconnectRequest represents TL type `ping_delay_disconnect#f3427b8c`.

func (*PingDelayDisconnectRequest) Decode

Decode implements bin.Decoder.

func (*PingDelayDisconnectRequest) DecodeBare

func (p *PingDelayDisconnectRequest) DecodeBare(b *bin.Buffer) error

DecodeBare implements bin.BareDecoder.

func (*PingDelayDisconnectRequest) Encode

Encode implements bin.Encoder.

func (*PingDelayDisconnectRequest) EncodeBare

func (p *PingDelayDisconnectRequest) EncodeBare(b *bin.Buffer) error

EncodeBare implements bin.BareEncoder.

func (*PingDelayDisconnectRequest) GetDisconnectDelay

func (p *PingDelayDisconnectRequest) GetDisconnectDelay() (value int)

GetDisconnectDelay returns value of DisconnectDelay field.

func (*PingDelayDisconnectRequest) GetPingID

func (p *PingDelayDisconnectRequest) GetPingID() (value int64)

GetPingID returns value of PingID field.

func (*PingDelayDisconnectRequest) String

func (p *PingDelayDisconnectRequest) String() string

String implements fmt.Stringer.

func (*PingDelayDisconnectRequest) TypeID

TypeID returns type id in TL schema.

See https://core.telegram.org/mtproto/TL-tl#remarks.

func (*PingDelayDisconnectRequest) TypeInfo

func (p *PingDelayDisconnectRequest) TypeInfo() tdp.Type

TypeInfo returns info about TL type.

func (*PingDelayDisconnectRequest) TypeName

func (*PingDelayDisconnectRequest) TypeName() string

TypeName returns name of type in TL schema.

func (*PingDelayDisconnectRequest) Zero

func (p *PingDelayDisconnectRequest) Zero() bool

type PingRequest

type PingRequest struct {
	// PingID field of PingRequest.
	PingID int64
}

PingRequest represents TL type `ping#7abe77ec`.

func (*PingRequest) Decode

func (p *PingRequest) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*PingRequest) DecodeBare

func (p *PingRequest) DecodeBare(b *bin.Buffer) error

DecodeBare implements bin.BareDecoder.

func (*PingRequest) Encode

func (p *PingRequest) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

func (*PingRequest) EncodeBare

func (p *PingRequest) EncodeBare(b *bin.Buffer) error

EncodeBare implements bin.BareEncoder.

func (*PingRequest) GetPingID

func (p *PingRequest) GetPingID() (value int64)

GetPingID returns value of PingID field.

func (*PingRequest) String

func (p *PingRequest) String() string

String implements fmt.Stringer.

func (*PingRequest) TypeID

func (*PingRequest) TypeID() uint32

TypeID returns type id in TL schema.

See https://core.telegram.org/mtproto/TL-tl#remarks.

func (*PingRequest) TypeInfo

func (p *PingRequest) TypeInfo() tdp.Type

TypeInfo returns info about TL type.

func (*PingRequest) TypeName

func (*PingRequest) TypeName() string

TypeName returns name of type in TL schema.

func (*PingRequest) Zero

func (p *PingRequest) Zero() bool

type Pong

type Pong struct {
	// MsgID field of Pong.
	MsgID int64
	// PingID field of Pong.
	PingID int64
}

Pong represents TL type `pong#347773c5`.

func (*Pong) Decode

func (p *Pong) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*Pong) DecodeBare

func (p *Pong) DecodeBare(b *bin.Buffer) error

DecodeBare implements bin.BareDecoder.

func (*Pong) Encode

func (p *Pong) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

func (*Pong) EncodeBare

func (p *Pong) EncodeBare(b *bin.Buffer) error

EncodeBare implements bin.BareEncoder.

func (*Pong) GetMsgID

func (p *Pong) GetMsgID() (value int64)

GetMsgID returns value of MsgID field.

func (*Pong) GetPingID

func (p *Pong) GetPingID() (value int64)

GetPingID returns value of PingID field.

func (*Pong) String

func (p *Pong) String() string

String implements fmt.Stringer.

func (*Pong) TypeID

func (*Pong) TypeID() uint32

TypeID returns type id in TL schema.

See https://core.telegram.org/mtproto/TL-tl#remarks.

func (*Pong) TypeInfo

func (p *Pong) TypeInfo() tdp.Type

TypeInfo returns info about TL type.

func (*Pong) TypeName

func (*Pong) TypeName() string

TypeName returns name of type in TL schema.

func (*Pong) Zero

func (p *Pong) Zero() bool

type RPCAnswerDropped

type RPCAnswerDropped struct {
	// MsgID field of RPCAnswerDropped.
	MsgID int64
	// SeqNo field of RPCAnswerDropped.
	SeqNo int
	// Bytes field of RPCAnswerDropped.
	Bytes int
}

RPCAnswerDropped represents TL type `rpc_answer_dropped#a43ad8b7`.

func (*RPCAnswerDropped) Decode

func (r *RPCAnswerDropped) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*RPCAnswerDropped) DecodeBare

func (r *RPCAnswerDropped) DecodeBare(b *bin.Buffer) error

DecodeBare implements bin.BareDecoder.

func (*RPCAnswerDropped) Encode

func (r *RPCAnswerDropped) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

func (*RPCAnswerDropped) EncodeBare

func (r *RPCAnswerDropped) EncodeBare(b *bin.Buffer) error

EncodeBare implements bin.BareEncoder.

func (*RPCAnswerDropped) GetBytes

func (r *RPCAnswerDropped) GetBytes() (value int)

GetBytes returns value of Bytes field.

func (*RPCAnswerDropped) GetMsgID

func (r *RPCAnswerDropped) GetMsgID() (value int64)

GetMsgID returns value of MsgID field.

func (*RPCAnswerDropped) GetSeqNo

func (r *RPCAnswerDropped) GetSeqNo() (value int)

GetSeqNo returns value of SeqNo field.

func (*RPCAnswerDropped) String

func (r *RPCAnswerDropped) String() string

String implements fmt.Stringer.

func (*RPCAnswerDropped) TypeID

func (*RPCAnswerDropped) TypeID() uint32

TypeID returns type id in TL schema.

See https://core.telegram.org/mtproto/TL-tl#remarks.

func (*RPCAnswerDropped) TypeInfo

func (r *RPCAnswerDropped) TypeInfo() tdp.Type

TypeInfo returns info about TL type.

func (*RPCAnswerDropped) TypeName

func (*RPCAnswerDropped) TypeName() string

TypeName returns name of type in TL schema.

func (*RPCAnswerDropped) Zero

func (r *RPCAnswerDropped) Zero() bool

type RPCAnswerDroppedRunning

type RPCAnswerDroppedRunning struct {
}

RPCAnswerDroppedRunning represents TL type `rpc_answer_dropped_running#cd78e586`.

func (*RPCAnswerDroppedRunning) Decode

func (r *RPCAnswerDroppedRunning) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*RPCAnswerDroppedRunning) DecodeBare

func (r *RPCAnswerDroppedRunning) DecodeBare(b *bin.Buffer) error

DecodeBare implements bin.BareDecoder.

func (*RPCAnswerDroppedRunning) Encode

func (r *RPCAnswerDroppedRunning) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

func (*RPCAnswerDroppedRunning) EncodeBare

func (r *RPCAnswerDroppedRunning) EncodeBare(b *bin.Buffer) error

EncodeBare implements bin.BareEncoder.

func (*RPCAnswerDroppedRunning) String

func (r *RPCAnswerDroppedRunning) String() string

String implements fmt.Stringer.

func (*RPCAnswerDroppedRunning) TypeID

func (*RPCAnswerDroppedRunning) TypeID() uint32

TypeID returns type id in TL schema.

See https://core.telegram.org/mtproto/TL-tl#remarks.

func (*RPCAnswerDroppedRunning) TypeInfo

func (r *RPCAnswerDroppedRunning) TypeInfo() tdp.Type

TypeInfo returns info about TL type.

func (*RPCAnswerDroppedRunning) TypeName

func (*RPCAnswerDroppedRunning) TypeName() string

TypeName returns name of type in TL schema.

func (*RPCAnswerDroppedRunning) Zero

func (r *RPCAnswerDroppedRunning) Zero() bool

type RPCAnswerUnknown

type RPCAnswerUnknown struct {
}

RPCAnswerUnknown represents TL type `rpc_answer_unknown#5e2ad36e`.

func (*RPCAnswerUnknown) Decode

func (r *RPCAnswerUnknown) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*RPCAnswerUnknown) DecodeBare

func (r *RPCAnswerUnknown) DecodeBare(b *bin.Buffer) error

DecodeBare implements bin.BareDecoder.

func (*RPCAnswerUnknown) Encode

func (r *RPCAnswerUnknown) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

func (*RPCAnswerUnknown) EncodeBare

func (r *RPCAnswerUnknown) EncodeBare(b *bin.Buffer) error

EncodeBare implements bin.BareEncoder.

func (*RPCAnswerUnknown) String

func (r *RPCAnswerUnknown) String() string

String implements fmt.Stringer.

func (*RPCAnswerUnknown) TypeID

func (*RPCAnswerUnknown) TypeID() uint32

TypeID returns type id in TL schema.

See https://core.telegram.org/mtproto/TL-tl#remarks.

func (*RPCAnswerUnknown) TypeInfo

func (r *RPCAnswerUnknown) TypeInfo() tdp.Type

TypeInfo returns info about TL type.

func (*RPCAnswerUnknown) TypeName

func (*RPCAnswerUnknown) TypeName() string

TypeName returns name of type in TL schema.

func (*RPCAnswerUnknown) Zero

func (r *RPCAnswerUnknown) Zero() bool

type RPCDropAnswerBox

type RPCDropAnswerBox struct {
	RpcDropAnswer RPCDropAnswerClass
}

RPCDropAnswer boxes the RPCDropAnswerClass providing a helper.

func (*RPCDropAnswerBox) Decode

func (b *RPCDropAnswerBox) Decode(buf *bin.Buffer) error

Decode implements bin.Decoder for RPCDropAnswerBox.

func (*RPCDropAnswerBox) Encode

func (b *RPCDropAnswerBox) Encode(buf *bin.Buffer) error

Encode implements bin.Encode for RPCDropAnswerBox.

type RPCDropAnswerClass

type RPCDropAnswerClass interface {
	bin.Encoder
	bin.Decoder
	bin.BareEncoder
	bin.BareDecoder

	// TypeID returns type id in TL schema.
	//
	// See https://core.telegram.org/mtproto/TL-tl#remarks.
	TypeID() uint32
	// TypeName returns name of type in TL schema.
	TypeName() string
	// String implements fmt.Stringer.
	String() string
	// Zero returns true if current object has a zero value.
	Zero() bool
	// contains filtered or unexported methods
}

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)
}

func DecodeRPCDropAnswer

func DecodeRPCDropAnswer(buf *bin.Buffer) (RPCDropAnswerClass, error)

DecodeRPCDropAnswer implements binary de-serialization for RPCDropAnswerClass.

type RPCDropAnswerRequest

type RPCDropAnswerRequest struct {
	// ReqMsgID field of RPCDropAnswerRequest.
	ReqMsgID int64
}

RPCDropAnswerRequest represents TL type `rpc_drop_answer#58e4a740`.

func (*RPCDropAnswerRequest) Decode

func (r *RPCDropAnswerRequest) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*RPCDropAnswerRequest) DecodeBare

func (r *RPCDropAnswerRequest) DecodeBare(b *bin.Buffer) error

DecodeBare implements bin.BareDecoder.

func (*RPCDropAnswerRequest) Encode

func (r *RPCDropAnswerRequest) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

func (*RPCDropAnswerRequest) EncodeBare

func (r *RPCDropAnswerRequest) EncodeBare(b *bin.Buffer) error

EncodeBare implements bin.BareEncoder.

func (*RPCDropAnswerRequest) GetReqMsgID

func (r *RPCDropAnswerRequest) GetReqMsgID() (value int64)

GetReqMsgID returns value of ReqMsgID field.

func (*RPCDropAnswerRequest) String

func (r *RPCDropAnswerRequest) String() string

String implements fmt.Stringer.

func (*RPCDropAnswerRequest) TypeID

func (*RPCDropAnswerRequest) TypeID() uint32

TypeID returns type id in TL schema.

See https://core.telegram.org/mtproto/TL-tl#remarks.

func (*RPCDropAnswerRequest) TypeInfo

func (r *RPCDropAnswerRequest) TypeInfo() tdp.Type

TypeInfo returns info about TL type.

func (*RPCDropAnswerRequest) TypeName

func (*RPCDropAnswerRequest) TypeName() string

TypeName returns name of type in TL schema.

func (*RPCDropAnswerRequest) Zero

func (r *RPCDropAnswerRequest) Zero() bool

type RPCError

type RPCError struct {
	// ErrorCode field of RPCError.
	ErrorCode int
	// ErrorMessage field of RPCError.
	ErrorMessage string
}

RPCError represents TL type `rpc_error#2144ca19`.

func (*RPCError) Decode

func (r *RPCError) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*RPCError) DecodeBare

func (r *RPCError) DecodeBare(b *bin.Buffer) error

DecodeBare implements bin.BareDecoder.

func (*RPCError) Encode

func (r *RPCError) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

func (*RPCError) EncodeBare

func (r *RPCError) EncodeBare(b *bin.Buffer) error

EncodeBare implements bin.BareEncoder.

func (*RPCError) GetErrorCode

func (r *RPCError) GetErrorCode() (value int)

GetErrorCode returns value of ErrorCode field.

func (*RPCError) GetErrorMessage

func (r *RPCError) GetErrorMessage() (value string)

GetErrorMessage returns value of ErrorMessage field.

func (*RPCError) String

func (r *RPCError) String() string

String implements fmt.Stringer.

func (*RPCError) TypeID

func (*RPCError) TypeID() uint32

TypeID returns type id in TL schema.

See https://core.telegram.org/mtproto/TL-tl#remarks.

func (*RPCError) TypeInfo

func (r *RPCError) TypeInfo() tdp.Type

TypeInfo returns info about TL type.

func (*RPCError) TypeName

func (*RPCError) TypeName() string

TypeName returns name of type in TL schema.

func (*RPCError) Zero

func (r *RPCError) Zero() bool

type RPCResult

type RPCResult struct {
	// ReqMsgID field of RPCResult.
	ReqMsgID int64
	// Result field of RPCResult.
	Result GzipPacked
}

RPCResult represents TL type `rpc_result#f35c6d01`.

func (*RPCResult) Decode

func (r *RPCResult) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*RPCResult) DecodeBare

func (r *RPCResult) DecodeBare(b *bin.Buffer) error

DecodeBare implements bin.BareDecoder.

func (*RPCResult) Encode

func (r *RPCResult) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

func (*RPCResult) EncodeBare

func (r *RPCResult) EncodeBare(b *bin.Buffer) error

EncodeBare implements bin.BareEncoder.

func (*RPCResult) GetReqMsgID

func (r *RPCResult) GetReqMsgID() (value int64)

GetReqMsgID returns value of ReqMsgID field.

func (*RPCResult) GetResult

func (r *RPCResult) GetResult() (value GzipPacked)

GetResult returns value of Result field.

func (*RPCResult) String

func (r *RPCResult) String() string

String implements fmt.Stringer.

func (*RPCResult) TypeID

func (*RPCResult) TypeID() uint32

TypeID returns type id in TL schema.

See https://core.telegram.org/mtproto/TL-tl#remarks.

func (*RPCResult) TypeInfo

func (r *RPCResult) TypeInfo() tdp.Type

TypeInfo returns info about TL type.

func (*RPCResult) TypeName

func (*RPCResult) TypeName() string

TypeName returns name of type in TL schema.

func (*RPCResult) Zero

func (r *RPCResult) Zero() bool

type ReqDHParamsRequest

type ReqDHParamsRequest struct {
	// Nonce field of ReqDHParamsRequest.
	Nonce bin.Int128
	// ServerNonce field of ReqDHParamsRequest.
	ServerNonce bin.Int128
	// P field of ReqDHParamsRequest.
	P []byte
	// Q field of ReqDHParamsRequest.
	Q []byte
	// PublicKeyFingerprint field of ReqDHParamsRequest.
	PublicKeyFingerprint int64
	// EncryptedData field of ReqDHParamsRequest.
	EncryptedData []byte
}

ReqDHParamsRequest represents TL type `req_DH_params#d712e4be`.

func (*ReqDHParamsRequest) Decode

func (r *ReqDHParamsRequest) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*ReqDHParamsRequest) DecodeBare

func (r *ReqDHParamsRequest) DecodeBare(b *bin.Buffer) error

DecodeBare implements bin.BareDecoder.

func (*ReqDHParamsRequest) Encode

func (r *ReqDHParamsRequest) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

func (*ReqDHParamsRequest) EncodeBare

func (r *ReqDHParamsRequest) EncodeBare(b *bin.Buffer) error

EncodeBare implements bin.BareEncoder.

func (*ReqDHParamsRequest) GetEncryptedData

func (r *ReqDHParamsRequest) GetEncryptedData() (value []byte)

GetEncryptedData returns value of EncryptedData field.

func (*ReqDHParamsRequest) GetNonce

func (r *ReqDHParamsRequest) GetNonce() (value bin.Int128)

GetNonce returns value of Nonce field.

func (*ReqDHParamsRequest) GetP

func (r *ReqDHParamsRequest) GetP() (value []byte)

GetP returns value of P field.

func (*ReqDHParamsRequest) GetPublicKeyFingerprint

func (r *ReqDHParamsRequest) GetPublicKeyFingerprint() (value int64)

GetPublicKeyFingerprint returns value of PublicKeyFingerprint field.

func (*ReqDHParamsRequest) GetQ

func (r *ReqDHParamsRequest) GetQ() (value []byte)

GetQ returns value of Q field.

func (*ReqDHParamsRequest) GetServerNonce

func (r *ReqDHParamsRequest) GetServerNonce() (value bin.Int128)

GetServerNonce returns value of ServerNonce field.

func (*ReqDHParamsRequest) String

func (r *ReqDHParamsRequest) String() string

String implements fmt.Stringer.

func (*ReqDHParamsRequest) TypeID

func (*ReqDHParamsRequest) TypeID() uint32

TypeID returns type id in TL schema.

See https://core.telegram.org/mtproto/TL-tl#remarks.

func (*ReqDHParamsRequest) TypeInfo

func (r *ReqDHParamsRequest) TypeInfo() tdp.Type

TypeInfo returns info about TL type.

func (*ReqDHParamsRequest) TypeName

func (*ReqDHParamsRequest) TypeName() string

TypeName returns name of type in TL schema.

func (*ReqDHParamsRequest) Zero

func (r *ReqDHParamsRequest) Zero() bool

type ReqPqMultiRequest

type ReqPqMultiRequest struct {
	// Nonce field of ReqPqMultiRequest.
	Nonce bin.Int128
}

ReqPqMultiRequest represents TL type `req_pq_multi#be7e8ef1`.

func (*ReqPqMultiRequest) Decode

func (r *ReqPqMultiRequest) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*ReqPqMultiRequest) DecodeBare

func (r *ReqPqMultiRequest) DecodeBare(b *bin.Buffer) error

DecodeBare implements bin.BareDecoder.

func (*ReqPqMultiRequest) Encode

func (r *ReqPqMultiRequest) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

func (*ReqPqMultiRequest) EncodeBare

func (r *ReqPqMultiRequest) EncodeBare(b *bin.Buffer) error

EncodeBare implements bin.BareEncoder.

func (*ReqPqMultiRequest) GetNonce

func (r *ReqPqMultiRequest) GetNonce() (value bin.Int128)

GetNonce returns value of Nonce field.

func (*ReqPqMultiRequest) String

func (r *ReqPqMultiRequest) String() string

String implements fmt.Stringer.

func (*ReqPqMultiRequest) TypeID

func (*ReqPqMultiRequest) TypeID() uint32

TypeID returns type id in TL schema.

See https://core.telegram.org/mtproto/TL-tl#remarks.

func (*ReqPqMultiRequest) TypeInfo

func (r *ReqPqMultiRequest) TypeInfo() tdp.Type

TypeInfo returns info about TL type.

func (*ReqPqMultiRequest) TypeName

func (*ReqPqMultiRequest) TypeName() string

TypeName returns name of type in TL schema.

func (*ReqPqMultiRequest) Zero

func (r *ReqPqMultiRequest) Zero() bool

type ReqPqRequest

type ReqPqRequest struct {
	// Nonce field of ReqPqRequest.
	Nonce bin.Int128
}

ReqPqRequest represents TL type `req_pq#60469778`.

func (*ReqPqRequest) Decode

func (r *ReqPqRequest) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*ReqPqRequest) DecodeBare

func (r *ReqPqRequest) DecodeBare(b *bin.Buffer) error

DecodeBare implements bin.BareDecoder.

func (*ReqPqRequest) Encode

func (r *ReqPqRequest) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

func (*ReqPqRequest) EncodeBare

func (r *ReqPqRequest) EncodeBare(b *bin.Buffer) error

EncodeBare implements bin.BareEncoder.

func (*ReqPqRequest) GetNonce

func (r *ReqPqRequest) GetNonce() (value bin.Int128)

GetNonce returns value of Nonce field.

func (*ReqPqRequest) String

func (r *ReqPqRequest) String() string

String implements fmt.Stringer.

func (*ReqPqRequest) TypeID

func (*ReqPqRequest) TypeID() uint32

TypeID returns type id in TL schema.

See https://core.telegram.org/mtproto/TL-tl#remarks.

func (*ReqPqRequest) TypeInfo

func (r *ReqPqRequest) TypeInfo() tdp.Type

TypeInfo returns info about TL type.

func (*ReqPqRequest) TypeName

func (*ReqPqRequest) TypeName() string

TypeName returns name of type in TL schema.

func (*ReqPqRequest) Zero

func (r *ReqPqRequest) Zero() bool

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`.

func (*ResPQ) Decode

func (r *ResPQ) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*ResPQ) DecodeBare

func (r *ResPQ) DecodeBare(b *bin.Buffer) error

DecodeBare implements bin.BareDecoder.

func (*ResPQ) Encode

func (r *ResPQ) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

func (*ResPQ) EncodeBare

func (r *ResPQ) EncodeBare(b *bin.Buffer) error

EncodeBare implements bin.BareEncoder.

func (*ResPQ) GetNonce

func (r *ResPQ) GetNonce() (value bin.Int128)

GetNonce returns value of Nonce field.

func (*ResPQ) GetPq

func (r *ResPQ) GetPq() (value []byte)

GetPq returns value of Pq field.

func (*ResPQ) GetServerNonce

func (r *ResPQ) GetServerNonce() (value bin.Int128)

GetServerNonce returns value of ServerNonce field.

func (*ResPQ) GetServerPublicKeyFingerprints

func (r *ResPQ) GetServerPublicKeyFingerprints() (value []int64)

GetServerPublicKeyFingerprints returns value of ServerPublicKeyFingerprints field.

func (*ResPQ) String

func (r *ResPQ) String() string

String implements fmt.Stringer.

func (*ResPQ) TypeID

func (*ResPQ) TypeID() uint32

TypeID returns type id in TL schema.

See https://core.telegram.org/mtproto/TL-tl#remarks.

func (*ResPQ) TypeInfo

func (r *ResPQ) TypeInfo() tdp.Type

TypeInfo returns info about TL type.

func (*ResPQ) TypeName

func (*ResPQ) TypeName() string

TypeName returns name of type in TL schema.

func (*ResPQ) Zero

func (r *ResPQ) Zero() bool

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`.

func (*ServerDHInnerData) Decode

func (s *ServerDHInnerData) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*ServerDHInnerData) DecodeBare

func (s *ServerDHInnerData) DecodeBare(b *bin.Buffer) error

DecodeBare implements bin.BareDecoder.

func (*ServerDHInnerData) Encode

func (s *ServerDHInnerData) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

func (*ServerDHInnerData) EncodeBare

func (s *ServerDHInnerData) EncodeBare(b *bin.Buffer) error

EncodeBare implements bin.BareEncoder.

func (*ServerDHInnerData) GetDhPrime

func (s *ServerDHInnerData) GetDhPrime() (value []byte)

GetDhPrime returns value of DhPrime field.

func (*ServerDHInnerData) GetG

func (s *ServerDHInnerData) GetG() (value int)

GetG returns value of G field.

func (*ServerDHInnerData) GetGA

func (s *ServerDHInnerData) GetGA() (value []byte)

GetGA returns value of GA field.

func (*ServerDHInnerData) GetNonce

func (s *ServerDHInnerData) GetNonce() (value bin.Int128)

GetNonce returns value of Nonce field.

func (*ServerDHInnerData) GetServerNonce

func (s *ServerDHInnerData) GetServerNonce() (value bin.Int128)

GetServerNonce returns value of ServerNonce field.

func (*ServerDHInnerData) GetServerTime

func (s *ServerDHInnerData) GetServerTime() (value int)

GetServerTime returns value of ServerTime field.

func (*ServerDHInnerData) String

func (s *ServerDHInnerData) String() string

String implements fmt.Stringer.

func (*ServerDHInnerData) TypeID

func (*ServerDHInnerData) TypeID() uint32

TypeID returns type id in TL schema.

See https://core.telegram.org/mtproto/TL-tl#remarks.

func (*ServerDHInnerData) TypeInfo

func (s *ServerDHInnerData) TypeInfo() tdp.Type

TypeInfo returns info about TL type.

func (*ServerDHInnerData) TypeName

func (*ServerDHInnerData) TypeName() string

TypeName returns name of type in TL schema.

func (*ServerDHInnerData) Zero

func (s *ServerDHInnerData) Zero() bool

type ServerDHParamsBox

type ServerDHParamsBox struct {
	Server_DH_Params ServerDHParamsClass
}

ServerDHParams boxes the ServerDHParamsClass providing a helper.

func (*ServerDHParamsBox) Decode

func (b *ServerDHParamsBox) Decode(buf *bin.Buffer) error

Decode implements bin.Decoder for ServerDHParamsBox.

func (*ServerDHParamsBox) Encode

func (b *ServerDHParamsBox) Encode(buf *bin.Buffer) error

Encode implements bin.Encode for ServerDHParamsBox.

type ServerDHParamsClass

type ServerDHParamsClass interface {
	bin.Encoder
	bin.Decoder
	bin.BareEncoder
	bin.BareDecoder

	// TypeID returns type id in TL schema.
	//
	// See https://core.telegram.org/mtproto/TL-tl#remarks.
	TypeID() uint32
	// TypeName returns name of type in TL schema.
	TypeName() string
	// String implements fmt.Stringer.
	String() string
	// Zero returns true if current object has a zero value.
	Zero() bool

	// Nonce field of ServerDHParamsFail.
	GetNonce() (value bin.Int128)
	// ServerNonce field of ServerDHParamsFail.
	GetServerNonce() (value bin.Int128)
	// contains filtered or unexported methods
}

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)
}

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`.

func (*ServerDHParamsFail) Decode

func (s *ServerDHParamsFail) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*ServerDHParamsFail) DecodeBare

func (s *ServerDHParamsFail) DecodeBare(b *bin.Buffer) error

DecodeBare implements bin.BareDecoder.

func (*ServerDHParamsFail) Encode

func (s *ServerDHParamsFail) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

func (*ServerDHParamsFail) EncodeBare

func (s *ServerDHParamsFail) EncodeBare(b *bin.Buffer) error

EncodeBare implements bin.BareEncoder.

func (*ServerDHParamsFail) GetNewNonceHash

func (s *ServerDHParamsFail) GetNewNonceHash() (value bin.Int128)

GetNewNonceHash returns value of NewNonceHash field.

func (*ServerDHParamsFail) GetNonce

func (s *ServerDHParamsFail) GetNonce() (value bin.Int128)

GetNonce returns value of Nonce field.

func (*ServerDHParamsFail) GetServerNonce

func (s *ServerDHParamsFail) GetServerNonce() (value bin.Int128)

GetServerNonce returns value of ServerNonce field.

func (*ServerDHParamsFail) String

func (s *ServerDHParamsFail) String() string

String implements fmt.Stringer.

func (*ServerDHParamsFail) TypeID

func (*ServerDHParamsFail) TypeID() uint32

TypeID returns type id in TL schema.

See https://core.telegram.org/mtproto/TL-tl#remarks.

func (*ServerDHParamsFail) TypeInfo

func (s *ServerDHParamsFail) TypeInfo() tdp.Type

TypeInfo returns info about TL type.

func (*ServerDHParamsFail) TypeName

func (*ServerDHParamsFail) TypeName() string

TypeName returns name of type in TL schema.

func (*ServerDHParamsFail) Zero

func (s *ServerDHParamsFail) Zero() bool

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`.

func (*ServerDHParamsOk) Decode

func (s *ServerDHParamsOk) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*ServerDHParamsOk) DecodeBare

func (s *ServerDHParamsOk) DecodeBare(b *bin.Buffer) error

DecodeBare implements bin.BareDecoder.

func (*ServerDHParamsOk) Encode

func (s *ServerDHParamsOk) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

func (*ServerDHParamsOk) EncodeBare

func (s *ServerDHParamsOk) EncodeBare(b *bin.Buffer) error

EncodeBare implements bin.BareEncoder.

func (*ServerDHParamsOk) GetEncryptedAnswer

func (s *ServerDHParamsOk) GetEncryptedAnswer() (value []byte)

GetEncryptedAnswer returns value of EncryptedAnswer field.

func (*ServerDHParamsOk) GetNonce

func (s *ServerDHParamsOk) GetNonce() (value bin.Int128)

GetNonce returns value of Nonce field.

func (*ServerDHParamsOk) GetServerNonce

func (s *ServerDHParamsOk) GetServerNonce() (value bin.Int128)

GetServerNonce returns value of ServerNonce field.

func (*ServerDHParamsOk) String

func (s *ServerDHParamsOk) String() string

String implements fmt.Stringer.

func (*ServerDHParamsOk) TypeID

func (*ServerDHParamsOk) TypeID() uint32

TypeID returns type id in TL schema.

See https://core.telegram.org/mtproto/TL-tl#remarks.

func (*ServerDHParamsOk) TypeInfo

func (s *ServerDHParamsOk) TypeInfo() tdp.Type

TypeInfo returns info about TL type.

func (*ServerDHParamsOk) TypeName

func (*ServerDHParamsOk) TypeName() string

TypeName returns name of type in TL schema.

func (*ServerDHParamsOk) Zero

func (s *ServerDHParamsOk) Zero() bool

type SetClientDHParamsAnswerBox

type SetClientDHParamsAnswerBox struct {
	Set_client_DH_params_answer SetClientDHParamsAnswerClass
}

SetClientDHParamsAnswer boxes the SetClientDHParamsAnswerClass providing a helper.

func (*SetClientDHParamsAnswerBox) Decode

func (b *SetClientDHParamsAnswerBox) Decode(buf *bin.Buffer) error

Decode implements bin.Decoder for SetClientDHParamsAnswerBox.

func (*SetClientDHParamsAnswerBox) Encode

func (b *SetClientDHParamsAnswerBox) Encode(buf *bin.Buffer) error

Encode implements bin.Encode for SetClientDHParamsAnswerBox.

type SetClientDHParamsAnswerClass

type SetClientDHParamsAnswerClass interface {
	bin.Encoder
	bin.Decoder
	bin.BareEncoder
	bin.BareDecoder

	// TypeID returns type id in TL schema.
	//
	// See https://core.telegram.org/mtproto/TL-tl#remarks.
	TypeID() uint32
	// TypeName returns name of type in TL schema.
	TypeName() string
	// String implements fmt.Stringer.
	String() string
	// Zero returns true if current object has a zero value.
	Zero() bool

	// Nonce field of DhGenOk.
	GetNonce() (value bin.Int128)
	// ServerNonce field of DhGenOk.
	GetServerNonce() (value bin.Int128)
	// contains filtered or unexported methods
}

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)
}

func DecodeSetClientDHParamsAnswer

func DecodeSetClientDHParamsAnswer(buf *bin.Buffer) (SetClientDHParamsAnswerClass, error)

DecodeSetClientDHParamsAnswer implements binary de-serialization for SetClientDHParamsAnswerClass.

type SetClientDHParamsRequest

type SetClientDHParamsRequest struct {
	// Nonce field of SetClientDHParamsRequest.
	Nonce bin.Int128
	// ServerNonce field of SetClientDHParamsRequest.
	ServerNonce bin.Int128
	// EncryptedData field of SetClientDHParamsRequest.
	EncryptedData []byte
}

SetClientDHParamsRequest represents TL type `set_client_DH_params#f5045f1f`.

func (*SetClientDHParamsRequest) Decode

func (s *SetClientDHParamsRequest) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*SetClientDHParamsRequest) DecodeBare

func (s *SetClientDHParamsRequest) DecodeBare(b *bin.Buffer) error

DecodeBare implements bin.BareDecoder.

func (*SetClientDHParamsRequest) Encode

func (s *SetClientDHParamsRequest) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

func (*SetClientDHParamsRequest) EncodeBare

func (s *SetClientDHParamsRequest) EncodeBare(b *bin.Buffer) error

EncodeBare implements bin.BareEncoder.

func (*SetClientDHParamsRequest) GetEncryptedData

func (s *SetClientDHParamsRequest) GetEncryptedData() (value []byte)

GetEncryptedData returns value of EncryptedData field.

func (*SetClientDHParamsRequest) GetNonce

func (s *SetClientDHParamsRequest) GetNonce() (value bin.Int128)

GetNonce returns value of Nonce field.

func (*SetClientDHParamsRequest) GetServerNonce

func (s *SetClientDHParamsRequest) GetServerNonce() (value bin.Int128)

GetServerNonce returns value of ServerNonce field.

func (*SetClientDHParamsRequest) String

func (s *SetClientDHParamsRequest) String() string

String implements fmt.Stringer.

func (*SetClientDHParamsRequest) TypeID

func (*SetClientDHParamsRequest) TypeID() uint32

TypeID returns type id in TL schema.

See https://core.telegram.org/mtproto/TL-tl#remarks.

func (*SetClientDHParamsRequest) TypeInfo

func (s *SetClientDHParamsRequest) TypeInfo() tdp.Type

TypeInfo returns info about TL type.

func (*SetClientDHParamsRequest) TypeName

func (*SetClientDHParamsRequest) TypeName() string

TypeName returns name of type in TL schema.

func (*SetClientDHParamsRequest) Zero

func (s *SetClientDHParamsRequest) Zero() bool

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL