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
- func NamesMap() map[string]uint32
- func TypesConstructorMap() map[uint32]func() bin.Object
- func TypesMap() map[uint32]string
- type BadMsgNotification
- func (b *BadMsgNotification) Decode(buf *bin.Buffer) error
- func (b *BadMsgNotification) Encode(buf *bin.Buffer) error
- func (b *BadMsgNotification) FillFrom(from interface{ ... })
- func (b *BadMsgNotification) GetBadMsgID() (value int64)
- func (b *BadMsgNotification) GetBadMsgSeqno() (value int)
- func (b *BadMsgNotification) GetErrorCode() (value int)
- func (b *BadMsgNotification) String() string
- func (*BadMsgNotification) TypeID() uint32
- func (b *BadMsgNotification) TypeInfo() tdp.Type
- func (*BadMsgNotification) TypeName() string
- func (b *BadMsgNotification) Zero() bool
- type BadMsgNotificationArray
- func (s BadMsgNotificationArray) First() (v BadMsgNotification, ok bool)
- func (s BadMsgNotificationArray) Last() (v BadMsgNotification, ok bool)
- func (s *BadMsgNotificationArray) Pop() (v BadMsgNotification, ok bool)
- func (s *BadMsgNotificationArray) PopFirst() (v BadMsgNotification, ok bool)
- func (s BadMsgNotificationArray) Retain(keep func(x BadMsgNotification) bool) BadMsgNotificationArray
- func (s BadMsgNotificationArray) Sort(less func(a, b BadMsgNotification) bool) BadMsgNotificationArray
- func (s BadMsgNotificationArray) SortStable(less func(a, b BadMsgNotification) bool) BadMsgNotificationArray
- type BadMsgNotificationBox
- type BadMsgNotificationClass
- type BadMsgNotificationClassArray
- func (s BadMsgNotificationClassArray) AsBadMsgNotification() (to BadMsgNotificationArray)
- func (s BadMsgNotificationClassArray) AsBadServerSalt() (to BadServerSaltArray)
- func (s BadMsgNotificationClassArray) First() (v BadMsgNotificationClass, ok bool)
- func (s BadMsgNotificationClassArray) Last() (v BadMsgNotificationClass, ok bool)
- func (s *BadMsgNotificationClassArray) Pop() (v BadMsgNotificationClass, ok bool)
- func (s *BadMsgNotificationClassArray) PopFirst() (v BadMsgNotificationClass, ok bool)
- func (s BadMsgNotificationClassArray) Retain(keep func(x BadMsgNotificationClass) bool) BadMsgNotificationClassArray
- func (s BadMsgNotificationClassArray) Sort(less func(a, b BadMsgNotificationClass) bool) BadMsgNotificationClassArray
- func (s BadMsgNotificationClassArray) SortStable(less func(a, b BadMsgNotificationClass) bool) BadMsgNotificationClassArray
- type BadServerSalt
- func (b *BadServerSalt) Decode(buf *bin.Buffer) error
- func (b *BadServerSalt) Encode(buf *bin.Buffer) error
- func (b *BadServerSalt) FillFrom(from interface{ ... })
- func (b *BadServerSalt) GetBadMsgID() (value int64)
- func (b *BadServerSalt) GetBadMsgSeqno() (value int)
- func (b *BadServerSalt) GetErrorCode() (value int)
- func (b *BadServerSalt) GetNewServerSalt() (value int64)
- func (b *BadServerSalt) String() string
- func (*BadServerSalt) TypeID() uint32
- func (b *BadServerSalt) TypeInfo() tdp.Type
- func (*BadServerSalt) TypeName() string
- func (b *BadServerSalt) Zero() bool
- type BadServerSaltArray
- func (s BadServerSaltArray) First() (v BadServerSalt, ok bool)
- func (s BadServerSaltArray) Last() (v BadServerSalt, ok bool)
- func (s *BadServerSaltArray) Pop() (v BadServerSalt, ok bool)
- func (s *BadServerSaltArray) PopFirst() (v BadServerSalt, ok bool)
- func (s BadServerSaltArray) Retain(keep func(x BadServerSalt) bool) BadServerSaltArray
- func (s BadServerSaltArray) Sort(less func(a, b BadServerSalt) bool) BadServerSaltArray
- func (s BadServerSaltArray) SortStable(less func(a, b BadServerSalt) bool) BadServerSaltArray
- type Client
- func (c *Client) DestroySession(ctx context.Context, sessionid int64) (DestroySessionResClass, error)
- func (c *Client) GetFutureSalts(ctx context.Context, num int) (*FutureSalts, error)
- func (c *Client) Ping(ctx context.Context, pingid int64) (*Pong, error)
- func (c *Client) PingDelayDisconnect(ctx context.Context, request *PingDelayDisconnectRequest) (*Pong, error)
- func (c *Client) RPCDropAnswer(ctx context.Context, reqmsgid int64) (RPCDropAnswerClass, error)
- func (c *Client) ReqDHParams(ctx context.Context, request *ReqDHParamsRequest) (ServerDHParamsClass, error)
- func (c *Client) ReqPq(ctx context.Context, nonce bin.Int128) (*ResPQ, error)
- func (c *Client) ReqPqMulti(ctx context.Context, nonce bin.Int128) (*ResPQ, error)
- func (c *Client) SetClientDHParams(ctx context.Context, request *SetClientDHParamsRequest) (SetClientDHParamsAnswerClass, error)
- type ClientDHInnerData
- func (c *ClientDHInnerData) Decode(b *bin.Buffer) error
- func (c *ClientDHInnerData) Encode(b *bin.Buffer) error
- func (c *ClientDHInnerData) FillFrom(from interface{ ... })
- func (c *ClientDHInnerData) GetGB() (value []byte)
- func (c *ClientDHInnerData) GetNonce() (value bin.Int128)
- func (c *ClientDHInnerData) GetRetryID() (value int64)
- func (c *ClientDHInnerData) GetServerNonce() (value bin.Int128)
- func (c *ClientDHInnerData) String() string
- func (*ClientDHInnerData) TypeID() uint32
- func (c *ClientDHInnerData) TypeInfo() tdp.Type
- func (*ClientDHInnerData) TypeName() string
- func (c *ClientDHInnerData) Zero() bool
- type DestroySessionNone
- func (d *DestroySessionNone) Decode(b *bin.Buffer) error
- func (d *DestroySessionNone) Encode(b *bin.Buffer) error
- func (d *DestroySessionNone) FillFrom(from interface{ ... })
- func (d *DestroySessionNone) GetSessionID() (value int64)
- func (d *DestroySessionNone) String() string
- func (*DestroySessionNone) TypeID() uint32
- func (d *DestroySessionNone) TypeInfo() tdp.Type
- func (*DestroySessionNone) TypeName() string
- func (d *DestroySessionNone) Zero() bool
- type DestroySessionNoneArray
- func (s DestroySessionNoneArray) First() (v DestroySessionNone, ok bool)
- func (s DestroySessionNoneArray) Last() (v DestroySessionNone, ok bool)
- func (s *DestroySessionNoneArray) Pop() (v DestroySessionNone, ok bool)
- func (s *DestroySessionNoneArray) PopFirst() (v DestroySessionNone, ok bool)
- func (s DestroySessionNoneArray) Retain(keep func(x DestroySessionNone) bool) DestroySessionNoneArray
- func (s DestroySessionNoneArray) Sort(less func(a, b DestroySessionNone) bool) DestroySessionNoneArray
- func (s DestroySessionNoneArray) SortStable(less func(a, b DestroySessionNone) bool) DestroySessionNoneArray
- type DestroySessionOk
- func (d *DestroySessionOk) Decode(b *bin.Buffer) error
- func (d *DestroySessionOk) Encode(b *bin.Buffer) error
- func (d *DestroySessionOk) FillFrom(from interface{ ... })
- func (d *DestroySessionOk) GetSessionID() (value int64)
- func (d *DestroySessionOk) String() string
- func (*DestroySessionOk) TypeID() uint32
- func (d *DestroySessionOk) TypeInfo() tdp.Type
- func (*DestroySessionOk) TypeName() string
- func (d *DestroySessionOk) Zero() bool
- type DestroySessionOkArray
- func (s DestroySessionOkArray) First() (v DestroySessionOk, ok bool)
- func (s DestroySessionOkArray) Last() (v DestroySessionOk, ok bool)
- func (s *DestroySessionOkArray) Pop() (v DestroySessionOk, ok bool)
- func (s *DestroySessionOkArray) PopFirst() (v DestroySessionOk, ok bool)
- func (s DestroySessionOkArray) Retain(keep func(x DestroySessionOk) bool) DestroySessionOkArray
- func (s DestroySessionOkArray) Sort(less func(a, b DestroySessionOk) bool) DestroySessionOkArray
- func (s DestroySessionOkArray) SortStable(less func(a, b DestroySessionOk) bool) DestroySessionOkArray
- type DestroySessionRequest
- func (d *DestroySessionRequest) Decode(b *bin.Buffer) error
- func (d *DestroySessionRequest) Encode(b *bin.Buffer) error
- func (d *DestroySessionRequest) FillFrom(from interface{ ... })
- func (d *DestroySessionRequest) GetSessionID() (value int64)
- func (d *DestroySessionRequest) String() string
- func (*DestroySessionRequest) TypeID() uint32
- func (d *DestroySessionRequest) TypeInfo() tdp.Type
- func (*DestroySessionRequest) TypeName() string
- func (d *DestroySessionRequest) Zero() bool
- type DestroySessionResBox
- type DestroySessionResClass
- type DestroySessionResClassArray
- func (s DestroySessionResClassArray) AsDestroySessionNone() (to DestroySessionNoneArray)
- func (s DestroySessionResClassArray) AsDestroySessionOk() (to DestroySessionOkArray)
- func (s DestroySessionResClassArray) First() (v DestroySessionResClass, ok bool)
- func (s DestroySessionResClassArray) Last() (v DestroySessionResClass, ok bool)
- func (s *DestroySessionResClassArray) Pop() (v DestroySessionResClass, ok bool)
- func (s *DestroySessionResClassArray) PopFirst() (v DestroySessionResClass, ok bool)
- func (s DestroySessionResClassArray) Retain(keep func(x DestroySessionResClass) bool) DestroySessionResClassArray
- func (s DestroySessionResClassArray) Sort(less func(a, b DestroySessionResClass) bool) DestroySessionResClassArray
- func (s DestroySessionResClassArray) SortStable(less func(a, b DestroySessionResClass) bool) DestroySessionResClassArray
- type DhGenFail
- func (d *DhGenFail) Decode(b *bin.Buffer) error
- func (d *DhGenFail) Encode(b *bin.Buffer) error
- func (d *DhGenFail) FillFrom(from interface{ ... })
- func (d *DhGenFail) GetNewNonceHash3() (value bin.Int128)
- func (d *DhGenFail) GetNonce() (value bin.Int128)
- func (d *DhGenFail) GetServerNonce() (value bin.Int128)
- func (d *DhGenFail) String() string
- func (*DhGenFail) TypeID() uint32
- func (d *DhGenFail) TypeInfo() tdp.Type
- func (*DhGenFail) TypeName() string
- func (d *DhGenFail) Zero() bool
- type DhGenFailArray
- func (s DhGenFailArray) First() (v DhGenFail, ok bool)
- func (s DhGenFailArray) Last() (v DhGenFail, ok bool)
- func (s *DhGenFailArray) Pop() (v DhGenFail, ok bool)
- func (s *DhGenFailArray) PopFirst() (v DhGenFail, ok bool)
- func (s DhGenFailArray) Retain(keep func(x DhGenFail) bool) DhGenFailArray
- func (s DhGenFailArray) Sort(less func(a, b DhGenFail) bool) DhGenFailArray
- func (s DhGenFailArray) SortStable(less func(a, b DhGenFail) bool) DhGenFailArray
- type DhGenOk
- func (d *DhGenOk) Decode(b *bin.Buffer) error
- func (d *DhGenOk) Encode(b *bin.Buffer) error
- func (d *DhGenOk) FillFrom(from interface{ ... })
- func (d *DhGenOk) GetNewNonceHash1() (value bin.Int128)
- func (d *DhGenOk) GetNonce() (value bin.Int128)
- func (d *DhGenOk) GetServerNonce() (value bin.Int128)
- func (d *DhGenOk) String() string
- func (*DhGenOk) TypeID() uint32
- func (d *DhGenOk) TypeInfo() tdp.Type
- func (*DhGenOk) TypeName() string
- func (d *DhGenOk) Zero() bool
- type DhGenOkArray
- func (s DhGenOkArray) First() (v DhGenOk, ok bool)
- func (s DhGenOkArray) Last() (v DhGenOk, ok bool)
- func (s *DhGenOkArray) Pop() (v DhGenOk, ok bool)
- func (s *DhGenOkArray) PopFirst() (v DhGenOk, ok bool)
- func (s DhGenOkArray) Retain(keep func(x DhGenOk) bool) DhGenOkArray
- func (s DhGenOkArray) Sort(less func(a, b DhGenOk) bool) DhGenOkArray
- func (s DhGenOkArray) SortStable(less func(a, b DhGenOk) bool) DhGenOkArray
- type DhGenRetry
- func (d *DhGenRetry) Decode(b *bin.Buffer) error
- func (d *DhGenRetry) Encode(b *bin.Buffer) error
- func (d *DhGenRetry) FillFrom(from interface{ ... })
- func (d *DhGenRetry) GetNewNonceHash2() (value bin.Int128)
- func (d *DhGenRetry) GetNonce() (value bin.Int128)
- func (d *DhGenRetry) GetServerNonce() (value bin.Int128)
- func (d *DhGenRetry) String() string
- func (*DhGenRetry) TypeID() uint32
- func (d *DhGenRetry) TypeInfo() tdp.Type
- func (*DhGenRetry) TypeName() string
- func (d *DhGenRetry) Zero() bool
- type DhGenRetryArray
- func (s DhGenRetryArray) First() (v DhGenRetry, ok bool)
- func (s DhGenRetryArray) Last() (v DhGenRetry, ok bool)
- func (s *DhGenRetryArray) Pop() (v DhGenRetry, ok bool)
- func (s *DhGenRetryArray) PopFirst() (v DhGenRetry, ok bool)
- func (s DhGenRetryArray) Retain(keep func(x DhGenRetry) bool) DhGenRetryArray
- func (s DhGenRetryArray) Sort(less func(a, b DhGenRetry) bool) DhGenRetryArray
- func (s DhGenRetryArray) SortStable(less func(a, b DhGenRetry) bool) DhGenRetryArray
- type FutureSalt
- func (f *FutureSalt) Decode(b *bin.Buffer) error
- func (f *FutureSalt) Encode(b *bin.Buffer) error
- func (f *FutureSalt) FillFrom(from interface{ ... })
- func (f *FutureSalt) GetSalt() (value int64)
- func (f *FutureSalt) GetValidSince() (value int)
- func (f *FutureSalt) GetValidUntil() (value int)
- func (f *FutureSalt) String() string
- func (*FutureSalt) TypeID() uint32
- func (f *FutureSalt) TypeInfo() tdp.Type
- func (*FutureSalt) TypeName() string
- func (f *FutureSalt) Zero() bool
- type FutureSalts
- func (f *FutureSalts) Decode(b *bin.Buffer) error
- func (f *FutureSalts) Encode(b *bin.Buffer) error
- func (f *FutureSalts) FillFrom(from interface{ ... })
- func (f *FutureSalts) GetNow() (value int)
- func (f *FutureSalts) GetReqMsgID() (value int64)
- func (f *FutureSalts) GetSalts() (value []FutureSalt)
- func (f *FutureSalts) String() string
- func (*FutureSalts) TypeID() uint32
- func (f *FutureSalts) TypeInfo() tdp.Type
- func (*FutureSalts) TypeName() string
- func (f *FutureSalts) Zero() bool
- type GetFutureSaltsRequest
- func (g *GetFutureSaltsRequest) Decode(b *bin.Buffer) error
- func (g *GetFutureSaltsRequest) Encode(b *bin.Buffer) error
- func (g *GetFutureSaltsRequest) FillFrom(from interface{ ... })
- func (g *GetFutureSaltsRequest) GetNum() (value int)
- func (g *GetFutureSaltsRequest) String() string
- func (*GetFutureSaltsRequest) TypeID() uint32
- func (g *GetFutureSaltsRequest) TypeInfo() tdp.Type
- func (*GetFutureSaltsRequest) TypeName() string
- func (g *GetFutureSaltsRequest) Zero() bool
- type GzipPacked
- func (g *GzipPacked) Decode(b *bin.Buffer) error
- func (g *GzipPacked) Encode(b *bin.Buffer) error
- func (g *GzipPacked) FillFrom(from interface{ ... })
- func (g *GzipPacked) GetPackedData() (value []byte)
- func (g *GzipPacked) String() string
- func (*GzipPacked) TypeID() uint32
- func (g *GzipPacked) TypeInfo() tdp.Type
- func (*GzipPacked) TypeName() string
- func (g *GzipPacked) Zero() bool
- type HTTPWaitRequest
- func (h *HTTPWaitRequest) Decode(b *bin.Buffer) error
- func (h *HTTPWaitRequest) Encode(b *bin.Buffer) error
- func (h *HTTPWaitRequest) FillFrom(from interface{ ... })
- func (h *HTTPWaitRequest) GetMaxDelay() (value int)
- func (h *HTTPWaitRequest) GetMaxWait() (value int)
- func (h *HTTPWaitRequest) GetWaitAfter() (value int)
- func (h *HTTPWaitRequest) String() string
- func (*HTTPWaitRequest) TypeID() uint32
- func (h *HTTPWaitRequest) TypeInfo() tdp.Type
- func (*HTTPWaitRequest) TypeName() string
- func (h *HTTPWaitRequest) Zero() bool
- type Invoker
- type Message
- func (m *Message) Decode(b *bin.Buffer) error
- func (m *Message) Encode(b *bin.Buffer) error
- func (m *Message) FillFrom(from interface{ ... })
- func (m *Message) GetBody() (value GzipPacked)
- func (m *Message) GetBytes() (value int)
- func (m *Message) GetMsgID() (value int64)
- func (m *Message) GetSeqno() (value int)
- func (m *Message) String() string
- func (*Message) TypeID() uint32
- func (m *Message) TypeInfo() tdp.Type
- func (*Message) TypeName() string
- func (m *Message) Zero() bool
- type MsgCopy
- func (m *MsgCopy) Decode(b *bin.Buffer) error
- func (m *MsgCopy) Encode(b *bin.Buffer) error
- func (m *MsgCopy) FillFrom(from interface{ ... })
- func (m *MsgCopy) GetOrigMessage() (value Message)
- func (m *MsgCopy) String() string
- func (*MsgCopy) TypeID() uint32
- func (m *MsgCopy) TypeInfo() tdp.Type
- func (*MsgCopy) TypeName() string
- func (m *MsgCopy) Zero() bool
- type MsgDetailedInfo
- func (m *MsgDetailedInfo) Decode(b *bin.Buffer) error
- func (m *MsgDetailedInfo) Encode(b *bin.Buffer) error
- func (m *MsgDetailedInfo) FillFrom(from interface{ ... })
- func (m *MsgDetailedInfo) GetAnswerMsgID() (value int64)
- func (m *MsgDetailedInfo) GetBytes() (value int)
- func (m *MsgDetailedInfo) GetMsgID() (value int64)
- func (m *MsgDetailedInfo) GetStatus() (value int)
- func (m *MsgDetailedInfo) String() string
- func (*MsgDetailedInfo) TypeID() uint32
- func (m *MsgDetailedInfo) TypeInfo() tdp.Type
- func (*MsgDetailedInfo) TypeName() string
- func (m *MsgDetailedInfo) Zero() bool
- type MsgDetailedInfoArray
- func (s MsgDetailedInfoArray) First() (v MsgDetailedInfo, ok bool)
- func (s MsgDetailedInfoArray) Last() (v MsgDetailedInfo, ok bool)
- func (s *MsgDetailedInfoArray) Pop() (v MsgDetailedInfo, ok bool)
- func (s *MsgDetailedInfoArray) PopFirst() (v MsgDetailedInfo, ok bool)
- func (s MsgDetailedInfoArray) Retain(keep func(x MsgDetailedInfo) bool) MsgDetailedInfoArray
- func (s MsgDetailedInfoArray) Sort(less func(a, b MsgDetailedInfo) bool) MsgDetailedInfoArray
- func (s MsgDetailedInfoArray) SortStable(less func(a, b MsgDetailedInfo) bool) MsgDetailedInfoArray
- type MsgDetailedInfoBox
- type MsgDetailedInfoClass
- type MsgDetailedInfoClassArray
- func (s MsgDetailedInfoClassArray) AsMsgDetailedInfo() (to MsgDetailedInfoArray)
- func (s MsgDetailedInfoClassArray) AsMsgNewDetailedInfo() (to MsgNewDetailedInfoArray)
- func (s MsgDetailedInfoClassArray) First() (v MsgDetailedInfoClass, ok bool)
- func (s MsgDetailedInfoClassArray) Last() (v MsgDetailedInfoClass, ok bool)
- func (s *MsgDetailedInfoClassArray) Pop() (v MsgDetailedInfoClass, ok bool)
- func (s *MsgDetailedInfoClassArray) PopFirst() (v MsgDetailedInfoClass, ok bool)
- func (s MsgDetailedInfoClassArray) Retain(keep func(x MsgDetailedInfoClass) bool) MsgDetailedInfoClassArray
- func (s MsgDetailedInfoClassArray) Sort(less func(a, b MsgDetailedInfoClass) bool) MsgDetailedInfoClassArray
- func (s MsgDetailedInfoClassArray) SortStable(less func(a, b MsgDetailedInfoClass) bool) MsgDetailedInfoClassArray
- type MsgNewDetailedInfo
- func (m *MsgNewDetailedInfo) Decode(b *bin.Buffer) error
- func (m *MsgNewDetailedInfo) Encode(b *bin.Buffer) error
- func (m *MsgNewDetailedInfo) FillFrom(from interface{ ... })
- func (m *MsgNewDetailedInfo) GetAnswerMsgID() (value int64)
- func (m *MsgNewDetailedInfo) GetBytes() (value int)
- func (m *MsgNewDetailedInfo) GetStatus() (value int)
- func (m *MsgNewDetailedInfo) String() string
- func (*MsgNewDetailedInfo) TypeID() uint32
- func (m *MsgNewDetailedInfo) TypeInfo() tdp.Type
- func (*MsgNewDetailedInfo) TypeName() string
- func (m *MsgNewDetailedInfo) Zero() bool
- type MsgNewDetailedInfoArray
- func (s MsgNewDetailedInfoArray) First() (v MsgNewDetailedInfo, ok bool)
- func (s MsgNewDetailedInfoArray) Last() (v MsgNewDetailedInfo, ok bool)
- func (s *MsgNewDetailedInfoArray) Pop() (v MsgNewDetailedInfo, ok bool)
- func (s *MsgNewDetailedInfoArray) PopFirst() (v MsgNewDetailedInfo, ok bool)
- func (s MsgNewDetailedInfoArray) Retain(keep func(x MsgNewDetailedInfo) bool) MsgNewDetailedInfoArray
- func (s MsgNewDetailedInfoArray) Sort(less func(a, b MsgNewDetailedInfo) bool) MsgNewDetailedInfoArray
- func (s MsgNewDetailedInfoArray) SortStable(less func(a, b MsgNewDetailedInfo) bool) MsgNewDetailedInfoArray
- type MsgResendReq
- func (m *MsgResendReq) Decode(b *bin.Buffer) error
- func (m *MsgResendReq) Encode(b *bin.Buffer) error
- func (m *MsgResendReq) FillFrom(from interface{ ... })
- func (m *MsgResendReq) GetMsgIDs() (value []int64)
- func (m *MsgResendReq) String() string
- func (*MsgResendReq) TypeID() uint32
- func (m *MsgResendReq) TypeInfo() tdp.Type
- func (*MsgResendReq) TypeName() string
- func (m *MsgResendReq) Zero() bool
- type MsgsAck
- func (m *MsgsAck) Decode(b *bin.Buffer) error
- func (m *MsgsAck) Encode(b *bin.Buffer) error
- func (m *MsgsAck) FillFrom(from interface{ ... })
- func (m *MsgsAck) GetMsgIDs() (value []int64)
- func (m *MsgsAck) String() string
- func (*MsgsAck) TypeID() uint32
- func (m *MsgsAck) TypeInfo() tdp.Type
- func (*MsgsAck) TypeName() string
- func (m *MsgsAck) Zero() bool
- type MsgsAllInfo
- func (m *MsgsAllInfo) Decode(b *bin.Buffer) error
- func (m *MsgsAllInfo) Encode(b *bin.Buffer) error
- func (m *MsgsAllInfo) FillFrom(from interface{ ... })
- func (m *MsgsAllInfo) GetInfo() (value []byte)
- func (m *MsgsAllInfo) GetMsgIDs() (value []int64)
- func (m *MsgsAllInfo) String() string
- func (*MsgsAllInfo) TypeID() uint32
- func (m *MsgsAllInfo) TypeInfo() tdp.Type
- func (*MsgsAllInfo) TypeName() string
- func (m *MsgsAllInfo) Zero() bool
- type MsgsStateInfo
- func (m *MsgsStateInfo) Decode(b *bin.Buffer) error
- func (m *MsgsStateInfo) Encode(b *bin.Buffer) error
- func (m *MsgsStateInfo) FillFrom(from interface{ ... })
- func (m *MsgsStateInfo) GetInfo() (value []byte)
- func (m *MsgsStateInfo) GetReqMsgID() (value int64)
- func (m *MsgsStateInfo) String() string
- func (*MsgsStateInfo) TypeID() uint32
- func (m *MsgsStateInfo) TypeInfo() tdp.Type
- func (*MsgsStateInfo) TypeName() string
- func (m *MsgsStateInfo) Zero() bool
- type MsgsStateReq
- func (m *MsgsStateReq) Decode(b *bin.Buffer) error
- func (m *MsgsStateReq) Encode(b *bin.Buffer) error
- func (m *MsgsStateReq) FillFrom(from interface{ ... })
- func (m *MsgsStateReq) GetMsgIDs() (value []int64)
- func (m *MsgsStateReq) String() string
- func (*MsgsStateReq) TypeID() uint32
- func (m *MsgsStateReq) TypeInfo() tdp.Type
- func (*MsgsStateReq) TypeName() string
- func (m *MsgsStateReq) Zero() bool
- type NewSessionCreated
- func (n *NewSessionCreated) Decode(b *bin.Buffer) error
- func (n *NewSessionCreated) Encode(b *bin.Buffer) error
- func (n *NewSessionCreated) FillFrom(from interface{ ... })
- func (n *NewSessionCreated) GetFirstMsgID() (value int64)
- func (n *NewSessionCreated) GetServerSalt() (value int64)
- func (n *NewSessionCreated) GetUniqueID() (value int64)
- func (n *NewSessionCreated) String() string
- func (*NewSessionCreated) TypeID() uint32
- func (n *NewSessionCreated) TypeInfo() tdp.Type
- func (*NewSessionCreated) TypeName() string
- func (n *NewSessionCreated) Zero() bool
- type PQInnerData
- func (p *PQInnerData) Decode(b *bin.Buffer) error
- func (p *PQInnerData) Encode(b *bin.Buffer) error
- func (p *PQInnerData) FillFrom(from interface{ ... })
- func (p *PQInnerData) GetNewNonce() (value bin.Int256)
- func (p *PQInnerData) GetNonce() (value bin.Int128)
- func (p *PQInnerData) GetP() (value []byte)
- func (p *PQInnerData) GetPq() (value []byte)
- func (p *PQInnerData) GetQ() (value []byte)
- func (p *PQInnerData) GetServerNonce() (value bin.Int128)
- func (p *PQInnerData) String() string
- func (*PQInnerData) TypeID() uint32
- func (p *PQInnerData) TypeInfo() tdp.Type
- func (*PQInnerData) TypeName() string
- func (p *PQInnerData) Zero() bool
- type PingDelayDisconnectRequest
- func (p *PingDelayDisconnectRequest) Decode(b *bin.Buffer) error
- func (p *PingDelayDisconnectRequest) Encode(b *bin.Buffer) error
- func (p *PingDelayDisconnectRequest) FillFrom(from interface{ ... })
- func (p *PingDelayDisconnectRequest) GetDisconnectDelay() (value int)
- func (p *PingDelayDisconnectRequest) GetPingID() (value int64)
- func (p *PingDelayDisconnectRequest) String() string
- func (*PingDelayDisconnectRequest) TypeID() uint32
- func (p *PingDelayDisconnectRequest) TypeInfo() tdp.Type
- func (*PingDelayDisconnectRequest) TypeName() string
- func (p *PingDelayDisconnectRequest) Zero() bool
- type PingRequest
- func (p *PingRequest) Decode(b *bin.Buffer) error
- func (p *PingRequest) Encode(b *bin.Buffer) error
- func (p *PingRequest) FillFrom(from interface{ ... })
- func (p *PingRequest) GetPingID() (value int64)
- func (p *PingRequest) String() string
- func (*PingRequest) TypeID() uint32
- func (p *PingRequest) TypeInfo() tdp.Type
- func (*PingRequest) TypeName() string
- func (p *PingRequest) Zero() bool
- type Pong
- func (p *Pong) Decode(b *bin.Buffer) error
- func (p *Pong) Encode(b *bin.Buffer) error
- func (p *Pong) FillFrom(from interface{ ... })
- func (p *Pong) GetMsgID() (value int64)
- func (p *Pong) GetPingID() (value int64)
- func (p *Pong) String() string
- func (*Pong) TypeID() uint32
- func (p *Pong) TypeInfo() tdp.Type
- func (*Pong) TypeName() string
- func (p *Pong) Zero() bool
- type RPCAnswerDropped
- func (r *RPCAnswerDropped) Decode(b *bin.Buffer) error
- func (r *RPCAnswerDropped) Encode(b *bin.Buffer) error
- func (r *RPCAnswerDropped) FillFrom(from interface{ ... })
- func (r *RPCAnswerDropped) GetBytes() (value int)
- func (r *RPCAnswerDropped) GetMsgID() (value int64)
- func (r *RPCAnswerDropped) GetSeqNo() (value int)
- func (r *RPCAnswerDropped) String() string
- func (*RPCAnswerDropped) TypeID() uint32
- func (r *RPCAnswerDropped) TypeInfo() tdp.Type
- func (*RPCAnswerDropped) TypeName() string
- func (r *RPCAnswerDropped) Zero() bool
- type RPCAnswerDroppedArray
- func (s RPCAnswerDroppedArray) First() (v RPCAnswerDropped, ok bool)
- func (s RPCAnswerDroppedArray) Last() (v RPCAnswerDropped, ok bool)
- func (s *RPCAnswerDroppedArray) Pop() (v RPCAnswerDropped, ok bool)
- func (s *RPCAnswerDroppedArray) PopFirst() (v RPCAnswerDropped, ok bool)
- func (s RPCAnswerDroppedArray) Retain(keep func(x RPCAnswerDropped) bool) RPCAnswerDroppedArray
- func (s RPCAnswerDroppedArray) Sort(less func(a, b RPCAnswerDropped) bool) RPCAnswerDroppedArray
- func (s RPCAnswerDroppedArray) SortStable(less func(a, b RPCAnswerDropped) bool) RPCAnswerDroppedArray
- type RPCAnswerDroppedRunning
- func (r *RPCAnswerDroppedRunning) Decode(b *bin.Buffer) error
- func (r *RPCAnswerDroppedRunning) Encode(b *bin.Buffer) error
- func (r *RPCAnswerDroppedRunning) String() string
- func (*RPCAnswerDroppedRunning) TypeID() uint32
- func (r *RPCAnswerDroppedRunning) TypeInfo() tdp.Type
- func (*RPCAnswerDroppedRunning) TypeName() string
- func (r *RPCAnswerDroppedRunning) Zero() bool
- type RPCAnswerUnknown
- func (r *RPCAnswerUnknown) Decode(b *bin.Buffer) error
- func (r *RPCAnswerUnknown) Encode(b *bin.Buffer) error
- func (r *RPCAnswerUnknown) String() string
- func (*RPCAnswerUnknown) TypeID() uint32
- func (r *RPCAnswerUnknown) TypeInfo() tdp.Type
- func (*RPCAnswerUnknown) TypeName() string
- func (r *RPCAnswerUnknown) Zero() bool
- type RPCDropAnswerBox
- type RPCDropAnswerClass
- type RPCDropAnswerClassArray
- func (s RPCDropAnswerClassArray) AsRPCAnswerDropped() (to RPCAnswerDroppedArray)
- func (s RPCDropAnswerClassArray) First() (v RPCDropAnswerClass, ok bool)
- func (s RPCDropAnswerClassArray) Last() (v RPCDropAnswerClass, ok bool)
- func (s *RPCDropAnswerClassArray) Pop() (v RPCDropAnswerClass, ok bool)
- func (s *RPCDropAnswerClassArray) PopFirst() (v RPCDropAnswerClass, ok bool)
- func (s RPCDropAnswerClassArray) Retain(keep func(x RPCDropAnswerClass) bool) RPCDropAnswerClassArray
- func (s RPCDropAnswerClassArray) Sort(less func(a, b RPCDropAnswerClass) bool) RPCDropAnswerClassArray
- func (s RPCDropAnswerClassArray) SortStable(less func(a, b RPCDropAnswerClass) bool) RPCDropAnswerClassArray
- type RPCDropAnswerRequest
- func (r *RPCDropAnswerRequest) Decode(b *bin.Buffer) error
- func (r *RPCDropAnswerRequest) Encode(b *bin.Buffer) error
- func (r *RPCDropAnswerRequest) FillFrom(from interface{ ... })
- func (r *RPCDropAnswerRequest) GetReqMsgID() (value int64)
- func (r *RPCDropAnswerRequest) String() string
- func (*RPCDropAnswerRequest) TypeID() uint32
- func (r *RPCDropAnswerRequest) TypeInfo() tdp.Type
- func (*RPCDropAnswerRequest) TypeName() string
- func (r *RPCDropAnswerRequest) Zero() bool
- type RPCError
- func (r *RPCError) Decode(b *bin.Buffer) error
- func (r *RPCError) Encode(b *bin.Buffer) error
- func (r *RPCError) FillFrom(from interface{ ... })
- func (r *RPCError) GetErrorCode() (value int)
- func (r *RPCError) GetErrorMessage() (value string)
- func (r *RPCError) String() string
- func (*RPCError) TypeID() uint32
- func (r *RPCError) TypeInfo() tdp.Type
- func (*RPCError) TypeName() string
- func (r *RPCError) Zero() bool
- type RPCResult
- func (r *RPCResult) Decode(b *bin.Buffer) error
- func (r *RPCResult) Encode(b *bin.Buffer) error
- func (r *RPCResult) FillFrom(from interface{ ... })
- func (r *RPCResult) GetReqMsgID() (value int64)
- func (r *RPCResult) GetResult() (value GzipPacked)
- func (r *RPCResult) String() string
- func (*RPCResult) TypeID() uint32
- func (r *RPCResult) TypeInfo() tdp.Type
- func (*RPCResult) TypeName() string
- func (r *RPCResult) Zero() bool
- type ReqDHParamsRequest
- func (r *ReqDHParamsRequest) Decode(b *bin.Buffer) error
- func (r *ReqDHParamsRequest) Encode(b *bin.Buffer) error
- func (r *ReqDHParamsRequest) FillFrom(from interface{ ... })
- func (r *ReqDHParamsRequest) GetEncryptedData() (value []byte)
- func (r *ReqDHParamsRequest) GetNonce() (value bin.Int128)
- func (r *ReqDHParamsRequest) GetP() (value []byte)
- func (r *ReqDHParamsRequest) GetPublicKeyFingerprint() (value int64)
- func (r *ReqDHParamsRequest) GetQ() (value []byte)
- func (r *ReqDHParamsRequest) GetServerNonce() (value bin.Int128)
- func (r *ReqDHParamsRequest) String() string
- func (*ReqDHParamsRequest) TypeID() uint32
- func (r *ReqDHParamsRequest) TypeInfo() tdp.Type
- func (*ReqDHParamsRequest) TypeName() string
- func (r *ReqDHParamsRequest) Zero() bool
- type ReqPqMultiRequest
- func (r *ReqPqMultiRequest) Decode(b *bin.Buffer) error
- func (r *ReqPqMultiRequest) Encode(b *bin.Buffer) error
- func (r *ReqPqMultiRequest) FillFrom(from interface{ ... })
- func (r *ReqPqMultiRequest) GetNonce() (value bin.Int128)
- func (r *ReqPqMultiRequest) String() string
- func (*ReqPqMultiRequest) TypeID() uint32
- func (r *ReqPqMultiRequest) TypeInfo() tdp.Type
- func (*ReqPqMultiRequest) TypeName() string
- func (r *ReqPqMultiRequest) Zero() bool
- type ReqPqRequest
- func (r *ReqPqRequest) Decode(b *bin.Buffer) error
- func (r *ReqPqRequest) Encode(b *bin.Buffer) error
- func (r *ReqPqRequest) FillFrom(from interface{ ... })
- func (r *ReqPqRequest) GetNonce() (value bin.Int128)
- func (r *ReqPqRequest) String() string
- func (*ReqPqRequest) TypeID() uint32
- func (r *ReqPqRequest) TypeInfo() tdp.Type
- func (*ReqPqRequest) TypeName() string
- func (r *ReqPqRequest) Zero() bool
- type ResPQ
- func (r *ResPQ) Decode(b *bin.Buffer) error
- func (r *ResPQ) Encode(b *bin.Buffer) error
- func (r *ResPQ) FillFrom(from interface{ ... })
- func (r *ResPQ) GetNonce() (value bin.Int128)
- func (r *ResPQ) GetPq() (value []byte)
- func (r *ResPQ) GetServerNonce() (value bin.Int128)
- func (r *ResPQ) GetServerPublicKeyFingerprints() (value []int64)
- func (r *ResPQ) String() string
- func (*ResPQ) TypeID() uint32
- func (r *ResPQ) TypeInfo() tdp.Type
- func (*ResPQ) TypeName() string
- func (r *ResPQ) Zero() bool
- type ServerDHInnerData
- func (s *ServerDHInnerData) Decode(b *bin.Buffer) error
- func (s *ServerDHInnerData) Encode(b *bin.Buffer) error
- func (s *ServerDHInnerData) FillFrom(from interface{ ... })
- func (s *ServerDHInnerData) GetDhPrime() (value []byte)
- func (s *ServerDHInnerData) GetG() (value int)
- func (s *ServerDHInnerData) GetGA() (value []byte)
- func (s *ServerDHInnerData) GetNonce() (value bin.Int128)
- func (s *ServerDHInnerData) GetServerNonce() (value bin.Int128)
- func (s *ServerDHInnerData) GetServerTime() (value int)
- func (s *ServerDHInnerData) String() string
- func (*ServerDHInnerData) TypeID() uint32
- func (s *ServerDHInnerData) TypeInfo() tdp.Type
- func (*ServerDHInnerData) TypeName() string
- func (s *ServerDHInnerData) Zero() bool
- type ServerDHParamsBox
- type ServerDHParamsClass
- type ServerDHParamsClassArray
- func (s ServerDHParamsClassArray) AsServerDHParamsFail() (to ServerDHParamsFailArray)
- func (s ServerDHParamsClassArray) AsServerDHParamsOk() (to ServerDHParamsOkArray)
- func (s ServerDHParamsClassArray) First() (v ServerDHParamsClass, ok bool)
- func (s ServerDHParamsClassArray) Last() (v ServerDHParamsClass, ok bool)
- func (s *ServerDHParamsClassArray) Pop() (v ServerDHParamsClass, ok bool)
- func (s *ServerDHParamsClassArray) PopFirst() (v ServerDHParamsClass, ok bool)
- func (s ServerDHParamsClassArray) Retain(keep func(x ServerDHParamsClass) bool) ServerDHParamsClassArray
- func (s ServerDHParamsClassArray) Sort(less func(a, b ServerDHParamsClass) bool) ServerDHParamsClassArray
- func (s ServerDHParamsClassArray) SortStable(less func(a, b ServerDHParamsClass) bool) ServerDHParamsClassArray
- type ServerDHParamsFail
- func (s *ServerDHParamsFail) Decode(b *bin.Buffer) error
- func (s *ServerDHParamsFail) Encode(b *bin.Buffer) error
- func (s *ServerDHParamsFail) FillFrom(from interface{ ... })
- func (s *ServerDHParamsFail) GetNewNonceHash() (value bin.Int128)
- func (s *ServerDHParamsFail) GetNonce() (value bin.Int128)
- func (s *ServerDHParamsFail) GetServerNonce() (value bin.Int128)
- func (s *ServerDHParamsFail) String() string
- func (*ServerDHParamsFail) TypeID() uint32
- func (s *ServerDHParamsFail) TypeInfo() tdp.Type
- func (*ServerDHParamsFail) TypeName() string
- func (s *ServerDHParamsFail) Zero() bool
- type ServerDHParamsFailArray
- func (s ServerDHParamsFailArray) First() (v ServerDHParamsFail, ok bool)
- func (s ServerDHParamsFailArray) Last() (v ServerDHParamsFail, ok bool)
- func (s *ServerDHParamsFailArray) Pop() (v ServerDHParamsFail, ok bool)
- func (s *ServerDHParamsFailArray) PopFirst() (v ServerDHParamsFail, ok bool)
- func (s ServerDHParamsFailArray) Retain(keep func(x ServerDHParamsFail) bool) ServerDHParamsFailArray
- func (s ServerDHParamsFailArray) Sort(less func(a, b ServerDHParamsFail) bool) ServerDHParamsFailArray
- func (s ServerDHParamsFailArray) SortStable(less func(a, b ServerDHParamsFail) bool) ServerDHParamsFailArray
- type ServerDHParamsOk
- func (s *ServerDHParamsOk) Decode(b *bin.Buffer) error
- func (s *ServerDHParamsOk) Encode(b *bin.Buffer) error
- func (s *ServerDHParamsOk) FillFrom(from interface{ ... })
- func (s *ServerDHParamsOk) GetEncryptedAnswer() (value []byte)
- func (s *ServerDHParamsOk) GetNonce() (value bin.Int128)
- func (s *ServerDHParamsOk) GetServerNonce() (value bin.Int128)
- func (s *ServerDHParamsOk) String() string
- func (*ServerDHParamsOk) TypeID() uint32
- func (s *ServerDHParamsOk) TypeInfo() tdp.Type
- func (*ServerDHParamsOk) TypeName() string
- func (s *ServerDHParamsOk) Zero() bool
- type ServerDHParamsOkArray
- func (s ServerDHParamsOkArray) First() (v ServerDHParamsOk, ok bool)
- func (s ServerDHParamsOkArray) Last() (v ServerDHParamsOk, ok bool)
- func (s *ServerDHParamsOkArray) Pop() (v ServerDHParamsOk, ok bool)
- func (s *ServerDHParamsOkArray) PopFirst() (v ServerDHParamsOk, ok bool)
- func (s ServerDHParamsOkArray) Retain(keep func(x ServerDHParamsOk) bool) ServerDHParamsOkArray
- func (s ServerDHParamsOkArray) Sort(less func(a, b ServerDHParamsOk) bool) ServerDHParamsOkArray
- func (s ServerDHParamsOkArray) SortStable(less func(a, b ServerDHParamsOk) bool) ServerDHParamsOkArray
- type SetClientDHParamsAnswerBox
- type SetClientDHParamsAnswerClass
- type SetClientDHParamsAnswerClassArray
- func (s SetClientDHParamsAnswerClassArray) AsDhGenFail() (to DhGenFailArray)
- func (s SetClientDHParamsAnswerClassArray) AsDhGenOk() (to DhGenOkArray)
- func (s SetClientDHParamsAnswerClassArray) AsDhGenRetry() (to DhGenRetryArray)
- func (s SetClientDHParamsAnswerClassArray) First() (v SetClientDHParamsAnswerClass, ok bool)
- func (s SetClientDHParamsAnswerClassArray) Last() (v SetClientDHParamsAnswerClass, ok bool)
- func (s *SetClientDHParamsAnswerClassArray) Pop() (v SetClientDHParamsAnswerClass, ok bool)
- func (s *SetClientDHParamsAnswerClassArray) PopFirst() (v SetClientDHParamsAnswerClass, ok bool)
- func (s SetClientDHParamsAnswerClassArray) Retain(keep func(x SetClientDHParamsAnswerClass) bool) SetClientDHParamsAnswerClassArray
- func (s SetClientDHParamsAnswerClassArray) Sort(less func(a, b SetClientDHParamsAnswerClass) bool) SetClientDHParamsAnswerClassArray
- func (s SetClientDHParamsAnswerClassArray) SortStable(less func(a, b SetClientDHParamsAnswerClass) bool) SetClientDHParamsAnswerClassArray
- type SetClientDHParamsRequest
- func (s *SetClientDHParamsRequest) Decode(b *bin.Buffer) error
- func (s *SetClientDHParamsRequest) Encode(b *bin.Buffer) error
- func (s *SetClientDHParamsRequest) FillFrom(from interface{ ... })
- func (s *SetClientDHParamsRequest) GetEncryptedData() (value []byte)
- func (s *SetClientDHParamsRequest) GetNonce() (value bin.Int128)
- func (s *SetClientDHParamsRequest) GetServerNonce() (value bin.Int128)
- func (s *SetClientDHParamsRequest) String() string
- func (*SetClientDHParamsRequest) TypeID() uint32
- func (s *SetClientDHParamsRequest) TypeInfo() tdp.Type
- func (*SetClientDHParamsRequest) TypeName() string
- func (s *SetClientDHParamsRequest) Zero() bool
Constants ¶
const BadMsgNotificationTypeID = 0xa7eff811
BadMsgNotificationTypeID is TL type id of BadMsgNotification.
const BadServerSaltTypeID = 0xedab447b
BadServerSaltTypeID is TL type id of BadServerSalt.
const ClientDHInnerDataTypeID = 0x6643b654
ClientDHInnerDataTypeID is TL type id of ClientDHInnerData.
const DestroySessionNoneTypeID = 0x62d350c9
DestroySessionNoneTypeID is TL type id of DestroySessionNone.
const DestroySessionOkTypeID = 0xe22045fc
DestroySessionOkTypeID is TL type id of DestroySessionOk.
const DestroySessionRequestTypeID = 0xe7512126
DestroySessionRequestTypeID is TL type id of DestroySessionRequest.
const DhGenFailTypeID = 0xa69dae02
DhGenFailTypeID is TL type id of DhGenFail.
const DhGenOkTypeID = 0x3bcbf734
DhGenOkTypeID is TL type id of DhGenOk.
const DhGenRetryTypeID = 0x46dc1fb9
DhGenRetryTypeID is TL type id of DhGenRetry.
const FutureSaltTypeID = 0x949d9dc
FutureSaltTypeID is TL type id of FutureSalt.
const FutureSaltsTypeID = 0xae500895
FutureSaltsTypeID is TL type id of FutureSalts.
const GetFutureSaltsRequestTypeID = 0xb921bd04
GetFutureSaltsRequestTypeID is TL type id of GetFutureSaltsRequest.
const GzipPackedTypeID = 0x3072cfa1
GzipPackedTypeID is TL type id of GzipPacked.
const HTTPWaitRequestTypeID = 0x9299359f
HTTPWaitRequestTypeID is TL type id of HTTPWaitRequest.
const MessageTypeID = 0x5bb8e511
MessageTypeID is TL type id of Message.
const MsgCopyTypeID = 0xe06046b2
MsgCopyTypeID is TL type id of MsgCopy.
const MsgDetailedInfoTypeID = 0x276d3ec6
MsgDetailedInfoTypeID is TL type id of MsgDetailedInfo.
const MsgNewDetailedInfoTypeID = 0x809db6df
MsgNewDetailedInfoTypeID is TL type id of MsgNewDetailedInfo.
const MsgResendReqTypeID = 0x7d861a08
MsgResendReqTypeID is TL type id of MsgResendReq.
const MsgsAckTypeID = 0x62d6b459
MsgsAckTypeID is TL type id of MsgsAck.
const MsgsAllInfoTypeID = 0x8cc0d131
MsgsAllInfoTypeID is TL type id of MsgsAllInfo.
const MsgsStateInfoTypeID = 0x4deb57d
MsgsStateInfoTypeID is TL type id of MsgsStateInfo.
const MsgsStateReqTypeID = 0xda69fb52
MsgsStateReqTypeID is TL type id of MsgsStateReq.
const NewSessionCreatedTypeID = 0x9ec20908
NewSessionCreatedTypeID is TL type id of NewSessionCreated.
const PQInnerDataTypeID = 0x83c95aec
PQInnerDataTypeID is TL type id of PQInnerData.
const PingDelayDisconnectRequestTypeID = 0xf3427b8c
PingDelayDisconnectRequestTypeID is TL type id of PingDelayDisconnectRequest.
const PingRequestTypeID = 0x7abe77ec
PingRequestTypeID is TL type id of PingRequest.
const PongTypeID = 0x347773c5
PongTypeID is TL type id of Pong.
const RPCAnswerDroppedRunningTypeID = 0xcd78e586
RPCAnswerDroppedRunningTypeID is TL type id of RPCAnswerDroppedRunning.
const RPCAnswerDroppedTypeID = 0xa43ad8b7
RPCAnswerDroppedTypeID is TL type id of RPCAnswerDropped.
const RPCAnswerUnknownTypeID = 0x5e2ad36e
RPCAnswerUnknownTypeID is TL type id of RPCAnswerUnknown.
const RPCDropAnswerRequestTypeID = 0x58e4a740
RPCDropAnswerRequestTypeID is TL type id of RPCDropAnswerRequest.
const RPCErrorTypeID = 0x2144ca19
RPCErrorTypeID is TL type id of RPCError.
const RPCResultTypeID = 0xf35c6d01
RPCResultTypeID is TL type id of RPCResult.
const ReqDHParamsRequestTypeID = 0xd712e4be
ReqDHParamsRequestTypeID is TL type id of ReqDHParamsRequest.
const ReqPqMultiRequestTypeID = 0xbe7e8ef1
ReqPqMultiRequestTypeID is TL type id of ReqPqMultiRequest.
const ReqPqRequestTypeID = 0x60469778
ReqPqRequestTypeID is TL type id of ReqPqRequest.
const ResPQTypeID = 0x5162463
ResPQTypeID is TL type id of ResPQ.
const ServerDHInnerDataTypeID = 0xb5890dba
ServerDHInnerDataTypeID is TL type id of ServerDHInnerData.
const ServerDHParamsFailTypeID = 0x79cb045d
ServerDHParamsFailTypeID is TL type id of ServerDHParamsFail.
const ServerDHParamsOkTypeID = 0xd0e8075c
ServerDHParamsOkTypeID is TL type id of ServerDHParamsOk.
const SetClientDHParamsRequestTypeID = 0xf5045f1f
SetClientDHParamsRequestTypeID is TL type id of SetClientDHParamsRequest.
Variables ¶
This section is empty.
Functions ¶
func TypesConstructorMap ¶ added in v0.15.0
TypesConstructorMap maps type ids to constructors.
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) Encode ¶
func (b *BadMsgNotification) Encode(buf *bin.Buffer) error
Encode implements bin.Encoder.
func (*BadMsgNotification) FillFrom ¶ added in v0.25.0
func (b *BadMsgNotification) FillFrom(from interface { GetBadMsgID() (value int64) GetBadMsgSeqno() (value int) GetErrorCode() (value int) })
FillFrom fills BadMsgNotification from given interface.
func (*BadMsgNotification) GetBadMsgID ¶ added in v0.21.0
func (b *BadMsgNotification) GetBadMsgID() (value int64)
GetBadMsgID returns value of BadMsgID field.
func (*BadMsgNotification) GetBadMsgSeqno ¶ added in v0.21.0
func (b *BadMsgNotification) GetBadMsgSeqno() (value int)
GetBadMsgSeqno returns value of BadMsgSeqno field.
func (*BadMsgNotification) GetErrorCode ¶ added in v0.21.0
func (b *BadMsgNotification) GetErrorCode() (value int)
GetErrorCode returns value of ErrorCode field.
func (*BadMsgNotification) String ¶ added in v0.12.0
func (b *BadMsgNotification) String() string
String implements fmt.Stringer.
func (*BadMsgNotification) TypeID ¶ added in v0.21.0
func (*BadMsgNotification) TypeID() uint32
TypeID returns type id in TL schema.
func (*BadMsgNotification) TypeInfo ¶ added in v0.25.0
func (b *BadMsgNotification) TypeInfo() tdp.Type
TypeInfo returns info about TL type.
func (*BadMsgNotification) TypeName ¶ added in v0.25.0
func (*BadMsgNotification) TypeName() string
TypeName returns name of type in TL schema.
func (*BadMsgNotification) Zero ¶ added in v0.20.0
func (b *BadMsgNotification) Zero() bool
type BadMsgNotificationArray ¶ added in v0.25.0
type BadMsgNotificationArray []BadMsgNotification
BadMsgNotificationArray is adapter for slice of BadMsgNotification.
func (BadMsgNotificationArray) First ¶ added in v0.25.0
func (s BadMsgNotificationArray) First() (v BadMsgNotification, ok bool)
First returns first element of slice (if exists).
func (BadMsgNotificationArray) Last ¶ added in v0.25.0
func (s BadMsgNotificationArray) Last() (v BadMsgNotification, ok bool)
Last returns last element of slice (if exists).
func (*BadMsgNotificationArray) Pop ¶ added in v0.25.0
func (s *BadMsgNotificationArray) Pop() (v BadMsgNotification, ok bool)
Pop returns last element of slice (if exists) and deletes it.
func (*BadMsgNotificationArray) PopFirst ¶ added in v0.25.0
func (s *BadMsgNotificationArray) PopFirst() (v BadMsgNotification, ok bool)
PopFirst returns first element of slice (if exists) and deletes it.
func (BadMsgNotificationArray) Retain ¶ added in v0.25.0
func (s BadMsgNotificationArray) Retain(keep func(x BadMsgNotification) bool) BadMsgNotificationArray
Retain filters in-place slice of BadMsgNotification.
func (BadMsgNotificationArray) Sort ¶ added in v0.25.0
func (s BadMsgNotificationArray) Sort(less func(a, b BadMsgNotification) bool) BadMsgNotificationArray
Sort sorts slice of BadMsgNotification.
func (BadMsgNotificationArray) SortStable ¶ added in v0.25.0
func (s BadMsgNotificationArray) SortStable(less func(a, b BadMsgNotification) bool) BadMsgNotificationArray
SortStable sorts slice of BadMsgNotification.
type BadMsgNotificationBox ¶ added in v0.12.0
type BadMsgNotificationBox struct {
BadMsgNotification BadMsgNotificationClass
}
BadMsgNotification boxes the BadMsgNotificationClass providing a helper.
type BadMsgNotificationClass ¶ added in v0.12.0
type BadMsgNotificationClass interface { bin.Encoder bin.Decoder // 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 ¶ added in v0.12.0
func DecodeBadMsgNotification(buf *bin.Buffer) (BadMsgNotificationClass, error)
DecodeBadMsgNotification implements binary de-serialization for BadMsgNotificationClass.
type BadMsgNotificationClassArray ¶ added in v0.25.0
type BadMsgNotificationClassArray []BadMsgNotificationClass
BadMsgNotificationClassArray is adapter for slice of BadMsgNotificationClass.
func (BadMsgNotificationClassArray) AsBadMsgNotification ¶ added in v0.25.0
func (s BadMsgNotificationClassArray) AsBadMsgNotification() (to BadMsgNotificationArray)
AsBadMsgNotification returns copy with only BadMsgNotification constructors.
func (BadMsgNotificationClassArray) AsBadServerSalt ¶ added in v0.25.0
func (s BadMsgNotificationClassArray) AsBadServerSalt() (to BadServerSaltArray)
AsBadServerSalt returns copy with only BadServerSalt constructors.
func (BadMsgNotificationClassArray) First ¶ added in v0.25.0
func (s BadMsgNotificationClassArray) First() (v BadMsgNotificationClass, ok bool)
First returns first element of slice (if exists).
func (BadMsgNotificationClassArray) Last ¶ added in v0.25.0
func (s BadMsgNotificationClassArray) Last() (v BadMsgNotificationClass, ok bool)
Last returns last element of slice (if exists).
func (*BadMsgNotificationClassArray) Pop ¶ added in v0.25.0
func (s *BadMsgNotificationClassArray) Pop() (v BadMsgNotificationClass, ok bool)
Pop returns last element of slice (if exists) and deletes it.
func (*BadMsgNotificationClassArray) PopFirst ¶ added in v0.25.0
func (s *BadMsgNotificationClassArray) PopFirst() (v BadMsgNotificationClass, ok bool)
PopFirst returns first element of slice (if exists) and deletes it.
func (BadMsgNotificationClassArray) Retain ¶ added in v0.25.0
func (s BadMsgNotificationClassArray) Retain(keep func(x BadMsgNotificationClass) bool) BadMsgNotificationClassArray
Retain filters in-place slice of BadMsgNotificationClass.
func (BadMsgNotificationClassArray) Sort ¶ added in v0.25.0
func (s BadMsgNotificationClassArray) Sort(less func(a, b BadMsgNotificationClass) bool) BadMsgNotificationClassArray
Sort sorts slice of BadMsgNotificationClass.
func (BadMsgNotificationClassArray) SortStable ¶ added in v0.25.0
func (s BadMsgNotificationClassArray) SortStable(less func(a, b BadMsgNotificationClass) bool) BadMsgNotificationClassArray
SortStable sorts slice of 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) Encode ¶
func (b *BadServerSalt) Encode(buf *bin.Buffer) error
Encode implements bin.Encoder.
func (*BadServerSalt) FillFrom ¶ added in v0.25.0
func (b *BadServerSalt) FillFrom(from interface { GetBadMsgID() (value int64) GetBadMsgSeqno() (value int) GetErrorCode() (value int) GetNewServerSalt() (value int64) })
FillFrom fills BadServerSalt from given interface.
func (*BadServerSalt) GetBadMsgID ¶ added in v0.21.0
func (b *BadServerSalt) GetBadMsgID() (value int64)
GetBadMsgID returns value of BadMsgID field.
func (*BadServerSalt) GetBadMsgSeqno ¶ added in v0.21.0
func (b *BadServerSalt) GetBadMsgSeqno() (value int)
GetBadMsgSeqno returns value of BadMsgSeqno field.
func (*BadServerSalt) GetErrorCode ¶ added in v0.21.0
func (b *BadServerSalt) GetErrorCode() (value int)
GetErrorCode returns value of ErrorCode field.
func (*BadServerSalt) GetNewServerSalt ¶ added in v0.21.0
func (b *BadServerSalt) GetNewServerSalt() (value int64)
GetNewServerSalt returns value of NewServerSalt field.
func (*BadServerSalt) String ¶ added in v0.12.0
func (b *BadServerSalt) String() string
String implements fmt.Stringer.
func (*BadServerSalt) TypeID ¶ added in v0.21.0
func (*BadServerSalt) TypeID() uint32
TypeID returns type id in TL schema.
func (*BadServerSalt) TypeInfo ¶ added in v0.25.0
func (b *BadServerSalt) TypeInfo() tdp.Type
TypeInfo returns info about TL type.
func (*BadServerSalt) TypeName ¶ added in v0.25.0
func (*BadServerSalt) TypeName() string
TypeName returns name of type in TL schema.
func (*BadServerSalt) Zero ¶ added in v0.20.0
func (b *BadServerSalt) Zero() bool
type BadServerSaltArray ¶ added in v0.25.0
type BadServerSaltArray []BadServerSalt
BadServerSaltArray is adapter for slice of BadServerSalt.
func (BadServerSaltArray) First ¶ added in v0.25.0
func (s BadServerSaltArray) First() (v BadServerSalt, ok bool)
First returns first element of slice (if exists).
func (BadServerSaltArray) Last ¶ added in v0.25.0
func (s BadServerSaltArray) Last() (v BadServerSalt, ok bool)
Last returns last element of slice (if exists).
func (*BadServerSaltArray) Pop ¶ added in v0.25.0
func (s *BadServerSaltArray) Pop() (v BadServerSalt, ok bool)
Pop returns last element of slice (if exists) and deletes it.
func (*BadServerSaltArray) PopFirst ¶ added in v0.25.0
func (s *BadServerSaltArray) PopFirst() (v BadServerSalt, ok bool)
PopFirst returns first element of slice (if exists) and deletes it.
func (BadServerSaltArray) Retain ¶ added in v0.25.0
func (s BadServerSaltArray) Retain(keep func(x BadServerSalt) bool) BadServerSaltArray
Retain filters in-place slice of BadServerSalt.
func (BadServerSaltArray) Sort ¶ added in v0.25.0
func (s BadServerSaltArray) Sort(less func(a, b BadServerSalt) bool) BadServerSaltArray
Sort sorts slice of BadServerSalt.
func (BadServerSaltArray) SortStable ¶ added in v0.25.0
func (s BadServerSaltArray) SortStable(less func(a, b BadServerSalt) bool) BadServerSaltArray
SortStable sorts slice of BadServerSalt.
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client implement methods for calling functions from TL schema via Invoker.
func (*Client) DestroySession ¶ added in v0.12.0
func (c *Client) DestroySession(ctx context.Context, sessionid int64) (DestroySessionResClass, error)
DestroySession invokes method destroy_session#e7512126 returning error if any.
func (*Client) GetFutureSalts ¶ added in v0.12.0
GetFutureSalts invokes method get_future_salts#b921bd04 returning error if any.
func (*Client) PingDelayDisconnect ¶ added in v0.12.0
func (c *Client) PingDelayDisconnect(ctx context.Context, request *PingDelayDisconnectRequest) (*Pong, error)
PingDelayDisconnect invokes method ping_delay_disconnect#f3427b8c returning error if any.
func (*Client) RPCDropAnswer ¶ added in v0.12.0
RPCDropAnswer invokes method rpc_drop_answer#58e4a740 returning error if any.
func (*Client) ReqDHParams ¶ added in v0.12.0
func (c *Client) ReqDHParams(ctx context.Context, request *ReqDHParamsRequest) (ServerDHParamsClass, error)
ReqDHParams invokes method req_DH_params#d712e4be returning error if any.
func (*Client) ReqPq ¶ added in v0.12.0
ReqPq invokes method req_pq#60469778 returning error if any.
func (*Client) ReqPqMulti ¶ added in v0.12.0
ReqPqMulti invokes method req_pq_multi#be7e8ef1 returning error if any.
func (*Client) SetClientDHParams ¶ added in v0.12.0
func (c *Client) SetClientDHParams(ctx context.Context, request *SetClientDHParamsRequest) (SetClientDHParamsAnswerClass, error)
SetClientDHParams invokes method set_client_DH_params#f5045f1f returning error if any.
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) Encode ¶
func (c *ClientDHInnerData) Encode(b *bin.Buffer) error
Encode implements bin.Encoder.
func (*ClientDHInnerData) FillFrom ¶ added in v0.25.0
func (c *ClientDHInnerData) FillFrom(from interface { GetNonce() (value bin.Int128) GetServerNonce() (value bin.Int128) GetRetryID() (value int64) GetGB() (value []byte) })
FillFrom fills ClientDHInnerData from given interface.
func (*ClientDHInnerData) GetGB ¶ added in v0.21.0
func (c *ClientDHInnerData) GetGB() (value []byte)
GetGB returns value of GB field.
func (*ClientDHInnerData) GetNonce ¶ added in v0.21.0
func (c *ClientDHInnerData) GetNonce() (value bin.Int128)
GetNonce returns value of Nonce field.
func (*ClientDHInnerData) GetRetryID ¶ added in v0.21.0
func (c *ClientDHInnerData) GetRetryID() (value int64)
GetRetryID returns value of RetryID field.
func (*ClientDHInnerData) GetServerNonce ¶ added in v0.21.0
func (c *ClientDHInnerData) GetServerNonce() (value bin.Int128)
GetServerNonce returns value of ServerNonce field.
func (*ClientDHInnerData) String ¶ added in v0.12.0
func (c *ClientDHInnerData) String() string
String implements fmt.Stringer.
func (*ClientDHInnerData) TypeID ¶ added in v0.21.0
func (*ClientDHInnerData) TypeID() uint32
TypeID returns type id in TL schema.
func (*ClientDHInnerData) TypeInfo ¶ added in v0.25.0
func (c *ClientDHInnerData) TypeInfo() tdp.Type
TypeInfo returns info about TL type.
func (*ClientDHInnerData) TypeName ¶ added in v0.25.0
func (*ClientDHInnerData) TypeName() string
TypeName returns name of type in TL schema.
func (*ClientDHInnerData) Zero ¶ added in v0.20.0
func (c *ClientDHInnerData) Zero() bool
type DestroySessionNone ¶ added in v0.12.0
type DestroySessionNone struct { // SessionID field of DestroySessionNone. SessionID int64 }
DestroySessionNone represents TL type `destroy_session_none#62d350c9`.
func (*DestroySessionNone) Decode ¶ added in v0.12.0
func (d *DestroySessionNone) Decode(b *bin.Buffer) error
Decode implements bin.Decoder.
func (*DestroySessionNone) Encode ¶ added in v0.12.0
func (d *DestroySessionNone) Encode(b *bin.Buffer) error
Encode implements bin.Encoder.
func (*DestroySessionNone) FillFrom ¶ added in v0.25.0
func (d *DestroySessionNone) FillFrom(from interface { GetSessionID() (value int64) })
FillFrom fills DestroySessionNone from given interface.
func (*DestroySessionNone) GetSessionID ¶ added in v0.21.0
func (d *DestroySessionNone) GetSessionID() (value int64)
GetSessionID returns value of SessionID field.
func (*DestroySessionNone) String ¶ added in v0.12.0
func (d *DestroySessionNone) String() string
String implements fmt.Stringer.
func (*DestroySessionNone) TypeID ¶ added in v0.21.0
func (*DestroySessionNone) TypeID() uint32
TypeID returns type id in TL schema.
func (*DestroySessionNone) TypeInfo ¶ added in v0.25.0
func (d *DestroySessionNone) TypeInfo() tdp.Type
TypeInfo returns info about TL type.
func (*DestroySessionNone) TypeName ¶ added in v0.25.0
func (*DestroySessionNone) TypeName() string
TypeName returns name of type in TL schema.
func (*DestroySessionNone) Zero ¶ added in v0.20.0
func (d *DestroySessionNone) Zero() bool
type DestroySessionNoneArray ¶ added in v0.25.0
type DestroySessionNoneArray []DestroySessionNone
DestroySessionNoneArray is adapter for slice of DestroySessionNone.
func (DestroySessionNoneArray) First ¶ added in v0.25.0
func (s DestroySessionNoneArray) First() (v DestroySessionNone, ok bool)
First returns first element of slice (if exists).
func (DestroySessionNoneArray) Last ¶ added in v0.25.0
func (s DestroySessionNoneArray) Last() (v DestroySessionNone, ok bool)
Last returns last element of slice (if exists).
func (*DestroySessionNoneArray) Pop ¶ added in v0.25.0
func (s *DestroySessionNoneArray) Pop() (v DestroySessionNone, ok bool)
Pop returns last element of slice (if exists) and deletes it.
func (*DestroySessionNoneArray) PopFirst ¶ added in v0.25.0
func (s *DestroySessionNoneArray) PopFirst() (v DestroySessionNone, ok bool)
PopFirst returns first element of slice (if exists) and deletes it.
func (DestroySessionNoneArray) Retain ¶ added in v0.25.0
func (s DestroySessionNoneArray) Retain(keep func(x DestroySessionNone) bool) DestroySessionNoneArray
Retain filters in-place slice of DestroySessionNone.
func (DestroySessionNoneArray) Sort ¶ added in v0.25.0
func (s DestroySessionNoneArray) Sort(less func(a, b DestroySessionNone) bool) DestroySessionNoneArray
Sort sorts slice of DestroySessionNone.
func (DestroySessionNoneArray) SortStable ¶ added in v0.25.0
func (s DestroySessionNoneArray) SortStable(less func(a, b DestroySessionNone) bool) DestroySessionNoneArray
SortStable sorts slice of DestroySessionNone.
type DestroySessionOk ¶ added in v0.12.0
type DestroySessionOk struct { // SessionID field of DestroySessionOk. SessionID int64 }
DestroySessionOk represents TL type `destroy_session_ok#e22045fc`.
func (*DestroySessionOk) Decode ¶ added in v0.12.0
func (d *DestroySessionOk) Decode(b *bin.Buffer) error
Decode implements bin.Decoder.
func (*DestroySessionOk) Encode ¶ added in v0.12.0
func (d *DestroySessionOk) Encode(b *bin.Buffer) error
Encode implements bin.Encoder.
func (*DestroySessionOk) FillFrom ¶ added in v0.25.0
func (d *DestroySessionOk) FillFrom(from interface { GetSessionID() (value int64) })
FillFrom fills DestroySessionOk from given interface.
func (*DestroySessionOk) GetSessionID ¶ added in v0.21.0
func (d *DestroySessionOk) GetSessionID() (value int64)
GetSessionID returns value of SessionID field.
func (*DestroySessionOk) String ¶ added in v0.12.0
func (d *DestroySessionOk) String() string
String implements fmt.Stringer.
func (*DestroySessionOk) TypeID ¶ added in v0.21.0
func (*DestroySessionOk) TypeID() uint32
TypeID returns type id in TL schema.
func (*DestroySessionOk) TypeInfo ¶ added in v0.25.0
func (d *DestroySessionOk) TypeInfo() tdp.Type
TypeInfo returns info about TL type.
func (*DestroySessionOk) TypeName ¶ added in v0.25.0
func (*DestroySessionOk) TypeName() string
TypeName returns name of type in TL schema.
func (*DestroySessionOk) Zero ¶ added in v0.20.0
func (d *DestroySessionOk) Zero() bool
type DestroySessionOkArray ¶ added in v0.25.0
type DestroySessionOkArray []DestroySessionOk
DestroySessionOkArray is adapter for slice of DestroySessionOk.
func (DestroySessionOkArray) First ¶ added in v0.25.0
func (s DestroySessionOkArray) First() (v DestroySessionOk, ok bool)
First returns first element of slice (if exists).
func (DestroySessionOkArray) Last ¶ added in v0.25.0
func (s DestroySessionOkArray) Last() (v DestroySessionOk, ok bool)
Last returns last element of slice (if exists).
func (*DestroySessionOkArray) Pop ¶ added in v0.25.0
func (s *DestroySessionOkArray) Pop() (v DestroySessionOk, ok bool)
Pop returns last element of slice (if exists) and deletes it.
func (*DestroySessionOkArray) PopFirst ¶ added in v0.25.0
func (s *DestroySessionOkArray) PopFirst() (v DestroySessionOk, ok bool)
PopFirst returns first element of slice (if exists) and deletes it.
func (DestroySessionOkArray) Retain ¶ added in v0.25.0
func (s DestroySessionOkArray) Retain(keep func(x DestroySessionOk) bool) DestroySessionOkArray
Retain filters in-place slice of DestroySessionOk.
func (DestroySessionOkArray) Sort ¶ added in v0.25.0
func (s DestroySessionOkArray) Sort(less func(a, b DestroySessionOk) bool) DestroySessionOkArray
Sort sorts slice of DestroySessionOk.
func (DestroySessionOkArray) SortStable ¶ added in v0.25.0
func (s DestroySessionOkArray) SortStable(less func(a, b DestroySessionOk) bool) DestroySessionOkArray
SortStable sorts slice of DestroySessionOk.
type DestroySessionRequest ¶ added in v0.12.0
type DestroySessionRequest struct { // SessionID field of DestroySessionRequest. SessionID int64 }
DestroySessionRequest represents TL type `destroy_session#e7512126`.
func (*DestroySessionRequest) Decode ¶ added in v0.12.0
func (d *DestroySessionRequest) Decode(b *bin.Buffer) error
Decode implements bin.Decoder.
func (*DestroySessionRequest) Encode ¶ added in v0.12.0
func (d *DestroySessionRequest) Encode(b *bin.Buffer) error
Encode implements bin.Encoder.
func (*DestroySessionRequest) FillFrom ¶ added in v0.25.0
func (d *DestroySessionRequest) FillFrom(from interface { GetSessionID() (value int64) })
FillFrom fills DestroySessionRequest from given interface.
func (*DestroySessionRequest) GetSessionID ¶ added in v0.21.0
func (d *DestroySessionRequest) GetSessionID() (value int64)
GetSessionID returns value of SessionID field.
func (*DestroySessionRequest) String ¶ added in v0.12.0
func (d *DestroySessionRequest) String() string
String implements fmt.Stringer.
func (*DestroySessionRequest) TypeID ¶ added in v0.21.0
func (*DestroySessionRequest) TypeID() uint32
TypeID returns type id in TL schema.
func (*DestroySessionRequest) TypeInfo ¶ added in v0.25.0
func (d *DestroySessionRequest) TypeInfo() tdp.Type
TypeInfo returns info about TL type.
func (*DestroySessionRequest) TypeName ¶ added in v0.25.0
func (*DestroySessionRequest) TypeName() string
TypeName returns name of type in TL schema.
func (*DestroySessionRequest) Zero ¶ added in v0.20.0
func (d *DestroySessionRequest) Zero() bool
type DestroySessionResBox ¶ added in v0.12.0
type DestroySessionResBox struct {
DestroySessionRes DestroySessionResClass
}
DestroySessionRes boxes the DestroySessionResClass providing a helper.
type DestroySessionResClass ¶ added in v0.12.0
type DestroySessionResClass interface { bin.Encoder bin.Decoder // 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 ¶ added in v0.12.0
func DecodeDestroySessionRes(buf *bin.Buffer) (DestroySessionResClass, error)
DecodeDestroySessionRes implements binary de-serialization for DestroySessionResClass.
type DestroySessionResClassArray ¶ added in v0.25.0
type DestroySessionResClassArray []DestroySessionResClass
DestroySessionResClassArray is adapter for slice of DestroySessionResClass.
func (DestroySessionResClassArray) AsDestroySessionNone ¶ added in v0.25.0
func (s DestroySessionResClassArray) AsDestroySessionNone() (to DestroySessionNoneArray)
AsDestroySessionNone returns copy with only DestroySessionNone constructors.
func (DestroySessionResClassArray) AsDestroySessionOk ¶ added in v0.25.0
func (s DestroySessionResClassArray) AsDestroySessionOk() (to DestroySessionOkArray)
AsDestroySessionOk returns copy with only DestroySessionOk constructors.
func (DestroySessionResClassArray) First ¶ added in v0.25.0
func (s DestroySessionResClassArray) First() (v DestroySessionResClass, ok bool)
First returns first element of slice (if exists).
func (DestroySessionResClassArray) Last ¶ added in v0.25.0
func (s DestroySessionResClassArray) Last() (v DestroySessionResClass, ok bool)
Last returns last element of slice (if exists).
func (*DestroySessionResClassArray) Pop ¶ added in v0.25.0
func (s *DestroySessionResClassArray) Pop() (v DestroySessionResClass, ok bool)
Pop returns last element of slice (if exists) and deletes it.
func (*DestroySessionResClassArray) PopFirst ¶ added in v0.25.0
func (s *DestroySessionResClassArray) PopFirst() (v DestroySessionResClass, ok bool)
PopFirst returns first element of slice (if exists) and deletes it.
func (DestroySessionResClassArray) Retain ¶ added in v0.25.0
func (s DestroySessionResClassArray) Retain(keep func(x DestroySessionResClass) bool) DestroySessionResClassArray
Retain filters in-place slice of DestroySessionResClass.
func (DestroySessionResClassArray) Sort ¶ added in v0.25.0
func (s DestroySessionResClassArray) Sort(less func(a, b DestroySessionResClass) bool) DestroySessionResClassArray
Sort sorts slice of DestroySessionResClass.
func (DestroySessionResClassArray) SortStable ¶ added in v0.25.0
func (s DestroySessionResClassArray) SortStable(less func(a, b DestroySessionResClass) bool) DestroySessionResClassArray
SortStable sorts slice of 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) FillFrom ¶ added in v0.25.0
func (d *DhGenFail) FillFrom(from interface { GetNonce() (value bin.Int128) GetServerNonce() (value bin.Int128) GetNewNonceHash3() (value bin.Int128) })
FillFrom fills DhGenFail from given interface.
func (*DhGenFail) GetNewNonceHash3 ¶ added in v0.21.0
GetNewNonceHash3 returns value of NewNonceHash3 field.
func (*DhGenFail) GetServerNonce ¶ added in v0.21.0
GetServerNonce returns value of ServerNonce field.
type DhGenFailArray ¶ added in v0.25.0
type DhGenFailArray []DhGenFail
DhGenFailArray is adapter for slice of DhGenFail.
func (DhGenFailArray) First ¶ added in v0.25.0
func (s DhGenFailArray) First() (v DhGenFail, ok bool)
First returns first element of slice (if exists).
func (DhGenFailArray) Last ¶ added in v0.25.0
func (s DhGenFailArray) Last() (v DhGenFail, ok bool)
Last returns last element of slice (if exists).
func (*DhGenFailArray) Pop ¶ added in v0.25.0
func (s *DhGenFailArray) Pop() (v DhGenFail, ok bool)
Pop returns last element of slice (if exists) and deletes it.
func (*DhGenFailArray) PopFirst ¶ added in v0.25.0
func (s *DhGenFailArray) PopFirst() (v DhGenFail, ok bool)
PopFirst returns first element of slice (if exists) and deletes it.
func (DhGenFailArray) Retain ¶ added in v0.25.0
func (s DhGenFailArray) Retain(keep func(x DhGenFail) bool) DhGenFailArray
Retain filters in-place slice of DhGenFail.
func (DhGenFailArray) Sort ¶ added in v0.25.0
func (s DhGenFailArray) Sort(less func(a, b DhGenFail) bool) DhGenFailArray
Sort sorts slice of DhGenFail.
func (DhGenFailArray) SortStable ¶ added in v0.25.0
func (s DhGenFailArray) SortStable(less func(a, b DhGenFail) bool) DhGenFailArray
SortStable sorts slice of DhGenFail.
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) FillFrom ¶ added in v0.25.0
func (d *DhGenOk) FillFrom(from interface { GetNonce() (value bin.Int128) GetServerNonce() (value bin.Int128) GetNewNonceHash1() (value bin.Int128) })
FillFrom fills DhGenOk from given interface.
func (*DhGenOk) GetNewNonceHash1 ¶ added in v0.21.0
GetNewNonceHash1 returns value of NewNonceHash1 field.
func (*DhGenOk) GetServerNonce ¶ added in v0.21.0
GetServerNonce returns value of ServerNonce field.
type DhGenOkArray ¶ added in v0.25.0
type DhGenOkArray []DhGenOk
DhGenOkArray is adapter for slice of DhGenOk.
func (DhGenOkArray) First ¶ added in v0.25.0
func (s DhGenOkArray) First() (v DhGenOk, ok bool)
First returns first element of slice (if exists).
func (DhGenOkArray) Last ¶ added in v0.25.0
func (s DhGenOkArray) Last() (v DhGenOk, ok bool)
Last returns last element of slice (if exists).
func (*DhGenOkArray) Pop ¶ added in v0.25.0
func (s *DhGenOkArray) Pop() (v DhGenOk, ok bool)
Pop returns last element of slice (if exists) and deletes it.
func (*DhGenOkArray) PopFirst ¶ added in v0.25.0
func (s *DhGenOkArray) PopFirst() (v DhGenOk, ok bool)
PopFirst returns first element of slice (if exists) and deletes it.
func (DhGenOkArray) Retain ¶ added in v0.25.0
func (s DhGenOkArray) Retain(keep func(x DhGenOk) bool) DhGenOkArray
Retain filters in-place slice of DhGenOk.
func (DhGenOkArray) Sort ¶ added in v0.25.0
func (s DhGenOkArray) Sort(less func(a, b DhGenOk) bool) DhGenOkArray
Sort sorts slice of DhGenOk.
func (DhGenOkArray) SortStable ¶ added in v0.25.0
func (s DhGenOkArray) SortStable(less func(a, b DhGenOk) bool) DhGenOkArray
SortStable sorts slice of DhGenOk.
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) Encode ¶
func (d *DhGenRetry) Encode(b *bin.Buffer) error
Encode implements bin.Encoder.
func (*DhGenRetry) FillFrom ¶ added in v0.25.0
func (d *DhGenRetry) FillFrom(from interface { GetNonce() (value bin.Int128) GetServerNonce() (value bin.Int128) GetNewNonceHash2() (value bin.Int128) })
FillFrom fills DhGenRetry from given interface.
func (*DhGenRetry) GetNewNonceHash2 ¶ added in v0.21.0
func (d *DhGenRetry) GetNewNonceHash2() (value bin.Int128)
GetNewNonceHash2 returns value of NewNonceHash2 field.
func (*DhGenRetry) GetNonce ¶ added in v0.21.0
func (d *DhGenRetry) GetNonce() (value bin.Int128)
GetNonce returns value of Nonce field.
func (*DhGenRetry) GetServerNonce ¶ added in v0.21.0
func (d *DhGenRetry) GetServerNonce() (value bin.Int128)
GetServerNonce returns value of ServerNonce field.
func (*DhGenRetry) String ¶ added in v0.12.0
func (d *DhGenRetry) String() string
String implements fmt.Stringer.
func (*DhGenRetry) TypeID ¶ added in v0.21.0
func (*DhGenRetry) TypeID() uint32
TypeID returns type id in TL schema.
func (*DhGenRetry) TypeInfo ¶ added in v0.25.0
func (d *DhGenRetry) TypeInfo() tdp.Type
TypeInfo returns info about TL type.
func (*DhGenRetry) TypeName ¶ added in v0.25.0
func (*DhGenRetry) TypeName() string
TypeName returns name of type in TL schema.
func (*DhGenRetry) Zero ¶ added in v0.20.0
func (d *DhGenRetry) Zero() bool
type DhGenRetryArray ¶ added in v0.25.0
type DhGenRetryArray []DhGenRetry
DhGenRetryArray is adapter for slice of DhGenRetry.
func (DhGenRetryArray) First ¶ added in v0.25.0
func (s DhGenRetryArray) First() (v DhGenRetry, ok bool)
First returns first element of slice (if exists).
func (DhGenRetryArray) Last ¶ added in v0.25.0
func (s DhGenRetryArray) Last() (v DhGenRetry, ok bool)
Last returns last element of slice (if exists).
func (*DhGenRetryArray) Pop ¶ added in v0.25.0
func (s *DhGenRetryArray) Pop() (v DhGenRetry, ok bool)
Pop returns last element of slice (if exists) and deletes it.
func (*DhGenRetryArray) PopFirst ¶ added in v0.25.0
func (s *DhGenRetryArray) PopFirst() (v DhGenRetry, ok bool)
PopFirst returns first element of slice (if exists) and deletes it.
func (DhGenRetryArray) Retain ¶ added in v0.25.0
func (s DhGenRetryArray) Retain(keep func(x DhGenRetry) bool) DhGenRetryArray
Retain filters in-place slice of DhGenRetry.
func (DhGenRetryArray) Sort ¶ added in v0.25.0
func (s DhGenRetryArray) Sort(less func(a, b DhGenRetry) bool) DhGenRetryArray
Sort sorts slice of DhGenRetry.
func (DhGenRetryArray) SortStable ¶ added in v0.25.0
func (s DhGenRetryArray) SortStable(less func(a, b DhGenRetry) bool) DhGenRetryArray
SortStable sorts slice of DhGenRetry.
type FutureSalt ¶ added in v0.12.0
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 ¶ added in v0.12.0
func (f *FutureSalt) Decode(b *bin.Buffer) error
Decode implements bin.Decoder.
func (*FutureSalt) Encode ¶ added in v0.12.0
func (f *FutureSalt) Encode(b *bin.Buffer) error
Encode implements bin.Encoder.
func (*FutureSalt) FillFrom ¶ added in v0.25.0
func (f *FutureSalt) FillFrom(from interface { GetValidSince() (value int) GetValidUntil() (value int) GetSalt() (value int64) })
FillFrom fills FutureSalt from given interface.
func (*FutureSalt) GetSalt ¶ added in v0.21.0
func (f *FutureSalt) GetSalt() (value int64)
GetSalt returns value of Salt field.
func (*FutureSalt) GetValidSince ¶ added in v0.21.0
func (f *FutureSalt) GetValidSince() (value int)
GetValidSince returns value of ValidSince field.
func (*FutureSalt) GetValidUntil ¶ added in v0.21.0
func (f *FutureSalt) GetValidUntil() (value int)
GetValidUntil returns value of ValidUntil field.
func (*FutureSalt) String ¶ added in v0.12.0
func (f *FutureSalt) String() string
String implements fmt.Stringer.
func (*FutureSalt) TypeID ¶ added in v0.21.0
func (*FutureSalt) TypeID() uint32
TypeID returns type id in TL schema.
func (*FutureSalt) TypeInfo ¶ added in v0.25.0
func (f *FutureSalt) TypeInfo() tdp.Type
TypeInfo returns info about TL type.
func (*FutureSalt) TypeName ¶ added in v0.25.0
func (*FutureSalt) TypeName() string
TypeName returns name of type in TL schema.
func (*FutureSalt) Zero ¶ added in v0.20.0
func (f *FutureSalt) Zero() bool
type FutureSalts ¶ added in v0.12.0
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 ¶ added in v0.12.0
func (f *FutureSalts) Decode(b *bin.Buffer) error
Decode implements bin.Decoder.
func (*FutureSalts) Encode ¶ added in v0.12.0
func (f *FutureSalts) Encode(b *bin.Buffer) error
Encode implements bin.Encoder.
func (*FutureSalts) FillFrom ¶ added in v0.25.0
func (f *FutureSalts) FillFrom(from interface { GetReqMsgID() (value int64) GetNow() (value int) GetSalts() (value []FutureSalt) })
FillFrom fills FutureSalts from given interface.
func (*FutureSalts) GetNow ¶ added in v0.21.0
func (f *FutureSalts) GetNow() (value int)
GetNow returns value of Now field.
func (*FutureSalts) GetReqMsgID ¶ added in v0.21.0
func (f *FutureSalts) GetReqMsgID() (value int64)
GetReqMsgID returns value of ReqMsgID field.
func (*FutureSalts) GetSalts ¶ added in v0.21.0
func (f *FutureSalts) GetSalts() (value []FutureSalt)
GetSalts returns value of Salts field.
func (*FutureSalts) String ¶ added in v0.12.0
func (f *FutureSalts) String() string
String implements fmt.Stringer.
func (*FutureSalts) TypeID ¶ added in v0.21.0
func (*FutureSalts) TypeID() uint32
TypeID returns type id in TL schema.
func (*FutureSalts) TypeInfo ¶ added in v0.25.0
func (f *FutureSalts) TypeInfo() tdp.Type
TypeInfo returns info about TL type.
func (*FutureSalts) TypeName ¶ added in v0.25.0
func (*FutureSalts) TypeName() string
TypeName returns name of type in TL schema.
func (*FutureSalts) Zero ¶ added in v0.20.0
func (f *FutureSalts) Zero() bool
type GetFutureSaltsRequest ¶ added in v0.12.0
type GetFutureSaltsRequest struct { // Num field of GetFutureSaltsRequest. Num int }
GetFutureSaltsRequest represents TL type `get_future_salts#b921bd04`.
func (*GetFutureSaltsRequest) Decode ¶ added in v0.12.0
func (g *GetFutureSaltsRequest) Decode(b *bin.Buffer) error
Decode implements bin.Decoder.
func (*GetFutureSaltsRequest) Encode ¶ added in v0.12.0
func (g *GetFutureSaltsRequest) Encode(b *bin.Buffer) error
Encode implements bin.Encoder.
func (*GetFutureSaltsRequest) FillFrom ¶ added in v0.25.0
func (g *GetFutureSaltsRequest) FillFrom(from interface { GetNum() (value int) })
FillFrom fills GetFutureSaltsRequest from given interface.
func (*GetFutureSaltsRequest) GetNum ¶ added in v0.21.0
func (g *GetFutureSaltsRequest) GetNum() (value int)
GetNum returns value of Num field.
func (*GetFutureSaltsRequest) String ¶ added in v0.12.0
func (g *GetFutureSaltsRequest) String() string
String implements fmt.Stringer.
func (*GetFutureSaltsRequest) TypeID ¶ added in v0.21.0
func (*GetFutureSaltsRequest) TypeID() uint32
TypeID returns type id in TL schema.
func (*GetFutureSaltsRequest) TypeInfo ¶ added in v0.25.0
func (g *GetFutureSaltsRequest) TypeInfo() tdp.Type
TypeInfo returns info about TL type.
func (*GetFutureSaltsRequest) TypeName ¶ added in v0.25.0
func (*GetFutureSaltsRequest) TypeName() string
TypeName returns name of type in TL schema.
func (*GetFutureSaltsRequest) Zero ¶ added in v0.20.0
func (g *GetFutureSaltsRequest) Zero() bool
type GzipPacked ¶ added in v0.12.0
type GzipPacked struct { // PackedData field of GzipPacked. PackedData []byte }
GzipPacked represents TL type `gzip_packed#3072cfa1`.
func (*GzipPacked) Decode ¶ added in v0.12.0
func (g *GzipPacked) Decode(b *bin.Buffer) error
Decode implements bin.Decoder.
func (*GzipPacked) Encode ¶ added in v0.12.0
func (g *GzipPacked) Encode(b *bin.Buffer) error
Encode implements bin.Encoder.
func (*GzipPacked) FillFrom ¶ added in v0.25.0
func (g *GzipPacked) FillFrom(from interface { GetPackedData() (value []byte) })
FillFrom fills GzipPacked from given interface.
func (*GzipPacked) GetPackedData ¶ added in v0.21.0
func (g *GzipPacked) GetPackedData() (value []byte)
GetPackedData returns value of PackedData field.
func (*GzipPacked) String ¶ added in v0.12.0
func (g *GzipPacked) String() string
String implements fmt.Stringer.
func (*GzipPacked) TypeID ¶ added in v0.21.0
func (*GzipPacked) TypeID() uint32
TypeID returns type id in TL schema.
func (*GzipPacked) TypeInfo ¶ added in v0.25.0
func (g *GzipPacked) TypeInfo() tdp.Type
TypeInfo returns info about TL type.
func (*GzipPacked) TypeName ¶ added in v0.25.0
func (*GzipPacked) TypeName() string
TypeName returns name of type in TL schema.
func (*GzipPacked) Zero ¶ added in v0.20.0
func (g *GzipPacked) Zero() bool
type HTTPWaitRequest ¶ added in v0.12.0
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 ¶ added in v0.12.0
func (h *HTTPWaitRequest) Decode(b *bin.Buffer) error
Decode implements bin.Decoder.
func (*HTTPWaitRequest) Encode ¶ added in v0.12.0
func (h *HTTPWaitRequest) Encode(b *bin.Buffer) error
Encode implements bin.Encoder.
func (*HTTPWaitRequest) FillFrom ¶ added in v0.25.0
func (h *HTTPWaitRequest) FillFrom(from interface { GetMaxDelay() (value int) GetWaitAfter() (value int) GetMaxWait() (value int) })
FillFrom fills HTTPWaitRequest from given interface.
func (*HTTPWaitRequest) GetMaxDelay ¶ added in v0.21.0
func (h *HTTPWaitRequest) GetMaxDelay() (value int)
GetMaxDelay returns value of MaxDelay field.
func (*HTTPWaitRequest) GetMaxWait ¶ added in v0.21.0
func (h *HTTPWaitRequest) GetMaxWait() (value int)
GetMaxWait returns value of MaxWait field.
func (*HTTPWaitRequest) GetWaitAfter ¶ added in v0.21.0
func (h *HTTPWaitRequest) GetWaitAfter() (value int)
GetWaitAfter returns value of WaitAfter field.
func (*HTTPWaitRequest) String ¶ added in v0.12.0
func (h *HTTPWaitRequest) String() string
String implements fmt.Stringer.
func (*HTTPWaitRequest) TypeID ¶ added in v0.21.0
func (*HTTPWaitRequest) TypeID() uint32
TypeID returns type id in TL schema.
func (*HTTPWaitRequest) TypeInfo ¶ added in v0.25.0
func (h *HTTPWaitRequest) TypeInfo() tdp.Type
TypeInfo returns info about TL type.
func (*HTTPWaitRequest) TypeName ¶ added in v0.25.0
func (*HTTPWaitRequest) TypeName() string
TypeName returns name of type in TL schema.
func (*HTTPWaitRequest) Zero ¶ added in v0.20.0
func (h *HTTPWaitRequest) Zero() bool
type Invoker ¶
type Invoker interface {
InvokeRaw(ctx context.Context, input bin.Encoder, output bin.Decoder) error
}
Invoker can invoke raw MTProto rpc calls.
type Message ¶ added in v0.12.0
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) FillFrom ¶ added in v0.25.0
func (m *Message) FillFrom(from interface { GetMsgID() (value int64) GetSeqno() (value int) GetBytes() (value int) GetBody() (value GzipPacked) })
FillFrom fills Message from given interface.
func (*Message) GetBody ¶ added in v0.21.0
func (m *Message) GetBody() (value GzipPacked)
GetBody returns value of Body field.
type MsgCopy ¶ added in v0.12.0
type MsgCopy struct { // OrigMessage field of MsgCopy. OrigMessage Message }
MsgCopy represents TL type `msg_copy#e06046b2`.
func (*MsgCopy) GetOrigMessage ¶ added in v0.21.0
GetOrigMessage returns value of OrigMessage field.
type MsgDetailedInfo ¶ added in v0.12.0
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 ¶ added in v0.12.0
func (m *MsgDetailedInfo) Decode(b *bin.Buffer) error
Decode implements bin.Decoder.
func (*MsgDetailedInfo) Encode ¶ added in v0.12.0
func (m *MsgDetailedInfo) Encode(b *bin.Buffer) error
Encode implements bin.Encoder.
func (*MsgDetailedInfo) FillFrom ¶ added in v0.25.0
func (m *MsgDetailedInfo) FillFrom(from interface { GetMsgID() (value int64) GetAnswerMsgID() (value int64) GetBytes() (value int) GetStatus() (value int) })
FillFrom fills MsgDetailedInfo from given interface.
func (*MsgDetailedInfo) GetAnswerMsgID ¶ added in v0.21.0
func (m *MsgDetailedInfo) GetAnswerMsgID() (value int64)
GetAnswerMsgID returns value of AnswerMsgID field.
func (*MsgDetailedInfo) GetBytes ¶ added in v0.21.0
func (m *MsgDetailedInfo) GetBytes() (value int)
GetBytes returns value of Bytes field.
func (*MsgDetailedInfo) GetMsgID ¶ added in v0.21.0
func (m *MsgDetailedInfo) GetMsgID() (value int64)
GetMsgID returns value of MsgID field.
func (*MsgDetailedInfo) GetStatus ¶ added in v0.21.0
func (m *MsgDetailedInfo) GetStatus() (value int)
GetStatus returns value of Status field.
func (*MsgDetailedInfo) String ¶ added in v0.12.0
func (m *MsgDetailedInfo) String() string
String implements fmt.Stringer.
func (*MsgDetailedInfo) TypeID ¶ added in v0.21.0
func (*MsgDetailedInfo) TypeID() uint32
TypeID returns type id in TL schema.
func (*MsgDetailedInfo) TypeInfo ¶ added in v0.25.0
func (m *MsgDetailedInfo) TypeInfo() tdp.Type
TypeInfo returns info about TL type.
func (*MsgDetailedInfo) TypeName ¶ added in v0.25.0
func (*MsgDetailedInfo) TypeName() string
TypeName returns name of type in TL schema.
func (*MsgDetailedInfo) Zero ¶ added in v0.20.0
func (m *MsgDetailedInfo) Zero() bool
type MsgDetailedInfoArray ¶ added in v0.25.0
type MsgDetailedInfoArray []MsgDetailedInfo
MsgDetailedInfoArray is adapter for slice of MsgDetailedInfo.
func (MsgDetailedInfoArray) First ¶ added in v0.25.0
func (s MsgDetailedInfoArray) First() (v MsgDetailedInfo, ok bool)
First returns first element of slice (if exists).
func (MsgDetailedInfoArray) Last ¶ added in v0.25.0
func (s MsgDetailedInfoArray) Last() (v MsgDetailedInfo, ok bool)
Last returns last element of slice (if exists).
func (*MsgDetailedInfoArray) Pop ¶ added in v0.25.0
func (s *MsgDetailedInfoArray) Pop() (v MsgDetailedInfo, ok bool)
Pop returns last element of slice (if exists) and deletes it.
func (*MsgDetailedInfoArray) PopFirst ¶ added in v0.25.0
func (s *MsgDetailedInfoArray) PopFirst() (v MsgDetailedInfo, ok bool)
PopFirst returns first element of slice (if exists) and deletes it.
func (MsgDetailedInfoArray) Retain ¶ added in v0.25.0
func (s MsgDetailedInfoArray) Retain(keep func(x MsgDetailedInfo) bool) MsgDetailedInfoArray
Retain filters in-place slice of MsgDetailedInfo.
func (MsgDetailedInfoArray) Sort ¶ added in v0.25.0
func (s MsgDetailedInfoArray) Sort(less func(a, b MsgDetailedInfo) bool) MsgDetailedInfoArray
Sort sorts slice of MsgDetailedInfo.
func (MsgDetailedInfoArray) SortStable ¶ added in v0.25.0
func (s MsgDetailedInfoArray) SortStable(less func(a, b MsgDetailedInfo) bool) MsgDetailedInfoArray
SortStable sorts slice of MsgDetailedInfo.
type MsgDetailedInfoBox ¶ added in v0.12.0
type MsgDetailedInfoBox struct {
MsgDetailedInfo MsgDetailedInfoClass
}
MsgDetailedInfo boxes the MsgDetailedInfoClass providing a helper.
type MsgDetailedInfoClass ¶ added in v0.12.0
type MsgDetailedInfoClass interface { bin.Encoder bin.Decoder // 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 ¶ added in v0.12.0
func DecodeMsgDetailedInfo(buf *bin.Buffer) (MsgDetailedInfoClass, error)
DecodeMsgDetailedInfo implements binary de-serialization for MsgDetailedInfoClass.
type MsgDetailedInfoClassArray ¶ added in v0.25.0
type MsgDetailedInfoClassArray []MsgDetailedInfoClass
MsgDetailedInfoClassArray is adapter for slice of MsgDetailedInfoClass.
func (MsgDetailedInfoClassArray) AsMsgDetailedInfo ¶ added in v0.25.0
func (s MsgDetailedInfoClassArray) AsMsgDetailedInfo() (to MsgDetailedInfoArray)
AsMsgDetailedInfo returns copy with only MsgDetailedInfo constructors.
func (MsgDetailedInfoClassArray) AsMsgNewDetailedInfo ¶ added in v0.25.0
func (s MsgDetailedInfoClassArray) AsMsgNewDetailedInfo() (to MsgNewDetailedInfoArray)
AsMsgNewDetailedInfo returns copy with only MsgNewDetailedInfo constructors.
func (MsgDetailedInfoClassArray) First ¶ added in v0.25.0
func (s MsgDetailedInfoClassArray) First() (v MsgDetailedInfoClass, ok bool)
First returns first element of slice (if exists).
func (MsgDetailedInfoClassArray) Last ¶ added in v0.25.0
func (s MsgDetailedInfoClassArray) Last() (v MsgDetailedInfoClass, ok bool)
Last returns last element of slice (if exists).
func (*MsgDetailedInfoClassArray) Pop ¶ added in v0.25.0
func (s *MsgDetailedInfoClassArray) Pop() (v MsgDetailedInfoClass, ok bool)
Pop returns last element of slice (if exists) and deletes it.
func (*MsgDetailedInfoClassArray) PopFirst ¶ added in v0.25.0
func (s *MsgDetailedInfoClassArray) PopFirst() (v MsgDetailedInfoClass, ok bool)
PopFirst returns first element of slice (if exists) and deletes it.
func (MsgDetailedInfoClassArray) Retain ¶ added in v0.25.0
func (s MsgDetailedInfoClassArray) Retain(keep func(x MsgDetailedInfoClass) bool) MsgDetailedInfoClassArray
Retain filters in-place slice of MsgDetailedInfoClass.
func (MsgDetailedInfoClassArray) Sort ¶ added in v0.25.0
func (s MsgDetailedInfoClassArray) Sort(less func(a, b MsgDetailedInfoClass) bool) MsgDetailedInfoClassArray
Sort sorts slice of MsgDetailedInfoClass.
func (MsgDetailedInfoClassArray) SortStable ¶ added in v0.25.0
func (s MsgDetailedInfoClassArray) SortStable(less func(a, b MsgDetailedInfoClass) bool) MsgDetailedInfoClassArray
SortStable sorts slice of MsgDetailedInfoClass.
type MsgNewDetailedInfo ¶ added in v0.12.0
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 ¶ added in v0.12.0
func (m *MsgNewDetailedInfo) Decode(b *bin.Buffer) error
Decode implements bin.Decoder.
func (*MsgNewDetailedInfo) Encode ¶ added in v0.12.0
func (m *MsgNewDetailedInfo) Encode(b *bin.Buffer) error
Encode implements bin.Encoder.
func (*MsgNewDetailedInfo) FillFrom ¶ added in v0.25.0
func (m *MsgNewDetailedInfo) FillFrom(from interface { GetAnswerMsgID() (value int64) GetBytes() (value int) GetStatus() (value int) })
FillFrom fills MsgNewDetailedInfo from given interface.
func (*MsgNewDetailedInfo) GetAnswerMsgID ¶ added in v0.21.0
func (m *MsgNewDetailedInfo) GetAnswerMsgID() (value int64)
GetAnswerMsgID returns value of AnswerMsgID field.
func (*MsgNewDetailedInfo) GetBytes ¶ added in v0.21.0
func (m *MsgNewDetailedInfo) GetBytes() (value int)
GetBytes returns value of Bytes field.
func (*MsgNewDetailedInfo) GetStatus ¶ added in v0.21.0
func (m *MsgNewDetailedInfo) GetStatus() (value int)
GetStatus returns value of Status field.
func (*MsgNewDetailedInfo) String ¶ added in v0.12.0
func (m *MsgNewDetailedInfo) String() string
String implements fmt.Stringer.
func (*MsgNewDetailedInfo) TypeID ¶ added in v0.21.0
func (*MsgNewDetailedInfo) TypeID() uint32
TypeID returns type id in TL schema.
func (*MsgNewDetailedInfo) TypeInfo ¶ added in v0.25.0
func (m *MsgNewDetailedInfo) TypeInfo() tdp.Type
TypeInfo returns info about TL type.
func (*MsgNewDetailedInfo) TypeName ¶ added in v0.25.0
func (*MsgNewDetailedInfo) TypeName() string
TypeName returns name of type in TL schema.
func (*MsgNewDetailedInfo) Zero ¶ added in v0.20.0
func (m *MsgNewDetailedInfo) Zero() bool
type MsgNewDetailedInfoArray ¶ added in v0.25.0
type MsgNewDetailedInfoArray []MsgNewDetailedInfo
MsgNewDetailedInfoArray is adapter for slice of MsgNewDetailedInfo.
func (MsgNewDetailedInfoArray) First ¶ added in v0.25.0
func (s MsgNewDetailedInfoArray) First() (v MsgNewDetailedInfo, ok bool)
First returns first element of slice (if exists).
func (MsgNewDetailedInfoArray) Last ¶ added in v0.25.0
func (s MsgNewDetailedInfoArray) Last() (v MsgNewDetailedInfo, ok bool)
Last returns last element of slice (if exists).
func (*MsgNewDetailedInfoArray) Pop ¶ added in v0.25.0
func (s *MsgNewDetailedInfoArray) Pop() (v MsgNewDetailedInfo, ok bool)
Pop returns last element of slice (if exists) and deletes it.
func (*MsgNewDetailedInfoArray) PopFirst ¶ added in v0.25.0
func (s *MsgNewDetailedInfoArray) PopFirst() (v MsgNewDetailedInfo, ok bool)
PopFirst returns first element of slice (if exists) and deletes it.
func (MsgNewDetailedInfoArray) Retain ¶ added in v0.25.0
func (s MsgNewDetailedInfoArray) Retain(keep func(x MsgNewDetailedInfo) bool) MsgNewDetailedInfoArray
Retain filters in-place slice of MsgNewDetailedInfo.
func (MsgNewDetailedInfoArray) Sort ¶ added in v0.25.0
func (s MsgNewDetailedInfoArray) Sort(less func(a, b MsgNewDetailedInfo) bool) MsgNewDetailedInfoArray
Sort sorts slice of MsgNewDetailedInfo.
func (MsgNewDetailedInfoArray) SortStable ¶ added in v0.25.0
func (s MsgNewDetailedInfoArray) SortStable(less func(a, b MsgNewDetailedInfo) bool) MsgNewDetailedInfoArray
SortStable sorts slice of MsgNewDetailedInfo.
type MsgResendReq ¶ added in v0.12.0
type MsgResendReq struct { // MsgIDs field of MsgResendReq. MsgIDs []int64 }
MsgResendReq represents TL type `msg_resend_req#7d861a08`.
func (*MsgResendReq) Decode ¶ added in v0.12.0
func (m *MsgResendReq) Decode(b *bin.Buffer) error
Decode implements bin.Decoder.
func (*MsgResendReq) Encode ¶ added in v0.12.0
func (m *MsgResendReq) Encode(b *bin.Buffer) error
Encode implements bin.Encoder.
func (*MsgResendReq) FillFrom ¶ added in v0.25.0
func (m *MsgResendReq) FillFrom(from interface { GetMsgIDs() (value []int64) })
FillFrom fills MsgResendReq from given interface.
func (*MsgResendReq) GetMsgIDs ¶ added in v0.26.0
func (m *MsgResendReq) GetMsgIDs() (value []int64)
GetMsgIDs returns value of MsgIDs field.
func (*MsgResendReq) String ¶ added in v0.12.0
func (m *MsgResendReq) String() string
String implements fmt.Stringer.
func (*MsgResendReq) TypeID ¶ added in v0.21.0
func (*MsgResendReq) TypeID() uint32
TypeID returns type id in TL schema.
func (*MsgResendReq) TypeInfo ¶ added in v0.25.0
func (m *MsgResendReq) TypeInfo() tdp.Type
TypeInfo returns info about TL type.
func (*MsgResendReq) TypeName ¶ added in v0.25.0
func (*MsgResendReq) TypeName() string
TypeName returns name of type in TL schema.
func (*MsgResendReq) Zero ¶ added in v0.20.0
func (m *MsgResendReq) Zero() bool
type MsgsAck ¶
type MsgsAck struct { // MsgIDs field of MsgsAck. MsgIDs []int64 }
MsgsAck represents TL type `msgs_ack#62d6b459`.
type MsgsAllInfo ¶ added in v0.12.0
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 ¶ added in v0.12.0
func (m *MsgsAllInfo) Decode(b *bin.Buffer) error
Decode implements bin.Decoder.
func (*MsgsAllInfo) Encode ¶ added in v0.12.0
func (m *MsgsAllInfo) Encode(b *bin.Buffer) error
Encode implements bin.Encoder.
func (*MsgsAllInfo) FillFrom ¶ added in v0.25.0
func (m *MsgsAllInfo) FillFrom(from interface { GetMsgIDs() (value []int64) GetInfo() (value []byte) })
FillFrom fills MsgsAllInfo from given interface.
func (*MsgsAllInfo) GetInfo ¶ added in v0.21.0
func (m *MsgsAllInfo) GetInfo() (value []byte)
GetInfo returns value of Info field.
func (*MsgsAllInfo) GetMsgIDs ¶ added in v0.26.0
func (m *MsgsAllInfo) GetMsgIDs() (value []int64)
GetMsgIDs returns value of MsgIDs field.
func (*MsgsAllInfo) String ¶ added in v0.12.0
func (m *MsgsAllInfo) String() string
String implements fmt.Stringer.
func (*MsgsAllInfo) TypeID ¶ added in v0.21.0
func (*MsgsAllInfo) TypeID() uint32
TypeID returns type id in TL schema.
func (*MsgsAllInfo) TypeInfo ¶ added in v0.25.0
func (m *MsgsAllInfo) TypeInfo() tdp.Type
TypeInfo returns info about TL type.
func (*MsgsAllInfo) TypeName ¶ added in v0.25.0
func (*MsgsAllInfo) TypeName() string
TypeName returns name of type in TL schema.
func (*MsgsAllInfo) Zero ¶ added in v0.20.0
func (m *MsgsAllInfo) Zero() bool
type MsgsStateInfo ¶ added in v0.12.0
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 ¶ added in v0.12.0
func (m *MsgsStateInfo) Decode(b *bin.Buffer) error
Decode implements bin.Decoder.
func (*MsgsStateInfo) Encode ¶ added in v0.12.0
func (m *MsgsStateInfo) Encode(b *bin.Buffer) error
Encode implements bin.Encoder.
func (*MsgsStateInfo) FillFrom ¶ added in v0.25.0
func (m *MsgsStateInfo) FillFrom(from interface { GetReqMsgID() (value int64) GetInfo() (value []byte) })
FillFrom fills MsgsStateInfo from given interface.
func (*MsgsStateInfo) GetInfo ¶ added in v0.21.0
func (m *MsgsStateInfo) GetInfo() (value []byte)
GetInfo returns value of Info field.
func (*MsgsStateInfo) GetReqMsgID ¶ added in v0.21.0
func (m *MsgsStateInfo) GetReqMsgID() (value int64)
GetReqMsgID returns value of ReqMsgID field.
func (*MsgsStateInfo) String ¶ added in v0.12.0
func (m *MsgsStateInfo) String() string
String implements fmt.Stringer.
func (*MsgsStateInfo) TypeID ¶ added in v0.21.0
func (*MsgsStateInfo) TypeID() uint32
TypeID returns type id in TL schema.
func (*MsgsStateInfo) TypeInfo ¶ added in v0.25.0
func (m *MsgsStateInfo) TypeInfo() tdp.Type
TypeInfo returns info about TL type.
func (*MsgsStateInfo) TypeName ¶ added in v0.25.0
func (*MsgsStateInfo) TypeName() string
TypeName returns name of type in TL schema.
func (*MsgsStateInfo) Zero ¶ added in v0.20.0
func (m *MsgsStateInfo) Zero() bool
type MsgsStateReq ¶ added in v0.12.0
type MsgsStateReq struct { // MsgIDs field of MsgsStateReq. MsgIDs []int64 }
MsgsStateReq represents TL type `msgs_state_req#da69fb52`.
func (*MsgsStateReq) Decode ¶ added in v0.12.0
func (m *MsgsStateReq) Decode(b *bin.Buffer) error
Decode implements bin.Decoder.
func (*MsgsStateReq) Encode ¶ added in v0.12.0
func (m *MsgsStateReq) Encode(b *bin.Buffer) error
Encode implements bin.Encoder.
func (*MsgsStateReq) FillFrom ¶ added in v0.25.0
func (m *MsgsStateReq) FillFrom(from interface { GetMsgIDs() (value []int64) })
FillFrom fills MsgsStateReq from given interface.
func (*MsgsStateReq) GetMsgIDs ¶ added in v0.26.0
func (m *MsgsStateReq) GetMsgIDs() (value []int64)
GetMsgIDs returns value of MsgIDs field.
func (*MsgsStateReq) String ¶ added in v0.12.0
func (m *MsgsStateReq) String() string
String implements fmt.Stringer.
func (*MsgsStateReq) TypeID ¶ added in v0.21.0
func (*MsgsStateReq) TypeID() uint32
TypeID returns type id in TL schema.
func (*MsgsStateReq) TypeInfo ¶ added in v0.25.0
func (m *MsgsStateReq) TypeInfo() tdp.Type
TypeInfo returns info about TL type.
func (*MsgsStateReq) TypeName ¶ added in v0.25.0
func (*MsgsStateReq) TypeName() string
TypeName returns name of type in TL schema.
func (*MsgsStateReq) Zero ¶ added in v0.20.0
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) Encode ¶
func (n *NewSessionCreated) Encode(b *bin.Buffer) error
Encode implements bin.Encoder.
func (*NewSessionCreated) FillFrom ¶ added in v0.25.0
func (n *NewSessionCreated) FillFrom(from interface { GetFirstMsgID() (value int64) GetUniqueID() (value int64) GetServerSalt() (value int64) })
FillFrom fills NewSessionCreated from given interface.
func (*NewSessionCreated) GetFirstMsgID ¶ added in v0.21.0
func (n *NewSessionCreated) GetFirstMsgID() (value int64)
GetFirstMsgID returns value of FirstMsgID field.
func (*NewSessionCreated) GetServerSalt ¶ added in v0.21.0
func (n *NewSessionCreated) GetServerSalt() (value int64)
GetServerSalt returns value of ServerSalt field.
func (*NewSessionCreated) GetUniqueID ¶ added in v0.21.0
func (n *NewSessionCreated) GetUniqueID() (value int64)
GetUniqueID returns value of UniqueID field.
func (*NewSessionCreated) String ¶ added in v0.12.0
func (n *NewSessionCreated) String() string
String implements fmt.Stringer.
func (*NewSessionCreated) TypeID ¶ added in v0.21.0
func (*NewSessionCreated) TypeID() uint32
TypeID returns type id in TL schema.
func (*NewSessionCreated) TypeInfo ¶ added in v0.25.0
func (n *NewSessionCreated) TypeInfo() tdp.Type
TypeInfo returns info about TL type.
func (*NewSessionCreated) TypeName ¶ added in v0.25.0
func (*NewSessionCreated) TypeName() string
TypeName returns name of type in TL schema.
func (*NewSessionCreated) Zero ¶ added in v0.20.0
func (n *NewSessionCreated) Zero() bool
type PQInnerData ¶ added in v0.12.0
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 ¶ added in v0.12.0
func (p *PQInnerData) Decode(b *bin.Buffer) error
Decode implements bin.Decoder.
func (*PQInnerData) Encode ¶ added in v0.12.0
func (p *PQInnerData) Encode(b *bin.Buffer) error
Encode implements bin.Encoder.
func (*PQInnerData) FillFrom ¶ added in v0.25.0
func (p *PQInnerData) FillFrom(from interface { GetPq() (value []byte) GetP() (value []byte) GetQ() (value []byte) GetNonce() (value bin.Int128) GetServerNonce() (value bin.Int128) GetNewNonce() (value bin.Int256) })
FillFrom fills PQInnerData from given interface.
func (*PQInnerData) GetNewNonce ¶ added in v0.21.0
func (p *PQInnerData) GetNewNonce() (value bin.Int256)
GetNewNonce returns value of NewNonce field.
func (*PQInnerData) GetNonce ¶ added in v0.21.0
func (p *PQInnerData) GetNonce() (value bin.Int128)
GetNonce returns value of Nonce field.
func (*PQInnerData) GetP ¶ added in v0.21.0
func (p *PQInnerData) GetP() (value []byte)
GetP returns value of P field.
func (*PQInnerData) GetPq ¶ added in v0.21.0
func (p *PQInnerData) GetPq() (value []byte)
GetPq returns value of Pq field.
func (*PQInnerData) GetQ ¶ added in v0.21.0
func (p *PQInnerData) GetQ() (value []byte)
GetQ returns value of Q field.
func (*PQInnerData) GetServerNonce ¶ added in v0.21.0
func (p *PQInnerData) GetServerNonce() (value bin.Int128)
GetServerNonce returns value of ServerNonce field.
func (*PQInnerData) String ¶ added in v0.12.0
func (p *PQInnerData) String() string
String implements fmt.Stringer.
func (*PQInnerData) TypeID ¶ added in v0.21.0
func (*PQInnerData) TypeID() uint32
TypeID returns type id in TL schema.
func (*PQInnerData) TypeInfo ¶ added in v0.25.0
func (p *PQInnerData) TypeInfo() tdp.Type
TypeInfo returns info about TL type.
func (*PQInnerData) TypeName ¶ added in v0.25.0
func (*PQInnerData) TypeName() string
TypeName returns name of type in TL schema.
func (*PQInnerData) Zero ¶ added in v0.20.0
func (p *PQInnerData) Zero() bool
type PingDelayDisconnectRequest ¶ added in v0.12.0
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 ¶ added in v0.12.0
func (p *PingDelayDisconnectRequest) Decode(b *bin.Buffer) error
Decode implements bin.Decoder.
func (*PingDelayDisconnectRequest) Encode ¶ added in v0.12.0
func (p *PingDelayDisconnectRequest) Encode(b *bin.Buffer) error
Encode implements bin.Encoder.
func (*PingDelayDisconnectRequest) FillFrom ¶ added in v0.25.0
func (p *PingDelayDisconnectRequest) FillFrom(from interface { GetPingID() (value int64) GetDisconnectDelay() (value int) })
FillFrom fills PingDelayDisconnectRequest from given interface.
func (*PingDelayDisconnectRequest) GetDisconnectDelay ¶ added in v0.21.0
func (p *PingDelayDisconnectRequest) GetDisconnectDelay() (value int)
GetDisconnectDelay returns value of DisconnectDelay field.
func (*PingDelayDisconnectRequest) GetPingID ¶ added in v0.21.0
func (p *PingDelayDisconnectRequest) GetPingID() (value int64)
GetPingID returns value of PingID field.
func (*PingDelayDisconnectRequest) String ¶ added in v0.12.0
func (p *PingDelayDisconnectRequest) String() string
String implements fmt.Stringer.
func (*PingDelayDisconnectRequest) TypeID ¶ added in v0.21.0
func (*PingDelayDisconnectRequest) TypeID() uint32
TypeID returns type id in TL schema.
func (*PingDelayDisconnectRequest) TypeInfo ¶ added in v0.25.0
func (p *PingDelayDisconnectRequest) TypeInfo() tdp.Type
TypeInfo returns info about TL type.
func (*PingDelayDisconnectRequest) TypeName ¶ added in v0.25.0
func (*PingDelayDisconnectRequest) TypeName() string
TypeName returns name of type in TL schema.
func (*PingDelayDisconnectRequest) Zero ¶ added in v0.20.0
func (p *PingDelayDisconnectRequest) Zero() bool
type PingRequest ¶ added in v0.12.0
type PingRequest struct { // PingID field of PingRequest. PingID int64 }
PingRequest represents TL type `ping#7abe77ec`.
func (*PingRequest) Decode ¶ added in v0.12.0
func (p *PingRequest) Decode(b *bin.Buffer) error
Decode implements bin.Decoder.
func (*PingRequest) Encode ¶ added in v0.12.0
func (p *PingRequest) Encode(b *bin.Buffer) error
Encode implements bin.Encoder.
func (*PingRequest) FillFrom ¶ added in v0.25.0
func (p *PingRequest) FillFrom(from interface { GetPingID() (value int64) })
FillFrom fills PingRequest from given interface.
func (*PingRequest) GetPingID ¶ added in v0.21.0
func (p *PingRequest) GetPingID() (value int64)
GetPingID returns value of PingID field.
func (*PingRequest) String ¶ added in v0.12.0
func (p *PingRequest) String() string
String implements fmt.Stringer.
func (*PingRequest) TypeID ¶ added in v0.21.0
func (*PingRequest) TypeID() uint32
TypeID returns type id in TL schema.
func (*PingRequest) TypeInfo ¶ added in v0.25.0
func (p *PingRequest) TypeInfo() tdp.Type
TypeInfo returns info about TL type.
func (*PingRequest) TypeName ¶ added in v0.25.0
func (*PingRequest) TypeName() string
TypeName returns name of type in TL schema.
func (*PingRequest) Zero ¶ added in v0.20.0
func (p *PingRequest) Zero() bool
type Pong ¶
Pong represents TL type `pong#347773c5`.
type RPCAnswerDropped ¶ added in v0.12.0
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 ¶ added in v0.12.0
func (r *RPCAnswerDropped) Decode(b *bin.Buffer) error
Decode implements bin.Decoder.
func (*RPCAnswerDropped) Encode ¶ added in v0.12.0
func (r *RPCAnswerDropped) Encode(b *bin.Buffer) error
Encode implements bin.Encoder.
func (*RPCAnswerDropped) FillFrom ¶ added in v0.25.0
func (r *RPCAnswerDropped) FillFrom(from interface { GetMsgID() (value int64) GetSeqNo() (value int) GetBytes() (value int) })
FillFrom fills RPCAnswerDropped from given interface.
func (*RPCAnswerDropped) GetBytes ¶ added in v0.21.0
func (r *RPCAnswerDropped) GetBytes() (value int)
GetBytes returns value of Bytes field.
func (*RPCAnswerDropped) GetMsgID ¶ added in v0.21.0
func (r *RPCAnswerDropped) GetMsgID() (value int64)
GetMsgID returns value of MsgID field.
func (*RPCAnswerDropped) GetSeqNo ¶ added in v0.21.0
func (r *RPCAnswerDropped) GetSeqNo() (value int)
GetSeqNo returns value of SeqNo field.
func (*RPCAnswerDropped) String ¶ added in v0.12.0
func (r *RPCAnswerDropped) String() string
String implements fmt.Stringer.
func (*RPCAnswerDropped) TypeID ¶ added in v0.21.0
func (*RPCAnswerDropped) TypeID() uint32
TypeID returns type id in TL schema.
func (*RPCAnswerDropped) TypeInfo ¶ added in v0.25.0
func (r *RPCAnswerDropped) TypeInfo() tdp.Type
TypeInfo returns info about TL type.
func (*RPCAnswerDropped) TypeName ¶ added in v0.25.0
func (*RPCAnswerDropped) TypeName() string
TypeName returns name of type in TL schema.
func (*RPCAnswerDropped) Zero ¶ added in v0.20.0
func (r *RPCAnswerDropped) Zero() bool
type RPCAnswerDroppedArray ¶ added in v0.25.0
type RPCAnswerDroppedArray []RPCAnswerDropped
RPCAnswerDroppedArray is adapter for slice of RPCAnswerDropped.
func (RPCAnswerDroppedArray) First ¶ added in v0.25.0
func (s RPCAnswerDroppedArray) First() (v RPCAnswerDropped, ok bool)
First returns first element of slice (if exists).
func (RPCAnswerDroppedArray) Last ¶ added in v0.25.0
func (s RPCAnswerDroppedArray) Last() (v RPCAnswerDropped, ok bool)
Last returns last element of slice (if exists).
func (*RPCAnswerDroppedArray) Pop ¶ added in v0.25.0
func (s *RPCAnswerDroppedArray) Pop() (v RPCAnswerDropped, ok bool)
Pop returns last element of slice (if exists) and deletes it.
func (*RPCAnswerDroppedArray) PopFirst ¶ added in v0.25.0
func (s *RPCAnswerDroppedArray) PopFirst() (v RPCAnswerDropped, ok bool)
PopFirst returns first element of slice (if exists) and deletes it.
func (RPCAnswerDroppedArray) Retain ¶ added in v0.25.0
func (s RPCAnswerDroppedArray) Retain(keep func(x RPCAnswerDropped) bool) RPCAnswerDroppedArray
Retain filters in-place slice of RPCAnswerDropped.
func (RPCAnswerDroppedArray) Sort ¶ added in v0.25.0
func (s RPCAnswerDroppedArray) Sort(less func(a, b RPCAnswerDropped) bool) RPCAnswerDroppedArray
Sort sorts slice of RPCAnswerDropped.
func (RPCAnswerDroppedArray) SortStable ¶ added in v0.25.0
func (s RPCAnswerDroppedArray) SortStable(less func(a, b RPCAnswerDropped) bool) RPCAnswerDroppedArray
SortStable sorts slice of RPCAnswerDropped.
type RPCAnswerDroppedRunning ¶ added in v0.12.0
type RPCAnswerDroppedRunning struct { }
RPCAnswerDroppedRunning represents TL type `rpc_answer_dropped_running#cd78e586`.
func (*RPCAnswerDroppedRunning) Decode ¶ added in v0.12.0
func (r *RPCAnswerDroppedRunning) Decode(b *bin.Buffer) error
Decode implements bin.Decoder.
func (*RPCAnswerDroppedRunning) Encode ¶ added in v0.12.0
func (r *RPCAnswerDroppedRunning) Encode(b *bin.Buffer) error
Encode implements bin.Encoder.
func (*RPCAnswerDroppedRunning) String ¶ added in v0.12.0
func (r *RPCAnswerDroppedRunning) String() string
String implements fmt.Stringer.
func (*RPCAnswerDroppedRunning) TypeID ¶ added in v0.21.0
func (*RPCAnswerDroppedRunning) TypeID() uint32
TypeID returns type id in TL schema.
func (*RPCAnswerDroppedRunning) TypeInfo ¶ added in v0.25.0
func (r *RPCAnswerDroppedRunning) TypeInfo() tdp.Type
TypeInfo returns info about TL type.
func (*RPCAnswerDroppedRunning) TypeName ¶ added in v0.25.0
func (*RPCAnswerDroppedRunning) TypeName() string
TypeName returns name of type in TL schema.
func (*RPCAnswerDroppedRunning) Zero ¶ added in v0.20.0
func (r *RPCAnswerDroppedRunning) Zero() bool
type RPCAnswerUnknown ¶ added in v0.12.0
type RPCAnswerUnknown struct { }
RPCAnswerUnknown represents TL type `rpc_answer_unknown#5e2ad36e`.
func (*RPCAnswerUnknown) Decode ¶ added in v0.12.0
func (r *RPCAnswerUnknown) Decode(b *bin.Buffer) error
Decode implements bin.Decoder.
func (*RPCAnswerUnknown) Encode ¶ added in v0.12.0
func (r *RPCAnswerUnknown) Encode(b *bin.Buffer) error
Encode implements bin.Encoder.
func (*RPCAnswerUnknown) String ¶ added in v0.12.0
func (r *RPCAnswerUnknown) String() string
String implements fmt.Stringer.
func (*RPCAnswerUnknown) TypeID ¶ added in v0.21.0
func (*RPCAnswerUnknown) TypeID() uint32
TypeID returns type id in TL schema.
func (*RPCAnswerUnknown) TypeInfo ¶ added in v0.25.0
func (r *RPCAnswerUnknown) TypeInfo() tdp.Type
TypeInfo returns info about TL type.
func (*RPCAnswerUnknown) TypeName ¶ added in v0.25.0
func (*RPCAnswerUnknown) TypeName() string
TypeName returns name of type in TL schema.
func (*RPCAnswerUnknown) Zero ¶ added in v0.20.0
func (r *RPCAnswerUnknown) Zero() bool
type RPCDropAnswerBox ¶ added in v0.26.0
type RPCDropAnswerBox struct {
RpcDropAnswer RPCDropAnswerClass
}
RPCDropAnswer boxes the RPCDropAnswerClass providing a helper.
type RPCDropAnswerClass ¶ added in v0.26.0
type RPCDropAnswerClass interface { bin.Encoder bin.Decoder // 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 ¶ added in v0.26.0
func DecodeRPCDropAnswer(buf *bin.Buffer) (RPCDropAnswerClass, error)
DecodeRPCDropAnswer implements binary de-serialization for RPCDropAnswerClass.
type RPCDropAnswerClassArray ¶ added in v0.26.0
type RPCDropAnswerClassArray []RPCDropAnswerClass
RPCDropAnswerClassArray is adapter for slice of RPCDropAnswerClass.
func (RPCDropAnswerClassArray) AsRPCAnswerDropped ¶ added in v0.26.0
func (s RPCDropAnswerClassArray) AsRPCAnswerDropped() (to RPCAnswerDroppedArray)
AsRPCAnswerDropped returns copy with only RPCAnswerDropped constructors.
func (RPCDropAnswerClassArray) First ¶ added in v0.26.0
func (s RPCDropAnswerClassArray) First() (v RPCDropAnswerClass, ok bool)
First returns first element of slice (if exists).
func (RPCDropAnswerClassArray) Last ¶ added in v0.26.0
func (s RPCDropAnswerClassArray) Last() (v RPCDropAnswerClass, ok bool)
Last returns last element of slice (if exists).
func (*RPCDropAnswerClassArray) Pop ¶ added in v0.26.0
func (s *RPCDropAnswerClassArray) Pop() (v RPCDropAnswerClass, ok bool)
Pop returns last element of slice (if exists) and deletes it.
func (*RPCDropAnswerClassArray) PopFirst ¶ added in v0.26.0
func (s *RPCDropAnswerClassArray) PopFirst() (v RPCDropAnswerClass, ok bool)
PopFirst returns first element of slice (if exists) and deletes it.
func (RPCDropAnswerClassArray) Retain ¶ added in v0.26.0
func (s RPCDropAnswerClassArray) Retain(keep func(x RPCDropAnswerClass) bool) RPCDropAnswerClassArray
Retain filters in-place slice of RPCDropAnswerClass.
func (RPCDropAnswerClassArray) Sort ¶ added in v0.26.0
func (s RPCDropAnswerClassArray) Sort(less func(a, b RPCDropAnswerClass) bool) RPCDropAnswerClassArray
Sort sorts slice of RPCDropAnswerClass.
func (RPCDropAnswerClassArray) SortStable ¶ added in v0.26.0
func (s RPCDropAnswerClassArray) SortStable(less func(a, b RPCDropAnswerClass) bool) RPCDropAnswerClassArray
SortStable sorts slice of RPCDropAnswerClass.
type RPCDropAnswerRequest ¶ added in v0.12.0
type RPCDropAnswerRequest struct { // ReqMsgID field of RPCDropAnswerRequest. ReqMsgID int64 }
RPCDropAnswerRequest represents TL type `rpc_drop_answer#58e4a740`.
func (*RPCDropAnswerRequest) Decode ¶ added in v0.12.0
func (r *RPCDropAnswerRequest) Decode(b *bin.Buffer) error
Decode implements bin.Decoder.
func (*RPCDropAnswerRequest) Encode ¶ added in v0.12.0
func (r *RPCDropAnswerRequest) Encode(b *bin.Buffer) error
Encode implements bin.Encoder.
func (*RPCDropAnswerRequest) FillFrom ¶ added in v0.25.0
func (r *RPCDropAnswerRequest) FillFrom(from interface { GetReqMsgID() (value int64) })
FillFrom fills RPCDropAnswerRequest from given interface.
func (*RPCDropAnswerRequest) GetReqMsgID ¶ added in v0.21.0
func (r *RPCDropAnswerRequest) GetReqMsgID() (value int64)
GetReqMsgID returns value of ReqMsgID field.
func (*RPCDropAnswerRequest) String ¶ added in v0.12.0
func (r *RPCDropAnswerRequest) String() string
String implements fmt.Stringer.
func (*RPCDropAnswerRequest) TypeID ¶ added in v0.21.0
func (*RPCDropAnswerRequest) TypeID() uint32
TypeID returns type id in TL schema.
func (*RPCDropAnswerRequest) TypeInfo ¶ added in v0.25.0
func (r *RPCDropAnswerRequest) TypeInfo() tdp.Type
TypeInfo returns info about TL type.
func (*RPCDropAnswerRequest) TypeName ¶ added in v0.25.0
func (*RPCDropAnswerRequest) TypeName() string
TypeName returns name of type in TL schema.
func (*RPCDropAnswerRequest) Zero ¶ added in v0.20.0
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) FillFrom ¶ added in v0.25.0
func (r *RPCError) FillFrom(from interface { GetErrorCode() (value int) GetErrorMessage() (value string) })
FillFrom fills RPCError from given interface.
func (*RPCError) GetErrorCode ¶ added in v0.21.0
GetErrorCode returns value of ErrorCode field.
func (*RPCError) GetErrorMessage ¶ added in v0.21.0
GetErrorMessage returns value of ErrorMessage field.
type RPCResult ¶ added in v0.12.0
type RPCResult struct { // ReqMsgID field of RPCResult. ReqMsgID int64 // Result field of RPCResult. Result GzipPacked }
RPCResult represents TL type `rpc_result#f35c6d01`.
func (*RPCResult) FillFrom ¶ added in v0.25.0
func (r *RPCResult) FillFrom(from interface { GetReqMsgID() (value int64) GetResult() (value GzipPacked) })
FillFrom fills RPCResult from given interface.
func (*RPCResult) GetReqMsgID ¶ added in v0.21.0
GetReqMsgID returns value of ReqMsgID field.
func (*RPCResult) GetResult ¶ added in v0.21.0
func (r *RPCResult) GetResult() (value GzipPacked)
GetResult returns value of Result field.
type ReqDHParamsRequest ¶ added in v0.12.0
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 ¶ added in v0.12.0
func (r *ReqDHParamsRequest) Decode(b *bin.Buffer) error
Decode implements bin.Decoder.
func (*ReqDHParamsRequest) Encode ¶ added in v0.12.0
func (r *ReqDHParamsRequest) Encode(b *bin.Buffer) error
Encode implements bin.Encoder.
func (*ReqDHParamsRequest) FillFrom ¶ added in v0.25.0
func (r *ReqDHParamsRequest) FillFrom(from interface { GetNonce() (value bin.Int128) GetServerNonce() (value bin.Int128) GetP() (value []byte) GetQ() (value []byte) GetPublicKeyFingerprint() (value int64) GetEncryptedData() (value []byte) })
FillFrom fills ReqDHParamsRequest from given interface.
func (*ReqDHParamsRequest) GetEncryptedData ¶ added in v0.21.0
func (r *ReqDHParamsRequest) GetEncryptedData() (value []byte)
GetEncryptedData returns value of EncryptedData field.
func (*ReqDHParamsRequest) GetNonce ¶ added in v0.21.0
func (r *ReqDHParamsRequest) GetNonce() (value bin.Int128)
GetNonce returns value of Nonce field.
func (*ReqDHParamsRequest) GetP ¶ added in v0.21.0
func (r *ReqDHParamsRequest) GetP() (value []byte)
GetP returns value of P field.
func (*ReqDHParamsRequest) GetPublicKeyFingerprint ¶ added in v0.21.0
func (r *ReqDHParamsRequest) GetPublicKeyFingerprint() (value int64)
GetPublicKeyFingerprint returns value of PublicKeyFingerprint field.
func (*ReqDHParamsRequest) GetQ ¶ added in v0.21.0
func (r *ReqDHParamsRequest) GetQ() (value []byte)
GetQ returns value of Q field.
func (*ReqDHParamsRequest) GetServerNonce ¶ added in v0.21.0
func (r *ReqDHParamsRequest) GetServerNonce() (value bin.Int128)
GetServerNonce returns value of ServerNonce field.
func (*ReqDHParamsRequest) String ¶ added in v0.12.0
func (r *ReqDHParamsRequest) String() string
String implements fmt.Stringer.
func (*ReqDHParamsRequest) TypeID ¶ added in v0.21.0
func (*ReqDHParamsRequest) TypeID() uint32
TypeID returns type id in TL schema.
func (*ReqDHParamsRequest) TypeInfo ¶ added in v0.25.0
func (r *ReqDHParamsRequest) TypeInfo() tdp.Type
TypeInfo returns info about TL type.
func (*ReqDHParamsRequest) TypeName ¶ added in v0.25.0
func (*ReqDHParamsRequest) TypeName() string
TypeName returns name of type in TL schema.
func (*ReqDHParamsRequest) Zero ¶ added in v0.20.0
func (r *ReqDHParamsRequest) Zero() bool
type ReqPqMultiRequest ¶ added in v0.12.0
ReqPqMultiRequest represents TL type `req_pq_multi#be7e8ef1`.
func (*ReqPqMultiRequest) Decode ¶ added in v0.12.0
func (r *ReqPqMultiRequest) Decode(b *bin.Buffer) error
Decode implements bin.Decoder.
func (*ReqPqMultiRequest) Encode ¶ added in v0.12.0
func (r *ReqPqMultiRequest) Encode(b *bin.Buffer) error
Encode implements bin.Encoder.
func (*ReqPqMultiRequest) FillFrom ¶ added in v0.25.0
func (r *ReqPqMultiRequest) FillFrom(from interface { GetNonce() (value bin.Int128) })
FillFrom fills ReqPqMultiRequest from given interface.
func (*ReqPqMultiRequest) GetNonce ¶ added in v0.21.0
func (r *ReqPqMultiRequest) GetNonce() (value bin.Int128)
GetNonce returns value of Nonce field.
func (*ReqPqMultiRequest) String ¶ added in v0.12.0
func (r *ReqPqMultiRequest) String() string
String implements fmt.Stringer.
func (*ReqPqMultiRequest) TypeID ¶ added in v0.21.0
func (*ReqPqMultiRequest) TypeID() uint32
TypeID returns type id in TL schema.
func (*ReqPqMultiRequest) TypeInfo ¶ added in v0.25.0
func (r *ReqPqMultiRequest) TypeInfo() tdp.Type
TypeInfo returns info about TL type.
func (*ReqPqMultiRequest) TypeName ¶ added in v0.25.0
func (*ReqPqMultiRequest) TypeName() string
TypeName returns name of type in TL schema.
func (*ReqPqMultiRequest) Zero ¶ added in v0.20.0
func (r *ReqPqMultiRequest) Zero() bool
type ReqPqRequest ¶ added in v0.12.0
ReqPqRequest represents TL type `req_pq#60469778`.
func (*ReqPqRequest) Decode ¶ added in v0.12.0
func (r *ReqPqRequest) Decode(b *bin.Buffer) error
Decode implements bin.Decoder.
func (*ReqPqRequest) Encode ¶ added in v0.12.0
func (r *ReqPqRequest) Encode(b *bin.Buffer) error
Encode implements bin.Encoder.
func (*ReqPqRequest) FillFrom ¶ added in v0.25.0
func (r *ReqPqRequest) FillFrom(from interface { GetNonce() (value bin.Int128) })
FillFrom fills ReqPqRequest from given interface.
func (*ReqPqRequest) GetNonce ¶ added in v0.21.0
func (r *ReqPqRequest) GetNonce() (value bin.Int128)
GetNonce returns value of Nonce field.
func (*ReqPqRequest) String ¶ added in v0.12.0
func (r *ReqPqRequest) String() string
String implements fmt.Stringer.
func (*ReqPqRequest) TypeID ¶ added in v0.21.0
func (*ReqPqRequest) TypeID() uint32
TypeID returns type id in TL schema.
func (*ReqPqRequest) TypeInfo ¶ added in v0.25.0
func (r *ReqPqRequest) TypeInfo() tdp.Type
TypeInfo returns info about TL type.
func (*ReqPqRequest) TypeName ¶ added in v0.25.0
func (*ReqPqRequest) TypeName() string
TypeName returns name of type in TL schema.
func (*ReqPqRequest) Zero ¶ added in v0.20.0
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) FillFrom ¶ added in v0.25.0
func (r *ResPQ) FillFrom(from interface { GetNonce() (value bin.Int128) GetServerNonce() (value bin.Int128) GetPq() (value []byte) GetServerPublicKeyFingerprints() (value []int64) })
FillFrom fills ResPQ from given interface.
func (*ResPQ) GetServerNonce ¶ added in v0.21.0
GetServerNonce returns value of ServerNonce field.
func (*ResPQ) GetServerPublicKeyFingerprints ¶ added in v0.21.0
GetServerPublicKeyFingerprints returns value of ServerPublicKeyFingerprints field.
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) Encode ¶
func (s *ServerDHInnerData) Encode(b *bin.Buffer) error
Encode implements bin.Encoder.
func (*ServerDHInnerData) FillFrom ¶ added in v0.25.0
func (s *ServerDHInnerData) FillFrom(from interface { GetNonce() (value bin.Int128) GetServerNonce() (value bin.Int128) GetG() (value int) GetDhPrime() (value []byte) GetGA() (value []byte) GetServerTime() (value int) })
FillFrom fills ServerDHInnerData from given interface.
func (*ServerDHInnerData) GetDhPrime ¶ added in v0.21.0
func (s *ServerDHInnerData) GetDhPrime() (value []byte)
GetDhPrime returns value of DhPrime field.
func (*ServerDHInnerData) GetG ¶ added in v0.21.0
func (s *ServerDHInnerData) GetG() (value int)
GetG returns value of G field.
func (*ServerDHInnerData) GetGA ¶ added in v0.21.0
func (s *ServerDHInnerData) GetGA() (value []byte)
GetGA returns value of GA field.
func (*ServerDHInnerData) GetNonce ¶ added in v0.21.0
func (s *ServerDHInnerData) GetNonce() (value bin.Int128)
GetNonce returns value of Nonce field.
func (*ServerDHInnerData) GetServerNonce ¶ added in v0.21.0
func (s *ServerDHInnerData) GetServerNonce() (value bin.Int128)
GetServerNonce returns value of ServerNonce field.
func (*ServerDHInnerData) GetServerTime ¶ added in v0.21.0
func (s *ServerDHInnerData) GetServerTime() (value int)
GetServerTime returns value of ServerTime field.
func (*ServerDHInnerData) String ¶ added in v0.12.0
func (s *ServerDHInnerData) String() string
String implements fmt.Stringer.
func (*ServerDHInnerData) TypeID ¶ added in v0.21.0
func (*ServerDHInnerData) TypeID() uint32
TypeID returns type id in TL schema.
func (*ServerDHInnerData) TypeInfo ¶ added in v0.25.0
func (s *ServerDHInnerData) TypeInfo() tdp.Type
TypeInfo returns info about TL type.
func (*ServerDHInnerData) TypeName ¶ added in v0.25.0
func (*ServerDHInnerData) TypeName() string
TypeName returns name of type in TL schema.
func (*ServerDHInnerData) Zero ¶ added in v0.20.0
func (s *ServerDHInnerData) Zero() bool
type ServerDHParamsBox ¶
type ServerDHParamsBox struct {
Server_DH_Params ServerDHParamsClass
}
ServerDHParams boxes the ServerDHParamsClass providing a helper.
type ServerDHParamsClass ¶
type ServerDHParamsClass interface { bin.Encoder bin.Decoder // 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 ServerDHParamsClassArray ¶ added in v0.25.0
type ServerDHParamsClassArray []ServerDHParamsClass
ServerDHParamsClassArray is adapter for slice of ServerDHParamsClass.
func (ServerDHParamsClassArray) AsServerDHParamsFail ¶ added in v0.25.0
func (s ServerDHParamsClassArray) AsServerDHParamsFail() (to ServerDHParamsFailArray)
AsServerDHParamsFail returns copy with only ServerDHParamsFail constructors.
func (ServerDHParamsClassArray) AsServerDHParamsOk ¶ added in v0.25.0
func (s ServerDHParamsClassArray) AsServerDHParamsOk() (to ServerDHParamsOkArray)
AsServerDHParamsOk returns copy with only ServerDHParamsOk constructors.
func (ServerDHParamsClassArray) First ¶ added in v0.25.0
func (s ServerDHParamsClassArray) First() (v ServerDHParamsClass, ok bool)
First returns first element of slice (if exists).
func (ServerDHParamsClassArray) Last ¶ added in v0.25.0
func (s ServerDHParamsClassArray) Last() (v ServerDHParamsClass, ok bool)
Last returns last element of slice (if exists).
func (*ServerDHParamsClassArray) Pop ¶ added in v0.25.0
func (s *ServerDHParamsClassArray) Pop() (v ServerDHParamsClass, ok bool)
Pop returns last element of slice (if exists) and deletes it.
func (*ServerDHParamsClassArray) PopFirst ¶ added in v0.25.0
func (s *ServerDHParamsClassArray) PopFirst() (v ServerDHParamsClass, ok bool)
PopFirst returns first element of slice (if exists) and deletes it.
func (ServerDHParamsClassArray) Retain ¶ added in v0.25.0
func (s ServerDHParamsClassArray) Retain(keep func(x ServerDHParamsClass) bool) ServerDHParamsClassArray
Retain filters in-place slice of ServerDHParamsClass.
func (ServerDHParamsClassArray) Sort ¶ added in v0.25.0
func (s ServerDHParamsClassArray) Sort(less func(a, b ServerDHParamsClass) bool) ServerDHParamsClassArray
Sort sorts slice of ServerDHParamsClass.
func (ServerDHParamsClassArray) SortStable ¶ added in v0.25.0
func (s ServerDHParamsClassArray) SortStable(less func(a, b ServerDHParamsClass) bool) ServerDHParamsClassArray
SortStable sorts slice of 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) Encode ¶
func (s *ServerDHParamsFail) Encode(b *bin.Buffer) error
Encode implements bin.Encoder.
func (*ServerDHParamsFail) FillFrom ¶ added in v0.25.0
func (s *ServerDHParamsFail) FillFrom(from interface { GetNonce() (value bin.Int128) GetServerNonce() (value bin.Int128) GetNewNonceHash() (value bin.Int128) })
FillFrom fills ServerDHParamsFail from given interface.
func (*ServerDHParamsFail) GetNewNonceHash ¶ added in v0.21.0
func (s *ServerDHParamsFail) GetNewNonceHash() (value bin.Int128)
GetNewNonceHash returns value of NewNonceHash field.
func (*ServerDHParamsFail) GetNonce ¶ added in v0.21.0
func (s *ServerDHParamsFail) GetNonce() (value bin.Int128)
GetNonce returns value of Nonce field.
func (*ServerDHParamsFail) GetServerNonce ¶ added in v0.21.0
func (s *ServerDHParamsFail) GetServerNonce() (value bin.Int128)
GetServerNonce returns value of ServerNonce field.
func (*ServerDHParamsFail) String ¶ added in v0.12.0
func (s *ServerDHParamsFail) String() string
String implements fmt.Stringer.
func (*ServerDHParamsFail) TypeID ¶ added in v0.21.0
func (*ServerDHParamsFail) TypeID() uint32
TypeID returns type id in TL schema.
func (*ServerDHParamsFail) TypeInfo ¶ added in v0.25.0
func (s *ServerDHParamsFail) TypeInfo() tdp.Type
TypeInfo returns info about TL type.
func (*ServerDHParamsFail) TypeName ¶ added in v0.25.0
func (*ServerDHParamsFail) TypeName() string
TypeName returns name of type in TL schema.
func (*ServerDHParamsFail) Zero ¶ added in v0.20.0
func (s *ServerDHParamsFail) Zero() bool
type ServerDHParamsFailArray ¶ added in v0.25.0
type ServerDHParamsFailArray []ServerDHParamsFail
ServerDHParamsFailArray is adapter for slice of ServerDHParamsFail.
func (ServerDHParamsFailArray) First ¶ added in v0.25.0
func (s ServerDHParamsFailArray) First() (v ServerDHParamsFail, ok bool)
First returns first element of slice (if exists).
func (ServerDHParamsFailArray) Last ¶ added in v0.25.0
func (s ServerDHParamsFailArray) Last() (v ServerDHParamsFail, ok bool)
Last returns last element of slice (if exists).
func (*ServerDHParamsFailArray) Pop ¶ added in v0.25.0
func (s *ServerDHParamsFailArray) Pop() (v ServerDHParamsFail, ok bool)
Pop returns last element of slice (if exists) and deletes it.
func (*ServerDHParamsFailArray) PopFirst ¶ added in v0.25.0
func (s *ServerDHParamsFailArray) PopFirst() (v ServerDHParamsFail, ok bool)
PopFirst returns first element of slice (if exists) and deletes it.
func (ServerDHParamsFailArray) Retain ¶ added in v0.25.0
func (s ServerDHParamsFailArray) Retain(keep func(x ServerDHParamsFail) bool) ServerDHParamsFailArray
Retain filters in-place slice of ServerDHParamsFail.
func (ServerDHParamsFailArray) Sort ¶ added in v0.25.0
func (s ServerDHParamsFailArray) Sort(less func(a, b ServerDHParamsFail) bool) ServerDHParamsFailArray
Sort sorts slice of ServerDHParamsFail.
func (ServerDHParamsFailArray) SortStable ¶ added in v0.25.0
func (s ServerDHParamsFailArray) SortStable(less func(a, b ServerDHParamsFail) bool) ServerDHParamsFailArray
SortStable sorts slice of ServerDHParamsFail.
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) Encode ¶
func (s *ServerDHParamsOk) Encode(b *bin.Buffer) error
Encode implements bin.Encoder.
func (*ServerDHParamsOk) FillFrom ¶ added in v0.25.0
func (s *ServerDHParamsOk) FillFrom(from interface { GetNonce() (value bin.Int128) GetServerNonce() (value bin.Int128) GetEncryptedAnswer() (value []byte) })
FillFrom fills ServerDHParamsOk from given interface.
func (*ServerDHParamsOk) GetEncryptedAnswer ¶ added in v0.21.0
func (s *ServerDHParamsOk) GetEncryptedAnswer() (value []byte)
GetEncryptedAnswer returns value of EncryptedAnswer field.
func (*ServerDHParamsOk) GetNonce ¶ added in v0.21.0
func (s *ServerDHParamsOk) GetNonce() (value bin.Int128)
GetNonce returns value of Nonce field.
func (*ServerDHParamsOk) GetServerNonce ¶ added in v0.21.0
func (s *ServerDHParamsOk) GetServerNonce() (value bin.Int128)
GetServerNonce returns value of ServerNonce field.
func (*ServerDHParamsOk) String ¶ added in v0.12.0
func (s *ServerDHParamsOk) String() string
String implements fmt.Stringer.
func (*ServerDHParamsOk) TypeID ¶ added in v0.21.0
func (*ServerDHParamsOk) TypeID() uint32
TypeID returns type id in TL schema.
func (*ServerDHParamsOk) TypeInfo ¶ added in v0.25.0
func (s *ServerDHParamsOk) TypeInfo() tdp.Type
TypeInfo returns info about TL type.
func (*ServerDHParamsOk) TypeName ¶ added in v0.25.0
func (*ServerDHParamsOk) TypeName() string
TypeName returns name of type in TL schema.
func (*ServerDHParamsOk) Zero ¶ added in v0.20.0
func (s *ServerDHParamsOk) Zero() bool
type ServerDHParamsOkArray ¶ added in v0.25.0
type ServerDHParamsOkArray []ServerDHParamsOk
ServerDHParamsOkArray is adapter for slice of ServerDHParamsOk.
func (ServerDHParamsOkArray) First ¶ added in v0.25.0
func (s ServerDHParamsOkArray) First() (v ServerDHParamsOk, ok bool)
First returns first element of slice (if exists).
func (ServerDHParamsOkArray) Last ¶ added in v0.25.0
func (s ServerDHParamsOkArray) Last() (v ServerDHParamsOk, ok bool)
Last returns last element of slice (if exists).
func (*ServerDHParamsOkArray) Pop ¶ added in v0.25.0
func (s *ServerDHParamsOkArray) Pop() (v ServerDHParamsOk, ok bool)
Pop returns last element of slice (if exists) and deletes it.
func (*ServerDHParamsOkArray) PopFirst ¶ added in v0.25.0
func (s *ServerDHParamsOkArray) PopFirst() (v ServerDHParamsOk, ok bool)
PopFirst returns first element of slice (if exists) and deletes it.
func (ServerDHParamsOkArray) Retain ¶ added in v0.25.0
func (s ServerDHParamsOkArray) Retain(keep func(x ServerDHParamsOk) bool) ServerDHParamsOkArray
Retain filters in-place slice of ServerDHParamsOk.
func (ServerDHParamsOkArray) Sort ¶ added in v0.25.0
func (s ServerDHParamsOkArray) Sort(less func(a, b ServerDHParamsOk) bool) ServerDHParamsOkArray
Sort sorts slice of ServerDHParamsOk.
func (ServerDHParamsOkArray) SortStable ¶ added in v0.25.0
func (s ServerDHParamsOkArray) SortStable(less func(a, b ServerDHParamsOk) bool) ServerDHParamsOkArray
SortStable sorts slice of ServerDHParamsOk.
type SetClientDHParamsAnswerBox ¶
type SetClientDHParamsAnswerBox struct {
Set_client_DH_params_answer SetClientDHParamsAnswerClass
}
SetClientDHParamsAnswer boxes the SetClientDHParamsAnswerClass providing a helper.
type SetClientDHParamsAnswerClass ¶
type SetClientDHParamsAnswerClass interface { bin.Encoder bin.Decoder // 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 SetClientDHParamsAnswerClassArray ¶ added in v0.25.0
type SetClientDHParamsAnswerClassArray []SetClientDHParamsAnswerClass
SetClientDHParamsAnswerClassArray is adapter for slice of SetClientDHParamsAnswerClass.
func (SetClientDHParamsAnswerClassArray) AsDhGenFail ¶ added in v0.25.0
func (s SetClientDHParamsAnswerClassArray) AsDhGenFail() (to DhGenFailArray)
AsDhGenFail returns copy with only DhGenFail constructors.
func (SetClientDHParamsAnswerClassArray) AsDhGenOk ¶ added in v0.25.0
func (s SetClientDHParamsAnswerClassArray) AsDhGenOk() (to DhGenOkArray)
AsDhGenOk returns copy with only DhGenOk constructors.
func (SetClientDHParamsAnswerClassArray) AsDhGenRetry ¶ added in v0.25.0
func (s SetClientDHParamsAnswerClassArray) AsDhGenRetry() (to DhGenRetryArray)
AsDhGenRetry returns copy with only DhGenRetry constructors.
func (SetClientDHParamsAnswerClassArray) First ¶ added in v0.25.0
func (s SetClientDHParamsAnswerClassArray) First() (v SetClientDHParamsAnswerClass, ok bool)
First returns first element of slice (if exists).
func (SetClientDHParamsAnswerClassArray) Last ¶ added in v0.25.0
func (s SetClientDHParamsAnswerClassArray) Last() (v SetClientDHParamsAnswerClass, ok bool)
Last returns last element of slice (if exists).
func (*SetClientDHParamsAnswerClassArray) Pop ¶ added in v0.25.0
func (s *SetClientDHParamsAnswerClassArray) Pop() (v SetClientDHParamsAnswerClass, ok bool)
Pop returns last element of slice (if exists) and deletes it.
func (*SetClientDHParamsAnswerClassArray) PopFirst ¶ added in v0.25.0
func (s *SetClientDHParamsAnswerClassArray) PopFirst() (v SetClientDHParamsAnswerClass, ok bool)
PopFirst returns first element of slice (if exists) and deletes it.
func (SetClientDHParamsAnswerClassArray) Retain ¶ added in v0.25.0
func (s SetClientDHParamsAnswerClassArray) Retain(keep func(x SetClientDHParamsAnswerClass) bool) SetClientDHParamsAnswerClassArray
Retain filters in-place slice of SetClientDHParamsAnswerClass.
func (SetClientDHParamsAnswerClassArray) Sort ¶ added in v0.25.0
func (s SetClientDHParamsAnswerClassArray) Sort(less func(a, b SetClientDHParamsAnswerClass) bool) SetClientDHParamsAnswerClassArray
Sort sorts slice of SetClientDHParamsAnswerClass.
func (SetClientDHParamsAnswerClassArray) SortStable ¶ added in v0.25.0
func (s SetClientDHParamsAnswerClassArray) SortStable(less func(a, b SetClientDHParamsAnswerClass) bool) SetClientDHParamsAnswerClassArray
SortStable sorts slice of SetClientDHParamsAnswerClass.
type SetClientDHParamsRequest ¶ added in v0.12.0
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 ¶ added in v0.12.0
func (s *SetClientDHParamsRequest) Decode(b *bin.Buffer) error
Decode implements bin.Decoder.
func (*SetClientDHParamsRequest) Encode ¶ added in v0.12.0
func (s *SetClientDHParamsRequest) Encode(b *bin.Buffer) error
Encode implements bin.Encoder.
func (*SetClientDHParamsRequest) FillFrom ¶ added in v0.25.0
func (s *SetClientDHParamsRequest) FillFrom(from interface { GetNonce() (value bin.Int128) GetServerNonce() (value bin.Int128) GetEncryptedData() (value []byte) })
FillFrom fills SetClientDHParamsRequest from given interface.
func (*SetClientDHParamsRequest) GetEncryptedData ¶ added in v0.21.0
func (s *SetClientDHParamsRequest) GetEncryptedData() (value []byte)
GetEncryptedData returns value of EncryptedData field.
func (*SetClientDHParamsRequest) GetNonce ¶ added in v0.21.0
func (s *SetClientDHParamsRequest) GetNonce() (value bin.Int128)
GetNonce returns value of Nonce field.
func (*SetClientDHParamsRequest) GetServerNonce ¶ added in v0.21.0
func (s *SetClientDHParamsRequest) GetServerNonce() (value bin.Int128)
GetServerNonce returns value of ServerNonce field.
func (*SetClientDHParamsRequest) String ¶ added in v0.12.0
func (s *SetClientDHParamsRequest) String() string
String implements fmt.Stringer.
func (*SetClientDHParamsRequest) TypeID ¶ added in v0.21.0
func (*SetClientDHParamsRequest) TypeID() uint32
TypeID returns type id in TL schema.
func (*SetClientDHParamsRequest) TypeInfo ¶ added in v0.25.0
func (s *SetClientDHParamsRequest) TypeInfo() tdp.Type
TypeInfo returns info about TL type.
func (*SetClientDHParamsRequest) TypeName ¶ added in v0.25.0
func (*SetClientDHParamsRequest) TypeName() string
TypeName returns name of type in TL schema.
func (*SetClientDHParamsRequest) Zero ¶ added in v0.20.0
func (s *SetClientDHParamsRequest) Zero() bool
Source Files ¶
- mt.go
- tl_bad_msg_notification_gen.go
- tl_client_d_h_inner_data_gen.go
- tl_client_gen.go
- tl_destroy_session_gen.go
- tl_destroy_session_res_gen.go
- tl_future_salt_gen.go
- tl_future_salts_gen.go
- tl_get_future_salts_gen.go
- tl_gzip_packed_gen.go
- tl_http_wait_gen.go
- tl_message_gen.go
- tl_msg_copy_gen.go
- tl_msg_detailed_info_gen.go
- tl_msg_resend_req_gen.go
- tl_msgs_ack_gen.go
- tl_msgs_all_info_gen.go
- tl_msgs_state_info_gen.go
- tl_msgs_state_req_gen.go
- tl_new_session_created_gen.go
- tl_p_q_inner_data_gen.go
- tl_ping_delay_disconnect_gen.go
- tl_ping_gen.go
- tl_pong_gen.go
- tl_registry_gen.go
- tl_req_d_h_params_gen.go
- tl_req_pq_gen.go
- tl_req_pq_multi_gen.go
- tl_res_p_q_gen.go
- tl_rpc_drop_answer_const_gen.go
- tl_rpc_drop_answer_gen.go
- tl_rpc_error_gen.go
- tl_rpc_result_gen.go
- tl_server_d_h_inner_data_gen.go
- tl_server_d_h_params_gen.go
- tl_set_client_d_h_params_answer_gen.go
- tl_set_client_d_h_params_gen.go