Documentation ¶
Overview ¶
Package e2e implements MTProto encoding and decoding.
Index ¶
- Constants
- func ClassConstructorsMap() map[string][]uint32
- func NamesMap() map[string]uint32
- func TypesConstructorMap() map[uint32]func() bin.Object
- func TypesMap() map[uint32]string
- type BoolBox
- type BoolClass
- type BoolFalse
- func (b *BoolFalse) Decode(buf *bin.Buffer) error
- func (b *BoolFalse) DecodeBare(buf *bin.Buffer) error
- func (b *BoolFalse) Encode(buf *bin.Buffer) error
- func (b *BoolFalse) EncodeBare(buf *bin.Buffer) error
- func (b *BoolFalse) String() string
- func (*BoolFalse) TypeID() uint32
- func (b *BoolFalse) TypeInfo() tdp.Type
- func (*BoolFalse) TypeName() string
- func (b *BoolFalse) Zero() bool
- type BoolTrue
- func (b *BoolTrue) Decode(buf *bin.Buffer) error
- func (b *BoolTrue) DecodeBare(buf *bin.Buffer) error
- func (b *BoolTrue) Encode(buf *bin.Buffer) error
- func (b *BoolTrue) EncodeBare(buf *bin.Buffer) error
- func (b *BoolTrue) String() string
- func (*BoolTrue) TypeID() uint32
- func (b *BoolTrue) TypeInfo() tdp.Type
- func (*BoolTrue) TypeName() string
- func (b *BoolTrue) Zero() bool
- type Bytes
- func (b *Bytes) Decode(buf *bin.Buffer) error
- func (b *Bytes) DecodeBare(buf *bin.Buffer) error
- func (b *Bytes) Encode(buf *bin.Buffer) error
- func (b *Bytes) EncodeBare(buf *bin.Buffer) error
- func (b *Bytes) String() string
- func (*Bytes) TypeID() uint32
- func (b *Bytes) TypeInfo() tdp.Type
- func (*Bytes) TypeName() string
- func (b *Bytes) Zero() bool
- type Client
- type DecryptedMessage
- func (d *DecryptedMessage) Decode(b *bin.Buffer) error
- func (d *DecryptedMessage) DecodeBare(b *bin.Buffer) error
- func (d *DecryptedMessage) Encode(b *bin.Buffer) error
- func (d *DecryptedMessage) EncodeBare(b *bin.Buffer) error
- func (d *DecryptedMessage) GetEntities() (value []MessageEntityClass, ok bool)
- func (d *DecryptedMessage) GetGroupedID() (value int64, ok bool)
- func (d *DecryptedMessage) GetMedia() (value DecryptedMessageMediaClass, ok bool)
- func (d *DecryptedMessage) GetMessage() (value string)
- func (d *DecryptedMessage) GetRandomID() (value int64)
- func (d *DecryptedMessage) GetReplyToRandomID() (value int64, ok bool)
- func (d *DecryptedMessage) GetSilent() (value bool)
- func (d *DecryptedMessage) GetTTL() (value int)
- func (d *DecryptedMessage) GetViaBotName() (value string, ok bool)
- func (d *DecryptedMessage) SetEntities(value []MessageEntityClass)
- func (d *DecryptedMessage) SetFlags()
- func (d *DecryptedMessage) SetGroupedID(value int64)
- func (d *DecryptedMessage) SetMedia(value DecryptedMessageMediaClass)
- func (d *DecryptedMessage) SetReplyToRandomID(value int64)
- func (d *DecryptedMessage) SetSilent(value bool)
- func (d *DecryptedMessage) SetViaBotName(value string)
- func (d *DecryptedMessage) String() string
- func (*DecryptedMessage) TypeID() uint32
- func (d *DecryptedMessage) TypeInfo() tdp.Type
- func (*DecryptedMessage) TypeName() string
- func (d *DecryptedMessage) Zero() bool
- type DecryptedMessage23
- func (d *DecryptedMessage23) Decode(b *bin.Buffer) error
- func (d *DecryptedMessage23) DecodeBare(b *bin.Buffer) error
- func (d *DecryptedMessage23) Encode(b *bin.Buffer) error
- func (d *DecryptedMessage23) EncodeBare(b *bin.Buffer) error
- func (d *DecryptedMessage23) GetMedia() (value DecryptedMessageMediaClass)
- func (d *DecryptedMessage23) GetMessage() (value string)
- func (d *DecryptedMessage23) GetRandomID() (value int64)
- func (d *DecryptedMessage23) GetTTL() (value int)
- func (d *DecryptedMessage23) String() string
- func (*DecryptedMessage23) TypeID() uint32
- func (d *DecryptedMessage23) TypeInfo() tdp.Type
- func (*DecryptedMessage23) TypeName() string
- func (d *DecryptedMessage23) Zero() bool
- type DecryptedMessage46
- func (d *DecryptedMessage46) Decode(b *bin.Buffer) error
- func (d *DecryptedMessage46) DecodeBare(b *bin.Buffer) error
- func (d *DecryptedMessage46) Encode(b *bin.Buffer) error
- func (d *DecryptedMessage46) EncodeBare(b *bin.Buffer) error
- func (d *DecryptedMessage46) GetEntities() (value []MessageEntityClass, ok bool)
- func (d *DecryptedMessage46) GetMedia() (value DecryptedMessageMediaClass, ok bool)
- func (d *DecryptedMessage46) GetMessage() (value string)
- func (d *DecryptedMessage46) GetRandomID() (value int64)
- func (d *DecryptedMessage46) GetReplyToRandomID() (value int64, ok bool)
- func (d *DecryptedMessage46) GetTTL() (value int)
- func (d *DecryptedMessage46) GetViaBotName() (value string, ok bool)
- func (d *DecryptedMessage46) SetEntities(value []MessageEntityClass)
- func (d *DecryptedMessage46) SetFlags()
- func (d *DecryptedMessage46) SetMedia(value DecryptedMessageMediaClass)
- func (d *DecryptedMessage46) SetReplyToRandomID(value int64)
- func (d *DecryptedMessage46) SetViaBotName(value string)
- func (d *DecryptedMessage46) String() string
- func (*DecryptedMessage46) TypeID() uint32
- func (d *DecryptedMessage46) TypeInfo() tdp.Type
- func (*DecryptedMessage46) TypeName() string
- func (d *DecryptedMessage46) Zero() bool
- type DecryptedMessage8
- func (d *DecryptedMessage8) Decode(b *bin.Buffer) error
- func (d *DecryptedMessage8) DecodeBare(b *bin.Buffer) error
- func (d *DecryptedMessage8) Encode(b *bin.Buffer) error
- func (d *DecryptedMessage8) EncodeBare(b *bin.Buffer) error
- func (d *DecryptedMessage8) GetMedia() (value DecryptedMessageMediaClass)
- func (d *DecryptedMessage8) GetMessage() (value string)
- func (d *DecryptedMessage8) GetRandomBytes() (value []byte)
- func (d *DecryptedMessage8) GetRandomID() (value int64)
- func (d *DecryptedMessage8) String() string
- func (*DecryptedMessage8) TypeID() uint32
- func (d *DecryptedMessage8) TypeInfo() tdp.Type
- func (*DecryptedMessage8) TypeName() string
- func (d *DecryptedMessage8) Zero() bool
- type DecryptedMessageActionAbortKey
- func (d *DecryptedMessageActionAbortKey) Decode(b *bin.Buffer) error
- func (d *DecryptedMessageActionAbortKey) DecodeBare(b *bin.Buffer) error
- func (d *DecryptedMessageActionAbortKey) Encode(b *bin.Buffer) error
- func (d *DecryptedMessageActionAbortKey) EncodeBare(b *bin.Buffer) error
- func (d *DecryptedMessageActionAbortKey) GetExchangeID() (value int64)
- func (d *DecryptedMessageActionAbortKey) String() string
- func (*DecryptedMessageActionAbortKey) TypeID() uint32
- func (d *DecryptedMessageActionAbortKey) TypeInfo() tdp.Type
- func (*DecryptedMessageActionAbortKey) TypeName() string
- func (d *DecryptedMessageActionAbortKey) Zero() bool
- type DecryptedMessageActionAcceptKey
- func (d *DecryptedMessageActionAcceptKey) Decode(b *bin.Buffer) error
- func (d *DecryptedMessageActionAcceptKey) DecodeBare(b *bin.Buffer) error
- func (d *DecryptedMessageActionAcceptKey) Encode(b *bin.Buffer) error
- func (d *DecryptedMessageActionAcceptKey) EncodeBare(b *bin.Buffer) error
- func (d *DecryptedMessageActionAcceptKey) GetExchangeID() (value int64)
- func (d *DecryptedMessageActionAcceptKey) GetGB() (value []byte)
- func (d *DecryptedMessageActionAcceptKey) GetKeyFingerprint() (value int64)
- func (d *DecryptedMessageActionAcceptKey) String() string
- func (*DecryptedMessageActionAcceptKey) TypeID() uint32
- func (d *DecryptedMessageActionAcceptKey) TypeInfo() tdp.Type
- func (*DecryptedMessageActionAcceptKey) TypeName() string
- func (d *DecryptedMessageActionAcceptKey) Zero() bool
- type DecryptedMessageActionBox
- type DecryptedMessageActionClass
- type DecryptedMessageActionCommitKey
- func (d *DecryptedMessageActionCommitKey) Decode(b *bin.Buffer) error
- func (d *DecryptedMessageActionCommitKey) DecodeBare(b *bin.Buffer) error
- func (d *DecryptedMessageActionCommitKey) Encode(b *bin.Buffer) error
- func (d *DecryptedMessageActionCommitKey) EncodeBare(b *bin.Buffer) error
- func (d *DecryptedMessageActionCommitKey) GetExchangeID() (value int64)
- func (d *DecryptedMessageActionCommitKey) GetKeyFingerprint() (value int64)
- func (d *DecryptedMessageActionCommitKey) String() string
- func (*DecryptedMessageActionCommitKey) TypeID() uint32
- func (d *DecryptedMessageActionCommitKey) TypeInfo() tdp.Type
- func (*DecryptedMessageActionCommitKey) TypeName() string
- func (d *DecryptedMessageActionCommitKey) Zero() bool
- type DecryptedMessageActionDeleteMessages
- func (d *DecryptedMessageActionDeleteMessages) Decode(b *bin.Buffer) error
- func (d *DecryptedMessageActionDeleteMessages) DecodeBare(b *bin.Buffer) error
- func (d *DecryptedMessageActionDeleteMessages) Encode(b *bin.Buffer) error
- func (d *DecryptedMessageActionDeleteMessages) EncodeBare(b *bin.Buffer) error
- func (d *DecryptedMessageActionDeleteMessages) GetRandomIDs() (value []int64)
- func (d *DecryptedMessageActionDeleteMessages) String() string
- func (*DecryptedMessageActionDeleteMessages) TypeID() uint32
- func (d *DecryptedMessageActionDeleteMessages) TypeInfo() tdp.Type
- func (*DecryptedMessageActionDeleteMessages) TypeName() string
- func (d *DecryptedMessageActionDeleteMessages) Zero() bool
- type DecryptedMessageActionFlushHistory
- func (d *DecryptedMessageActionFlushHistory) Decode(b *bin.Buffer) error
- func (d *DecryptedMessageActionFlushHistory) DecodeBare(b *bin.Buffer) error
- func (d *DecryptedMessageActionFlushHistory) Encode(b *bin.Buffer) error
- func (d *DecryptedMessageActionFlushHistory) EncodeBare(b *bin.Buffer) error
- func (d *DecryptedMessageActionFlushHistory) String() string
- func (*DecryptedMessageActionFlushHistory) TypeID() uint32
- func (d *DecryptedMessageActionFlushHistory) TypeInfo() tdp.Type
- func (*DecryptedMessageActionFlushHistory) TypeName() string
- func (d *DecryptedMessageActionFlushHistory) Zero() bool
- type DecryptedMessageActionNoop
- func (d *DecryptedMessageActionNoop) Decode(b *bin.Buffer) error
- func (d *DecryptedMessageActionNoop) DecodeBare(b *bin.Buffer) error
- func (d *DecryptedMessageActionNoop) Encode(b *bin.Buffer) error
- func (d *DecryptedMessageActionNoop) EncodeBare(b *bin.Buffer) error
- func (d *DecryptedMessageActionNoop) String() string
- func (*DecryptedMessageActionNoop) TypeID() uint32
- func (d *DecryptedMessageActionNoop) TypeInfo() tdp.Type
- func (*DecryptedMessageActionNoop) TypeName() string
- func (d *DecryptedMessageActionNoop) Zero() bool
- type DecryptedMessageActionNotifyLayer
- func (d *DecryptedMessageActionNotifyLayer) Decode(b *bin.Buffer) error
- func (d *DecryptedMessageActionNotifyLayer) DecodeBare(b *bin.Buffer) error
- func (d *DecryptedMessageActionNotifyLayer) Encode(b *bin.Buffer) error
- func (d *DecryptedMessageActionNotifyLayer) EncodeBare(b *bin.Buffer) error
- func (d *DecryptedMessageActionNotifyLayer) GetLayer() (value int)
- func (d *DecryptedMessageActionNotifyLayer) String() string
- func (*DecryptedMessageActionNotifyLayer) TypeID() uint32
- func (d *DecryptedMessageActionNotifyLayer) TypeInfo() tdp.Type
- func (*DecryptedMessageActionNotifyLayer) TypeName() string
- func (d *DecryptedMessageActionNotifyLayer) Zero() bool
- type DecryptedMessageActionReadMessages
- func (d *DecryptedMessageActionReadMessages) Decode(b *bin.Buffer) error
- func (d *DecryptedMessageActionReadMessages) DecodeBare(b *bin.Buffer) error
- func (d *DecryptedMessageActionReadMessages) Encode(b *bin.Buffer) error
- func (d *DecryptedMessageActionReadMessages) EncodeBare(b *bin.Buffer) error
- func (d *DecryptedMessageActionReadMessages) GetRandomIDs() (value []int64)
- func (d *DecryptedMessageActionReadMessages) String() string
- func (*DecryptedMessageActionReadMessages) TypeID() uint32
- func (d *DecryptedMessageActionReadMessages) TypeInfo() tdp.Type
- func (*DecryptedMessageActionReadMessages) TypeName() string
- func (d *DecryptedMessageActionReadMessages) Zero() bool
- type DecryptedMessageActionRequestKey
- func (d *DecryptedMessageActionRequestKey) Decode(b *bin.Buffer) error
- func (d *DecryptedMessageActionRequestKey) DecodeBare(b *bin.Buffer) error
- func (d *DecryptedMessageActionRequestKey) Encode(b *bin.Buffer) error
- func (d *DecryptedMessageActionRequestKey) EncodeBare(b *bin.Buffer) error
- func (d *DecryptedMessageActionRequestKey) GetExchangeID() (value int64)
- func (d *DecryptedMessageActionRequestKey) GetGA() (value []byte)
- func (d *DecryptedMessageActionRequestKey) String() string
- func (*DecryptedMessageActionRequestKey) TypeID() uint32
- func (d *DecryptedMessageActionRequestKey) TypeInfo() tdp.Type
- func (*DecryptedMessageActionRequestKey) TypeName() string
- func (d *DecryptedMessageActionRequestKey) Zero() bool
- type DecryptedMessageActionResend
- func (d *DecryptedMessageActionResend) Decode(b *bin.Buffer) error
- func (d *DecryptedMessageActionResend) DecodeBare(b *bin.Buffer) error
- func (d *DecryptedMessageActionResend) Encode(b *bin.Buffer) error
- func (d *DecryptedMessageActionResend) EncodeBare(b *bin.Buffer) error
- func (d *DecryptedMessageActionResend) GetEndSeqNo() (value int)
- func (d *DecryptedMessageActionResend) GetStartSeqNo() (value int)
- func (d *DecryptedMessageActionResend) String() string
- func (*DecryptedMessageActionResend) TypeID() uint32
- func (d *DecryptedMessageActionResend) TypeInfo() tdp.Type
- func (*DecryptedMessageActionResend) TypeName() string
- func (d *DecryptedMessageActionResend) Zero() bool
- type DecryptedMessageActionScreenshotMessages
- func (d *DecryptedMessageActionScreenshotMessages) Decode(b *bin.Buffer) error
- func (d *DecryptedMessageActionScreenshotMessages) DecodeBare(b *bin.Buffer) error
- func (d *DecryptedMessageActionScreenshotMessages) Encode(b *bin.Buffer) error
- func (d *DecryptedMessageActionScreenshotMessages) EncodeBare(b *bin.Buffer) error
- func (d *DecryptedMessageActionScreenshotMessages) GetRandomIDs() (value []int64)
- func (d *DecryptedMessageActionScreenshotMessages) String() string
- func (*DecryptedMessageActionScreenshotMessages) TypeID() uint32
- func (d *DecryptedMessageActionScreenshotMessages) TypeInfo() tdp.Type
- func (*DecryptedMessageActionScreenshotMessages) TypeName() string
- func (d *DecryptedMessageActionScreenshotMessages) Zero() bool
- type DecryptedMessageActionSetMessageTTL
- func (d *DecryptedMessageActionSetMessageTTL) Decode(b *bin.Buffer) error
- func (d *DecryptedMessageActionSetMessageTTL) DecodeBare(b *bin.Buffer) error
- func (d *DecryptedMessageActionSetMessageTTL) Encode(b *bin.Buffer) error
- func (d *DecryptedMessageActionSetMessageTTL) EncodeBare(b *bin.Buffer) error
- func (d *DecryptedMessageActionSetMessageTTL) GetTTLSeconds() (value int)
- func (d *DecryptedMessageActionSetMessageTTL) String() string
- func (*DecryptedMessageActionSetMessageTTL) TypeID() uint32
- func (d *DecryptedMessageActionSetMessageTTL) TypeInfo() tdp.Type
- func (*DecryptedMessageActionSetMessageTTL) TypeName() string
- func (d *DecryptedMessageActionSetMessageTTL) Zero() bool
- type DecryptedMessageActionTyping
- func (d *DecryptedMessageActionTyping) Decode(b *bin.Buffer) error
- func (d *DecryptedMessageActionTyping) DecodeBare(b *bin.Buffer) error
- func (d *DecryptedMessageActionTyping) Encode(b *bin.Buffer) error
- func (d *DecryptedMessageActionTyping) EncodeBare(b *bin.Buffer) error
- func (d *DecryptedMessageActionTyping) GetAction() (value SendMessageActionClass)
- func (d *DecryptedMessageActionTyping) String() string
- func (*DecryptedMessageActionTyping) TypeID() uint32
- func (d *DecryptedMessageActionTyping) TypeInfo() tdp.Type
- func (*DecryptedMessageActionTyping) TypeName() string
- func (d *DecryptedMessageActionTyping) Zero() bool
- type DecryptedMessageBox
- type DecryptedMessageClass
- type DecryptedMessageLayer
- func (d *DecryptedMessageLayer) Decode(b *bin.Buffer) error
- func (d *DecryptedMessageLayer) DecodeBare(b *bin.Buffer) error
- func (d *DecryptedMessageLayer) Encode(b *bin.Buffer) error
- func (d *DecryptedMessageLayer) EncodeBare(b *bin.Buffer) error
- func (d *DecryptedMessageLayer) GetInSeqNo() (value int)
- func (d *DecryptedMessageLayer) GetLayer() (value int)
- func (d *DecryptedMessageLayer) GetMessage() (value DecryptedMessageClass)
- func (d *DecryptedMessageLayer) GetOutSeqNo() (value int)
- func (d *DecryptedMessageLayer) GetRandomBytes() (value []byte)
- func (d *DecryptedMessageLayer) String() string
- func (*DecryptedMessageLayer) TypeID() uint32
- func (d *DecryptedMessageLayer) TypeInfo() tdp.Type
- func (*DecryptedMessageLayer) TypeName() string
- func (d *DecryptedMessageLayer) Zero() bool
- type DecryptedMessageMediaAudio
- func (d *DecryptedMessageMediaAudio) Decode(b *bin.Buffer) error
- func (d *DecryptedMessageMediaAudio) DecodeBare(b *bin.Buffer) error
- func (d *DecryptedMessageMediaAudio) Encode(b *bin.Buffer) error
- func (d *DecryptedMessageMediaAudio) EncodeBare(b *bin.Buffer) error
- func (d *DecryptedMessageMediaAudio) GetDuration() (value int)
- func (d *DecryptedMessageMediaAudio) GetIv() (value []byte)
- func (d *DecryptedMessageMediaAudio) GetKey() (value []byte)
- func (d *DecryptedMessageMediaAudio) GetMimeType() (value string)
- func (d *DecryptedMessageMediaAudio) GetSize() (value int)
- func (d *DecryptedMessageMediaAudio) String() string
- func (*DecryptedMessageMediaAudio) TypeID() uint32
- func (d *DecryptedMessageMediaAudio) TypeInfo() tdp.Type
- func (*DecryptedMessageMediaAudio) TypeName() string
- func (d *DecryptedMessageMediaAudio) Zero() bool
- type DecryptedMessageMediaAudio8
- func (d *DecryptedMessageMediaAudio8) Decode(b *bin.Buffer) error
- func (d *DecryptedMessageMediaAudio8) DecodeBare(b *bin.Buffer) error
- func (d *DecryptedMessageMediaAudio8) Encode(b *bin.Buffer) error
- func (d *DecryptedMessageMediaAudio8) EncodeBare(b *bin.Buffer) error
- func (d *DecryptedMessageMediaAudio8) GetDuration() (value int)
- func (d *DecryptedMessageMediaAudio8) GetIv() (value []byte)
- func (d *DecryptedMessageMediaAudio8) GetKey() (value []byte)
- func (d *DecryptedMessageMediaAudio8) GetSize() (value int)
- func (d *DecryptedMessageMediaAudio8) String() string
- func (*DecryptedMessageMediaAudio8) TypeID() uint32
- func (d *DecryptedMessageMediaAudio8) TypeInfo() tdp.Type
- func (*DecryptedMessageMediaAudio8) TypeName() string
- func (d *DecryptedMessageMediaAudio8) Zero() bool
- type DecryptedMessageMediaBox
- type DecryptedMessageMediaClass
- type DecryptedMessageMediaContact
- func (d *DecryptedMessageMediaContact) Decode(b *bin.Buffer) error
- func (d *DecryptedMessageMediaContact) DecodeBare(b *bin.Buffer) error
- func (d *DecryptedMessageMediaContact) Encode(b *bin.Buffer) error
- func (d *DecryptedMessageMediaContact) EncodeBare(b *bin.Buffer) error
- func (d *DecryptedMessageMediaContact) GetFirstName() (value string)
- func (d *DecryptedMessageMediaContact) GetLastName() (value string)
- func (d *DecryptedMessageMediaContact) GetPhoneNumber() (value string)
- func (d *DecryptedMessageMediaContact) GetUserID() (value int)
- func (d *DecryptedMessageMediaContact) String() string
- func (*DecryptedMessageMediaContact) TypeID() uint32
- func (d *DecryptedMessageMediaContact) TypeInfo() tdp.Type
- func (*DecryptedMessageMediaContact) TypeName() string
- func (d *DecryptedMessageMediaContact) Zero() bool
- type DecryptedMessageMediaDocument
- func (d *DecryptedMessageMediaDocument) Decode(b *bin.Buffer) error
- func (d *DecryptedMessageMediaDocument) DecodeBare(b *bin.Buffer) error
- func (d *DecryptedMessageMediaDocument) Encode(b *bin.Buffer) error
- func (d *DecryptedMessageMediaDocument) EncodeBare(b *bin.Buffer) error
- func (d *DecryptedMessageMediaDocument) GetAttributes() (value []DocumentAttributeClass)
- func (d *DecryptedMessageMediaDocument) GetCaption() (value string)
- func (d *DecryptedMessageMediaDocument) GetIv() (value []byte)
- func (d *DecryptedMessageMediaDocument) GetKey() (value []byte)
- func (d *DecryptedMessageMediaDocument) GetMimeType() (value string)
- func (d *DecryptedMessageMediaDocument) GetSize() (value int64)
- func (d *DecryptedMessageMediaDocument) GetThumb() (value []byte)
- func (d *DecryptedMessageMediaDocument) GetThumbH() (value int)
- func (d *DecryptedMessageMediaDocument) GetThumbW() (value int)
- func (d *DecryptedMessageMediaDocument) String() string
- func (*DecryptedMessageMediaDocument) TypeID() uint32
- func (d *DecryptedMessageMediaDocument) TypeInfo() tdp.Type
- func (*DecryptedMessageMediaDocument) TypeName() string
- func (d *DecryptedMessageMediaDocument) Zero() bool
- type DecryptedMessageMediaDocument46
- func (d *DecryptedMessageMediaDocument46) Decode(b *bin.Buffer) error
- func (d *DecryptedMessageMediaDocument46) DecodeBare(b *bin.Buffer) error
- func (d *DecryptedMessageMediaDocument46) Encode(b *bin.Buffer) error
- func (d *DecryptedMessageMediaDocument46) EncodeBare(b *bin.Buffer) error
- func (d *DecryptedMessageMediaDocument46) GetAttributes() (value []DocumentAttributeClass)
- func (d *DecryptedMessageMediaDocument46) GetCaption() (value string)
- func (d *DecryptedMessageMediaDocument46) GetIv() (value []byte)
- func (d *DecryptedMessageMediaDocument46) GetKey() (value []byte)
- func (d *DecryptedMessageMediaDocument46) GetMimeType() (value string)
- func (d *DecryptedMessageMediaDocument46) GetSize() (value int)
- func (d *DecryptedMessageMediaDocument46) GetThumb() (value []byte)
- func (d *DecryptedMessageMediaDocument46) GetThumbH() (value int)
- func (d *DecryptedMessageMediaDocument46) GetThumbW() (value int)
- func (d *DecryptedMessageMediaDocument46) String() string
- func (*DecryptedMessageMediaDocument46) TypeID() uint32
- func (d *DecryptedMessageMediaDocument46) TypeInfo() tdp.Type
- func (*DecryptedMessageMediaDocument46) TypeName() string
- func (d *DecryptedMessageMediaDocument46) Zero() bool
- type DecryptedMessageMediaDocument8
- func (d *DecryptedMessageMediaDocument8) Decode(b *bin.Buffer) error
- func (d *DecryptedMessageMediaDocument8) DecodeBare(b *bin.Buffer) error
- func (d *DecryptedMessageMediaDocument8) Encode(b *bin.Buffer) error
- func (d *DecryptedMessageMediaDocument8) EncodeBare(b *bin.Buffer) error
- func (d *DecryptedMessageMediaDocument8) GetFileName() (value string)
- func (d *DecryptedMessageMediaDocument8) GetIv() (value []byte)
- func (d *DecryptedMessageMediaDocument8) GetKey() (value []byte)
- func (d *DecryptedMessageMediaDocument8) GetMimeType() (value string)
- func (d *DecryptedMessageMediaDocument8) GetSize() (value int)
- func (d *DecryptedMessageMediaDocument8) GetThumb() (value []byte)
- func (d *DecryptedMessageMediaDocument8) GetThumbH() (value int)
- func (d *DecryptedMessageMediaDocument8) GetThumbW() (value int)
- func (d *DecryptedMessageMediaDocument8) String() string
- func (*DecryptedMessageMediaDocument8) TypeID() uint32
- func (d *DecryptedMessageMediaDocument8) TypeInfo() tdp.Type
- func (*DecryptedMessageMediaDocument8) TypeName() string
- func (d *DecryptedMessageMediaDocument8) Zero() bool
- type DecryptedMessageMediaEmpty
- func (d *DecryptedMessageMediaEmpty) Decode(b *bin.Buffer) error
- func (d *DecryptedMessageMediaEmpty) DecodeBare(b *bin.Buffer) error
- func (d *DecryptedMessageMediaEmpty) Encode(b *bin.Buffer) error
- func (d *DecryptedMessageMediaEmpty) EncodeBare(b *bin.Buffer) error
- func (d *DecryptedMessageMediaEmpty) String() string
- func (*DecryptedMessageMediaEmpty) TypeID() uint32
- func (d *DecryptedMessageMediaEmpty) TypeInfo() tdp.Type
- func (*DecryptedMessageMediaEmpty) TypeName() string
- func (d *DecryptedMessageMediaEmpty) Zero() bool
- type DecryptedMessageMediaExternalDocument
- func (d *DecryptedMessageMediaExternalDocument) Decode(b *bin.Buffer) error
- func (d *DecryptedMessageMediaExternalDocument) DecodeBare(b *bin.Buffer) error
- func (d *DecryptedMessageMediaExternalDocument) Encode(b *bin.Buffer) error
- func (d *DecryptedMessageMediaExternalDocument) EncodeBare(b *bin.Buffer) error
- func (d *DecryptedMessageMediaExternalDocument) GetAccessHash() (value int64)
- func (d *DecryptedMessageMediaExternalDocument) GetAttributes() (value []DocumentAttributeClass)
- func (d *DecryptedMessageMediaExternalDocument) GetDCID() (value int)
- func (d *DecryptedMessageMediaExternalDocument) GetDate() (value int)
- func (d *DecryptedMessageMediaExternalDocument) GetID() (value int64)
- func (d *DecryptedMessageMediaExternalDocument) GetMimeType() (value string)
- func (d *DecryptedMessageMediaExternalDocument) GetSize() (value int)
- func (d *DecryptedMessageMediaExternalDocument) GetThumb() (value PhotoSizeClass)
- func (d *DecryptedMessageMediaExternalDocument) String() string
- func (*DecryptedMessageMediaExternalDocument) TypeID() uint32
- func (d *DecryptedMessageMediaExternalDocument) TypeInfo() tdp.Type
- func (*DecryptedMessageMediaExternalDocument) TypeName() string
- func (d *DecryptedMessageMediaExternalDocument) Zero() bool
- type DecryptedMessageMediaGeoPoint
- func (d *DecryptedMessageMediaGeoPoint) Decode(b *bin.Buffer) error
- func (d *DecryptedMessageMediaGeoPoint) DecodeBare(b *bin.Buffer) error
- func (d *DecryptedMessageMediaGeoPoint) Encode(b *bin.Buffer) error
- func (d *DecryptedMessageMediaGeoPoint) EncodeBare(b *bin.Buffer) error
- func (d *DecryptedMessageMediaGeoPoint) GetLat() (value float64)
- func (d *DecryptedMessageMediaGeoPoint) GetLong() (value float64)
- func (d *DecryptedMessageMediaGeoPoint) String() string
- func (*DecryptedMessageMediaGeoPoint) TypeID() uint32
- func (d *DecryptedMessageMediaGeoPoint) TypeInfo() tdp.Type
- func (*DecryptedMessageMediaGeoPoint) TypeName() string
- func (d *DecryptedMessageMediaGeoPoint) Zero() bool
- type DecryptedMessageMediaPhoto
- func (d *DecryptedMessageMediaPhoto) Decode(b *bin.Buffer) error
- func (d *DecryptedMessageMediaPhoto) DecodeBare(b *bin.Buffer) error
- func (d *DecryptedMessageMediaPhoto) Encode(b *bin.Buffer) error
- func (d *DecryptedMessageMediaPhoto) EncodeBare(b *bin.Buffer) error
- func (d *DecryptedMessageMediaPhoto) GetCaption() (value string)
- func (d *DecryptedMessageMediaPhoto) GetH() (value int)
- func (d *DecryptedMessageMediaPhoto) GetIv() (value []byte)
- func (d *DecryptedMessageMediaPhoto) GetKey() (value []byte)
- func (d *DecryptedMessageMediaPhoto) GetSize() (value int)
- func (d *DecryptedMessageMediaPhoto) GetThumb() (value []byte)
- func (d *DecryptedMessageMediaPhoto) GetThumbH() (value int)
- func (d *DecryptedMessageMediaPhoto) GetThumbW() (value int)
- func (d *DecryptedMessageMediaPhoto) GetW() (value int)
- func (d *DecryptedMessageMediaPhoto) String() string
- func (*DecryptedMessageMediaPhoto) TypeID() uint32
- func (d *DecryptedMessageMediaPhoto) TypeInfo() tdp.Type
- func (*DecryptedMessageMediaPhoto) TypeName() string
- func (d *DecryptedMessageMediaPhoto) Zero() bool
- type DecryptedMessageMediaPhoto8
- func (d *DecryptedMessageMediaPhoto8) Decode(b *bin.Buffer) error
- func (d *DecryptedMessageMediaPhoto8) DecodeBare(b *bin.Buffer) error
- func (d *DecryptedMessageMediaPhoto8) Encode(b *bin.Buffer) error
- func (d *DecryptedMessageMediaPhoto8) EncodeBare(b *bin.Buffer) error
- func (d *DecryptedMessageMediaPhoto8) GetH() (value int)
- func (d *DecryptedMessageMediaPhoto8) GetIv() (value []byte)
- func (d *DecryptedMessageMediaPhoto8) GetKey() (value []byte)
- func (d *DecryptedMessageMediaPhoto8) GetSize() (value int)
- func (d *DecryptedMessageMediaPhoto8) GetThumb() (value []byte)
- func (d *DecryptedMessageMediaPhoto8) GetThumbH() (value int)
- func (d *DecryptedMessageMediaPhoto8) GetThumbW() (value int)
- func (d *DecryptedMessageMediaPhoto8) GetW() (value int)
- func (d *DecryptedMessageMediaPhoto8) String() string
- func (*DecryptedMessageMediaPhoto8) TypeID() uint32
- func (d *DecryptedMessageMediaPhoto8) TypeInfo() tdp.Type
- func (*DecryptedMessageMediaPhoto8) TypeName() string
- func (d *DecryptedMessageMediaPhoto8) Zero() bool
- type DecryptedMessageMediaVenue
- func (d *DecryptedMessageMediaVenue) Decode(b *bin.Buffer) error
- func (d *DecryptedMessageMediaVenue) DecodeBare(b *bin.Buffer) error
- func (d *DecryptedMessageMediaVenue) Encode(b *bin.Buffer) error
- func (d *DecryptedMessageMediaVenue) EncodeBare(b *bin.Buffer) error
- func (d *DecryptedMessageMediaVenue) GetAddress() (value string)
- func (d *DecryptedMessageMediaVenue) GetLat() (value float64)
- func (d *DecryptedMessageMediaVenue) GetLong() (value float64)
- func (d *DecryptedMessageMediaVenue) GetProvider() (value string)
- func (d *DecryptedMessageMediaVenue) GetTitle() (value string)
- func (d *DecryptedMessageMediaVenue) GetVenueID() (value string)
- func (d *DecryptedMessageMediaVenue) String() string
- func (*DecryptedMessageMediaVenue) TypeID() uint32
- func (d *DecryptedMessageMediaVenue) TypeInfo() tdp.Type
- func (*DecryptedMessageMediaVenue) TypeName() string
- func (d *DecryptedMessageMediaVenue) Zero() bool
- type DecryptedMessageMediaVideo
- func (d *DecryptedMessageMediaVideo) Decode(b *bin.Buffer) error
- func (d *DecryptedMessageMediaVideo) DecodeBare(b *bin.Buffer) error
- func (d *DecryptedMessageMediaVideo) Encode(b *bin.Buffer) error
- func (d *DecryptedMessageMediaVideo) EncodeBare(b *bin.Buffer) error
- func (d *DecryptedMessageMediaVideo) GetCaption() (value string)
- func (d *DecryptedMessageMediaVideo) GetDuration() (value int)
- func (d *DecryptedMessageMediaVideo) GetH() (value int)
- func (d *DecryptedMessageMediaVideo) GetIv() (value []byte)
- func (d *DecryptedMessageMediaVideo) GetKey() (value []byte)
- func (d *DecryptedMessageMediaVideo) GetMimeType() (value string)
- func (d *DecryptedMessageMediaVideo) GetSize() (value int)
- func (d *DecryptedMessageMediaVideo) GetThumb() (value []byte)
- func (d *DecryptedMessageMediaVideo) GetThumbH() (value int)
- func (d *DecryptedMessageMediaVideo) GetThumbW() (value int)
- func (d *DecryptedMessageMediaVideo) GetW() (value int)
- func (d *DecryptedMessageMediaVideo) String() string
- func (*DecryptedMessageMediaVideo) TypeID() uint32
- func (d *DecryptedMessageMediaVideo) TypeInfo() tdp.Type
- func (*DecryptedMessageMediaVideo) TypeName() string
- func (d *DecryptedMessageMediaVideo) Zero() bool
- type DecryptedMessageMediaVideo23
- func (d *DecryptedMessageMediaVideo23) Decode(b *bin.Buffer) error
- func (d *DecryptedMessageMediaVideo23) DecodeBare(b *bin.Buffer) error
- func (d *DecryptedMessageMediaVideo23) Encode(b *bin.Buffer) error
- func (d *DecryptedMessageMediaVideo23) EncodeBare(b *bin.Buffer) error
- func (d *DecryptedMessageMediaVideo23) GetDuration() (value int)
- func (d *DecryptedMessageMediaVideo23) GetH() (value int)
- func (d *DecryptedMessageMediaVideo23) GetIv() (value []byte)
- func (d *DecryptedMessageMediaVideo23) GetKey() (value []byte)
- func (d *DecryptedMessageMediaVideo23) GetMimeType() (value string)
- func (d *DecryptedMessageMediaVideo23) GetSize() (value int)
- func (d *DecryptedMessageMediaVideo23) GetThumb() (value []byte)
- func (d *DecryptedMessageMediaVideo23) GetThumbH() (value int)
- func (d *DecryptedMessageMediaVideo23) GetThumbW() (value int)
- func (d *DecryptedMessageMediaVideo23) GetW() (value int)
- func (d *DecryptedMessageMediaVideo23) String() string
- func (*DecryptedMessageMediaVideo23) TypeID() uint32
- func (d *DecryptedMessageMediaVideo23) TypeInfo() tdp.Type
- func (*DecryptedMessageMediaVideo23) TypeName() string
- func (d *DecryptedMessageMediaVideo23) Zero() bool
- type DecryptedMessageMediaVideo8
- func (d *DecryptedMessageMediaVideo8) Decode(b *bin.Buffer) error
- func (d *DecryptedMessageMediaVideo8) DecodeBare(b *bin.Buffer) error
- func (d *DecryptedMessageMediaVideo8) Encode(b *bin.Buffer) error
- func (d *DecryptedMessageMediaVideo8) EncodeBare(b *bin.Buffer) error
- func (d *DecryptedMessageMediaVideo8) GetDuration() (value int)
- func (d *DecryptedMessageMediaVideo8) GetH() (value int)
- func (d *DecryptedMessageMediaVideo8) GetIv() (value []byte)
- func (d *DecryptedMessageMediaVideo8) GetKey() (value []byte)
- func (d *DecryptedMessageMediaVideo8) GetSize() (value int)
- func (d *DecryptedMessageMediaVideo8) GetThumb() (value []byte)
- func (d *DecryptedMessageMediaVideo8) GetThumbH() (value int)
- func (d *DecryptedMessageMediaVideo8) GetThumbW() (value int)
- func (d *DecryptedMessageMediaVideo8) GetW() (value int)
- func (d *DecryptedMessageMediaVideo8) String() string
- func (*DecryptedMessageMediaVideo8) TypeID() uint32
- func (d *DecryptedMessageMediaVideo8) TypeInfo() tdp.Type
- func (*DecryptedMessageMediaVideo8) TypeName() string
- func (d *DecryptedMessageMediaVideo8) Zero() bool
- type DecryptedMessageMediaWebPage
- func (d *DecryptedMessageMediaWebPage) Decode(b *bin.Buffer) error
- func (d *DecryptedMessageMediaWebPage) DecodeBare(b *bin.Buffer) error
- func (d *DecryptedMessageMediaWebPage) Encode(b *bin.Buffer) error
- func (d *DecryptedMessageMediaWebPage) EncodeBare(b *bin.Buffer) error
- func (d *DecryptedMessageMediaWebPage) GetURL() (value string)
- func (d *DecryptedMessageMediaWebPage) String() string
- func (*DecryptedMessageMediaWebPage) TypeID() uint32
- func (d *DecryptedMessageMediaWebPage) TypeInfo() tdp.Type
- func (*DecryptedMessageMediaWebPage) TypeName() string
- func (d *DecryptedMessageMediaWebPage) Zero() bool
- type DecryptedMessageService
- func (d *DecryptedMessageService) Decode(b *bin.Buffer) error
- func (d *DecryptedMessageService) DecodeBare(b *bin.Buffer) error
- func (d *DecryptedMessageService) Encode(b *bin.Buffer) error
- func (d *DecryptedMessageService) EncodeBare(b *bin.Buffer) error
- func (d *DecryptedMessageService) GetAction() (value DecryptedMessageActionClass)
- func (d *DecryptedMessageService) GetRandomID() (value int64)
- func (d *DecryptedMessageService) String() string
- func (*DecryptedMessageService) TypeID() uint32
- func (d *DecryptedMessageService) TypeInfo() tdp.Type
- func (*DecryptedMessageService) TypeName() string
- func (d *DecryptedMessageService) Zero() bool
- type DecryptedMessageService8
- func (d *DecryptedMessageService8) Decode(b *bin.Buffer) error
- func (d *DecryptedMessageService8) DecodeBare(b *bin.Buffer) error
- func (d *DecryptedMessageService8) Encode(b *bin.Buffer) error
- func (d *DecryptedMessageService8) EncodeBare(b *bin.Buffer) error
- func (d *DecryptedMessageService8) GetAction() (value DecryptedMessageActionClass)
- func (d *DecryptedMessageService8) GetRandomBytes() (value []byte)
- func (d *DecryptedMessageService8) GetRandomID() (value int64)
- func (d *DecryptedMessageService8) String() string
- func (*DecryptedMessageService8) TypeID() uint32
- func (d *DecryptedMessageService8) TypeInfo() tdp.Type
- func (*DecryptedMessageService8) TypeName() string
- func (d *DecryptedMessageService8) Zero() bool
- type DocumentAttributeAnimated
- func (d *DocumentAttributeAnimated) Decode(b *bin.Buffer) error
- func (d *DocumentAttributeAnimated) DecodeBare(b *bin.Buffer) error
- func (d *DocumentAttributeAnimated) Encode(b *bin.Buffer) error
- func (d *DocumentAttributeAnimated) EncodeBare(b *bin.Buffer) error
- func (d *DocumentAttributeAnimated) String() string
- func (*DocumentAttributeAnimated) TypeID() uint32
- func (d *DocumentAttributeAnimated) TypeInfo() tdp.Type
- func (*DocumentAttributeAnimated) TypeName() string
- func (d *DocumentAttributeAnimated) Zero() bool
- type DocumentAttributeAudio
- func (d *DocumentAttributeAudio) Decode(b *bin.Buffer) error
- func (d *DocumentAttributeAudio) DecodeBare(b *bin.Buffer) error
- func (d *DocumentAttributeAudio) Encode(b *bin.Buffer) error
- func (d *DocumentAttributeAudio) EncodeBare(b *bin.Buffer) error
- func (d *DocumentAttributeAudio) GetDuration() (value int)
- func (d *DocumentAttributeAudio) GetPerformer() (value string, ok bool)
- func (d *DocumentAttributeAudio) GetTitle() (value string, ok bool)
- func (d *DocumentAttributeAudio) GetVoice() (value bool)
- func (d *DocumentAttributeAudio) GetWaveform() (value []byte, ok bool)
- func (d *DocumentAttributeAudio) SetFlags()
- func (d *DocumentAttributeAudio) SetPerformer(value string)
- func (d *DocumentAttributeAudio) SetTitle(value string)
- func (d *DocumentAttributeAudio) SetVoice(value bool)
- func (d *DocumentAttributeAudio) SetWaveform(value []byte)
- func (d *DocumentAttributeAudio) String() string
- func (*DocumentAttributeAudio) TypeID() uint32
- func (d *DocumentAttributeAudio) TypeInfo() tdp.Type
- func (*DocumentAttributeAudio) TypeName() string
- func (d *DocumentAttributeAudio) Zero() bool
- type DocumentAttributeAudio23
- func (d *DocumentAttributeAudio23) Decode(b *bin.Buffer) error
- func (d *DocumentAttributeAudio23) DecodeBare(b *bin.Buffer) error
- func (d *DocumentAttributeAudio23) Encode(b *bin.Buffer) error
- func (d *DocumentAttributeAudio23) EncodeBare(b *bin.Buffer) error
- func (d *DocumentAttributeAudio23) GetDuration() (value int)
- func (d *DocumentAttributeAudio23) String() string
- func (*DocumentAttributeAudio23) TypeID() uint32
- func (d *DocumentAttributeAudio23) TypeInfo() tdp.Type
- func (*DocumentAttributeAudio23) TypeName() string
- func (d *DocumentAttributeAudio23) Zero() bool
- type DocumentAttributeAudio45
- func (d *DocumentAttributeAudio45) Decode(b *bin.Buffer) error
- func (d *DocumentAttributeAudio45) DecodeBare(b *bin.Buffer) error
- func (d *DocumentAttributeAudio45) Encode(b *bin.Buffer) error
- func (d *DocumentAttributeAudio45) EncodeBare(b *bin.Buffer) error
- func (d *DocumentAttributeAudio45) GetDuration() (value int)
- func (d *DocumentAttributeAudio45) GetPerformer() (value string)
- func (d *DocumentAttributeAudio45) GetTitle() (value string)
- func (d *DocumentAttributeAudio45) String() string
- func (*DocumentAttributeAudio45) TypeID() uint32
- func (d *DocumentAttributeAudio45) TypeInfo() tdp.Type
- func (*DocumentAttributeAudio45) TypeName() string
- func (d *DocumentAttributeAudio45) Zero() bool
- type DocumentAttributeBox
- type DocumentAttributeClass
- type DocumentAttributeFilename
- func (d *DocumentAttributeFilename) Decode(b *bin.Buffer) error
- func (d *DocumentAttributeFilename) DecodeBare(b *bin.Buffer) error
- func (d *DocumentAttributeFilename) Encode(b *bin.Buffer) error
- func (d *DocumentAttributeFilename) EncodeBare(b *bin.Buffer) error
- func (d *DocumentAttributeFilename) GetFileName() (value string)
- func (d *DocumentAttributeFilename) String() string
- func (*DocumentAttributeFilename) TypeID() uint32
- func (d *DocumentAttributeFilename) TypeInfo() tdp.Type
- func (*DocumentAttributeFilename) TypeName() string
- func (d *DocumentAttributeFilename) Zero() bool
- type DocumentAttributeImageSize
- func (d *DocumentAttributeImageSize) Decode(b *bin.Buffer) error
- func (d *DocumentAttributeImageSize) DecodeBare(b *bin.Buffer) error
- func (d *DocumentAttributeImageSize) Encode(b *bin.Buffer) error
- func (d *DocumentAttributeImageSize) EncodeBare(b *bin.Buffer) error
- func (d *DocumentAttributeImageSize) GetH() (value int)
- func (d *DocumentAttributeImageSize) GetW() (value int)
- func (d *DocumentAttributeImageSize) String() string
- func (*DocumentAttributeImageSize) TypeID() uint32
- func (d *DocumentAttributeImageSize) TypeInfo() tdp.Type
- func (*DocumentAttributeImageSize) TypeName() string
- func (d *DocumentAttributeImageSize) Zero() bool
- type DocumentAttributeSticker
- func (d *DocumentAttributeSticker) Decode(b *bin.Buffer) error
- func (d *DocumentAttributeSticker) DecodeBare(b *bin.Buffer) error
- func (d *DocumentAttributeSticker) Encode(b *bin.Buffer) error
- func (d *DocumentAttributeSticker) EncodeBare(b *bin.Buffer) error
- func (d *DocumentAttributeSticker) GetAlt() (value string)
- func (d *DocumentAttributeSticker) GetStickerset() (value InputStickerSetClass)
- func (d *DocumentAttributeSticker) String() string
- func (*DocumentAttributeSticker) TypeID() uint32
- func (d *DocumentAttributeSticker) TypeInfo() tdp.Type
- func (*DocumentAttributeSticker) TypeName() string
- func (d *DocumentAttributeSticker) Zero() bool
- type DocumentAttributeSticker23
- func (d *DocumentAttributeSticker23) Decode(b *bin.Buffer) error
- func (d *DocumentAttributeSticker23) DecodeBare(b *bin.Buffer) error
- func (d *DocumentAttributeSticker23) Encode(b *bin.Buffer) error
- func (d *DocumentAttributeSticker23) EncodeBare(b *bin.Buffer) error
- func (d *DocumentAttributeSticker23) String() string
- func (*DocumentAttributeSticker23) TypeID() uint32
- func (d *DocumentAttributeSticker23) TypeInfo() tdp.Type
- func (*DocumentAttributeSticker23) TypeName() string
- func (d *DocumentAttributeSticker23) Zero() bool
- type DocumentAttributeVideo
- func (d *DocumentAttributeVideo) Decode(b *bin.Buffer) error
- func (d *DocumentAttributeVideo) DecodeBare(b *bin.Buffer) error
- func (d *DocumentAttributeVideo) Encode(b *bin.Buffer) error
- func (d *DocumentAttributeVideo) EncodeBare(b *bin.Buffer) error
- func (d *DocumentAttributeVideo) GetDuration() (value int)
- func (d *DocumentAttributeVideo) GetH() (value int)
- func (d *DocumentAttributeVideo) GetRoundMessage() (value bool)
- func (d *DocumentAttributeVideo) GetW() (value int)
- func (d *DocumentAttributeVideo) SetFlags()
- func (d *DocumentAttributeVideo) SetRoundMessage(value bool)
- func (d *DocumentAttributeVideo) String() string
- func (*DocumentAttributeVideo) TypeID() uint32
- func (d *DocumentAttributeVideo) TypeInfo() tdp.Type
- func (*DocumentAttributeVideo) TypeName() string
- func (d *DocumentAttributeVideo) Zero() bool
- type DocumentAttributeVideo23
- func (d *DocumentAttributeVideo23) Decode(b *bin.Buffer) error
- func (d *DocumentAttributeVideo23) DecodeBare(b *bin.Buffer) error
- func (d *DocumentAttributeVideo23) Encode(b *bin.Buffer) error
- func (d *DocumentAttributeVideo23) EncodeBare(b *bin.Buffer) error
- func (d *DocumentAttributeVideo23) GetDuration() (value int)
- func (d *DocumentAttributeVideo23) GetH() (value int)
- func (d *DocumentAttributeVideo23) GetW() (value int)
- func (d *DocumentAttributeVideo23) String() string
- func (*DocumentAttributeVideo23) TypeID() uint32
- func (d *DocumentAttributeVideo23) TypeInfo() tdp.Type
- func (*DocumentAttributeVideo23) TypeName() string
- func (d *DocumentAttributeVideo23) Zero() bool
- type Double
- func (d *Double) Decode(b *bin.Buffer) error
- func (d *Double) DecodeBare(b *bin.Buffer) error
- func (d *Double) Encode(b *bin.Buffer) error
- func (d *Double) EncodeBare(b *bin.Buffer) error
- func (d *Double) String() string
- func (*Double) TypeID() uint32
- func (d *Double) TypeInfo() tdp.Type
- func (*Double) TypeName() string
- func (d *Double) Zero() bool
- type FileLocation
- func (f *FileLocation) Decode(b *bin.Buffer) error
- func (f *FileLocation) DecodeBare(b *bin.Buffer) error
- func (f *FileLocation) Encode(b *bin.Buffer) error
- func (f *FileLocation) EncodeBare(b *bin.Buffer) error
- func (f *FileLocation) GetDCID() (value int)
- func (f *FileLocation) GetLocalID() (value int)
- func (f *FileLocation) GetSecret() (value int64)
- func (f *FileLocation) GetVolumeID() (value int64)
- func (f *FileLocation) String() string
- func (*FileLocation) TypeID() uint32
- func (f *FileLocation) TypeInfo() tdp.Type
- func (*FileLocation) TypeName() string
- func (f *FileLocation) Zero() bool
- type FileLocationBox
- type FileLocationClass
- type FileLocationUnavailable
- func (f *FileLocationUnavailable) Decode(b *bin.Buffer) error
- func (f *FileLocationUnavailable) DecodeBare(b *bin.Buffer) error
- func (f *FileLocationUnavailable) Encode(b *bin.Buffer) error
- func (f *FileLocationUnavailable) EncodeBare(b *bin.Buffer) error
- func (f *FileLocationUnavailable) GetLocalID() (value int)
- func (f *FileLocationUnavailable) GetSecret() (value int64)
- func (f *FileLocationUnavailable) GetVolumeID() (value int64)
- func (f *FileLocationUnavailable) String() string
- func (*FileLocationUnavailable) TypeID() uint32
- func (f *FileLocationUnavailable) TypeInfo() tdp.Type
- func (*FileLocationUnavailable) TypeName() string
- func (f *FileLocationUnavailable) Zero() bool
- type InputStickerSetBox
- type InputStickerSetClass
- type InputStickerSetEmpty
- func (i *InputStickerSetEmpty) Decode(b *bin.Buffer) error
- func (i *InputStickerSetEmpty) DecodeBare(b *bin.Buffer) error
- func (i *InputStickerSetEmpty) Encode(b *bin.Buffer) error
- func (i *InputStickerSetEmpty) EncodeBare(b *bin.Buffer) error
- func (i *InputStickerSetEmpty) String() string
- func (*InputStickerSetEmpty) TypeID() uint32
- func (i *InputStickerSetEmpty) TypeInfo() tdp.Type
- func (*InputStickerSetEmpty) TypeName() string
- func (i *InputStickerSetEmpty) Zero() bool
- type InputStickerSetShortName
- func (i *InputStickerSetShortName) Decode(b *bin.Buffer) error
- func (i *InputStickerSetShortName) DecodeBare(b *bin.Buffer) error
- func (i *InputStickerSetShortName) Encode(b *bin.Buffer) error
- func (i *InputStickerSetShortName) EncodeBare(b *bin.Buffer) error
- func (i *InputStickerSetShortName) GetShortName() (value string)
- func (i *InputStickerSetShortName) String() string
- func (*InputStickerSetShortName) TypeID() uint32
- func (i *InputStickerSetShortName) TypeInfo() tdp.Type
- func (*InputStickerSetShortName) TypeName() string
- func (i *InputStickerSetShortName) Zero() bool
- type Int
- func (i *Int) Decode(b *bin.Buffer) error
- func (i *Int) DecodeBare(b *bin.Buffer) error
- func (i *Int) Encode(b *bin.Buffer) error
- func (i *Int) EncodeBare(b *bin.Buffer) error
- func (i *Int) String() string
- func (*Int) TypeID() uint32
- func (i *Int) TypeInfo() tdp.Type
- func (*Int) TypeName() string
- func (i *Int) Zero() bool
- type Invoker
- type Long
- func (l *Long) Decode(b *bin.Buffer) error
- func (l *Long) DecodeBare(b *bin.Buffer) error
- func (l *Long) Encode(b *bin.Buffer) error
- func (l *Long) EncodeBare(b *bin.Buffer) error
- func (l *Long) String() string
- func (*Long) TypeID() uint32
- func (l *Long) TypeInfo() tdp.Type
- func (*Long) TypeName() string
- func (l *Long) Zero() bool
- type MessageEntityBankCard
- func (m *MessageEntityBankCard) Decode(b *bin.Buffer) error
- func (m *MessageEntityBankCard) DecodeBare(b *bin.Buffer) error
- func (m *MessageEntityBankCard) Encode(b *bin.Buffer) error
- func (m *MessageEntityBankCard) EncodeBare(b *bin.Buffer) error
- func (m *MessageEntityBankCard) GetLength() (value int)
- func (m *MessageEntityBankCard) GetOffset() (value int)
- func (m *MessageEntityBankCard) String() string
- func (*MessageEntityBankCard) TypeID() uint32
- func (m *MessageEntityBankCard) TypeInfo() tdp.Type
- func (*MessageEntityBankCard) TypeName() string
- func (m *MessageEntityBankCard) Zero() bool
- type MessageEntityBlockquote
- func (m *MessageEntityBlockquote) Decode(b *bin.Buffer) error
- func (m *MessageEntityBlockquote) DecodeBare(b *bin.Buffer) error
- func (m *MessageEntityBlockquote) Encode(b *bin.Buffer) error
- func (m *MessageEntityBlockquote) EncodeBare(b *bin.Buffer) error
- func (m *MessageEntityBlockquote) GetLength() (value int)
- func (m *MessageEntityBlockquote) GetOffset() (value int)
- func (m *MessageEntityBlockquote) String() string
- func (*MessageEntityBlockquote) TypeID() uint32
- func (m *MessageEntityBlockquote) TypeInfo() tdp.Type
- func (*MessageEntityBlockquote) TypeName() string
- func (m *MessageEntityBlockquote) Zero() bool
- type MessageEntityBold
- func (m *MessageEntityBold) Decode(b *bin.Buffer) error
- func (m *MessageEntityBold) DecodeBare(b *bin.Buffer) error
- func (m *MessageEntityBold) Encode(b *bin.Buffer) error
- func (m *MessageEntityBold) EncodeBare(b *bin.Buffer) error
- func (m *MessageEntityBold) GetLength() (value int)
- func (m *MessageEntityBold) GetOffset() (value int)
- func (m *MessageEntityBold) String() string
- func (*MessageEntityBold) TypeID() uint32
- func (m *MessageEntityBold) TypeInfo() tdp.Type
- func (*MessageEntityBold) TypeName() string
- func (m *MessageEntityBold) Zero() bool
- type MessageEntityBotCommand
- func (m *MessageEntityBotCommand) Decode(b *bin.Buffer) error
- func (m *MessageEntityBotCommand) DecodeBare(b *bin.Buffer) error
- func (m *MessageEntityBotCommand) Encode(b *bin.Buffer) error
- func (m *MessageEntityBotCommand) EncodeBare(b *bin.Buffer) error
- func (m *MessageEntityBotCommand) GetLength() (value int)
- func (m *MessageEntityBotCommand) GetOffset() (value int)
- func (m *MessageEntityBotCommand) String() string
- func (*MessageEntityBotCommand) TypeID() uint32
- func (m *MessageEntityBotCommand) TypeInfo() tdp.Type
- func (*MessageEntityBotCommand) TypeName() string
- func (m *MessageEntityBotCommand) Zero() bool
- type MessageEntityBox
- type MessageEntityCashtag
- func (m *MessageEntityCashtag) Decode(b *bin.Buffer) error
- func (m *MessageEntityCashtag) DecodeBare(b *bin.Buffer) error
- func (m *MessageEntityCashtag) Encode(b *bin.Buffer) error
- func (m *MessageEntityCashtag) EncodeBare(b *bin.Buffer) error
- func (m *MessageEntityCashtag) GetLength() (value int)
- func (m *MessageEntityCashtag) GetOffset() (value int)
- func (m *MessageEntityCashtag) String() string
- func (*MessageEntityCashtag) TypeID() uint32
- func (m *MessageEntityCashtag) TypeInfo() tdp.Type
- func (*MessageEntityCashtag) TypeName() string
- func (m *MessageEntityCashtag) Zero() bool
- type MessageEntityClass
- type MessageEntityCode
- func (m *MessageEntityCode) Decode(b *bin.Buffer) error
- func (m *MessageEntityCode) DecodeBare(b *bin.Buffer) error
- func (m *MessageEntityCode) Encode(b *bin.Buffer) error
- func (m *MessageEntityCode) EncodeBare(b *bin.Buffer) error
- func (m *MessageEntityCode) GetLength() (value int)
- func (m *MessageEntityCode) GetOffset() (value int)
- func (m *MessageEntityCode) String() string
- func (*MessageEntityCode) TypeID() uint32
- func (m *MessageEntityCode) TypeInfo() tdp.Type
- func (*MessageEntityCode) TypeName() string
- func (m *MessageEntityCode) Zero() bool
- type MessageEntityCustomEmoji
- func (m *MessageEntityCustomEmoji) Decode(b *bin.Buffer) error
- func (m *MessageEntityCustomEmoji) DecodeBare(b *bin.Buffer) error
- func (m *MessageEntityCustomEmoji) Encode(b *bin.Buffer) error
- func (m *MessageEntityCustomEmoji) EncodeBare(b *bin.Buffer) error
- func (m *MessageEntityCustomEmoji) GetDocumentID() (value int64)
- func (m *MessageEntityCustomEmoji) GetLength() (value int)
- func (m *MessageEntityCustomEmoji) GetOffset() (value int)
- func (m *MessageEntityCustomEmoji) String() string
- func (*MessageEntityCustomEmoji) TypeID() uint32
- func (m *MessageEntityCustomEmoji) TypeInfo() tdp.Type
- func (*MessageEntityCustomEmoji) TypeName() string
- func (m *MessageEntityCustomEmoji) Zero() bool
- type MessageEntityEmail
- func (m *MessageEntityEmail) Decode(b *bin.Buffer) error
- func (m *MessageEntityEmail) DecodeBare(b *bin.Buffer) error
- func (m *MessageEntityEmail) Encode(b *bin.Buffer) error
- func (m *MessageEntityEmail) EncodeBare(b *bin.Buffer) error
- func (m *MessageEntityEmail) GetLength() (value int)
- func (m *MessageEntityEmail) GetOffset() (value int)
- func (m *MessageEntityEmail) String() string
- func (*MessageEntityEmail) TypeID() uint32
- func (m *MessageEntityEmail) TypeInfo() tdp.Type
- func (*MessageEntityEmail) TypeName() string
- func (m *MessageEntityEmail) Zero() bool
- type MessageEntityHashtag
- func (m *MessageEntityHashtag) Decode(b *bin.Buffer) error
- func (m *MessageEntityHashtag) DecodeBare(b *bin.Buffer) error
- func (m *MessageEntityHashtag) Encode(b *bin.Buffer) error
- func (m *MessageEntityHashtag) EncodeBare(b *bin.Buffer) error
- func (m *MessageEntityHashtag) GetLength() (value int)
- func (m *MessageEntityHashtag) GetOffset() (value int)
- func (m *MessageEntityHashtag) String() string
- func (*MessageEntityHashtag) TypeID() uint32
- func (m *MessageEntityHashtag) TypeInfo() tdp.Type
- func (*MessageEntityHashtag) TypeName() string
- func (m *MessageEntityHashtag) Zero() bool
- type MessageEntityItalic
- func (m *MessageEntityItalic) Decode(b *bin.Buffer) error
- func (m *MessageEntityItalic) DecodeBare(b *bin.Buffer) error
- func (m *MessageEntityItalic) Encode(b *bin.Buffer) error
- func (m *MessageEntityItalic) EncodeBare(b *bin.Buffer) error
- func (m *MessageEntityItalic) GetLength() (value int)
- func (m *MessageEntityItalic) GetOffset() (value int)
- func (m *MessageEntityItalic) String() string
- func (*MessageEntityItalic) TypeID() uint32
- func (m *MessageEntityItalic) TypeInfo() tdp.Type
- func (*MessageEntityItalic) TypeName() string
- func (m *MessageEntityItalic) Zero() bool
- type MessageEntityMention
- func (m *MessageEntityMention) Decode(b *bin.Buffer) error
- func (m *MessageEntityMention) DecodeBare(b *bin.Buffer) error
- func (m *MessageEntityMention) Encode(b *bin.Buffer) error
- func (m *MessageEntityMention) EncodeBare(b *bin.Buffer) error
- func (m *MessageEntityMention) GetLength() (value int)
- func (m *MessageEntityMention) GetOffset() (value int)
- func (m *MessageEntityMention) String() string
- func (*MessageEntityMention) TypeID() uint32
- func (m *MessageEntityMention) TypeInfo() tdp.Type
- func (*MessageEntityMention) TypeName() string
- func (m *MessageEntityMention) Zero() bool
- type MessageEntityMentionName
- func (m *MessageEntityMentionName) Decode(b *bin.Buffer) error
- func (m *MessageEntityMentionName) DecodeBare(b *bin.Buffer) error
- func (m *MessageEntityMentionName) Encode(b *bin.Buffer) error
- func (m *MessageEntityMentionName) EncodeBare(b *bin.Buffer) error
- func (m *MessageEntityMentionName) GetLength() (value int)
- func (m *MessageEntityMentionName) GetOffset() (value int)
- func (m *MessageEntityMentionName) GetUserID() (value int)
- func (m *MessageEntityMentionName) String() string
- func (*MessageEntityMentionName) TypeID() uint32
- func (m *MessageEntityMentionName) TypeInfo() tdp.Type
- func (*MessageEntityMentionName) TypeName() string
- func (m *MessageEntityMentionName) Zero() bool
- type MessageEntityPhone
- func (m *MessageEntityPhone) Decode(b *bin.Buffer) error
- func (m *MessageEntityPhone) DecodeBare(b *bin.Buffer) error
- func (m *MessageEntityPhone) Encode(b *bin.Buffer) error
- func (m *MessageEntityPhone) EncodeBare(b *bin.Buffer) error
- func (m *MessageEntityPhone) GetLength() (value int)
- func (m *MessageEntityPhone) GetOffset() (value int)
- func (m *MessageEntityPhone) String() string
- func (*MessageEntityPhone) TypeID() uint32
- func (m *MessageEntityPhone) TypeInfo() tdp.Type
- func (*MessageEntityPhone) TypeName() string
- func (m *MessageEntityPhone) Zero() bool
- type MessageEntityPre
- func (m *MessageEntityPre) Decode(b *bin.Buffer) error
- func (m *MessageEntityPre) DecodeBare(b *bin.Buffer) error
- func (m *MessageEntityPre) Encode(b *bin.Buffer) error
- func (m *MessageEntityPre) EncodeBare(b *bin.Buffer) error
- func (m *MessageEntityPre) GetLanguage() (value string)
- func (m *MessageEntityPre) GetLength() (value int)
- func (m *MessageEntityPre) GetOffset() (value int)
- func (m *MessageEntityPre) String() string
- func (*MessageEntityPre) TypeID() uint32
- func (m *MessageEntityPre) TypeInfo() tdp.Type
- func (*MessageEntityPre) TypeName() string
- func (m *MessageEntityPre) Zero() bool
- type MessageEntitySpoiler
- func (m *MessageEntitySpoiler) Decode(b *bin.Buffer) error
- func (m *MessageEntitySpoiler) DecodeBare(b *bin.Buffer) error
- func (m *MessageEntitySpoiler) Encode(b *bin.Buffer) error
- func (m *MessageEntitySpoiler) EncodeBare(b *bin.Buffer) error
- func (m *MessageEntitySpoiler) GetLength() (value int)
- func (m *MessageEntitySpoiler) GetOffset() (value int)
- func (m *MessageEntitySpoiler) String() string
- func (*MessageEntitySpoiler) TypeID() uint32
- func (m *MessageEntitySpoiler) TypeInfo() tdp.Type
- func (*MessageEntitySpoiler) TypeName() string
- func (m *MessageEntitySpoiler) Zero() bool
- type MessageEntityStrike
- func (m *MessageEntityStrike) Decode(b *bin.Buffer) error
- func (m *MessageEntityStrike) DecodeBare(b *bin.Buffer) error
- func (m *MessageEntityStrike) Encode(b *bin.Buffer) error
- func (m *MessageEntityStrike) EncodeBare(b *bin.Buffer) error
- func (m *MessageEntityStrike) GetLength() (value int)
- func (m *MessageEntityStrike) GetOffset() (value int)
- func (m *MessageEntityStrike) String() string
- func (*MessageEntityStrike) TypeID() uint32
- func (m *MessageEntityStrike) TypeInfo() tdp.Type
- func (*MessageEntityStrike) TypeName() string
- func (m *MessageEntityStrike) Zero() bool
- type MessageEntityTextURL
- func (m *MessageEntityTextURL) Decode(b *bin.Buffer) error
- func (m *MessageEntityTextURL) DecodeBare(b *bin.Buffer) error
- func (m *MessageEntityTextURL) Encode(b *bin.Buffer) error
- func (m *MessageEntityTextURL) EncodeBare(b *bin.Buffer) error
- func (m *MessageEntityTextURL) GetLength() (value int)
- func (m *MessageEntityTextURL) GetOffset() (value int)
- func (m *MessageEntityTextURL) GetURL() (value string)
- func (m *MessageEntityTextURL) String() string
- func (*MessageEntityTextURL) TypeID() uint32
- func (m *MessageEntityTextURL) TypeInfo() tdp.Type
- func (*MessageEntityTextURL) TypeName() string
- func (m *MessageEntityTextURL) Zero() bool
- type MessageEntityURL
- func (m *MessageEntityURL) Decode(b *bin.Buffer) error
- func (m *MessageEntityURL) DecodeBare(b *bin.Buffer) error
- func (m *MessageEntityURL) Encode(b *bin.Buffer) error
- func (m *MessageEntityURL) EncodeBare(b *bin.Buffer) error
- func (m *MessageEntityURL) GetLength() (value int)
- func (m *MessageEntityURL) GetOffset() (value int)
- func (m *MessageEntityURL) String() string
- func (*MessageEntityURL) TypeID() uint32
- func (m *MessageEntityURL) TypeInfo() tdp.Type
- func (*MessageEntityURL) TypeName() string
- func (m *MessageEntityURL) Zero() bool
- type MessageEntityUnderline
- func (m *MessageEntityUnderline) Decode(b *bin.Buffer) error
- func (m *MessageEntityUnderline) DecodeBare(b *bin.Buffer) error
- func (m *MessageEntityUnderline) Encode(b *bin.Buffer) error
- func (m *MessageEntityUnderline) EncodeBare(b *bin.Buffer) error
- func (m *MessageEntityUnderline) GetLength() (value int)
- func (m *MessageEntityUnderline) GetOffset() (value int)
- func (m *MessageEntityUnderline) String() string
- func (*MessageEntityUnderline) TypeID() uint32
- func (m *MessageEntityUnderline) TypeInfo() tdp.Type
- func (*MessageEntityUnderline) TypeName() string
- func (m *MessageEntityUnderline) Zero() bool
- type MessageEntityUnknown
- func (m *MessageEntityUnknown) Decode(b *bin.Buffer) error
- func (m *MessageEntityUnknown) DecodeBare(b *bin.Buffer) error
- func (m *MessageEntityUnknown) Encode(b *bin.Buffer) error
- func (m *MessageEntityUnknown) EncodeBare(b *bin.Buffer) error
- func (m *MessageEntityUnknown) GetLength() (value int)
- func (m *MessageEntityUnknown) GetOffset() (value int)
- func (m *MessageEntityUnknown) String() string
- func (*MessageEntityUnknown) TypeID() uint32
- func (m *MessageEntityUnknown) TypeInfo() tdp.Type
- func (*MessageEntityUnknown) TypeName() string
- func (m *MessageEntityUnknown) Zero() bool
- type PhotoCachedSize
- func (p *PhotoCachedSize) Decode(b *bin.Buffer) error
- func (p *PhotoCachedSize) DecodeBare(b *bin.Buffer) error
- func (p *PhotoCachedSize) Encode(b *bin.Buffer) error
- func (p *PhotoCachedSize) EncodeBare(b *bin.Buffer) error
- func (p *PhotoCachedSize) GetBytes() (value []byte)
- func (p *PhotoCachedSize) GetH() (value int)
- func (p *PhotoCachedSize) GetLocation() (value FileLocationClass)
- func (p *PhotoCachedSize) GetType() (value string)
- func (p *PhotoCachedSize) GetW() (value int)
- func (p *PhotoCachedSize) String() string
- func (*PhotoCachedSize) TypeID() uint32
- func (p *PhotoCachedSize) TypeInfo() tdp.Type
- func (*PhotoCachedSize) TypeName() string
- func (p *PhotoCachedSize) Zero() bool
- type PhotoSize
- func (p *PhotoSize) Decode(b *bin.Buffer) error
- func (p *PhotoSize) DecodeBare(b *bin.Buffer) error
- func (p *PhotoSize) Encode(b *bin.Buffer) error
- func (p *PhotoSize) EncodeBare(b *bin.Buffer) error
- func (p *PhotoSize) GetH() (value int)
- func (p *PhotoSize) GetLocation() (value FileLocationClass)
- func (p *PhotoSize) GetSize() (value int)
- func (p *PhotoSize) GetType() (value string)
- func (p *PhotoSize) GetW() (value int)
- func (p *PhotoSize) String() string
- func (*PhotoSize) TypeID() uint32
- func (p *PhotoSize) TypeInfo() tdp.Type
- func (*PhotoSize) TypeName() string
- func (p *PhotoSize) Zero() bool
- type PhotoSizeBox
- type PhotoSizeClass
- type PhotoSizeEmpty
- func (p *PhotoSizeEmpty) Decode(b *bin.Buffer) error
- func (p *PhotoSizeEmpty) DecodeBare(b *bin.Buffer) error
- func (p *PhotoSizeEmpty) Encode(b *bin.Buffer) error
- func (p *PhotoSizeEmpty) EncodeBare(b *bin.Buffer) error
- func (p *PhotoSizeEmpty) GetType() (value string)
- func (p *PhotoSizeEmpty) String() string
- func (*PhotoSizeEmpty) TypeID() uint32
- func (p *PhotoSizeEmpty) TypeInfo() tdp.Type
- func (*PhotoSizeEmpty) TypeName() string
- func (p *PhotoSizeEmpty) Zero() bool
- type SendMessageActionBox
- type SendMessageActionClass
- type SendMessageCancelAction
- func (s *SendMessageCancelAction) Decode(b *bin.Buffer) error
- func (s *SendMessageCancelAction) DecodeBare(b *bin.Buffer) error
- func (s *SendMessageCancelAction) Encode(b *bin.Buffer) error
- func (s *SendMessageCancelAction) EncodeBare(b *bin.Buffer) error
- func (s *SendMessageCancelAction) String() string
- func (*SendMessageCancelAction) TypeID() uint32
- func (s *SendMessageCancelAction) TypeInfo() tdp.Type
- func (*SendMessageCancelAction) TypeName() string
- func (s *SendMessageCancelAction) Zero() bool
- type SendMessageChooseContactAction
- func (s *SendMessageChooseContactAction) Decode(b *bin.Buffer) error
- func (s *SendMessageChooseContactAction) DecodeBare(b *bin.Buffer) error
- func (s *SendMessageChooseContactAction) Encode(b *bin.Buffer) error
- func (s *SendMessageChooseContactAction) EncodeBare(b *bin.Buffer) error
- func (s *SendMessageChooseContactAction) String() string
- func (*SendMessageChooseContactAction) TypeID() uint32
- func (s *SendMessageChooseContactAction) TypeInfo() tdp.Type
- func (*SendMessageChooseContactAction) TypeName() string
- func (s *SendMessageChooseContactAction) Zero() bool
- type SendMessageGeoLocationAction
- func (s *SendMessageGeoLocationAction) Decode(b *bin.Buffer) error
- func (s *SendMessageGeoLocationAction) DecodeBare(b *bin.Buffer) error
- func (s *SendMessageGeoLocationAction) Encode(b *bin.Buffer) error
- func (s *SendMessageGeoLocationAction) EncodeBare(b *bin.Buffer) error
- func (s *SendMessageGeoLocationAction) String() string
- func (*SendMessageGeoLocationAction) TypeID() uint32
- func (s *SendMessageGeoLocationAction) TypeInfo() tdp.Type
- func (*SendMessageGeoLocationAction) TypeName() string
- func (s *SendMessageGeoLocationAction) Zero() bool
- type SendMessageRecordAudioAction
- func (s *SendMessageRecordAudioAction) Decode(b *bin.Buffer) error
- func (s *SendMessageRecordAudioAction) DecodeBare(b *bin.Buffer) error
- func (s *SendMessageRecordAudioAction) Encode(b *bin.Buffer) error
- func (s *SendMessageRecordAudioAction) EncodeBare(b *bin.Buffer) error
- func (s *SendMessageRecordAudioAction) String() string
- func (*SendMessageRecordAudioAction) TypeID() uint32
- func (s *SendMessageRecordAudioAction) TypeInfo() tdp.Type
- func (*SendMessageRecordAudioAction) TypeName() string
- func (s *SendMessageRecordAudioAction) Zero() bool
- type SendMessageRecordRoundAction
- func (s *SendMessageRecordRoundAction) Decode(b *bin.Buffer) error
- func (s *SendMessageRecordRoundAction) DecodeBare(b *bin.Buffer) error
- func (s *SendMessageRecordRoundAction) Encode(b *bin.Buffer) error
- func (s *SendMessageRecordRoundAction) EncodeBare(b *bin.Buffer) error
- func (s *SendMessageRecordRoundAction) String() string
- func (*SendMessageRecordRoundAction) TypeID() uint32
- func (s *SendMessageRecordRoundAction) TypeInfo() tdp.Type
- func (*SendMessageRecordRoundAction) TypeName() string
- func (s *SendMessageRecordRoundAction) Zero() bool
- type SendMessageRecordVideoAction
- func (s *SendMessageRecordVideoAction) Decode(b *bin.Buffer) error
- func (s *SendMessageRecordVideoAction) DecodeBare(b *bin.Buffer) error
- func (s *SendMessageRecordVideoAction) Encode(b *bin.Buffer) error
- func (s *SendMessageRecordVideoAction) EncodeBare(b *bin.Buffer) error
- func (s *SendMessageRecordVideoAction) String() string
- func (*SendMessageRecordVideoAction) TypeID() uint32
- func (s *SendMessageRecordVideoAction) TypeInfo() tdp.Type
- func (*SendMessageRecordVideoAction) TypeName() string
- func (s *SendMessageRecordVideoAction) Zero() bool
- type SendMessageTypingAction
- func (s *SendMessageTypingAction) Decode(b *bin.Buffer) error
- func (s *SendMessageTypingAction) DecodeBare(b *bin.Buffer) error
- func (s *SendMessageTypingAction) Encode(b *bin.Buffer) error
- func (s *SendMessageTypingAction) EncodeBare(b *bin.Buffer) error
- func (s *SendMessageTypingAction) String() string
- func (*SendMessageTypingAction) TypeID() uint32
- func (s *SendMessageTypingAction) TypeInfo() tdp.Type
- func (*SendMessageTypingAction) TypeName() string
- func (s *SendMessageTypingAction) Zero() bool
- type SendMessageUploadAudioAction
- func (s *SendMessageUploadAudioAction) Decode(b *bin.Buffer) error
- func (s *SendMessageUploadAudioAction) DecodeBare(b *bin.Buffer) error
- func (s *SendMessageUploadAudioAction) Encode(b *bin.Buffer) error
- func (s *SendMessageUploadAudioAction) EncodeBare(b *bin.Buffer) error
- func (s *SendMessageUploadAudioAction) String() string
- func (*SendMessageUploadAudioAction) TypeID() uint32
- func (s *SendMessageUploadAudioAction) TypeInfo() tdp.Type
- func (*SendMessageUploadAudioAction) TypeName() string
- func (s *SendMessageUploadAudioAction) Zero() bool
- type SendMessageUploadDocumentAction
- func (s *SendMessageUploadDocumentAction) Decode(b *bin.Buffer) error
- func (s *SendMessageUploadDocumentAction) DecodeBare(b *bin.Buffer) error
- func (s *SendMessageUploadDocumentAction) Encode(b *bin.Buffer) error
- func (s *SendMessageUploadDocumentAction) EncodeBare(b *bin.Buffer) error
- func (s *SendMessageUploadDocumentAction) String() string
- func (*SendMessageUploadDocumentAction) TypeID() uint32
- func (s *SendMessageUploadDocumentAction) TypeInfo() tdp.Type
- func (*SendMessageUploadDocumentAction) TypeName() string
- func (s *SendMessageUploadDocumentAction) Zero() bool
- type SendMessageUploadPhotoAction
- func (s *SendMessageUploadPhotoAction) Decode(b *bin.Buffer) error
- func (s *SendMessageUploadPhotoAction) DecodeBare(b *bin.Buffer) error
- func (s *SendMessageUploadPhotoAction) Encode(b *bin.Buffer) error
- func (s *SendMessageUploadPhotoAction) EncodeBare(b *bin.Buffer) error
- func (s *SendMessageUploadPhotoAction) String() string
- func (*SendMessageUploadPhotoAction) TypeID() uint32
- func (s *SendMessageUploadPhotoAction) TypeInfo() tdp.Type
- func (*SendMessageUploadPhotoAction) TypeName() string
- func (s *SendMessageUploadPhotoAction) Zero() bool
- type SendMessageUploadRoundAction
- func (s *SendMessageUploadRoundAction) Decode(b *bin.Buffer) error
- func (s *SendMessageUploadRoundAction) DecodeBare(b *bin.Buffer) error
- func (s *SendMessageUploadRoundAction) Encode(b *bin.Buffer) error
- func (s *SendMessageUploadRoundAction) EncodeBare(b *bin.Buffer) error
- func (s *SendMessageUploadRoundAction) String() string
- func (*SendMessageUploadRoundAction) TypeID() uint32
- func (s *SendMessageUploadRoundAction) TypeInfo() tdp.Type
- func (*SendMessageUploadRoundAction) TypeName() string
- func (s *SendMessageUploadRoundAction) Zero() bool
- type SendMessageUploadVideoAction
- func (s *SendMessageUploadVideoAction) Decode(b *bin.Buffer) error
- func (s *SendMessageUploadVideoAction) DecodeBare(b *bin.Buffer) error
- func (s *SendMessageUploadVideoAction) Encode(b *bin.Buffer) error
- func (s *SendMessageUploadVideoAction) EncodeBare(b *bin.Buffer) error
- func (s *SendMessageUploadVideoAction) String() string
- func (*SendMessageUploadVideoAction) TypeID() uint32
- func (s *SendMessageUploadVideoAction) TypeInfo() tdp.Type
- func (*SendMessageUploadVideoAction) TypeName() string
- func (s *SendMessageUploadVideoAction) Zero() bool
- type String
- func (s *String) Decode(b *bin.Buffer) error
- func (s *String) DecodeBare(b *bin.Buffer) error
- func (s *String) Encode(b *bin.Buffer) error
- func (s *String) EncodeBare(b *bin.Buffer) error
- func (s *String) String() string
- func (*String) TypeID() uint32
- func (s *String) TypeInfo() tdp.Type
- func (*String) TypeName() string
- func (s *String) Zero() bool
- type TestDummyFunctionRequest
- func (d *TestDummyFunctionRequest) Decode(b *bin.Buffer) error
- func (d *TestDummyFunctionRequest) DecodeBare(b *bin.Buffer) error
- func (d *TestDummyFunctionRequest) Encode(b *bin.Buffer) error
- func (d *TestDummyFunctionRequest) EncodeBare(b *bin.Buffer) error
- func (d *TestDummyFunctionRequest) String() string
- func (*TestDummyFunctionRequest) TypeID() uint32
- func (d *TestDummyFunctionRequest) TypeInfo() tdp.Type
- func (*TestDummyFunctionRequest) TypeName() string
- func (d *TestDummyFunctionRequest) Zero() bool
- type True
- func (t *True) Decode(b *bin.Buffer) error
- func (t *True) DecodeBare(b *bin.Buffer) error
- func (t *True) Encode(b *bin.Buffer) error
- func (t *True) EncodeBare(b *bin.Buffer) error
- func (t *True) String() string
- func (*True) TypeID() uint32
- func (t *True) TypeInfo() tdp.Type
- func (*True) TypeName() string
- func (t *True) Zero() bool
Constants ¶
const BoolClassName = "Bool"
BoolClassName is schema name of BoolClass.
const BoolFalseTypeID = 0xbc799737
BoolFalseTypeID is TL type id of BoolFalse.
const BoolTrueTypeID = 0x997275b5
BoolTrueTypeID is TL type id of BoolTrue.
const BytesTypeID = 0xe937bb82
BytesTypeID is TL type id of Bytes.
const DecryptedMessage23TypeID = 0x204d3878
DecryptedMessage23TypeID is TL type id of DecryptedMessage23.
const DecryptedMessage46TypeID = 0x36b091de
DecryptedMessage46TypeID is TL type id of DecryptedMessage46.
const DecryptedMessage8TypeID = 0x1f814f1f
DecryptedMessage8TypeID is TL type id of DecryptedMessage8.
const DecryptedMessageActionAbortKeyTypeID = 0xdd05ec6b
DecryptedMessageActionAbortKeyTypeID is TL type id of DecryptedMessageActionAbortKey.
const DecryptedMessageActionAcceptKeyTypeID = 0x6fe1735b
DecryptedMessageActionAcceptKeyTypeID is TL type id of DecryptedMessageActionAcceptKey.
const DecryptedMessageActionClassName = "DecryptedMessageAction"
DecryptedMessageActionClassName is schema name of DecryptedMessageActionClass.
const DecryptedMessageActionCommitKeyTypeID = 0xec2e0b9b
DecryptedMessageActionCommitKeyTypeID is TL type id of DecryptedMessageActionCommitKey.
const DecryptedMessageActionDeleteMessagesTypeID = 0x65614304
DecryptedMessageActionDeleteMessagesTypeID is TL type id of DecryptedMessageActionDeleteMessages.
const DecryptedMessageActionFlushHistoryTypeID = 0x6719e45c
DecryptedMessageActionFlushHistoryTypeID is TL type id of DecryptedMessageActionFlushHistory.
const DecryptedMessageActionNoopTypeID = 0xa82fdd63
DecryptedMessageActionNoopTypeID is TL type id of DecryptedMessageActionNoop.
const DecryptedMessageActionNotifyLayerTypeID = 0xf3048883
DecryptedMessageActionNotifyLayerTypeID is TL type id of DecryptedMessageActionNotifyLayer.
const DecryptedMessageActionReadMessagesTypeID = 0xc4f40be
DecryptedMessageActionReadMessagesTypeID is TL type id of DecryptedMessageActionReadMessages.
const DecryptedMessageActionRequestKeyTypeID = 0xf3c9611b
DecryptedMessageActionRequestKeyTypeID is TL type id of DecryptedMessageActionRequestKey.
const DecryptedMessageActionResendTypeID = 0x511110b0
DecryptedMessageActionResendTypeID is TL type id of DecryptedMessageActionResend.
const DecryptedMessageActionScreenshotMessagesTypeID = 0x8ac1f475
DecryptedMessageActionScreenshotMessagesTypeID is TL type id of DecryptedMessageActionScreenshotMessages.
const DecryptedMessageActionSetMessageTTLTypeID = 0xa1733aec
DecryptedMessageActionSetMessageTTLTypeID is TL type id of DecryptedMessageActionSetMessageTTL.
const DecryptedMessageActionTypingTypeID = 0xccb27641
DecryptedMessageActionTypingTypeID is TL type id of DecryptedMessageActionTyping.
const DecryptedMessageClassName = "DecryptedMessage"
DecryptedMessageClassName is schema name of DecryptedMessageClass.
const DecryptedMessageLayerTypeID = 0x1be31789
DecryptedMessageLayerTypeID is TL type id of DecryptedMessageLayer.
const DecryptedMessageMediaAudio8TypeID = 0x6080758f
DecryptedMessageMediaAudio8TypeID is TL type id of DecryptedMessageMediaAudio8.
const DecryptedMessageMediaAudioTypeID = 0x57e0a9cb
DecryptedMessageMediaAudioTypeID is TL type id of DecryptedMessageMediaAudio.
const DecryptedMessageMediaClassName = "DecryptedMessageMedia"
DecryptedMessageMediaClassName is schema name of DecryptedMessageMediaClass.
const DecryptedMessageMediaContactTypeID = 0x588a0a97
DecryptedMessageMediaContactTypeID is TL type id of DecryptedMessageMediaContact.
const DecryptedMessageMediaDocument46TypeID = 0x7afe8ae2
DecryptedMessageMediaDocument46TypeID is TL type id of DecryptedMessageMediaDocument46.
const DecryptedMessageMediaDocument8TypeID = 0xb095434b
DecryptedMessageMediaDocument8TypeID is TL type id of DecryptedMessageMediaDocument8.
const DecryptedMessageMediaDocumentTypeID = 0x6abd9782
DecryptedMessageMediaDocumentTypeID is TL type id of DecryptedMessageMediaDocument.
const DecryptedMessageMediaEmptyTypeID = 0x89f5c4a
DecryptedMessageMediaEmptyTypeID is TL type id of DecryptedMessageMediaEmpty.
const DecryptedMessageMediaExternalDocumentTypeID = 0xfa95b0dd
DecryptedMessageMediaExternalDocumentTypeID is TL type id of DecryptedMessageMediaExternalDocument.
const DecryptedMessageMediaGeoPointTypeID = 0x35480a59
DecryptedMessageMediaGeoPointTypeID is TL type id of DecryptedMessageMediaGeoPoint.
const DecryptedMessageMediaPhoto8TypeID = 0x32798a8c
DecryptedMessageMediaPhoto8TypeID is TL type id of DecryptedMessageMediaPhoto8.
const DecryptedMessageMediaPhotoTypeID = 0xf1fa8d78
DecryptedMessageMediaPhotoTypeID is TL type id of DecryptedMessageMediaPhoto.
const DecryptedMessageMediaVenueTypeID = 0x8a0df56f
DecryptedMessageMediaVenueTypeID is TL type id of DecryptedMessageMediaVenue.
const DecryptedMessageMediaVideo23TypeID = 0x524a415d
DecryptedMessageMediaVideo23TypeID is TL type id of DecryptedMessageMediaVideo23.
const DecryptedMessageMediaVideo8TypeID = 0x4cee6ef3
DecryptedMessageMediaVideo8TypeID is TL type id of DecryptedMessageMediaVideo8.
const DecryptedMessageMediaVideoTypeID = 0x970c8c0e
DecryptedMessageMediaVideoTypeID is TL type id of DecryptedMessageMediaVideo.
const DecryptedMessageMediaWebPageTypeID = 0xe50511d8
DecryptedMessageMediaWebPageTypeID is TL type id of DecryptedMessageMediaWebPage.
const DecryptedMessageService8TypeID = 0xaa48327d
DecryptedMessageService8TypeID is TL type id of DecryptedMessageService8.
const DecryptedMessageServiceTypeID = 0x73164160
DecryptedMessageServiceTypeID is TL type id of DecryptedMessageService.
const DecryptedMessageTypeID = 0x91cc4674
DecryptedMessageTypeID is TL type id of DecryptedMessage.
const DocumentAttributeAnimatedTypeID = 0x11b58939
DocumentAttributeAnimatedTypeID is TL type id of DocumentAttributeAnimated.
const DocumentAttributeAudio23TypeID = 0x51448e5
DocumentAttributeAudio23TypeID is TL type id of DocumentAttributeAudio23.
const DocumentAttributeAudio45TypeID = 0xded218e0
DocumentAttributeAudio45TypeID is TL type id of DocumentAttributeAudio45.
const DocumentAttributeAudioTypeID = 0x9852f9c6
DocumentAttributeAudioTypeID is TL type id of DocumentAttributeAudio.
const DocumentAttributeClassName = "DocumentAttribute"
DocumentAttributeClassName is schema name of DocumentAttributeClass.
const DocumentAttributeFilenameTypeID = 0x15590068
DocumentAttributeFilenameTypeID is TL type id of DocumentAttributeFilename.
const DocumentAttributeImageSizeTypeID = 0x6c37c15c
DocumentAttributeImageSizeTypeID is TL type id of DocumentAttributeImageSize.
const DocumentAttributeSticker23TypeID = 0xfb0a5727
DocumentAttributeSticker23TypeID is TL type id of DocumentAttributeSticker23.
const DocumentAttributeStickerTypeID = 0x3a556302
DocumentAttributeStickerTypeID is TL type id of DocumentAttributeSticker.
const DocumentAttributeVideo23TypeID = 0x5910cccb
DocumentAttributeVideo23TypeID is TL type id of DocumentAttributeVideo23.
const DocumentAttributeVideoTypeID = 0xef02ce6
DocumentAttributeVideoTypeID is TL type id of DocumentAttributeVideo.
const DoubleTypeID = 0x2210c154
DoubleTypeID is TL type id of Double.
const FileLocationClassName = "FileLocation"
FileLocationClassName is schema name of FileLocationClass.
const FileLocationTypeID = 0x53d69076
FileLocationTypeID is TL type id of FileLocation.
FileLocationUnavailableTypeID is TL type id of FileLocationUnavailable.
const InputStickerSetClassName = "InputStickerSet"
InputStickerSetClassName is schema name of InputStickerSetClass.
const InputStickerSetEmptyTypeID = 0xffb62b95
InputStickerSetEmptyTypeID is TL type id of InputStickerSetEmpty.
const InputStickerSetShortNameTypeID = 0x861cc8a0
InputStickerSetShortNameTypeID is TL type id of InputStickerSetShortName.
const IntTypeID = 0xa8509bda
IntTypeID is TL type id of Int.
const LongTypeID = 0x22076cba
LongTypeID is TL type id of Long.
const MessageEntityBankCardTypeID = 0x761e6af4
MessageEntityBankCardTypeID is TL type id of MessageEntityBankCard.
const MessageEntityBlockquoteTypeID = 0x20df5d0
MessageEntityBlockquoteTypeID is TL type id of MessageEntityBlockquote.
const MessageEntityBoldTypeID = 0xbd610bc9
MessageEntityBoldTypeID is TL type id of MessageEntityBold.
const MessageEntityBotCommandTypeID = 0x6cef8ac7
MessageEntityBotCommandTypeID is TL type id of MessageEntityBotCommand.
const MessageEntityCashtagTypeID = 0x4c4e743f
MessageEntityCashtagTypeID is TL type id of MessageEntityCashtag.
const MessageEntityClassName = "MessageEntity"
MessageEntityClassName is schema name of MessageEntityClass.
const MessageEntityCodeTypeID = 0x28a20571
MessageEntityCodeTypeID is TL type id of MessageEntityCode.
const MessageEntityCustomEmojiTypeID = 0xc8cf05f8
MessageEntityCustomEmojiTypeID is TL type id of MessageEntityCustomEmoji.
const MessageEntityEmailTypeID = 0x64e475c2
MessageEntityEmailTypeID is TL type id of MessageEntityEmail.
const MessageEntityHashtagTypeID = 0x6f635b0d
MessageEntityHashtagTypeID is TL type id of MessageEntityHashtag.
const MessageEntityItalicTypeID = 0x826f8b60
MessageEntityItalicTypeID is TL type id of MessageEntityItalic.
const MessageEntityMentionNameTypeID = 0x352dca58
MessageEntityMentionNameTypeID is TL type id of MessageEntityMentionName.
const MessageEntityMentionTypeID = 0xfa04579d
MessageEntityMentionTypeID is TL type id of MessageEntityMention.
const MessageEntityPhoneTypeID = 0x9b69e34b
MessageEntityPhoneTypeID is TL type id of MessageEntityPhone.
const MessageEntityPreTypeID = 0x73924be0
MessageEntityPreTypeID is TL type id of MessageEntityPre.
const MessageEntitySpoilerTypeID = 0x32ca960f
MessageEntitySpoilerTypeID is TL type id of MessageEntitySpoiler.
const MessageEntityStrikeTypeID = 0xbf0693d4
MessageEntityStrikeTypeID is TL type id of MessageEntityStrike.
const MessageEntityTextURLTypeID = 0x76a6d327
MessageEntityTextURLTypeID is TL type id of MessageEntityTextURL.
const MessageEntityURLTypeID = 0x6ed02538
MessageEntityURLTypeID is TL type id of MessageEntityURL.
const MessageEntityUnderlineTypeID = 0x9c4e7e8b
MessageEntityUnderlineTypeID is TL type id of MessageEntityUnderline.
const MessageEntityUnknownTypeID = 0xbb92ba95
MessageEntityUnknownTypeID is TL type id of MessageEntityUnknown.
const PhotoCachedSizeTypeID = 0xe9a734fa
PhotoCachedSizeTypeID is TL type id of PhotoCachedSize.
const PhotoSizeClassName = "PhotoSize"
PhotoSizeClassName is schema name of PhotoSizeClass.
const PhotoSizeEmptyTypeID = 0xe17e23c
PhotoSizeEmptyTypeID is TL type id of PhotoSizeEmpty.
const PhotoSizeTypeID = 0x77bfb61b
PhotoSizeTypeID is TL type id of PhotoSize.
const SendMessageActionClassName = "SendMessageAction"
SendMessageActionClassName is schema name of SendMessageActionClass.
const SendMessageCancelActionTypeID = 0xfd5ec8f5
SendMessageCancelActionTypeID is TL type id of SendMessageCancelAction.
const SendMessageChooseContactActionTypeID = 0x628cbc6f
SendMessageChooseContactActionTypeID is TL type id of SendMessageChooseContactAction.
const SendMessageGeoLocationActionTypeID = 0x176f8ba1
SendMessageGeoLocationActionTypeID is TL type id of SendMessageGeoLocationAction.
const SendMessageRecordAudioActionTypeID = 0xd52f73f7
SendMessageRecordAudioActionTypeID is TL type id of SendMessageRecordAudioAction.
const SendMessageRecordRoundActionTypeID = 0x88f27fbc
SendMessageRecordRoundActionTypeID is TL type id of SendMessageRecordRoundAction.
const SendMessageRecordVideoActionTypeID = 0xa187d66f
SendMessageRecordVideoActionTypeID is TL type id of SendMessageRecordVideoAction.
const SendMessageTypingActionTypeID = 0x16bf744e
SendMessageTypingActionTypeID is TL type id of SendMessageTypingAction.
const SendMessageUploadAudioActionTypeID = 0xe6ac8a6f
SendMessageUploadAudioActionTypeID is TL type id of SendMessageUploadAudioAction.
const SendMessageUploadDocumentActionTypeID = 0x8faee98e
SendMessageUploadDocumentActionTypeID is TL type id of SendMessageUploadDocumentAction.
const SendMessageUploadPhotoActionTypeID = 0x990a3c1a
SendMessageUploadPhotoActionTypeID is TL type id of SendMessageUploadPhotoAction.
const SendMessageUploadRoundActionTypeID = 0xbb718624
SendMessageUploadRoundActionTypeID is TL type id of SendMessageUploadRoundAction.
const SendMessageUploadVideoActionTypeID = 0x92042ff7
SendMessageUploadVideoActionTypeID is TL type id of SendMessageUploadVideoAction.
const StringTypeID = 0xb5286e24
StringTypeID is TL type id of String.
const TestDummyFunctionRequestTypeID = 0xc8357709
TestDummyFunctionRequestTypeID is TL type id of TestDummyFunctionRequest.
const TrueTypeID = 0x3fedd339
TrueTypeID is TL type id of True.
Variables ¶
This section is empty.
Functions ¶
func ClassConstructorsMap ¶
ClassConstructorsMap maps class schema name to constructors type ids.
func TypesConstructorMap ¶
TypesConstructorMap maps type ids to constructors.
Types ¶
type BoolBox ¶
type BoolBox struct {
Bool BoolClass
}
Bool boxes the BoolClass providing a helper.
type BoolClass ¶
type BoolClass interface { bin.Encoder bin.Decoder bin.BareEncoder bin.BareDecoder // TypeID returns type id in TL schema. // // See https://core.telegram.org/mtproto/TL-tl#remarks. TypeID() uint32 // TypeName returns name of type in TL schema. TypeName() string // String implements fmt.Stringer. String() string // Zero returns true if current object has a zero value. Zero() bool // contains filtered or unexported methods }
BoolClass represents Bool generic type.
See https://core.telegram.org/type/Bool for reference.
Example:
g, err := e2e.DecodeBool(buf) if err != nil { panic(err) } switch v := g.(type) { case *e2e.BoolFalse: // boolFalse#bc799737 case *e2e.BoolTrue: // boolTrue#997275b5 default: panic(v) }
type BoolFalse ¶
type BoolFalse struct { }
BoolFalse represents TL type `boolFalse#bc799737`. Constructor may be interpreted as a booleanfalse value.
See https://core.telegram.org/constructor/boolFalse for reference.
func (*BoolFalse) DecodeBare ¶
DecodeBare implements bin.BareDecoder.
func (*BoolFalse) EncodeBare ¶
EncodeBare implements bin.BareEncoder.
type BoolTrue ¶
type BoolTrue struct { }
BoolTrue represents TL type `boolTrue#997275b5`. The constructor can be interpreted as a booleantrue value.
See https://core.telegram.org/constructor/boolTrue for reference.
func (*BoolTrue) DecodeBare ¶
DecodeBare implements bin.BareDecoder.
func (*BoolTrue) EncodeBare ¶
EncodeBare implements bin.BareEncoder.
type Bytes ¶
type Bytes struct { }
Bytes represents TL type `bytes#e937bb82`.
See https://core.telegram.org/constructor/bytes for reference.
func (*Bytes) DecodeBare ¶
DecodeBare implements bin.BareDecoder.
func (*Bytes) EncodeBare ¶
EncodeBare implements bin.BareEncoder.
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client implement methods for calling functions from TL schema via Invoker.
func (*Client) TestDummyFunction ¶
TestDummyFunction invokes method test.dummyFunction#c8357709 returning error if any.
See https://core.telegram.org/method/test.dummyFunction for reference.
type DecryptedMessage ¶
type DecryptedMessage struct { // Flags field of DecryptedMessage. Flags bin.Fields // Silent field of DecryptedMessage. Silent bool // RandomID field of DecryptedMessage. RandomID int64 // TTL field of DecryptedMessage. TTL int // Message field of DecryptedMessage. Message string // Media field of DecryptedMessage. // // Use SetMedia and GetMedia helpers. Media DecryptedMessageMediaClass // Entities field of DecryptedMessage. // // Use SetEntities and GetEntities helpers. Entities []MessageEntityClass // ViaBotName field of DecryptedMessage. // // Use SetViaBotName and GetViaBotName helpers. ViaBotName string // ReplyToRandomID field of DecryptedMessage. // // Use SetReplyToRandomID and GetReplyToRandomID helpers. ReplyToRandomID int64 // GroupedID field of DecryptedMessage. // // Use SetGroupedID and GetGroupedID helpers. GroupedID int64 }
DecryptedMessage represents TL type `decryptedMessage#91cc4674`.
See https://core.telegram.org/constructor/decryptedMessage for reference.
func (*DecryptedMessage) Decode ¶
func (d *DecryptedMessage) Decode(b *bin.Buffer) error
Decode implements bin.Decoder.
func (*DecryptedMessage) DecodeBare ¶
func (d *DecryptedMessage) DecodeBare(b *bin.Buffer) error
DecodeBare implements bin.BareDecoder.
func (*DecryptedMessage) Encode ¶
func (d *DecryptedMessage) Encode(b *bin.Buffer) error
Encode implements bin.Encoder.
func (*DecryptedMessage) EncodeBare ¶
func (d *DecryptedMessage) EncodeBare(b *bin.Buffer) error
EncodeBare implements bin.BareEncoder.
func (*DecryptedMessage) GetEntities ¶
func (d *DecryptedMessage) GetEntities() (value []MessageEntityClass, ok bool)
GetEntities returns value of Entities conditional field and boolean which is true if field was set.
func (*DecryptedMessage) GetGroupedID ¶
func (d *DecryptedMessage) GetGroupedID() (value int64, ok bool)
GetGroupedID returns value of GroupedID conditional field and boolean which is true if field was set.
func (*DecryptedMessage) GetMedia ¶
func (d *DecryptedMessage) GetMedia() (value DecryptedMessageMediaClass, ok bool)
GetMedia returns value of Media conditional field and boolean which is true if field was set.
func (*DecryptedMessage) GetMessage ¶
func (d *DecryptedMessage) GetMessage() (value string)
GetMessage returns value of Message field.
func (*DecryptedMessage) GetRandomID ¶
func (d *DecryptedMessage) GetRandomID() (value int64)
GetRandomID returns value of RandomID field.
func (*DecryptedMessage) GetReplyToRandomID ¶
func (d *DecryptedMessage) GetReplyToRandomID() (value int64, ok bool)
GetReplyToRandomID returns value of ReplyToRandomID conditional field and boolean which is true if field was set.
func (*DecryptedMessage) GetSilent ¶
func (d *DecryptedMessage) GetSilent() (value bool)
GetSilent returns value of Silent conditional field.
func (*DecryptedMessage) GetTTL ¶
func (d *DecryptedMessage) GetTTL() (value int)
GetTTL returns value of TTL field.
func (*DecryptedMessage) GetViaBotName ¶
func (d *DecryptedMessage) GetViaBotName() (value string, ok bool)
GetViaBotName returns value of ViaBotName conditional field and boolean which is true if field was set.
func (*DecryptedMessage) SetEntities ¶
func (d *DecryptedMessage) SetEntities(value []MessageEntityClass)
SetEntities sets value of Entities conditional field.
func (*DecryptedMessage) SetFlags ¶
func (d *DecryptedMessage) SetFlags()
SetFlags sets flags for non-zero fields.
func (*DecryptedMessage) SetGroupedID ¶
func (d *DecryptedMessage) SetGroupedID(value int64)
SetGroupedID sets value of GroupedID conditional field.
func (*DecryptedMessage) SetMedia ¶
func (d *DecryptedMessage) SetMedia(value DecryptedMessageMediaClass)
SetMedia sets value of Media conditional field.
func (*DecryptedMessage) SetReplyToRandomID ¶
func (d *DecryptedMessage) SetReplyToRandomID(value int64)
SetReplyToRandomID sets value of ReplyToRandomID conditional field.
func (*DecryptedMessage) SetSilent ¶
func (d *DecryptedMessage) SetSilent(value bool)
SetSilent sets value of Silent conditional field.
func (*DecryptedMessage) SetViaBotName ¶
func (d *DecryptedMessage) SetViaBotName(value string)
SetViaBotName sets value of ViaBotName conditional field.
func (*DecryptedMessage) String ¶
func (d *DecryptedMessage) String() string
String implements fmt.Stringer.
func (*DecryptedMessage) TypeID ¶
func (*DecryptedMessage) TypeID() uint32
TypeID returns type id in TL schema.
func (*DecryptedMessage) TypeInfo ¶
func (d *DecryptedMessage) TypeInfo() tdp.Type
TypeInfo returns info about TL type.
func (*DecryptedMessage) TypeName ¶
func (*DecryptedMessage) TypeName() string
TypeName returns name of type in TL schema.
func (*DecryptedMessage) Zero ¶
func (d *DecryptedMessage) Zero() bool
type DecryptedMessage23 ¶
type DecryptedMessage23 struct { // RandomID field of DecryptedMessage23. RandomID int64 // TTL field of DecryptedMessage23. TTL int // Message field of DecryptedMessage23. Message string // Media field of DecryptedMessage23. Media DecryptedMessageMediaClass }
DecryptedMessage23 represents TL type `decryptedMessage23#204d3878`.
See https://core.telegram.org/constructor/decryptedMessage23 for reference.
func (*DecryptedMessage23) Decode ¶
func (d *DecryptedMessage23) Decode(b *bin.Buffer) error
Decode implements bin.Decoder.
func (*DecryptedMessage23) DecodeBare ¶
func (d *DecryptedMessage23) DecodeBare(b *bin.Buffer) error
DecodeBare implements bin.BareDecoder.
func (*DecryptedMessage23) Encode ¶
func (d *DecryptedMessage23) Encode(b *bin.Buffer) error
Encode implements bin.Encoder.
func (*DecryptedMessage23) EncodeBare ¶
func (d *DecryptedMessage23) EncodeBare(b *bin.Buffer) error
EncodeBare implements bin.BareEncoder.
func (*DecryptedMessage23) GetMedia ¶
func (d *DecryptedMessage23) GetMedia() (value DecryptedMessageMediaClass)
GetMedia returns value of Media field.
func (*DecryptedMessage23) GetMessage ¶
func (d *DecryptedMessage23) GetMessage() (value string)
GetMessage returns value of Message field.
func (*DecryptedMessage23) GetRandomID ¶
func (d *DecryptedMessage23) GetRandomID() (value int64)
GetRandomID returns value of RandomID field.
func (*DecryptedMessage23) GetTTL ¶
func (d *DecryptedMessage23) GetTTL() (value int)
GetTTL returns value of TTL field.
func (*DecryptedMessage23) String ¶
func (d *DecryptedMessage23) String() string
String implements fmt.Stringer.
func (*DecryptedMessage23) TypeID ¶
func (*DecryptedMessage23) TypeID() uint32
TypeID returns type id in TL schema.
func (*DecryptedMessage23) TypeInfo ¶
func (d *DecryptedMessage23) TypeInfo() tdp.Type
TypeInfo returns info about TL type.
func (*DecryptedMessage23) TypeName ¶
func (*DecryptedMessage23) TypeName() string
TypeName returns name of type in TL schema.
func (*DecryptedMessage23) Zero ¶
func (d *DecryptedMessage23) Zero() bool
type DecryptedMessage46 ¶
type DecryptedMessage46 struct { // Flags field of DecryptedMessage46. Flags bin.Fields // RandomID field of DecryptedMessage46. RandomID int64 // TTL field of DecryptedMessage46. TTL int // Message field of DecryptedMessage46. Message string // Media field of DecryptedMessage46. // // Use SetMedia and GetMedia helpers. Media DecryptedMessageMediaClass // Entities field of DecryptedMessage46. // // Use SetEntities and GetEntities helpers. Entities []MessageEntityClass // ViaBotName field of DecryptedMessage46. // // Use SetViaBotName and GetViaBotName helpers. ViaBotName string // ReplyToRandomID field of DecryptedMessage46. // // Use SetReplyToRandomID and GetReplyToRandomID helpers. ReplyToRandomID int64 }
DecryptedMessage46 represents TL type `decryptedMessage46#36b091de`.
See https://core.telegram.org/constructor/decryptedMessage46 for reference.
func (*DecryptedMessage46) Decode ¶
func (d *DecryptedMessage46) Decode(b *bin.Buffer) error
Decode implements bin.Decoder.
func (*DecryptedMessage46) DecodeBare ¶
func (d *DecryptedMessage46) DecodeBare(b *bin.Buffer) error
DecodeBare implements bin.BareDecoder.
func (*DecryptedMessage46) Encode ¶
func (d *DecryptedMessage46) Encode(b *bin.Buffer) error
Encode implements bin.Encoder.
func (*DecryptedMessage46) EncodeBare ¶
func (d *DecryptedMessage46) EncodeBare(b *bin.Buffer) error
EncodeBare implements bin.BareEncoder.
func (*DecryptedMessage46) GetEntities ¶
func (d *DecryptedMessage46) GetEntities() (value []MessageEntityClass, ok bool)
GetEntities returns value of Entities conditional field and boolean which is true if field was set.
func (*DecryptedMessage46) GetMedia ¶
func (d *DecryptedMessage46) GetMedia() (value DecryptedMessageMediaClass, ok bool)
GetMedia returns value of Media conditional field and boolean which is true if field was set.
func (*DecryptedMessage46) GetMessage ¶
func (d *DecryptedMessage46) GetMessage() (value string)
GetMessage returns value of Message field.
func (*DecryptedMessage46) GetRandomID ¶
func (d *DecryptedMessage46) GetRandomID() (value int64)
GetRandomID returns value of RandomID field.
func (*DecryptedMessage46) GetReplyToRandomID ¶
func (d *DecryptedMessage46) GetReplyToRandomID() (value int64, ok bool)
GetReplyToRandomID returns value of ReplyToRandomID conditional field and boolean which is true if field was set.
func (*DecryptedMessage46) GetTTL ¶
func (d *DecryptedMessage46) GetTTL() (value int)
GetTTL returns value of TTL field.
func (*DecryptedMessage46) GetViaBotName ¶
func (d *DecryptedMessage46) GetViaBotName() (value string, ok bool)
GetViaBotName returns value of ViaBotName conditional field and boolean which is true if field was set.
func (*DecryptedMessage46) SetEntities ¶
func (d *DecryptedMessage46) SetEntities(value []MessageEntityClass)
SetEntities sets value of Entities conditional field.
func (*DecryptedMessage46) SetFlags ¶
func (d *DecryptedMessage46) SetFlags()
SetFlags sets flags for non-zero fields.
func (*DecryptedMessage46) SetMedia ¶
func (d *DecryptedMessage46) SetMedia(value DecryptedMessageMediaClass)
SetMedia sets value of Media conditional field.
func (*DecryptedMessage46) SetReplyToRandomID ¶
func (d *DecryptedMessage46) SetReplyToRandomID(value int64)
SetReplyToRandomID sets value of ReplyToRandomID conditional field.
func (*DecryptedMessage46) SetViaBotName ¶
func (d *DecryptedMessage46) SetViaBotName(value string)
SetViaBotName sets value of ViaBotName conditional field.
func (*DecryptedMessage46) String ¶
func (d *DecryptedMessage46) String() string
String implements fmt.Stringer.
func (*DecryptedMessage46) TypeID ¶
func (*DecryptedMessage46) TypeID() uint32
TypeID returns type id in TL schema.
func (*DecryptedMessage46) TypeInfo ¶
func (d *DecryptedMessage46) TypeInfo() tdp.Type
TypeInfo returns info about TL type.
func (*DecryptedMessage46) TypeName ¶
func (*DecryptedMessage46) TypeName() string
TypeName returns name of type in TL schema.
func (*DecryptedMessage46) Zero ¶
func (d *DecryptedMessage46) Zero() bool
type DecryptedMessage8 ¶
type DecryptedMessage8 struct { // RandomID field of DecryptedMessage8. RandomID int64 // RandomBytes field of DecryptedMessage8. RandomBytes []byte // Message field of DecryptedMessage8. Message string // Media field of DecryptedMessage8. Media DecryptedMessageMediaClass }
DecryptedMessage8 represents TL type `decryptedMessage8#1f814f1f`.
See https://core.telegram.org/constructor/decryptedMessage8 for reference.
func (*DecryptedMessage8) Decode ¶
func (d *DecryptedMessage8) Decode(b *bin.Buffer) error
Decode implements bin.Decoder.
func (*DecryptedMessage8) DecodeBare ¶
func (d *DecryptedMessage8) DecodeBare(b *bin.Buffer) error
DecodeBare implements bin.BareDecoder.
func (*DecryptedMessage8) Encode ¶
func (d *DecryptedMessage8) Encode(b *bin.Buffer) error
Encode implements bin.Encoder.
func (*DecryptedMessage8) EncodeBare ¶
func (d *DecryptedMessage8) EncodeBare(b *bin.Buffer) error
EncodeBare implements bin.BareEncoder.
func (*DecryptedMessage8) GetMedia ¶
func (d *DecryptedMessage8) GetMedia() (value DecryptedMessageMediaClass)
GetMedia returns value of Media field.
func (*DecryptedMessage8) GetMessage ¶
func (d *DecryptedMessage8) GetMessage() (value string)
GetMessage returns value of Message field.
func (*DecryptedMessage8) GetRandomBytes ¶
func (d *DecryptedMessage8) GetRandomBytes() (value []byte)
GetRandomBytes returns value of RandomBytes field.
func (*DecryptedMessage8) GetRandomID ¶
func (d *DecryptedMessage8) GetRandomID() (value int64)
GetRandomID returns value of RandomID field.
func (*DecryptedMessage8) String ¶
func (d *DecryptedMessage8) String() string
String implements fmt.Stringer.
func (*DecryptedMessage8) TypeID ¶
func (*DecryptedMessage8) TypeID() uint32
TypeID returns type id in TL schema.
func (*DecryptedMessage8) TypeInfo ¶
func (d *DecryptedMessage8) TypeInfo() tdp.Type
TypeInfo returns info about TL type.
func (*DecryptedMessage8) TypeName ¶
func (*DecryptedMessage8) TypeName() string
TypeName returns name of type in TL schema.
func (*DecryptedMessage8) Zero ¶
func (d *DecryptedMessage8) Zero() bool
type DecryptedMessageActionAbortKey ¶
type DecryptedMessageActionAbortKey struct { // ExchangeID field of DecryptedMessageActionAbortKey. ExchangeID int64 }
DecryptedMessageActionAbortKey represents TL type `decryptedMessageActionAbortKey#dd05ec6b`.
See https://core.telegram.org/constructor/decryptedMessageActionAbortKey for reference.
func (*DecryptedMessageActionAbortKey) Decode ¶
func (d *DecryptedMessageActionAbortKey) Decode(b *bin.Buffer) error
Decode implements bin.Decoder.
func (*DecryptedMessageActionAbortKey) DecodeBare ¶
func (d *DecryptedMessageActionAbortKey) DecodeBare(b *bin.Buffer) error
DecodeBare implements bin.BareDecoder.
func (*DecryptedMessageActionAbortKey) Encode ¶
func (d *DecryptedMessageActionAbortKey) Encode(b *bin.Buffer) error
Encode implements bin.Encoder.
func (*DecryptedMessageActionAbortKey) EncodeBare ¶
func (d *DecryptedMessageActionAbortKey) EncodeBare(b *bin.Buffer) error
EncodeBare implements bin.BareEncoder.
func (*DecryptedMessageActionAbortKey) GetExchangeID ¶
func (d *DecryptedMessageActionAbortKey) GetExchangeID() (value int64)
GetExchangeID returns value of ExchangeID field.
func (*DecryptedMessageActionAbortKey) String ¶
func (d *DecryptedMessageActionAbortKey) String() string
String implements fmt.Stringer.
func (*DecryptedMessageActionAbortKey) TypeID ¶
func (*DecryptedMessageActionAbortKey) TypeID() uint32
TypeID returns type id in TL schema.
func (*DecryptedMessageActionAbortKey) TypeInfo ¶
func (d *DecryptedMessageActionAbortKey) TypeInfo() tdp.Type
TypeInfo returns info about TL type.
func (*DecryptedMessageActionAbortKey) TypeName ¶
func (*DecryptedMessageActionAbortKey) TypeName() string
TypeName returns name of type in TL schema.
func (*DecryptedMessageActionAbortKey) Zero ¶
func (d *DecryptedMessageActionAbortKey) Zero() bool
type DecryptedMessageActionAcceptKey ¶
type DecryptedMessageActionAcceptKey struct { // ExchangeID field of DecryptedMessageActionAcceptKey. ExchangeID int64 // GB field of DecryptedMessageActionAcceptKey. GB []byte // KeyFingerprint field of DecryptedMessageActionAcceptKey. KeyFingerprint int64 }
DecryptedMessageActionAcceptKey represents TL type `decryptedMessageActionAcceptKey#6fe1735b`.
See https://core.telegram.org/constructor/decryptedMessageActionAcceptKey for reference.
func (*DecryptedMessageActionAcceptKey) Decode ¶
func (d *DecryptedMessageActionAcceptKey) Decode(b *bin.Buffer) error
Decode implements bin.Decoder.
func (*DecryptedMessageActionAcceptKey) DecodeBare ¶
func (d *DecryptedMessageActionAcceptKey) DecodeBare(b *bin.Buffer) error
DecodeBare implements bin.BareDecoder.
func (*DecryptedMessageActionAcceptKey) Encode ¶
func (d *DecryptedMessageActionAcceptKey) Encode(b *bin.Buffer) error
Encode implements bin.Encoder.
func (*DecryptedMessageActionAcceptKey) EncodeBare ¶
func (d *DecryptedMessageActionAcceptKey) EncodeBare(b *bin.Buffer) error
EncodeBare implements bin.BareEncoder.
func (*DecryptedMessageActionAcceptKey) GetExchangeID ¶
func (d *DecryptedMessageActionAcceptKey) GetExchangeID() (value int64)
GetExchangeID returns value of ExchangeID field.
func (*DecryptedMessageActionAcceptKey) GetGB ¶
func (d *DecryptedMessageActionAcceptKey) GetGB() (value []byte)
GetGB returns value of GB field.
func (*DecryptedMessageActionAcceptKey) GetKeyFingerprint ¶
func (d *DecryptedMessageActionAcceptKey) GetKeyFingerprint() (value int64)
GetKeyFingerprint returns value of KeyFingerprint field.
func (*DecryptedMessageActionAcceptKey) String ¶
func (d *DecryptedMessageActionAcceptKey) String() string
String implements fmt.Stringer.
func (*DecryptedMessageActionAcceptKey) TypeID ¶
func (*DecryptedMessageActionAcceptKey) TypeID() uint32
TypeID returns type id in TL schema.
func (*DecryptedMessageActionAcceptKey) TypeInfo ¶
func (d *DecryptedMessageActionAcceptKey) TypeInfo() tdp.Type
TypeInfo returns info about TL type.
func (*DecryptedMessageActionAcceptKey) TypeName ¶
func (*DecryptedMessageActionAcceptKey) TypeName() string
TypeName returns name of type in TL schema.
func (*DecryptedMessageActionAcceptKey) Zero ¶
func (d *DecryptedMessageActionAcceptKey) Zero() bool
type DecryptedMessageActionBox ¶
type DecryptedMessageActionBox struct {
DecryptedMessageAction DecryptedMessageActionClass
}
DecryptedMessageAction boxes the DecryptedMessageActionClass providing a helper.
type DecryptedMessageActionClass ¶
type DecryptedMessageActionClass interface { bin.Encoder bin.Decoder bin.BareEncoder bin.BareDecoder // TypeID returns type id in TL schema. // // See https://core.telegram.org/mtproto/TL-tl#remarks. TypeID() uint32 // TypeName returns name of type in TL schema. TypeName() string // String implements fmt.Stringer. String() string // Zero returns true if current object has a zero value. Zero() bool // contains filtered or unexported methods }
DecryptedMessageActionClass represents DecryptedMessageAction generic type.
See https://core.telegram.org/type/DecryptedMessageAction for reference.
Example:
g, err := e2e.DecodeDecryptedMessageAction(buf) if err != nil { panic(err) } switch v := g.(type) { case *e2e.DecryptedMessageActionSetMessageTTL: // decryptedMessageActionSetMessageTTL#a1733aec case *e2e.DecryptedMessageActionReadMessages: // decryptedMessageActionReadMessages#c4f40be case *e2e.DecryptedMessageActionDeleteMessages: // decryptedMessageActionDeleteMessages#65614304 case *e2e.DecryptedMessageActionScreenshotMessages: // decryptedMessageActionScreenshotMessages#8ac1f475 case *e2e.DecryptedMessageActionFlushHistory: // decryptedMessageActionFlushHistory#6719e45c case *e2e.DecryptedMessageActionResend: // decryptedMessageActionResend#511110b0 case *e2e.DecryptedMessageActionNotifyLayer: // decryptedMessageActionNotifyLayer#f3048883 case *e2e.DecryptedMessageActionTyping: // decryptedMessageActionTyping#ccb27641 case *e2e.DecryptedMessageActionRequestKey: // decryptedMessageActionRequestKey#f3c9611b case *e2e.DecryptedMessageActionAcceptKey: // decryptedMessageActionAcceptKey#6fe1735b case *e2e.DecryptedMessageActionAbortKey: // decryptedMessageActionAbortKey#dd05ec6b case *e2e.DecryptedMessageActionCommitKey: // decryptedMessageActionCommitKey#ec2e0b9b case *e2e.DecryptedMessageActionNoop: // decryptedMessageActionNoop#a82fdd63 default: panic(v) }
func DecodeDecryptedMessageAction ¶
func DecodeDecryptedMessageAction(buf *bin.Buffer) (DecryptedMessageActionClass, error)
DecodeDecryptedMessageAction implements binary de-serialization for DecryptedMessageActionClass.
type DecryptedMessageActionCommitKey ¶
type DecryptedMessageActionCommitKey struct { // ExchangeID field of DecryptedMessageActionCommitKey. ExchangeID int64 // KeyFingerprint field of DecryptedMessageActionCommitKey. KeyFingerprint int64 }
DecryptedMessageActionCommitKey represents TL type `decryptedMessageActionCommitKey#ec2e0b9b`.
See https://core.telegram.org/constructor/decryptedMessageActionCommitKey for reference.
func (*DecryptedMessageActionCommitKey) Decode ¶
func (d *DecryptedMessageActionCommitKey) Decode(b *bin.Buffer) error
Decode implements bin.Decoder.
func (*DecryptedMessageActionCommitKey) DecodeBare ¶
func (d *DecryptedMessageActionCommitKey) DecodeBare(b *bin.Buffer) error
DecodeBare implements bin.BareDecoder.
func (*DecryptedMessageActionCommitKey) Encode ¶
func (d *DecryptedMessageActionCommitKey) Encode(b *bin.Buffer) error
Encode implements bin.Encoder.
func (*DecryptedMessageActionCommitKey) EncodeBare ¶
func (d *DecryptedMessageActionCommitKey) EncodeBare(b *bin.Buffer) error
EncodeBare implements bin.BareEncoder.
func (*DecryptedMessageActionCommitKey) GetExchangeID ¶
func (d *DecryptedMessageActionCommitKey) GetExchangeID() (value int64)
GetExchangeID returns value of ExchangeID field.
func (*DecryptedMessageActionCommitKey) GetKeyFingerprint ¶
func (d *DecryptedMessageActionCommitKey) GetKeyFingerprint() (value int64)
GetKeyFingerprint returns value of KeyFingerprint field.
func (*DecryptedMessageActionCommitKey) String ¶
func (d *DecryptedMessageActionCommitKey) String() string
String implements fmt.Stringer.
func (*DecryptedMessageActionCommitKey) TypeID ¶
func (*DecryptedMessageActionCommitKey) TypeID() uint32
TypeID returns type id in TL schema.
func (*DecryptedMessageActionCommitKey) TypeInfo ¶
func (d *DecryptedMessageActionCommitKey) TypeInfo() tdp.Type
TypeInfo returns info about TL type.
func (*DecryptedMessageActionCommitKey) TypeName ¶
func (*DecryptedMessageActionCommitKey) TypeName() string
TypeName returns name of type in TL schema.
func (*DecryptedMessageActionCommitKey) Zero ¶
func (d *DecryptedMessageActionCommitKey) Zero() bool
type DecryptedMessageActionDeleteMessages ¶
type DecryptedMessageActionDeleteMessages struct { // RandomIDs field of DecryptedMessageActionDeleteMessages. RandomIDs []int64 }
DecryptedMessageActionDeleteMessages represents TL type `decryptedMessageActionDeleteMessages#65614304`.
See https://core.telegram.org/constructor/decryptedMessageActionDeleteMessages for reference.
func (*DecryptedMessageActionDeleteMessages) Decode ¶
func (d *DecryptedMessageActionDeleteMessages) Decode(b *bin.Buffer) error
Decode implements bin.Decoder.
func (*DecryptedMessageActionDeleteMessages) DecodeBare ¶
func (d *DecryptedMessageActionDeleteMessages) DecodeBare(b *bin.Buffer) error
DecodeBare implements bin.BareDecoder.
func (*DecryptedMessageActionDeleteMessages) Encode ¶
func (d *DecryptedMessageActionDeleteMessages) Encode(b *bin.Buffer) error
Encode implements bin.Encoder.
func (*DecryptedMessageActionDeleteMessages) EncodeBare ¶
func (d *DecryptedMessageActionDeleteMessages) EncodeBare(b *bin.Buffer) error
EncodeBare implements bin.BareEncoder.
func (*DecryptedMessageActionDeleteMessages) GetRandomIDs ¶
func (d *DecryptedMessageActionDeleteMessages) GetRandomIDs() (value []int64)
GetRandomIDs returns value of RandomIDs field.
func (*DecryptedMessageActionDeleteMessages) String ¶
func (d *DecryptedMessageActionDeleteMessages) String() string
String implements fmt.Stringer.
func (*DecryptedMessageActionDeleteMessages) TypeID ¶
func (*DecryptedMessageActionDeleteMessages) TypeID() uint32
TypeID returns type id in TL schema.
func (*DecryptedMessageActionDeleteMessages) TypeInfo ¶
func (d *DecryptedMessageActionDeleteMessages) TypeInfo() tdp.Type
TypeInfo returns info about TL type.
func (*DecryptedMessageActionDeleteMessages) TypeName ¶
func (*DecryptedMessageActionDeleteMessages) TypeName() string
TypeName returns name of type in TL schema.
func (*DecryptedMessageActionDeleteMessages) Zero ¶
func (d *DecryptedMessageActionDeleteMessages) Zero() bool
type DecryptedMessageActionFlushHistory ¶
type DecryptedMessageActionFlushHistory struct { }
DecryptedMessageActionFlushHistory represents TL type `decryptedMessageActionFlushHistory#6719e45c`.
See https://core.telegram.org/constructor/decryptedMessageActionFlushHistory for reference.
func (*DecryptedMessageActionFlushHistory) Decode ¶
func (d *DecryptedMessageActionFlushHistory) Decode(b *bin.Buffer) error
Decode implements bin.Decoder.
func (*DecryptedMessageActionFlushHistory) DecodeBare ¶
func (d *DecryptedMessageActionFlushHistory) DecodeBare(b *bin.Buffer) error
DecodeBare implements bin.BareDecoder.
func (*DecryptedMessageActionFlushHistory) Encode ¶
func (d *DecryptedMessageActionFlushHistory) Encode(b *bin.Buffer) error
Encode implements bin.Encoder.
func (*DecryptedMessageActionFlushHistory) EncodeBare ¶
func (d *DecryptedMessageActionFlushHistory) EncodeBare(b *bin.Buffer) error
EncodeBare implements bin.BareEncoder.
func (*DecryptedMessageActionFlushHistory) String ¶
func (d *DecryptedMessageActionFlushHistory) String() string
String implements fmt.Stringer.
func (*DecryptedMessageActionFlushHistory) TypeID ¶
func (*DecryptedMessageActionFlushHistory) TypeID() uint32
TypeID returns type id in TL schema.
func (*DecryptedMessageActionFlushHistory) TypeInfo ¶
func (d *DecryptedMessageActionFlushHistory) TypeInfo() tdp.Type
TypeInfo returns info about TL type.
func (*DecryptedMessageActionFlushHistory) TypeName ¶
func (*DecryptedMessageActionFlushHistory) TypeName() string
TypeName returns name of type in TL schema.
func (*DecryptedMessageActionFlushHistory) Zero ¶
func (d *DecryptedMessageActionFlushHistory) Zero() bool
type DecryptedMessageActionNoop ¶
type DecryptedMessageActionNoop struct { }
DecryptedMessageActionNoop represents TL type `decryptedMessageActionNoop#a82fdd63`.
See https://core.telegram.org/constructor/decryptedMessageActionNoop for reference.
func (*DecryptedMessageActionNoop) Decode ¶
func (d *DecryptedMessageActionNoop) Decode(b *bin.Buffer) error
Decode implements bin.Decoder.
func (*DecryptedMessageActionNoop) DecodeBare ¶
func (d *DecryptedMessageActionNoop) DecodeBare(b *bin.Buffer) error
DecodeBare implements bin.BareDecoder.
func (*DecryptedMessageActionNoop) Encode ¶
func (d *DecryptedMessageActionNoop) Encode(b *bin.Buffer) error
Encode implements bin.Encoder.
func (*DecryptedMessageActionNoop) EncodeBare ¶
func (d *DecryptedMessageActionNoop) EncodeBare(b *bin.Buffer) error
EncodeBare implements bin.BareEncoder.
func (*DecryptedMessageActionNoop) String ¶
func (d *DecryptedMessageActionNoop) String() string
String implements fmt.Stringer.
func (*DecryptedMessageActionNoop) TypeID ¶
func (*DecryptedMessageActionNoop) TypeID() uint32
TypeID returns type id in TL schema.
func (*DecryptedMessageActionNoop) TypeInfo ¶
func (d *DecryptedMessageActionNoop) TypeInfo() tdp.Type
TypeInfo returns info about TL type.
func (*DecryptedMessageActionNoop) TypeName ¶
func (*DecryptedMessageActionNoop) TypeName() string
TypeName returns name of type in TL schema.
func (*DecryptedMessageActionNoop) Zero ¶
func (d *DecryptedMessageActionNoop) Zero() bool
type DecryptedMessageActionNotifyLayer ¶
type DecryptedMessageActionNotifyLayer struct { // Layer field of DecryptedMessageActionNotifyLayer. Layer int }
DecryptedMessageActionNotifyLayer represents TL type `decryptedMessageActionNotifyLayer#f3048883`.
See https://core.telegram.org/constructor/decryptedMessageActionNotifyLayer for reference.
func (*DecryptedMessageActionNotifyLayer) Decode ¶
func (d *DecryptedMessageActionNotifyLayer) Decode(b *bin.Buffer) error
Decode implements bin.Decoder.
func (*DecryptedMessageActionNotifyLayer) DecodeBare ¶
func (d *DecryptedMessageActionNotifyLayer) DecodeBare(b *bin.Buffer) error
DecodeBare implements bin.BareDecoder.
func (*DecryptedMessageActionNotifyLayer) Encode ¶
func (d *DecryptedMessageActionNotifyLayer) Encode(b *bin.Buffer) error
Encode implements bin.Encoder.
func (*DecryptedMessageActionNotifyLayer) EncodeBare ¶
func (d *DecryptedMessageActionNotifyLayer) EncodeBare(b *bin.Buffer) error
EncodeBare implements bin.BareEncoder.
func (*DecryptedMessageActionNotifyLayer) GetLayer ¶
func (d *DecryptedMessageActionNotifyLayer) GetLayer() (value int)
GetLayer returns value of Layer field.
func (*DecryptedMessageActionNotifyLayer) String ¶
func (d *DecryptedMessageActionNotifyLayer) String() string
String implements fmt.Stringer.
func (*DecryptedMessageActionNotifyLayer) TypeID ¶
func (*DecryptedMessageActionNotifyLayer) TypeID() uint32
TypeID returns type id in TL schema.
func (*DecryptedMessageActionNotifyLayer) TypeInfo ¶
func (d *DecryptedMessageActionNotifyLayer) TypeInfo() tdp.Type
TypeInfo returns info about TL type.
func (*DecryptedMessageActionNotifyLayer) TypeName ¶
func (*DecryptedMessageActionNotifyLayer) TypeName() string
TypeName returns name of type in TL schema.
func (*DecryptedMessageActionNotifyLayer) Zero ¶
func (d *DecryptedMessageActionNotifyLayer) Zero() bool
type DecryptedMessageActionReadMessages ¶
type DecryptedMessageActionReadMessages struct { // RandomIDs field of DecryptedMessageActionReadMessages. RandomIDs []int64 }
DecryptedMessageActionReadMessages represents TL type `decryptedMessageActionReadMessages#c4f40be`.
See https://core.telegram.org/constructor/decryptedMessageActionReadMessages for reference.
func (*DecryptedMessageActionReadMessages) Decode ¶
func (d *DecryptedMessageActionReadMessages) Decode(b *bin.Buffer) error
Decode implements bin.Decoder.
func (*DecryptedMessageActionReadMessages) DecodeBare ¶
func (d *DecryptedMessageActionReadMessages) DecodeBare(b *bin.Buffer) error
DecodeBare implements bin.BareDecoder.
func (*DecryptedMessageActionReadMessages) Encode ¶
func (d *DecryptedMessageActionReadMessages) Encode(b *bin.Buffer) error
Encode implements bin.Encoder.
func (*DecryptedMessageActionReadMessages) EncodeBare ¶
func (d *DecryptedMessageActionReadMessages) EncodeBare(b *bin.Buffer) error
EncodeBare implements bin.BareEncoder.
func (*DecryptedMessageActionReadMessages) GetRandomIDs ¶
func (d *DecryptedMessageActionReadMessages) GetRandomIDs() (value []int64)
GetRandomIDs returns value of RandomIDs field.
func (*DecryptedMessageActionReadMessages) String ¶
func (d *DecryptedMessageActionReadMessages) String() string
String implements fmt.Stringer.
func (*DecryptedMessageActionReadMessages) TypeID ¶
func (*DecryptedMessageActionReadMessages) TypeID() uint32
TypeID returns type id in TL schema.
func (*DecryptedMessageActionReadMessages) TypeInfo ¶
func (d *DecryptedMessageActionReadMessages) TypeInfo() tdp.Type
TypeInfo returns info about TL type.
func (*DecryptedMessageActionReadMessages) TypeName ¶
func (*DecryptedMessageActionReadMessages) TypeName() string
TypeName returns name of type in TL schema.
func (*DecryptedMessageActionReadMessages) Zero ¶
func (d *DecryptedMessageActionReadMessages) Zero() bool
type DecryptedMessageActionRequestKey ¶
type DecryptedMessageActionRequestKey struct { // ExchangeID field of DecryptedMessageActionRequestKey. ExchangeID int64 // GA field of DecryptedMessageActionRequestKey. GA []byte }
DecryptedMessageActionRequestKey represents TL type `decryptedMessageActionRequestKey#f3c9611b`.
See https://core.telegram.org/constructor/decryptedMessageActionRequestKey for reference.
func (*DecryptedMessageActionRequestKey) Decode ¶
func (d *DecryptedMessageActionRequestKey) Decode(b *bin.Buffer) error
Decode implements bin.Decoder.
func (*DecryptedMessageActionRequestKey) DecodeBare ¶
func (d *DecryptedMessageActionRequestKey) DecodeBare(b *bin.Buffer) error
DecodeBare implements bin.BareDecoder.
func (*DecryptedMessageActionRequestKey) Encode ¶
func (d *DecryptedMessageActionRequestKey) Encode(b *bin.Buffer) error
Encode implements bin.Encoder.
func (*DecryptedMessageActionRequestKey) EncodeBare ¶
func (d *DecryptedMessageActionRequestKey) EncodeBare(b *bin.Buffer) error
EncodeBare implements bin.BareEncoder.
func (*DecryptedMessageActionRequestKey) GetExchangeID ¶
func (d *DecryptedMessageActionRequestKey) GetExchangeID() (value int64)
GetExchangeID returns value of ExchangeID field.
func (*DecryptedMessageActionRequestKey) GetGA ¶
func (d *DecryptedMessageActionRequestKey) GetGA() (value []byte)
GetGA returns value of GA field.
func (*DecryptedMessageActionRequestKey) String ¶
func (d *DecryptedMessageActionRequestKey) String() string
String implements fmt.Stringer.
func (*DecryptedMessageActionRequestKey) TypeID ¶
func (*DecryptedMessageActionRequestKey) TypeID() uint32
TypeID returns type id in TL schema.
func (*DecryptedMessageActionRequestKey) TypeInfo ¶
func (d *DecryptedMessageActionRequestKey) TypeInfo() tdp.Type
TypeInfo returns info about TL type.
func (*DecryptedMessageActionRequestKey) TypeName ¶
func (*DecryptedMessageActionRequestKey) TypeName() string
TypeName returns name of type in TL schema.
func (*DecryptedMessageActionRequestKey) Zero ¶
func (d *DecryptedMessageActionRequestKey) Zero() bool
type DecryptedMessageActionResend ¶
type DecryptedMessageActionResend struct { // StartSeqNo field of DecryptedMessageActionResend. StartSeqNo int // EndSeqNo field of DecryptedMessageActionResend. EndSeqNo int }
DecryptedMessageActionResend represents TL type `decryptedMessageActionResend#511110b0`.
See https://core.telegram.org/constructor/decryptedMessageActionResend for reference.
func (*DecryptedMessageActionResend) Decode ¶
func (d *DecryptedMessageActionResend) Decode(b *bin.Buffer) error
Decode implements bin.Decoder.
func (*DecryptedMessageActionResend) DecodeBare ¶
func (d *DecryptedMessageActionResend) DecodeBare(b *bin.Buffer) error
DecodeBare implements bin.BareDecoder.
func (*DecryptedMessageActionResend) Encode ¶
func (d *DecryptedMessageActionResend) Encode(b *bin.Buffer) error
Encode implements bin.Encoder.
func (*DecryptedMessageActionResend) EncodeBare ¶
func (d *DecryptedMessageActionResend) EncodeBare(b *bin.Buffer) error
EncodeBare implements bin.BareEncoder.
func (*DecryptedMessageActionResend) GetEndSeqNo ¶
func (d *DecryptedMessageActionResend) GetEndSeqNo() (value int)
GetEndSeqNo returns value of EndSeqNo field.
func (*DecryptedMessageActionResend) GetStartSeqNo ¶
func (d *DecryptedMessageActionResend) GetStartSeqNo() (value int)
GetStartSeqNo returns value of StartSeqNo field.
func (*DecryptedMessageActionResend) String ¶
func (d *DecryptedMessageActionResend) String() string
String implements fmt.Stringer.
func (*DecryptedMessageActionResend) TypeID ¶
func (*DecryptedMessageActionResend) TypeID() uint32
TypeID returns type id in TL schema.
func (*DecryptedMessageActionResend) TypeInfo ¶
func (d *DecryptedMessageActionResend) TypeInfo() tdp.Type
TypeInfo returns info about TL type.
func (*DecryptedMessageActionResend) TypeName ¶
func (*DecryptedMessageActionResend) TypeName() string
TypeName returns name of type in TL schema.
func (*DecryptedMessageActionResend) Zero ¶
func (d *DecryptedMessageActionResend) Zero() bool
type DecryptedMessageActionScreenshotMessages ¶
type DecryptedMessageActionScreenshotMessages struct { // RandomIDs field of DecryptedMessageActionScreenshotMessages. RandomIDs []int64 }
DecryptedMessageActionScreenshotMessages represents TL type `decryptedMessageActionScreenshotMessages#8ac1f475`.
See https://core.telegram.org/constructor/decryptedMessageActionScreenshotMessages for reference.
func (*DecryptedMessageActionScreenshotMessages) Decode ¶
func (d *DecryptedMessageActionScreenshotMessages) Decode(b *bin.Buffer) error
Decode implements bin.Decoder.
func (*DecryptedMessageActionScreenshotMessages) DecodeBare ¶
func (d *DecryptedMessageActionScreenshotMessages) DecodeBare(b *bin.Buffer) error
DecodeBare implements bin.BareDecoder.
func (*DecryptedMessageActionScreenshotMessages) Encode ¶
func (d *DecryptedMessageActionScreenshotMessages) Encode(b *bin.Buffer) error
Encode implements bin.Encoder.
func (*DecryptedMessageActionScreenshotMessages) EncodeBare ¶
func (d *DecryptedMessageActionScreenshotMessages) EncodeBare(b *bin.Buffer) error
EncodeBare implements bin.BareEncoder.
func (*DecryptedMessageActionScreenshotMessages) GetRandomIDs ¶
func (d *DecryptedMessageActionScreenshotMessages) GetRandomIDs() (value []int64)
GetRandomIDs returns value of RandomIDs field.
func (*DecryptedMessageActionScreenshotMessages) String ¶
func (d *DecryptedMessageActionScreenshotMessages) String() string
String implements fmt.Stringer.
func (*DecryptedMessageActionScreenshotMessages) TypeID ¶
func (*DecryptedMessageActionScreenshotMessages) TypeID() uint32
TypeID returns type id in TL schema.
func (*DecryptedMessageActionScreenshotMessages) TypeInfo ¶
func (d *DecryptedMessageActionScreenshotMessages) TypeInfo() tdp.Type
TypeInfo returns info about TL type.
func (*DecryptedMessageActionScreenshotMessages) TypeName ¶
func (*DecryptedMessageActionScreenshotMessages) TypeName() string
TypeName returns name of type in TL schema.
func (*DecryptedMessageActionScreenshotMessages) Zero ¶
func (d *DecryptedMessageActionScreenshotMessages) Zero() bool
type DecryptedMessageActionSetMessageTTL ¶
type DecryptedMessageActionSetMessageTTL struct { // TTLSeconds field of DecryptedMessageActionSetMessageTTL. TTLSeconds int }
DecryptedMessageActionSetMessageTTL represents TL type `decryptedMessageActionSetMessageTTL#a1733aec`.
See https://core.telegram.org/constructor/decryptedMessageActionSetMessageTTL for reference.
func (*DecryptedMessageActionSetMessageTTL) Decode ¶
func (d *DecryptedMessageActionSetMessageTTL) Decode(b *bin.Buffer) error
Decode implements bin.Decoder.
func (*DecryptedMessageActionSetMessageTTL) DecodeBare ¶
func (d *DecryptedMessageActionSetMessageTTL) DecodeBare(b *bin.Buffer) error
DecodeBare implements bin.BareDecoder.
func (*DecryptedMessageActionSetMessageTTL) Encode ¶
func (d *DecryptedMessageActionSetMessageTTL) Encode(b *bin.Buffer) error
Encode implements bin.Encoder.
func (*DecryptedMessageActionSetMessageTTL) EncodeBare ¶
func (d *DecryptedMessageActionSetMessageTTL) EncodeBare(b *bin.Buffer) error
EncodeBare implements bin.BareEncoder.
func (*DecryptedMessageActionSetMessageTTL) GetTTLSeconds ¶
func (d *DecryptedMessageActionSetMessageTTL) GetTTLSeconds() (value int)
GetTTLSeconds returns value of TTLSeconds field.
func (*DecryptedMessageActionSetMessageTTL) String ¶
func (d *DecryptedMessageActionSetMessageTTL) String() string
String implements fmt.Stringer.
func (*DecryptedMessageActionSetMessageTTL) TypeID ¶
func (*DecryptedMessageActionSetMessageTTL) TypeID() uint32
TypeID returns type id in TL schema.
func (*DecryptedMessageActionSetMessageTTL) TypeInfo ¶
func (d *DecryptedMessageActionSetMessageTTL) TypeInfo() tdp.Type
TypeInfo returns info about TL type.
func (*DecryptedMessageActionSetMessageTTL) TypeName ¶
func (*DecryptedMessageActionSetMessageTTL) TypeName() string
TypeName returns name of type in TL schema.
func (*DecryptedMessageActionSetMessageTTL) Zero ¶
func (d *DecryptedMessageActionSetMessageTTL) Zero() bool
type DecryptedMessageActionTyping ¶
type DecryptedMessageActionTyping struct { // Action field of DecryptedMessageActionTyping. Action SendMessageActionClass }
DecryptedMessageActionTyping represents TL type `decryptedMessageActionTyping#ccb27641`.
See https://core.telegram.org/constructor/decryptedMessageActionTyping for reference.
func (*DecryptedMessageActionTyping) Decode ¶
func (d *DecryptedMessageActionTyping) Decode(b *bin.Buffer) error
Decode implements bin.Decoder.
func (*DecryptedMessageActionTyping) DecodeBare ¶
func (d *DecryptedMessageActionTyping) DecodeBare(b *bin.Buffer) error
DecodeBare implements bin.BareDecoder.
func (*DecryptedMessageActionTyping) Encode ¶
func (d *DecryptedMessageActionTyping) Encode(b *bin.Buffer) error
Encode implements bin.Encoder.
func (*DecryptedMessageActionTyping) EncodeBare ¶
func (d *DecryptedMessageActionTyping) EncodeBare(b *bin.Buffer) error
EncodeBare implements bin.BareEncoder.
func (*DecryptedMessageActionTyping) GetAction ¶
func (d *DecryptedMessageActionTyping) GetAction() (value SendMessageActionClass)
GetAction returns value of Action field.
func (*DecryptedMessageActionTyping) String ¶
func (d *DecryptedMessageActionTyping) String() string
String implements fmt.Stringer.
func (*DecryptedMessageActionTyping) TypeID ¶
func (*DecryptedMessageActionTyping) TypeID() uint32
TypeID returns type id in TL schema.
func (*DecryptedMessageActionTyping) TypeInfo ¶
func (d *DecryptedMessageActionTyping) TypeInfo() tdp.Type
TypeInfo returns info about TL type.
func (*DecryptedMessageActionTyping) TypeName ¶
func (*DecryptedMessageActionTyping) TypeName() string
TypeName returns name of type in TL schema.
func (*DecryptedMessageActionTyping) Zero ¶
func (d *DecryptedMessageActionTyping) Zero() bool
type DecryptedMessageBox ¶
type DecryptedMessageBox struct {
DecryptedMessage DecryptedMessageClass
}
DecryptedMessage boxes the DecryptedMessageClass providing a helper.
type DecryptedMessageClass ¶
type DecryptedMessageClass interface { bin.Encoder bin.Decoder bin.BareEncoder bin.BareDecoder // TypeID returns type id in TL schema. // // See https://core.telegram.org/mtproto/TL-tl#remarks. TypeID() uint32 // TypeName returns name of type in TL schema. TypeName() string // String implements fmt.Stringer. String() string // Zero returns true if current object has a zero value. Zero() bool // RandomID field of DecryptedMessage8. GetRandomID() (value int64) // contains filtered or unexported methods }
DecryptedMessageClass represents DecryptedMessage generic type.
See https://core.telegram.org/type/DecryptedMessage for reference.
Example:
g, err := e2e.DecodeDecryptedMessage(buf) if err != nil { panic(err) } switch v := g.(type) { case *e2e.DecryptedMessage8: // decryptedMessage8#1f814f1f case *e2e.DecryptedMessageService8: // decryptedMessageService8#aa48327d case *e2e.DecryptedMessage23: // decryptedMessage23#204d3878 case *e2e.DecryptedMessageService: // decryptedMessageService#73164160 case *e2e.DecryptedMessage46: // decryptedMessage46#36b091de case *e2e.DecryptedMessage: // decryptedMessage#91cc4674 default: panic(v) }
func DecodeDecryptedMessage ¶
func DecodeDecryptedMessage(buf *bin.Buffer) (DecryptedMessageClass, error)
DecodeDecryptedMessage implements binary de-serialization for DecryptedMessageClass.
type DecryptedMessageLayer ¶
type DecryptedMessageLayer struct { // RandomBytes field of DecryptedMessageLayer. RandomBytes []byte // Layer field of DecryptedMessageLayer. Layer int // InSeqNo field of DecryptedMessageLayer. InSeqNo int // OutSeqNo field of DecryptedMessageLayer. OutSeqNo int // Message field of DecryptedMessageLayer. Message DecryptedMessageClass }
DecryptedMessageLayer represents TL type `decryptedMessageLayer#1be31789`.
See https://core.telegram.org/constructor/decryptedMessageLayer for reference.
func (*DecryptedMessageLayer) Decode ¶
func (d *DecryptedMessageLayer) Decode(b *bin.Buffer) error
Decode implements bin.Decoder.
func (*DecryptedMessageLayer) DecodeBare ¶
func (d *DecryptedMessageLayer) DecodeBare(b *bin.Buffer) error
DecodeBare implements bin.BareDecoder.
func (*DecryptedMessageLayer) Encode ¶
func (d *DecryptedMessageLayer) Encode(b *bin.Buffer) error
Encode implements bin.Encoder.
func (*DecryptedMessageLayer) EncodeBare ¶
func (d *DecryptedMessageLayer) EncodeBare(b *bin.Buffer) error
EncodeBare implements bin.BareEncoder.
func (*DecryptedMessageLayer) GetInSeqNo ¶
func (d *DecryptedMessageLayer) GetInSeqNo() (value int)
GetInSeqNo returns value of InSeqNo field.
func (*DecryptedMessageLayer) GetLayer ¶
func (d *DecryptedMessageLayer) GetLayer() (value int)
GetLayer returns value of Layer field.
func (*DecryptedMessageLayer) GetMessage ¶
func (d *DecryptedMessageLayer) GetMessage() (value DecryptedMessageClass)
GetMessage returns value of Message field.
func (*DecryptedMessageLayer) GetOutSeqNo ¶
func (d *DecryptedMessageLayer) GetOutSeqNo() (value int)
GetOutSeqNo returns value of OutSeqNo field.
func (*DecryptedMessageLayer) GetRandomBytes ¶
func (d *DecryptedMessageLayer) GetRandomBytes() (value []byte)
GetRandomBytes returns value of RandomBytes field.
func (*DecryptedMessageLayer) String ¶
func (d *DecryptedMessageLayer) String() string
String implements fmt.Stringer.
func (*DecryptedMessageLayer) TypeID ¶
func (*DecryptedMessageLayer) TypeID() uint32
TypeID returns type id in TL schema.
func (*DecryptedMessageLayer) TypeInfo ¶
func (d *DecryptedMessageLayer) TypeInfo() tdp.Type
TypeInfo returns info about TL type.
func (*DecryptedMessageLayer) TypeName ¶
func (*DecryptedMessageLayer) TypeName() string
TypeName returns name of type in TL schema.
func (*DecryptedMessageLayer) Zero ¶
func (d *DecryptedMessageLayer) Zero() bool
type DecryptedMessageMediaAudio ¶
type DecryptedMessageMediaAudio struct { // Duration field of DecryptedMessageMediaAudio. Duration int // MimeType field of DecryptedMessageMediaAudio. MimeType string // Size field of DecryptedMessageMediaAudio. Size int // Key field of DecryptedMessageMediaAudio. Key []byte // Iv field of DecryptedMessageMediaAudio. Iv []byte }
DecryptedMessageMediaAudio represents TL type `decryptedMessageMediaAudio#57e0a9cb`.
See https://core.telegram.org/constructor/decryptedMessageMediaAudio for reference.
func (*DecryptedMessageMediaAudio) Decode ¶
func (d *DecryptedMessageMediaAudio) Decode(b *bin.Buffer) error
Decode implements bin.Decoder.
func (*DecryptedMessageMediaAudio) DecodeBare ¶
func (d *DecryptedMessageMediaAudio) DecodeBare(b *bin.Buffer) error
DecodeBare implements bin.BareDecoder.
func (*DecryptedMessageMediaAudio) Encode ¶
func (d *DecryptedMessageMediaAudio) Encode(b *bin.Buffer) error
Encode implements bin.Encoder.
func (*DecryptedMessageMediaAudio) EncodeBare ¶
func (d *DecryptedMessageMediaAudio) EncodeBare(b *bin.Buffer) error
EncodeBare implements bin.BareEncoder.
func (*DecryptedMessageMediaAudio) GetDuration ¶
func (d *DecryptedMessageMediaAudio) GetDuration() (value int)
GetDuration returns value of Duration field.
func (*DecryptedMessageMediaAudio) GetIv ¶
func (d *DecryptedMessageMediaAudio) GetIv() (value []byte)
GetIv returns value of Iv field.
func (*DecryptedMessageMediaAudio) GetKey ¶
func (d *DecryptedMessageMediaAudio) GetKey() (value []byte)
GetKey returns value of Key field.
func (*DecryptedMessageMediaAudio) GetMimeType ¶
func (d *DecryptedMessageMediaAudio) GetMimeType() (value string)
GetMimeType returns value of MimeType field.
func (*DecryptedMessageMediaAudio) GetSize ¶
func (d *DecryptedMessageMediaAudio) GetSize() (value int)
GetSize returns value of Size field.
func (*DecryptedMessageMediaAudio) String ¶
func (d *DecryptedMessageMediaAudio) String() string
String implements fmt.Stringer.
func (*DecryptedMessageMediaAudio) TypeID ¶
func (*DecryptedMessageMediaAudio) TypeID() uint32
TypeID returns type id in TL schema.
func (*DecryptedMessageMediaAudio) TypeInfo ¶
func (d *DecryptedMessageMediaAudio) TypeInfo() tdp.Type
TypeInfo returns info about TL type.
func (*DecryptedMessageMediaAudio) TypeName ¶
func (*DecryptedMessageMediaAudio) TypeName() string
TypeName returns name of type in TL schema.
func (*DecryptedMessageMediaAudio) Zero ¶
func (d *DecryptedMessageMediaAudio) Zero() bool
type DecryptedMessageMediaAudio8 ¶
type DecryptedMessageMediaAudio8 struct { // Duration field of DecryptedMessageMediaAudio8. Duration int // Size field of DecryptedMessageMediaAudio8. Size int // Key field of DecryptedMessageMediaAudio8. Key []byte // Iv field of DecryptedMessageMediaAudio8. Iv []byte }
DecryptedMessageMediaAudio8 represents TL type `decryptedMessageMediaAudio8#6080758f`.
See https://core.telegram.org/constructor/decryptedMessageMediaAudio8 for reference.
func (*DecryptedMessageMediaAudio8) Decode ¶
func (d *DecryptedMessageMediaAudio8) Decode(b *bin.Buffer) error
Decode implements bin.Decoder.
func (*DecryptedMessageMediaAudio8) DecodeBare ¶
func (d *DecryptedMessageMediaAudio8) DecodeBare(b *bin.Buffer) error
DecodeBare implements bin.BareDecoder.
func (*DecryptedMessageMediaAudio8) Encode ¶
func (d *DecryptedMessageMediaAudio8) Encode(b *bin.Buffer) error
Encode implements bin.Encoder.
func (*DecryptedMessageMediaAudio8) EncodeBare ¶
func (d *DecryptedMessageMediaAudio8) EncodeBare(b *bin.Buffer) error
EncodeBare implements bin.BareEncoder.
func (*DecryptedMessageMediaAudio8) GetDuration ¶
func (d *DecryptedMessageMediaAudio8) GetDuration() (value int)
GetDuration returns value of Duration field.
func (*DecryptedMessageMediaAudio8) GetIv ¶
func (d *DecryptedMessageMediaAudio8) GetIv() (value []byte)
GetIv returns value of Iv field.
func (*DecryptedMessageMediaAudio8) GetKey ¶
func (d *DecryptedMessageMediaAudio8) GetKey() (value []byte)
GetKey returns value of Key field.
func (*DecryptedMessageMediaAudio8) GetSize ¶
func (d *DecryptedMessageMediaAudio8) GetSize() (value int)
GetSize returns value of Size field.
func (*DecryptedMessageMediaAudio8) String ¶
func (d *DecryptedMessageMediaAudio8) String() string
String implements fmt.Stringer.
func (*DecryptedMessageMediaAudio8) TypeID ¶
func (*DecryptedMessageMediaAudio8) TypeID() uint32
TypeID returns type id in TL schema.
func (*DecryptedMessageMediaAudio8) TypeInfo ¶
func (d *DecryptedMessageMediaAudio8) TypeInfo() tdp.Type
TypeInfo returns info about TL type.
func (*DecryptedMessageMediaAudio8) TypeName ¶
func (*DecryptedMessageMediaAudio8) TypeName() string
TypeName returns name of type in TL schema.
func (*DecryptedMessageMediaAudio8) Zero ¶
func (d *DecryptedMessageMediaAudio8) Zero() bool
type DecryptedMessageMediaBox ¶
type DecryptedMessageMediaBox struct {
DecryptedMessageMedia DecryptedMessageMediaClass
}
DecryptedMessageMedia boxes the DecryptedMessageMediaClass providing a helper.
type DecryptedMessageMediaClass ¶
type DecryptedMessageMediaClass interface { bin.Encoder bin.Decoder bin.BareEncoder bin.BareDecoder // TypeID returns type id in TL schema. // // See https://core.telegram.org/mtproto/TL-tl#remarks. TypeID() uint32 // TypeName returns name of type in TL schema. TypeName() string // String implements fmt.Stringer. String() string // Zero returns true if current object has a zero value. Zero() bool // contains filtered or unexported methods }
DecryptedMessageMediaClass represents DecryptedMessageMedia generic type.
See https://core.telegram.org/type/DecryptedMessageMedia for reference.
Example:
g, err := e2e.DecodeDecryptedMessageMedia(buf) if err != nil { panic(err) } switch v := g.(type) { case *e2e.DecryptedMessageMediaEmpty: // decryptedMessageMediaEmpty#89f5c4a case *e2e.DecryptedMessageMediaPhoto8: // decryptedMessageMediaPhoto8#32798a8c case *e2e.DecryptedMessageMediaVideo8: // decryptedMessageMediaVideo8#4cee6ef3 case *e2e.DecryptedMessageMediaGeoPoint: // decryptedMessageMediaGeoPoint#35480a59 case *e2e.DecryptedMessageMediaContact: // decryptedMessageMediaContact#588a0a97 case *e2e.DecryptedMessageMediaDocument8: // decryptedMessageMediaDocument8#b095434b case *e2e.DecryptedMessageMediaAudio8: // decryptedMessageMediaAudio8#6080758f case *e2e.DecryptedMessageMediaVideo23: // decryptedMessageMediaVideo23#524a415d case *e2e.DecryptedMessageMediaAudio: // decryptedMessageMediaAudio#57e0a9cb case *e2e.DecryptedMessageMediaExternalDocument: // decryptedMessageMediaExternalDocument#fa95b0dd case *e2e.DecryptedMessageMediaPhoto: // decryptedMessageMediaPhoto#f1fa8d78 case *e2e.DecryptedMessageMediaVideo: // decryptedMessageMediaVideo#970c8c0e case *e2e.DecryptedMessageMediaDocument46: // decryptedMessageMediaDocument46#7afe8ae2 case *e2e.DecryptedMessageMediaVenue: // decryptedMessageMediaVenue#8a0df56f case *e2e.DecryptedMessageMediaWebPage: // decryptedMessageMediaWebPage#e50511d8 case *e2e.DecryptedMessageMediaDocument: // decryptedMessageMediaDocument#6abd9782 default: panic(v) }
func DecodeDecryptedMessageMedia ¶
func DecodeDecryptedMessageMedia(buf *bin.Buffer) (DecryptedMessageMediaClass, error)
DecodeDecryptedMessageMedia implements binary de-serialization for DecryptedMessageMediaClass.
type DecryptedMessageMediaContact ¶
type DecryptedMessageMediaContact struct { // PhoneNumber field of DecryptedMessageMediaContact. PhoneNumber string // FirstName field of DecryptedMessageMediaContact. FirstName string // LastName field of DecryptedMessageMediaContact. LastName string // UserID field of DecryptedMessageMediaContact. UserID int }
DecryptedMessageMediaContact represents TL type `decryptedMessageMediaContact#588a0a97`.
See https://core.telegram.org/constructor/decryptedMessageMediaContact for reference.
func (*DecryptedMessageMediaContact) Decode ¶
func (d *DecryptedMessageMediaContact) Decode(b *bin.Buffer) error
Decode implements bin.Decoder.
func (*DecryptedMessageMediaContact) DecodeBare ¶
func (d *DecryptedMessageMediaContact) DecodeBare(b *bin.Buffer) error
DecodeBare implements bin.BareDecoder.
func (*DecryptedMessageMediaContact) Encode ¶
func (d *DecryptedMessageMediaContact) Encode(b *bin.Buffer) error
Encode implements bin.Encoder.
func (*DecryptedMessageMediaContact) EncodeBare ¶
func (d *DecryptedMessageMediaContact) EncodeBare(b *bin.Buffer) error
EncodeBare implements bin.BareEncoder.
func (*DecryptedMessageMediaContact) GetFirstName ¶
func (d *DecryptedMessageMediaContact) GetFirstName() (value string)
GetFirstName returns value of FirstName field.
func (*DecryptedMessageMediaContact) GetLastName ¶
func (d *DecryptedMessageMediaContact) GetLastName() (value string)
GetLastName returns value of LastName field.
func (*DecryptedMessageMediaContact) GetPhoneNumber ¶
func (d *DecryptedMessageMediaContact) GetPhoneNumber() (value string)
GetPhoneNumber returns value of PhoneNumber field.
func (*DecryptedMessageMediaContact) GetUserID ¶
func (d *DecryptedMessageMediaContact) GetUserID() (value int)
GetUserID returns value of UserID field.
func (*DecryptedMessageMediaContact) String ¶
func (d *DecryptedMessageMediaContact) String() string
String implements fmt.Stringer.
func (*DecryptedMessageMediaContact) TypeID ¶
func (*DecryptedMessageMediaContact) TypeID() uint32
TypeID returns type id in TL schema.
func (*DecryptedMessageMediaContact) TypeInfo ¶
func (d *DecryptedMessageMediaContact) TypeInfo() tdp.Type
TypeInfo returns info about TL type.
func (*DecryptedMessageMediaContact) TypeName ¶
func (*DecryptedMessageMediaContact) TypeName() string
TypeName returns name of type in TL schema.
func (*DecryptedMessageMediaContact) Zero ¶
func (d *DecryptedMessageMediaContact) Zero() bool
type DecryptedMessageMediaDocument ¶
type DecryptedMessageMediaDocument struct { // Thumb field of DecryptedMessageMediaDocument. Thumb []byte // ThumbW field of DecryptedMessageMediaDocument. ThumbW int // ThumbH field of DecryptedMessageMediaDocument. ThumbH int // MimeType field of DecryptedMessageMediaDocument. MimeType string // Size field of DecryptedMessageMediaDocument. Size int64 // Key field of DecryptedMessageMediaDocument. Key []byte // Iv field of DecryptedMessageMediaDocument. Iv []byte // Attributes field of DecryptedMessageMediaDocument. Attributes []DocumentAttributeClass // Caption field of DecryptedMessageMediaDocument. Caption string }
DecryptedMessageMediaDocument represents TL type `decryptedMessageMediaDocument#6abd9782`.
See https://core.telegram.org/constructor/decryptedMessageMediaDocument for reference.
func (*DecryptedMessageMediaDocument) Decode ¶
func (d *DecryptedMessageMediaDocument) Decode(b *bin.Buffer) error
Decode implements bin.Decoder.
func (*DecryptedMessageMediaDocument) DecodeBare ¶
func (d *DecryptedMessageMediaDocument) DecodeBare(b *bin.Buffer) error
DecodeBare implements bin.BareDecoder.
func (*DecryptedMessageMediaDocument) Encode ¶
func (d *DecryptedMessageMediaDocument) Encode(b *bin.Buffer) error
Encode implements bin.Encoder.
func (*DecryptedMessageMediaDocument) EncodeBare ¶
func (d *DecryptedMessageMediaDocument) EncodeBare(b *bin.Buffer) error
EncodeBare implements bin.BareEncoder.
func (*DecryptedMessageMediaDocument) GetAttributes ¶
func (d *DecryptedMessageMediaDocument) GetAttributes() (value []DocumentAttributeClass)
GetAttributes returns value of Attributes field.
func (*DecryptedMessageMediaDocument) GetCaption ¶
func (d *DecryptedMessageMediaDocument) GetCaption() (value string)
GetCaption returns value of Caption field.
func (*DecryptedMessageMediaDocument) GetIv ¶
func (d *DecryptedMessageMediaDocument) GetIv() (value []byte)
GetIv returns value of Iv field.
func (*DecryptedMessageMediaDocument) GetKey ¶
func (d *DecryptedMessageMediaDocument) GetKey() (value []byte)
GetKey returns value of Key field.
func (*DecryptedMessageMediaDocument) GetMimeType ¶
func (d *DecryptedMessageMediaDocument) GetMimeType() (value string)
GetMimeType returns value of MimeType field.
func (*DecryptedMessageMediaDocument) GetSize ¶
func (d *DecryptedMessageMediaDocument) GetSize() (value int64)
GetSize returns value of Size field.
func (*DecryptedMessageMediaDocument) GetThumb ¶
func (d *DecryptedMessageMediaDocument) GetThumb() (value []byte)
GetThumb returns value of Thumb field.
func (*DecryptedMessageMediaDocument) GetThumbH ¶
func (d *DecryptedMessageMediaDocument) GetThumbH() (value int)
GetThumbH returns value of ThumbH field.
func (*DecryptedMessageMediaDocument) GetThumbW ¶
func (d *DecryptedMessageMediaDocument) GetThumbW() (value int)
GetThumbW returns value of ThumbW field.
func (*DecryptedMessageMediaDocument) String ¶
func (d *DecryptedMessageMediaDocument) String() string
String implements fmt.Stringer.
func (*DecryptedMessageMediaDocument) TypeID ¶
func (*DecryptedMessageMediaDocument) TypeID() uint32
TypeID returns type id in TL schema.
func (*DecryptedMessageMediaDocument) TypeInfo ¶
func (d *DecryptedMessageMediaDocument) TypeInfo() tdp.Type
TypeInfo returns info about TL type.
func (*DecryptedMessageMediaDocument) TypeName ¶
func (*DecryptedMessageMediaDocument) TypeName() string
TypeName returns name of type in TL schema.
func (*DecryptedMessageMediaDocument) Zero ¶
func (d *DecryptedMessageMediaDocument) Zero() bool
type DecryptedMessageMediaDocument46 ¶
type DecryptedMessageMediaDocument46 struct { // Thumb field of DecryptedMessageMediaDocument46. Thumb []byte // ThumbW field of DecryptedMessageMediaDocument46. ThumbW int // ThumbH field of DecryptedMessageMediaDocument46. ThumbH int // MimeType field of DecryptedMessageMediaDocument46. MimeType string // Size field of DecryptedMessageMediaDocument46. Size int // Key field of DecryptedMessageMediaDocument46. Key []byte // Iv field of DecryptedMessageMediaDocument46. Iv []byte // Attributes field of DecryptedMessageMediaDocument46. Attributes []DocumentAttributeClass // Caption field of DecryptedMessageMediaDocument46. Caption string }
DecryptedMessageMediaDocument46 represents TL type `decryptedMessageMediaDocument46#7afe8ae2`.
See https://core.telegram.org/constructor/decryptedMessageMediaDocument46 for reference.
func (*DecryptedMessageMediaDocument46) Decode ¶
func (d *DecryptedMessageMediaDocument46) Decode(b *bin.Buffer) error
Decode implements bin.Decoder.
func (*DecryptedMessageMediaDocument46) DecodeBare ¶
func (d *DecryptedMessageMediaDocument46) DecodeBare(b *bin.Buffer) error
DecodeBare implements bin.BareDecoder.
func (*DecryptedMessageMediaDocument46) Encode ¶
func (d *DecryptedMessageMediaDocument46) Encode(b *bin.Buffer) error
Encode implements bin.Encoder.
func (*DecryptedMessageMediaDocument46) EncodeBare ¶
func (d *DecryptedMessageMediaDocument46) EncodeBare(b *bin.Buffer) error
EncodeBare implements bin.BareEncoder.
func (*DecryptedMessageMediaDocument46) GetAttributes ¶
func (d *DecryptedMessageMediaDocument46) GetAttributes() (value []DocumentAttributeClass)
GetAttributes returns value of Attributes field.
func (*DecryptedMessageMediaDocument46) GetCaption ¶
func (d *DecryptedMessageMediaDocument46) GetCaption() (value string)
GetCaption returns value of Caption field.
func (*DecryptedMessageMediaDocument46) GetIv ¶
func (d *DecryptedMessageMediaDocument46) GetIv() (value []byte)
GetIv returns value of Iv field.
func (*DecryptedMessageMediaDocument46) GetKey ¶
func (d *DecryptedMessageMediaDocument46) GetKey() (value []byte)
GetKey returns value of Key field.
func (*DecryptedMessageMediaDocument46) GetMimeType ¶
func (d *DecryptedMessageMediaDocument46) GetMimeType() (value string)
GetMimeType returns value of MimeType field.
func (*DecryptedMessageMediaDocument46) GetSize ¶
func (d *DecryptedMessageMediaDocument46) GetSize() (value int)
GetSize returns value of Size field.
func (*DecryptedMessageMediaDocument46) GetThumb ¶
func (d *DecryptedMessageMediaDocument46) GetThumb() (value []byte)
GetThumb returns value of Thumb field.
func (*DecryptedMessageMediaDocument46) GetThumbH ¶
func (d *DecryptedMessageMediaDocument46) GetThumbH() (value int)
GetThumbH returns value of ThumbH field.
func (*DecryptedMessageMediaDocument46) GetThumbW ¶
func (d *DecryptedMessageMediaDocument46) GetThumbW() (value int)
GetThumbW returns value of ThumbW field.
func (*DecryptedMessageMediaDocument46) String ¶
func (d *DecryptedMessageMediaDocument46) String() string
String implements fmt.Stringer.
func (*DecryptedMessageMediaDocument46) TypeID ¶
func (*DecryptedMessageMediaDocument46) TypeID() uint32
TypeID returns type id in TL schema.
func (*DecryptedMessageMediaDocument46) TypeInfo ¶
func (d *DecryptedMessageMediaDocument46) TypeInfo() tdp.Type
TypeInfo returns info about TL type.
func (*DecryptedMessageMediaDocument46) TypeName ¶
func (*DecryptedMessageMediaDocument46) TypeName() string
TypeName returns name of type in TL schema.
func (*DecryptedMessageMediaDocument46) Zero ¶
func (d *DecryptedMessageMediaDocument46) Zero() bool
type DecryptedMessageMediaDocument8 ¶
type DecryptedMessageMediaDocument8 struct { // Thumb field of DecryptedMessageMediaDocument8. Thumb []byte // ThumbW field of DecryptedMessageMediaDocument8. ThumbW int // ThumbH field of DecryptedMessageMediaDocument8. ThumbH int // FileName field of DecryptedMessageMediaDocument8. FileName string // MimeType field of DecryptedMessageMediaDocument8. MimeType string // Size field of DecryptedMessageMediaDocument8. Size int // Key field of DecryptedMessageMediaDocument8. Key []byte // Iv field of DecryptedMessageMediaDocument8. Iv []byte }
DecryptedMessageMediaDocument8 represents TL type `decryptedMessageMediaDocument8#b095434b`.
See https://core.telegram.org/constructor/decryptedMessageMediaDocument8 for reference.
func (*DecryptedMessageMediaDocument8) Decode ¶
func (d *DecryptedMessageMediaDocument8) Decode(b *bin.Buffer) error
Decode implements bin.Decoder.
func (*DecryptedMessageMediaDocument8) DecodeBare ¶
func (d *DecryptedMessageMediaDocument8) DecodeBare(b *bin.Buffer) error
DecodeBare implements bin.BareDecoder.
func (*DecryptedMessageMediaDocument8) Encode ¶
func (d *DecryptedMessageMediaDocument8) Encode(b *bin.Buffer) error
Encode implements bin.Encoder.
func (*DecryptedMessageMediaDocument8) EncodeBare ¶
func (d *DecryptedMessageMediaDocument8) EncodeBare(b *bin.Buffer) error
EncodeBare implements bin.BareEncoder.
func (*DecryptedMessageMediaDocument8) GetFileName ¶
func (d *DecryptedMessageMediaDocument8) GetFileName() (value string)
GetFileName returns value of FileName field.
func (*DecryptedMessageMediaDocument8) GetIv ¶
func (d *DecryptedMessageMediaDocument8) GetIv() (value []byte)
GetIv returns value of Iv field.
func (*DecryptedMessageMediaDocument8) GetKey ¶
func (d *DecryptedMessageMediaDocument8) GetKey() (value []byte)
GetKey returns value of Key field.
func (*DecryptedMessageMediaDocument8) GetMimeType ¶
func (d *DecryptedMessageMediaDocument8) GetMimeType() (value string)
GetMimeType returns value of MimeType field.
func (*DecryptedMessageMediaDocument8) GetSize ¶
func (d *DecryptedMessageMediaDocument8) GetSize() (value int)
GetSize returns value of Size field.
func (*DecryptedMessageMediaDocument8) GetThumb ¶
func (d *DecryptedMessageMediaDocument8) GetThumb() (value []byte)
GetThumb returns value of Thumb field.
func (*DecryptedMessageMediaDocument8) GetThumbH ¶
func (d *DecryptedMessageMediaDocument8) GetThumbH() (value int)
GetThumbH returns value of ThumbH field.
func (*DecryptedMessageMediaDocument8) GetThumbW ¶
func (d *DecryptedMessageMediaDocument8) GetThumbW() (value int)
GetThumbW returns value of ThumbW field.
func (*DecryptedMessageMediaDocument8) String ¶
func (d *DecryptedMessageMediaDocument8) String() string
String implements fmt.Stringer.
func (*DecryptedMessageMediaDocument8) TypeID ¶
func (*DecryptedMessageMediaDocument8) TypeID() uint32
TypeID returns type id in TL schema.
func (*DecryptedMessageMediaDocument8) TypeInfo ¶
func (d *DecryptedMessageMediaDocument8) TypeInfo() tdp.Type
TypeInfo returns info about TL type.
func (*DecryptedMessageMediaDocument8) TypeName ¶
func (*DecryptedMessageMediaDocument8) TypeName() string
TypeName returns name of type in TL schema.
func (*DecryptedMessageMediaDocument8) Zero ¶
func (d *DecryptedMessageMediaDocument8) Zero() bool
type DecryptedMessageMediaEmpty ¶
type DecryptedMessageMediaEmpty struct { }
DecryptedMessageMediaEmpty represents TL type `decryptedMessageMediaEmpty#89f5c4a`.
See https://core.telegram.org/constructor/decryptedMessageMediaEmpty for reference.
func (*DecryptedMessageMediaEmpty) Decode ¶
func (d *DecryptedMessageMediaEmpty) Decode(b *bin.Buffer) error
Decode implements bin.Decoder.
func (*DecryptedMessageMediaEmpty) DecodeBare ¶
func (d *DecryptedMessageMediaEmpty) DecodeBare(b *bin.Buffer) error
DecodeBare implements bin.BareDecoder.
func (*DecryptedMessageMediaEmpty) Encode ¶
func (d *DecryptedMessageMediaEmpty) Encode(b *bin.Buffer) error
Encode implements bin.Encoder.
func (*DecryptedMessageMediaEmpty) EncodeBare ¶
func (d *DecryptedMessageMediaEmpty) EncodeBare(b *bin.Buffer) error
EncodeBare implements bin.BareEncoder.
func (*DecryptedMessageMediaEmpty) String ¶
func (d *DecryptedMessageMediaEmpty) String() string
String implements fmt.Stringer.
func (*DecryptedMessageMediaEmpty) TypeID ¶
func (*DecryptedMessageMediaEmpty) TypeID() uint32
TypeID returns type id in TL schema.
func (*DecryptedMessageMediaEmpty) TypeInfo ¶
func (d *DecryptedMessageMediaEmpty) TypeInfo() tdp.Type
TypeInfo returns info about TL type.
func (*DecryptedMessageMediaEmpty) TypeName ¶
func (*DecryptedMessageMediaEmpty) TypeName() string
TypeName returns name of type in TL schema.
func (*DecryptedMessageMediaEmpty) Zero ¶
func (d *DecryptedMessageMediaEmpty) Zero() bool
type DecryptedMessageMediaExternalDocument ¶
type DecryptedMessageMediaExternalDocument struct { // ID field of DecryptedMessageMediaExternalDocument. ID int64 // AccessHash field of DecryptedMessageMediaExternalDocument. AccessHash int64 // Date field of DecryptedMessageMediaExternalDocument. Date int // MimeType field of DecryptedMessageMediaExternalDocument. MimeType string // Size field of DecryptedMessageMediaExternalDocument. Size int // Thumb field of DecryptedMessageMediaExternalDocument. Thumb PhotoSizeClass // DCID field of DecryptedMessageMediaExternalDocument. DCID int // Attributes field of DecryptedMessageMediaExternalDocument. Attributes []DocumentAttributeClass }
DecryptedMessageMediaExternalDocument represents TL type `decryptedMessageMediaExternalDocument#fa95b0dd`.
See https://core.telegram.org/constructor/decryptedMessageMediaExternalDocument for reference.
func (*DecryptedMessageMediaExternalDocument) Decode ¶
func (d *DecryptedMessageMediaExternalDocument) Decode(b *bin.Buffer) error
Decode implements bin.Decoder.
func (*DecryptedMessageMediaExternalDocument) DecodeBare ¶
func (d *DecryptedMessageMediaExternalDocument) DecodeBare(b *bin.Buffer) error
DecodeBare implements bin.BareDecoder.
func (*DecryptedMessageMediaExternalDocument) Encode ¶
func (d *DecryptedMessageMediaExternalDocument) Encode(b *bin.Buffer) error
Encode implements bin.Encoder.
func (*DecryptedMessageMediaExternalDocument) EncodeBare ¶
func (d *DecryptedMessageMediaExternalDocument) EncodeBare(b *bin.Buffer) error
EncodeBare implements bin.BareEncoder.
func (*DecryptedMessageMediaExternalDocument) GetAccessHash ¶
func (d *DecryptedMessageMediaExternalDocument) GetAccessHash() (value int64)
GetAccessHash returns value of AccessHash field.
func (*DecryptedMessageMediaExternalDocument) GetAttributes ¶
func (d *DecryptedMessageMediaExternalDocument) GetAttributes() (value []DocumentAttributeClass)
GetAttributes returns value of Attributes field.
func (*DecryptedMessageMediaExternalDocument) GetDCID ¶
func (d *DecryptedMessageMediaExternalDocument) GetDCID() (value int)
GetDCID returns value of DCID field.
func (*DecryptedMessageMediaExternalDocument) GetDate ¶
func (d *DecryptedMessageMediaExternalDocument) GetDate() (value int)
GetDate returns value of Date field.
func (*DecryptedMessageMediaExternalDocument) GetID ¶
func (d *DecryptedMessageMediaExternalDocument) GetID() (value int64)
GetID returns value of ID field.
func (*DecryptedMessageMediaExternalDocument) GetMimeType ¶
func (d *DecryptedMessageMediaExternalDocument) GetMimeType() (value string)
GetMimeType returns value of MimeType field.
func (*DecryptedMessageMediaExternalDocument) GetSize ¶
func (d *DecryptedMessageMediaExternalDocument) GetSize() (value int)
GetSize returns value of Size field.
func (*DecryptedMessageMediaExternalDocument) GetThumb ¶
func (d *DecryptedMessageMediaExternalDocument) GetThumb() (value PhotoSizeClass)
GetThumb returns value of Thumb field.
func (*DecryptedMessageMediaExternalDocument) String ¶
func (d *DecryptedMessageMediaExternalDocument) String() string
String implements fmt.Stringer.
func (*DecryptedMessageMediaExternalDocument) TypeID ¶
func (*DecryptedMessageMediaExternalDocument) TypeID() uint32
TypeID returns type id in TL schema.
func (*DecryptedMessageMediaExternalDocument) TypeInfo ¶
func (d *DecryptedMessageMediaExternalDocument) TypeInfo() tdp.Type
TypeInfo returns info about TL type.
func (*DecryptedMessageMediaExternalDocument) TypeName ¶
func (*DecryptedMessageMediaExternalDocument) TypeName() string
TypeName returns name of type in TL schema.
func (*DecryptedMessageMediaExternalDocument) Zero ¶
func (d *DecryptedMessageMediaExternalDocument) Zero() bool
type DecryptedMessageMediaGeoPoint ¶
type DecryptedMessageMediaGeoPoint struct { // Lat field of DecryptedMessageMediaGeoPoint. Lat float64 // Long field of DecryptedMessageMediaGeoPoint. Long float64 }
DecryptedMessageMediaGeoPoint represents TL type `decryptedMessageMediaGeoPoint#35480a59`.
See https://core.telegram.org/constructor/decryptedMessageMediaGeoPoint for reference.
func (*DecryptedMessageMediaGeoPoint) Decode ¶
func (d *DecryptedMessageMediaGeoPoint) Decode(b *bin.Buffer) error
Decode implements bin.Decoder.
func (*DecryptedMessageMediaGeoPoint) DecodeBare ¶
func (d *DecryptedMessageMediaGeoPoint) DecodeBare(b *bin.Buffer) error
DecodeBare implements bin.BareDecoder.
func (*DecryptedMessageMediaGeoPoint) Encode ¶
func (d *DecryptedMessageMediaGeoPoint) Encode(b *bin.Buffer) error
Encode implements bin.Encoder.
func (*DecryptedMessageMediaGeoPoint) EncodeBare ¶
func (d *DecryptedMessageMediaGeoPoint) EncodeBare(b *bin.Buffer) error
EncodeBare implements bin.BareEncoder.
func (*DecryptedMessageMediaGeoPoint) GetLat ¶
func (d *DecryptedMessageMediaGeoPoint) GetLat() (value float64)
GetLat returns value of Lat field.
func (*DecryptedMessageMediaGeoPoint) GetLong ¶
func (d *DecryptedMessageMediaGeoPoint) GetLong() (value float64)
GetLong returns value of Long field.
func (*DecryptedMessageMediaGeoPoint) String ¶
func (d *DecryptedMessageMediaGeoPoint) String() string
String implements fmt.Stringer.
func (*DecryptedMessageMediaGeoPoint) TypeID ¶
func (*DecryptedMessageMediaGeoPoint) TypeID() uint32
TypeID returns type id in TL schema.
func (*DecryptedMessageMediaGeoPoint) TypeInfo ¶
func (d *DecryptedMessageMediaGeoPoint) TypeInfo() tdp.Type
TypeInfo returns info about TL type.
func (*DecryptedMessageMediaGeoPoint) TypeName ¶
func (*DecryptedMessageMediaGeoPoint) TypeName() string
TypeName returns name of type in TL schema.
func (*DecryptedMessageMediaGeoPoint) Zero ¶
func (d *DecryptedMessageMediaGeoPoint) Zero() bool
type DecryptedMessageMediaPhoto ¶
type DecryptedMessageMediaPhoto struct { // Thumb field of DecryptedMessageMediaPhoto. Thumb []byte // ThumbW field of DecryptedMessageMediaPhoto. ThumbW int // ThumbH field of DecryptedMessageMediaPhoto. ThumbH int // W field of DecryptedMessageMediaPhoto. W int // H field of DecryptedMessageMediaPhoto. H int // Size field of DecryptedMessageMediaPhoto. Size int // Key field of DecryptedMessageMediaPhoto. Key []byte // Iv field of DecryptedMessageMediaPhoto. Iv []byte // Caption field of DecryptedMessageMediaPhoto. Caption string }
DecryptedMessageMediaPhoto represents TL type `decryptedMessageMediaPhoto#f1fa8d78`.
See https://core.telegram.org/constructor/decryptedMessageMediaPhoto for reference.
func (*DecryptedMessageMediaPhoto) Decode ¶
func (d *DecryptedMessageMediaPhoto) Decode(b *bin.Buffer) error
Decode implements bin.Decoder.
func (*DecryptedMessageMediaPhoto) DecodeBare ¶
func (d *DecryptedMessageMediaPhoto) DecodeBare(b *bin.Buffer) error
DecodeBare implements bin.BareDecoder.
func (*DecryptedMessageMediaPhoto) Encode ¶
func (d *DecryptedMessageMediaPhoto) Encode(b *bin.Buffer) error
Encode implements bin.Encoder.
func (*DecryptedMessageMediaPhoto) EncodeBare ¶
func (d *DecryptedMessageMediaPhoto) EncodeBare(b *bin.Buffer) error
EncodeBare implements bin.BareEncoder.
func (*DecryptedMessageMediaPhoto) GetCaption ¶
func (d *DecryptedMessageMediaPhoto) GetCaption() (value string)
GetCaption returns value of Caption field.
func (*DecryptedMessageMediaPhoto) GetH ¶
func (d *DecryptedMessageMediaPhoto) GetH() (value int)
GetH returns value of H field.
func (*DecryptedMessageMediaPhoto) GetIv ¶
func (d *DecryptedMessageMediaPhoto) GetIv() (value []byte)
GetIv returns value of Iv field.
func (*DecryptedMessageMediaPhoto) GetKey ¶
func (d *DecryptedMessageMediaPhoto) GetKey() (value []byte)
GetKey returns value of Key field.
func (*DecryptedMessageMediaPhoto) GetSize ¶
func (d *DecryptedMessageMediaPhoto) GetSize() (value int)
GetSize returns value of Size field.
func (*DecryptedMessageMediaPhoto) GetThumb ¶
func (d *DecryptedMessageMediaPhoto) GetThumb() (value []byte)
GetThumb returns value of Thumb field.
func (*DecryptedMessageMediaPhoto) GetThumbH ¶
func (d *DecryptedMessageMediaPhoto) GetThumbH() (value int)
GetThumbH returns value of ThumbH field.
func (*DecryptedMessageMediaPhoto) GetThumbW ¶
func (d *DecryptedMessageMediaPhoto) GetThumbW() (value int)
GetThumbW returns value of ThumbW field.
func (*DecryptedMessageMediaPhoto) GetW ¶
func (d *DecryptedMessageMediaPhoto) GetW() (value int)
GetW returns value of W field.
func (*DecryptedMessageMediaPhoto) String ¶
func (d *DecryptedMessageMediaPhoto) String() string
String implements fmt.Stringer.
func (*DecryptedMessageMediaPhoto) TypeID ¶
func (*DecryptedMessageMediaPhoto) TypeID() uint32
TypeID returns type id in TL schema.
func (*DecryptedMessageMediaPhoto) TypeInfo ¶
func (d *DecryptedMessageMediaPhoto) TypeInfo() tdp.Type
TypeInfo returns info about TL type.
func (*DecryptedMessageMediaPhoto) TypeName ¶
func (*DecryptedMessageMediaPhoto) TypeName() string
TypeName returns name of type in TL schema.
func (*DecryptedMessageMediaPhoto) Zero ¶
func (d *DecryptedMessageMediaPhoto) Zero() bool
type DecryptedMessageMediaPhoto8 ¶
type DecryptedMessageMediaPhoto8 struct { // Thumb field of DecryptedMessageMediaPhoto8. Thumb []byte // ThumbW field of DecryptedMessageMediaPhoto8. ThumbW int // ThumbH field of DecryptedMessageMediaPhoto8. ThumbH int // W field of DecryptedMessageMediaPhoto8. W int // H field of DecryptedMessageMediaPhoto8. H int // Size field of DecryptedMessageMediaPhoto8. Size int // Key field of DecryptedMessageMediaPhoto8. Key []byte // Iv field of DecryptedMessageMediaPhoto8. Iv []byte }
DecryptedMessageMediaPhoto8 represents TL type `decryptedMessageMediaPhoto8#32798a8c`.
See https://core.telegram.org/constructor/decryptedMessageMediaPhoto8 for reference.
func (*DecryptedMessageMediaPhoto8) Decode ¶
func (d *DecryptedMessageMediaPhoto8) Decode(b *bin.Buffer) error
Decode implements bin.Decoder.
func (*DecryptedMessageMediaPhoto8) DecodeBare ¶
func (d *DecryptedMessageMediaPhoto8) DecodeBare(b *bin.Buffer) error
DecodeBare implements bin.BareDecoder.
func (*DecryptedMessageMediaPhoto8) Encode ¶
func (d *DecryptedMessageMediaPhoto8) Encode(b *bin.Buffer) error
Encode implements bin.Encoder.
func (*DecryptedMessageMediaPhoto8) EncodeBare ¶
func (d *DecryptedMessageMediaPhoto8) EncodeBare(b *bin.Buffer) error
EncodeBare implements bin.BareEncoder.
func (*DecryptedMessageMediaPhoto8) GetH ¶
func (d *DecryptedMessageMediaPhoto8) GetH() (value int)
GetH returns value of H field.
func (*DecryptedMessageMediaPhoto8) GetIv ¶
func (d *DecryptedMessageMediaPhoto8) GetIv() (value []byte)
GetIv returns value of Iv field.
func (*DecryptedMessageMediaPhoto8) GetKey ¶
func (d *DecryptedMessageMediaPhoto8) GetKey() (value []byte)
GetKey returns value of Key field.
func (*DecryptedMessageMediaPhoto8) GetSize ¶
func (d *DecryptedMessageMediaPhoto8) GetSize() (value int)
GetSize returns value of Size field.
func (*DecryptedMessageMediaPhoto8) GetThumb ¶
func (d *DecryptedMessageMediaPhoto8) GetThumb() (value []byte)
GetThumb returns value of Thumb field.
func (*DecryptedMessageMediaPhoto8) GetThumbH ¶
func (d *DecryptedMessageMediaPhoto8) GetThumbH() (value int)
GetThumbH returns value of ThumbH field.
func (*DecryptedMessageMediaPhoto8) GetThumbW ¶
func (d *DecryptedMessageMediaPhoto8) GetThumbW() (value int)
GetThumbW returns value of ThumbW field.
func (*DecryptedMessageMediaPhoto8) GetW ¶
func (d *DecryptedMessageMediaPhoto8) GetW() (value int)
GetW returns value of W field.
func (*DecryptedMessageMediaPhoto8) String ¶
func (d *DecryptedMessageMediaPhoto8) String() string
String implements fmt.Stringer.
func (*DecryptedMessageMediaPhoto8) TypeID ¶
func (*DecryptedMessageMediaPhoto8) TypeID() uint32
TypeID returns type id in TL schema.
func (*DecryptedMessageMediaPhoto8) TypeInfo ¶
func (d *DecryptedMessageMediaPhoto8) TypeInfo() tdp.Type
TypeInfo returns info about TL type.
func (*DecryptedMessageMediaPhoto8) TypeName ¶
func (*DecryptedMessageMediaPhoto8) TypeName() string
TypeName returns name of type in TL schema.
func (*DecryptedMessageMediaPhoto8) Zero ¶
func (d *DecryptedMessageMediaPhoto8) Zero() bool
type DecryptedMessageMediaVenue ¶
type DecryptedMessageMediaVenue struct { // Lat field of DecryptedMessageMediaVenue. Lat float64 // Long field of DecryptedMessageMediaVenue. Long float64 // Title field of DecryptedMessageMediaVenue. Title string // Address field of DecryptedMessageMediaVenue. Address string // Provider field of DecryptedMessageMediaVenue. Provider string // VenueID field of DecryptedMessageMediaVenue. VenueID string }
DecryptedMessageMediaVenue represents TL type `decryptedMessageMediaVenue#8a0df56f`.
See https://core.telegram.org/constructor/decryptedMessageMediaVenue for reference.
func (*DecryptedMessageMediaVenue) Decode ¶
func (d *DecryptedMessageMediaVenue) Decode(b *bin.Buffer) error
Decode implements bin.Decoder.
func (*DecryptedMessageMediaVenue) DecodeBare ¶
func (d *DecryptedMessageMediaVenue) DecodeBare(b *bin.Buffer) error
DecodeBare implements bin.BareDecoder.
func (*DecryptedMessageMediaVenue) Encode ¶
func (d *DecryptedMessageMediaVenue) Encode(b *bin.Buffer) error
Encode implements bin.Encoder.
func (*DecryptedMessageMediaVenue) EncodeBare ¶
func (d *DecryptedMessageMediaVenue) EncodeBare(b *bin.Buffer) error
EncodeBare implements bin.BareEncoder.
func (*DecryptedMessageMediaVenue) GetAddress ¶
func (d *DecryptedMessageMediaVenue) GetAddress() (value string)
GetAddress returns value of Address field.
func (*DecryptedMessageMediaVenue) GetLat ¶
func (d *DecryptedMessageMediaVenue) GetLat() (value float64)
GetLat returns value of Lat field.
func (*DecryptedMessageMediaVenue) GetLong ¶
func (d *DecryptedMessageMediaVenue) GetLong() (value float64)
GetLong returns value of Long field.
func (*DecryptedMessageMediaVenue) GetProvider ¶
func (d *DecryptedMessageMediaVenue) GetProvider() (value string)
GetProvider returns value of Provider field.
func (*DecryptedMessageMediaVenue) GetTitle ¶
func (d *DecryptedMessageMediaVenue) GetTitle() (value string)
GetTitle returns value of Title field.
func (*DecryptedMessageMediaVenue) GetVenueID ¶
func (d *DecryptedMessageMediaVenue) GetVenueID() (value string)
GetVenueID returns value of VenueID field.
func (*DecryptedMessageMediaVenue) String ¶
func (d *DecryptedMessageMediaVenue) String() string
String implements fmt.Stringer.
func (*DecryptedMessageMediaVenue) TypeID ¶
func (*DecryptedMessageMediaVenue) TypeID() uint32
TypeID returns type id in TL schema.
func (*DecryptedMessageMediaVenue) TypeInfo ¶
func (d *DecryptedMessageMediaVenue) TypeInfo() tdp.Type
TypeInfo returns info about TL type.
func (*DecryptedMessageMediaVenue) TypeName ¶
func (*DecryptedMessageMediaVenue) TypeName() string
TypeName returns name of type in TL schema.
func (*DecryptedMessageMediaVenue) Zero ¶
func (d *DecryptedMessageMediaVenue) Zero() bool
type DecryptedMessageMediaVideo ¶
type DecryptedMessageMediaVideo struct { // Thumb field of DecryptedMessageMediaVideo. Thumb []byte // ThumbW field of DecryptedMessageMediaVideo. ThumbW int // ThumbH field of DecryptedMessageMediaVideo. ThumbH int // Duration field of DecryptedMessageMediaVideo. Duration int // MimeType field of DecryptedMessageMediaVideo. MimeType string // W field of DecryptedMessageMediaVideo. W int // H field of DecryptedMessageMediaVideo. H int // Size field of DecryptedMessageMediaVideo. Size int // Key field of DecryptedMessageMediaVideo. Key []byte // Iv field of DecryptedMessageMediaVideo. Iv []byte // Caption field of DecryptedMessageMediaVideo. Caption string }
DecryptedMessageMediaVideo represents TL type `decryptedMessageMediaVideo#970c8c0e`.
See https://core.telegram.org/constructor/decryptedMessageMediaVideo for reference.
func (*DecryptedMessageMediaVideo) Decode ¶
func (d *DecryptedMessageMediaVideo) Decode(b *bin.Buffer) error
Decode implements bin.Decoder.
func (*DecryptedMessageMediaVideo) DecodeBare ¶
func (d *DecryptedMessageMediaVideo) DecodeBare(b *bin.Buffer) error
DecodeBare implements bin.BareDecoder.
func (*DecryptedMessageMediaVideo) Encode ¶
func (d *DecryptedMessageMediaVideo) Encode(b *bin.Buffer) error
Encode implements bin.Encoder.
func (*DecryptedMessageMediaVideo) EncodeBare ¶
func (d *DecryptedMessageMediaVideo) EncodeBare(b *bin.Buffer) error
EncodeBare implements bin.BareEncoder.
func (*DecryptedMessageMediaVideo) GetCaption ¶
func (d *DecryptedMessageMediaVideo) GetCaption() (value string)
GetCaption returns value of Caption field.
func (*DecryptedMessageMediaVideo) GetDuration ¶
func (d *DecryptedMessageMediaVideo) GetDuration() (value int)
GetDuration returns value of Duration field.
func (*DecryptedMessageMediaVideo) GetH ¶
func (d *DecryptedMessageMediaVideo) GetH() (value int)
GetH returns value of H field.
func (*DecryptedMessageMediaVideo) GetIv ¶
func (d *DecryptedMessageMediaVideo) GetIv() (value []byte)
GetIv returns value of Iv field.
func (*DecryptedMessageMediaVideo) GetKey ¶
func (d *DecryptedMessageMediaVideo) GetKey() (value []byte)
GetKey returns value of Key field.
func (*DecryptedMessageMediaVideo) GetMimeType ¶
func (d *DecryptedMessageMediaVideo) GetMimeType() (value string)
GetMimeType returns value of MimeType field.
func (*DecryptedMessageMediaVideo) GetSize ¶
func (d *DecryptedMessageMediaVideo) GetSize() (value int)
GetSize returns value of Size field.
func (*DecryptedMessageMediaVideo) GetThumb ¶
func (d *DecryptedMessageMediaVideo) GetThumb() (value []byte)
GetThumb returns value of Thumb field.
func (*DecryptedMessageMediaVideo) GetThumbH ¶
func (d *DecryptedMessageMediaVideo) GetThumbH() (value int)
GetThumbH returns value of ThumbH field.
func (*DecryptedMessageMediaVideo) GetThumbW ¶
func (d *DecryptedMessageMediaVideo) GetThumbW() (value int)
GetThumbW returns value of ThumbW field.
func (*DecryptedMessageMediaVideo) GetW ¶
func (d *DecryptedMessageMediaVideo) GetW() (value int)
GetW returns value of W field.
func (*DecryptedMessageMediaVideo) String ¶
func (d *DecryptedMessageMediaVideo) String() string
String implements fmt.Stringer.
func (*DecryptedMessageMediaVideo) TypeID ¶
func (*DecryptedMessageMediaVideo) TypeID() uint32
TypeID returns type id in TL schema.
func (*DecryptedMessageMediaVideo) TypeInfo ¶
func (d *DecryptedMessageMediaVideo) TypeInfo() tdp.Type
TypeInfo returns info about TL type.
func (*DecryptedMessageMediaVideo) TypeName ¶
func (*DecryptedMessageMediaVideo) TypeName() string
TypeName returns name of type in TL schema.
func (*DecryptedMessageMediaVideo) Zero ¶
func (d *DecryptedMessageMediaVideo) Zero() bool
type DecryptedMessageMediaVideo23 ¶
type DecryptedMessageMediaVideo23 struct { // Thumb field of DecryptedMessageMediaVideo23. Thumb []byte // ThumbW field of DecryptedMessageMediaVideo23. ThumbW int // ThumbH field of DecryptedMessageMediaVideo23. ThumbH int // Duration field of DecryptedMessageMediaVideo23. Duration int // MimeType field of DecryptedMessageMediaVideo23. MimeType string // W field of DecryptedMessageMediaVideo23. W int // H field of DecryptedMessageMediaVideo23. H int // Size field of DecryptedMessageMediaVideo23. Size int // Key field of DecryptedMessageMediaVideo23. Key []byte // Iv field of DecryptedMessageMediaVideo23. Iv []byte }
DecryptedMessageMediaVideo23 represents TL type `decryptedMessageMediaVideo23#524a415d`.
See https://core.telegram.org/constructor/decryptedMessageMediaVideo23 for reference.
func (*DecryptedMessageMediaVideo23) Decode ¶
func (d *DecryptedMessageMediaVideo23) Decode(b *bin.Buffer) error
Decode implements bin.Decoder.
func (*DecryptedMessageMediaVideo23) DecodeBare ¶
func (d *DecryptedMessageMediaVideo23) DecodeBare(b *bin.Buffer) error
DecodeBare implements bin.BareDecoder.
func (*DecryptedMessageMediaVideo23) Encode ¶
func (d *DecryptedMessageMediaVideo23) Encode(b *bin.Buffer) error
Encode implements bin.Encoder.
func (*DecryptedMessageMediaVideo23) EncodeBare ¶
func (d *DecryptedMessageMediaVideo23) EncodeBare(b *bin.Buffer) error
EncodeBare implements bin.BareEncoder.
func (*DecryptedMessageMediaVideo23) GetDuration ¶
func (d *DecryptedMessageMediaVideo23) GetDuration() (value int)
GetDuration returns value of Duration field.
func (*DecryptedMessageMediaVideo23) GetH ¶
func (d *DecryptedMessageMediaVideo23) GetH() (value int)
GetH returns value of H field.
func (*DecryptedMessageMediaVideo23) GetIv ¶
func (d *DecryptedMessageMediaVideo23) GetIv() (value []byte)
GetIv returns value of Iv field.
func (*DecryptedMessageMediaVideo23) GetKey ¶
func (d *DecryptedMessageMediaVideo23) GetKey() (value []byte)
GetKey returns value of Key field.
func (*DecryptedMessageMediaVideo23) GetMimeType ¶
func (d *DecryptedMessageMediaVideo23) GetMimeType() (value string)
GetMimeType returns value of MimeType field.
func (*DecryptedMessageMediaVideo23) GetSize ¶
func (d *DecryptedMessageMediaVideo23) GetSize() (value int)
GetSize returns value of Size field.
func (*DecryptedMessageMediaVideo23) GetThumb ¶
func (d *DecryptedMessageMediaVideo23) GetThumb() (value []byte)
GetThumb returns value of Thumb field.
func (*DecryptedMessageMediaVideo23) GetThumbH ¶
func (d *DecryptedMessageMediaVideo23) GetThumbH() (value int)
GetThumbH returns value of ThumbH field.
func (*DecryptedMessageMediaVideo23) GetThumbW ¶
func (d *DecryptedMessageMediaVideo23) GetThumbW() (value int)
GetThumbW returns value of ThumbW field.
func (*DecryptedMessageMediaVideo23) GetW ¶
func (d *DecryptedMessageMediaVideo23) GetW() (value int)
GetW returns value of W field.
func (*DecryptedMessageMediaVideo23) String ¶
func (d *DecryptedMessageMediaVideo23) String() string
String implements fmt.Stringer.
func (*DecryptedMessageMediaVideo23) TypeID ¶
func (*DecryptedMessageMediaVideo23) TypeID() uint32
TypeID returns type id in TL schema.
func (*DecryptedMessageMediaVideo23) TypeInfo ¶
func (d *DecryptedMessageMediaVideo23) TypeInfo() tdp.Type
TypeInfo returns info about TL type.
func (*DecryptedMessageMediaVideo23) TypeName ¶
func (*DecryptedMessageMediaVideo23) TypeName() string
TypeName returns name of type in TL schema.
func (*DecryptedMessageMediaVideo23) Zero ¶
func (d *DecryptedMessageMediaVideo23) Zero() bool
type DecryptedMessageMediaVideo8 ¶
type DecryptedMessageMediaVideo8 struct { // Thumb field of DecryptedMessageMediaVideo8. Thumb []byte // ThumbW field of DecryptedMessageMediaVideo8. ThumbW int // ThumbH field of DecryptedMessageMediaVideo8. ThumbH int // Duration field of DecryptedMessageMediaVideo8. Duration int // W field of DecryptedMessageMediaVideo8. W int // H field of DecryptedMessageMediaVideo8. H int // Size field of DecryptedMessageMediaVideo8. Size int // Key field of DecryptedMessageMediaVideo8. Key []byte // Iv field of DecryptedMessageMediaVideo8. Iv []byte }
DecryptedMessageMediaVideo8 represents TL type `decryptedMessageMediaVideo8#4cee6ef3`.
See https://core.telegram.org/constructor/decryptedMessageMediaVideo8 for reference.
func (*DecryptedMessageMediaVideo8) Decode ¶
func (d *DecryptedMessageMediaVideo8) Decode(b *bin.Buffer) error
Decode implements bin.Decoder.
func (*DecryptedMessageMediaVideo8) DecodeBare ¶
func (d *DecryptedMessageMediaVideo8) DecodeBare(b *bin.Buffer) error
DecodeBare implements bin.BareDecoder.
func (*DecryptedMessageMediaVideo8) Encode ¶
func (d *DecryptedMessageMediaVideo8) Encode(b *bin.Buffer) error
Encode implements bin.Encoder.
func (*DecryptedMessageMediaVideo8) EncodeBare ¶
func (d *DecryptedMessageMediaVideo8) EncodeBare(b *bin.Buffer) error
EncodeBare implements bin.BareEncoder.
func (*DecryptedMessageMediaVideo8) GetDuration ¶
func (d *DecryptedMessageMediaVideo8) GetDuration() (value int)
GetDuration returns value of Duration field.
func (*DecryptedMessageMediaVideo8) GetH ¶
func (d *DecryptedMessageMediaVideo8) GetH() (value int)
GetH returns value of H field.
func (*DecryptedMessageMediaVideo8) GetIv ¶
func (d *DecryptedMessageMediaVideo8) GetIv() (value []byte)
GetIv returns value of Iv field.
func (*DecryptedMessageMediaVideo8) GetKey ¶
func (d *DecryptedMessageMediaVideo8) GetKey() (value []byte)
GetKey returns value of Key field.
func (*DecryptedMessageMediaVideo8) GetSize ¶
func (d *DecryptedMessageMediaVideo8) GetSize() (value int)
GetSize returns value of Size field.
func (*DecryptedMessageMediaVideo8) GetThumb ¶
func (d *DecryptedMessageMediaVideo8) GetThumb() (value []byte)
GetThumb returns value of Thumb field.
func (*DecryptedMessageMediaVideo8) GetThumbH ¶
func (d *DecryptedMessageMediaVideo8) GetThumbH() (value int)
GetThumbH returns value of ThumbH field.
func (*DecryptedMessageMediaVideo8) GetThumbW ¶
func (d *DecryptedMessageMediaVideo8) GetThumbW() (value int)
GetThumbW returns value of ThumbW field.
func (*DecryptedMessageMediaVideo8) GetW ¶
func (d *DecryptedMessageMediaVideo8) GetW() (value int)
GetW returns value of W field.
func (*DecryptedMessageMediaVideo8) String ¶
func (d *DecryptedMessageMediaVideo8) String() string
String implements fmt.Stringer.
func (*DecryptedMessageMediaVideo8) TypeID ¶
func (*DecryptedMessageMediaVideo8) TypeID() uint32
TypeID returns type id in TL schema.
func (*DecryptedMessageMediaVideo8) TypeInfo ¶
func (d *DecryptedMessageMediaVideo8) TypeInfo() tdp.Type
TypeInfo returns info about TL type.
func (*DecryptedMessageMediaVideo8) TypeName ¶
func (*DecryptedMessageMediaVideo8) TypeName() string
TypeName returns name of type in TL schema.
func (*DecryptedMessageMediaVideo8) Zero ¶
func (d *DecryptedMessageMediaVideo8) Zero() bool
type DecryptedMessageMediaWebPage ¶
type DecryptedMessageMediaWebPage struct { // URL field of DecryptedMessageMediaWebPage. URL string }
DecryptedMessageMediaWebPage represents TL type `decryptedMessageMediaWebPage#e50511d8`.
See https://core.telegram.org/constructor/decryptedMessageMediaWebPage for reference.
func (*DecryptedMessageMediaWebPage) Decode ¶
func (d *DecryptedMessageMediaWebPage) Decode(b *bin.Buffer) error
Decode implements bin.Decoder.
func (*DecryptedMessageMediaWebPage) DecodeBare ¶
func (d *DecryptedMessageMediaWebPage) DecodeBare(b *bin.Buffer) error
DecodeBare implements bin.BareDecoder.
func (*DecryptedMessageMediaWebPage) Encode ¶
func (d *DecryptedMessageMediaWebPage) Encode(b *bin.Buffer) error
Encode implements bin.Encoder.
func (*DecryptedMessageMediaWebPage) EncodeBare ¶
func (d *DecryptedMessageMediaWebPage) EncodeBare(b *bin.Buffer) error
EncodeBare implements bin.BareEncoder.
func (*DecryptedMessageMediaWebPage) GetURL ¶
func (d *DecryptedMessageMediaWebPage) GetURL() (value string)
GetURL returns value of URL field.
func (*DecryptedMessageMediaWebPage) String ¶
func (d *DecryptedMessageMediaWebPage) String() string
String implements fmt.Stringer.
func (*DecryptedMessageMediaWebPage) TypeID ¶
func (*DecryptedMessageMediaWebPage) TypeID() uint32
TypeID returns type id in TL schema.
func (*DecryptedMessageMediaWebPage) TypeInfo ¶
func (d *DecryptedMessageMediaWebPage) TypeInfo() tdp.Type
TypeInfo returns info about TL type.
func (*DecryptedMessageMediaWebPage) TypeName ¶
func (*DecryptedMessageMediaWebPage) TypeName() string
TypeName returns name of type in TL schema.
func (*DecryptedMessageMediaWebPage) Zero ¶
func (d *DecryptedMessageMediaWebPage) Zero() bool
type DecryptedMessageService ¶
type DecryptedMessageService struct { // RandomID field of DecryptedMessageService. RandomID int64 // Action field of DecryptedMessageService. Action DecryptedMessageActionClass }
DecryptedMessageService represents TL type `decryptedMessageService#73164160`.
See https://core.telegram.org/constructor/decryptedMessageService for reference.
func (*DecryptedMessageService) Decode ¶
func (d *DecryptedMessageService) Decode(b *bin.Buffer) error
Decode implements bin.Decoder.
func (*DecryptedMessageService) DecodeBare ¶
func (d *DecryptedMessageService) DecodeBare(b *bin.Buffer) error
DecodeBare implements bin.BareDecoder.
func (*DecryptedMessageService) Encode ¶
func (d *DecryptedMessageService) Encode(b *bin.Buffer) error
Encode implements bin.Encoder.
func (*DecryptedMessageService) EncodeBare ¶
func (d *DecryptedMessageService) EncodeBare(b *bin.Buffer) error
EncodeBare implements bin.BareEncoder.
func (*DecryptedMessageService) GetAction ¶
func (d *DecryptedMessageService) GetAction() (value DecryptedMessageActionClass)
GetAction returns value of Action field.
func (*DecryptedMessageService) GetRandomID ¶
func (d *DecryptedMessageService) GetRandomID() (value int64)
GetRandomID returns value of RandomID field.
func (*DecryptedMessageService) String ¶
func (d *DecryptedMessageService) String() string
String implements fmt.Stringer.
func (*DecryptedMessageService) TypeID ¶
func (*DecryptedMessageService) TypeID() uint32
TypeID returns type id in TL schema.
func (*DecryptedMessageService) TypeInfo ¶
func (d *DecryptedMessageService) TypeInfo() tdp.Type
TypeInfo returns info about TL type.
func (*DecryptedMessageService) TypeName ¶
func (*DecryptedMessageService) TypeName() string
TypeName returns name of type in TL schema.
func (*DecryptedMessageService) Zero ¶
func (d *DecryptedMessageService) Zero() bool
type DecryptedMessageService8 ¶
type DecryptedMessageService8 struct { // RandomID field of DecryptedMessageService8. RandomID int64 // RandomBytes field of DecryptedMessageService8. RandomBytes []byte // Action field of DecryptedMessageService8. Action DecryptedMessageActionClass }
DecryptedMessageService8 represents TL type `decryptedMessageService8#aa48327d`.
See https://core.telegram.org/constructor/decryptedMessageService8 for reference.
func (*DecryptedMessageService8) Decode ¶
func (d *DecryptedMessageService8) Decode(b *bin.Buffer) error
Decode implements bin.Decoder.
func (*DecryptedMessageService8) DecodeBare ¶
func (d *DecryptedMessageService8) DecodeBare(b *bin.Buffer) error
DecodeBare implements bin.BareDecoder.
func (*DecryptedMessageService8) Encode ¶
func (d *DecryptedMessageService8) Encode(b *bin.Buffer) error
Encode implements bin.Encoder.
func (*DecryptedMessageService8) EncodeBare ¶
func (d *DecryptedMessageService8) EncodeBare(b *bin.Buffer) error
EncodeBare implements bin.BareEncoder.
func (*DecryptedMessageService8) GetAction ¶
func (d *DecryptedMessageService8) GetAction() (value DecryptedMessageActionClass)
GetAction returns value of Action field.
func (*DecryptedMessageService8) GetRandomBytes ¶
func (d *DecryptedMessageService8) GetRandomBytes() (value []byte)
GetRandomBytes returns value of RandomBytes field.
func (*DecryptedMessageService8) GetRandomID ¶
func (d *DecryptedMessageService8) GetRandomID() (value int64)
GetRandomID returns value of RandomID field.
func (*DecryptedMessageService8) String ¶
func (d *DecryptedMessageService8) String() string
String implements fmt.Stringer.
func (*DecryptedMessageService8) TypeID ¶
func (*DecryptedMessageService8) TypeID() uint32
TypeID returns type id in TL schema.
func (*DecryptedMessageService8) TypeInfo ¶
func (d *DecryptedMessageService8) TypeInfo() tdp.Type
TypeInfo returns info about TL type.
func (*DecryptedMessageService8) TypeName ¶
func (*DecryptedMessageService8) TypeName() string
TypeName returns name of type in TL schema.
func (*DecryptedMessageService8) Zero ¶
func (d *DecryptedMessageService8) Zero() bool
type DocumentAttributeAnimated ¶
type DocumentAttributeAnimated struct { }
DocumentAttributeAnimated represents TL type `documentAttributeAnimated#11b58939`. Defines an animated GIF
See https://core.telegram.org/constructor/documentAttributeAnimated for reference.
func (*DocumentAttributeAnimated) Decode ¶
func (d *DocumentAttributeAnimated) Decode(b *bin.Buffer) error
Decode implements bin.Decoder.
func (*DocumentAttributeAnimated) DecodeBare ¶
func (d *DocumentAttributeAnimated) DecodeBare(b *bin.Buffer) error
DecodeBare implements bin.BareDecoder.
func (*DocumentAttributeAnimated) Encode ¶
func (d *DocumentAttributeAnimated) Encode(b *bin.Buffer) error
Encode implements bin.Encoder.
func (*DocumentAttributeAnimated) EncodeBare ¶
func (d *DocumentAttributeAnimated) EncodeBare(b *bin.Buffer) error
EncodeBare implements bin.BareEncoder.
func (*DocumentAttributeAnimated) String ¶
func (d *DocumentAttributeAnimated) String() string
String implements fmt.Stringer.
func (*DocumentAttributeAnimated) TypeID ¶
func (*DocumentAttributeAnimated) TypeID() uint32
TypeID returns type id in TL schema.
func (*DocumentAttributeAnimated) TypeInfo ¶
func (d *DocumentAttributeAnimated) TypeInfo() tdp.Type
TypeInfo returns info about TL type.
func (*DocumentAttributeAnimated) TypeName ¶
func (*DocumentAttributeAnimated) TypeName() string
TypeName returns name of type in TL schema.
func (*DocumentAttributeAnimated) Zero ¶
func (d *DocumentAttributeAnimated) Zero() bool
type DocumentAttributeAudio ¶
type DocumentAttributeAudio struct { // Flags, see TL conditional fields¹ // // Links: // 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Flags bin.Fields // Whether this is a voice message Voice bool // Duration in seconds Duration int // Name of song // // Use SetTitle and GetTitle helpers. Title string // Performer // // Use SetPerformer and GetPerformer helpers. Performer string // Waveform: consists in a series of bitpacked 5-bit values. Example implementation: // android¹. // // Links: // 1) https://github.com/DrKLO/Telegram/blob/96dce2c9aabc33b87db61d830aa087b6b03fe397/TMessagesProj/jni/audio.c#L546 // // Use SetWaveform and GetWaveform helpers. Waveform []byte }
DocumentAttributeAudio represents TL type `documentAttributeAudio#9852f9c6`. Represents an audio file
See https://core.telegram.org/constructor/documentAttributeAudio for reference.
func (*DocumentAttributeAudio) Decode ¶
func (d *DocumentAttributeAudio) Decode(b *bin.Buffer) error
Decode implements bin.Decoder.
func (*DocumentAttributeAudio) DecodeBare ¶
func (d *DocumentAttributeAudio) DecodeBare(b *bin.Buffer) error
DecodeBare implements bin.BareDecoder.
func (*DocumentAttributeAudio) Encode ¶
func (d *DocumentAttributeAudio) Encode(b *bin.Buffer) error
Encode implements bin.Encoder.
func (*DocumentAttributeAudio) EncodeBare ¶
func (d *DocumentAttributeAudio) EncodeBare(b *bin.Buffer) error
EncodeBare implements bin.BareEncoder.
func (*DocumentAttributeAudio) GetDuration ¶
func (d *DocumentAttributeAudio) GetDuration() (value int)
GetDuration returns value of Duration field.
func (*DocumentAttributeAudio) GetPerformer ¶
func (d *DocumentAttributeAudio) GetPerformer() (value string, ok bool)
GetPerformer returns value of Performer conditional field and boolean which is true if field was set.
func (*DocumentAttributeAudio) GetTitle ¶
func (d *DocumentAttributeAudio) GetTitle() (value string, ok bool)
GetTitle returns value of Title conditional field and boolean which is true if field was set.
func (*DocumentAttributeAudio) GetVoice ¶
func (d *DocumentAttributeAudio) GetVoice() (value bool)
GetVoice returns value of Voice conditional field.
func (*DocumentAttributeAudio) GetWaveform ¶
func (d *DocumentAttributeAudio) GetWaveform() (value []byte, ok bool)
GetWaveform returns value of Waveform conditional field and boolean which is true if field was set.
func (*DocumentAttributeAudio) SetFlags ¶
func (d *DocumentAttributeAudio) SetFlags()
SetFlags sets flags for non-zero fields.
func (*DocumentAttributeAudio) SetPerformer ¶
func (d *DocumentAttributeAudio) SetPerformer(value string)
SetPerformer sets value of Performer conditional field.
func (*DocumentAttributeAudio) SetTitle ¶
func (d *DocumentAttributeAudio) SetTitle(value string)
SetTitle sets value of Title conditional field.
func (*DocumentAttributeAudio) SetVoice ¶
func (d *DocumentAttributeAudio) SetVoice(value bool)
SetVoice sets value of Voice conditional field.
func (*DocumentAttributeAudio) SetWaveform ¶
func (d *DocumentAttributeAudio) SetWaveform(value []byte)
SetWaveform sets value of Waveform conditional field.
func (*DocumentAttributeAudio) String ¶
func (d *DocumentAttributeAudio) String() string
String implements fmt.Stringer.
func (*DocumentAttributeAudio) TypeID ¶
func (*DocumentAttributeAudio) TypeID() uint32
TypeID returns type id in TL schema.
func (*DocumentAttributeAudio) TypeInfo ¶
func (d *DocumentAttributeAudio) TypeInfo() tdp.Type
TypeInfo returns info about TL type.
func (*DocumentAttributeAudio) TypeName ¶
func (*DocumentAttributeAudio) TypeName() string
TypeName returns name of type in TL schema.
func (*DocumentAttributeAudio) Zero ¶
func (d *DocumentAttributeAudio) Zero() bool
type DocumentAttributeAudio23 ¶
type DocumentAttributeAudio23 struct { // Duration field of DocumentAttributeAudio23. Duration int }
DocumentAttributeAudio23 represents TL type `documentAttributeAudio23#51448e5`.
See https://core.telegram.org/constructor/documentAttributeAudio23 for reference.
func (*DocumentAttributeAudio23) Decode ¶
func (d *DocumentAttributeAudio23) Decode(b *bin.Buffer) error
Decode implements bin.Decoder.
func (*DocumentAttributeAudio23) DecodeBare ¶
func (d *DocumentAttributeAudio23) DecodeBare(b *bin.Buffer) error
DecodeBare implements bin.BareDecoder.
func (*DocumentAttributeAudio23) Encode ¶
func (d *DocumentAttributeAudio23) Encode(b *bin.Buffer) error
Encode implements bin.Encoder.
func (*DocumentAttributeAudio23) EncodeBare ¶
func (d *DocumentAttributeAudio23) EncodeBare(b *bin.Buffer) error
EncodeBare implements bin.BareEncoder.
func (*DocumentAttributeAudio23) GetDuration ¶
func (d *DocumentAttributeAudio23) GetDuration() (value int)
GetDuration returns value of Duration field.
func (*DocumentAttributeAudio23) String ¶
func (d *DocumentAttributeAudio23) String() string
String implements fmt.Stringer.
func (*DocumentAttributeAudio23) TypeID ¶
func (*DocumentAttributeAudio23) TypeID() uint32
TypeID returns type id in TL schema.
func (*DocumentAttributeAudio23) TypeInfo ¶
func (d *DocumentAttributeAudio23) TypeInfo() tdp.Type
TypeInfo returns info about TL type.
func (*DocumentAttributeAudio23) TypeName ¶
func (*DocumentAttributeAudio23) TypeName() string
TypeName returns name of type in TL schema.
func (*DocumentAttributeAudio23) Zero ¶
func (d *DocumentAttributeAudio23) Zero() bool
type DocumentAttributeAudio45 ¶
type DocumentAttributeAudio45 struct { // Duration field of DocumentAttributeAudio45. Duration int // Title field of DocumentAttributeAudio45. Title string // Performer field of DocumentAttributeAudio45. Performer string }
DocumentAttributeAudio45 represents TL type `documentAttributeAudio45#ded218e0`.
See https://core.telegram.org/constructor/documentAttributeAudio45 for reference.
func (*DocumentAttributeAudio45) Decode ¶
func (d *DocumentAttributeAudio45) Decode(b *bin.Buffer) error
Decode implements bin.Decoder.
func (*DocumentAttributeAudio45) DecodeBare ¶
func (d *DocumentAttributeAudio45) DecodeBare(b *bin.Buffer) error
DecodeBare implements bin.BareDecoder.
func (*DocumentAttributeAudio45) Encode ¶
func (d *DocumentAttributeAudio45) Encode(b *bin.Buffer) error
Encode implements bin.Encoder.
func (*DocumentAttributeAudio45) EncodeBare ¶
func (d *DocumentAttributeAudio45) EncodeBare(b *bin.Buffer) error
EncodeBare implements bin.BareEncoder.
func (*DocumentAttributeAudio45) GetDuration ¶
func (d *DocumentAttributeAudio45) GetDuration() (value int)
GetDuration returns value of Duration field.
func (*DocumentAttributeAudio45) GetPerformer ¶
func (d *DocumentAttributeAudio45) GetPerformer() (value string)
GetPerformer returns value of Performer field.
func (*DocumentAttributeAudio45) GetTitle ¶
func (d *DocumentAttributeAudio45) GetTitle() (value string)
GetTitle returns value of Title field.
func (*DocumentAttributeAudio45) String ¶
func (d *DocumentAttributeAudio45) String() string
String implements fmt.Stringer.
func (*DocumentAttributeAudio45) TypeID ¶
func (*DocumentAttributeAudio45) TypeID() uint32
TypeID returns type id in TL schema.
func (*DocumentAttributeAudio45) TypeInfo ¶
func (d *DocumentAttributeAudio45) TypeInfo() tdp.Type
TypeInfo returns info about TL type.
func (*DocumentAttributeAudio45) TypeName ¶
func (*DocumentAttributeAudio45) TypeName() string
TypeName returns name of type in TL schema.
func (*DocumentAttributeAudio45) Zero ¶
func (d *DocumentAttributeAudio45) Zero() bool
type DocumentAttributeBox ¶
type DocumentAttributeBox struct {
DocumentAttribute DocumentAttributeClass
}
DocumentAttribute boxes the DocumentAttributeClass providing a helper.
type DocumentAttributeClass ¶
type DocumentAttributeClass interface { bin.Encoder bin.Decoder bin.BareEncoder bin.BareDecoder // TypeID returns type id in TL schema. // // See https://core.telegram.org/mtproto/TL-tl#remarks. TypeID() uint32 // TypeName returns name of type in TL schema. TypeName() string // String implements fmt.Stringer. String() string // Zero returns true if current object has a zero value. Zero() bool // contains filtered or unexported methods }
DocumentAttributeClass represents DocumentAttribute generic type.
See https://core.telegram.org/type/DocumentAttribute for reference.
Example:
g, err := e2e.DecodeDocumentAttribute(buf) if err != nil { panic(err) } switch v := g.(type) { case *e2e.DocumentAttributeImageSize: // documentAttributeImageSize#6c37c15c case *e2e.DocumentAttributeAnimated: // documentAttributeAnimated#11b58939 case *e2e.DocumentAttributeSticker23: // documentAttributeSticker23#fb0a5727 case *e2e.DocumentAttributeVideo23: // documentAttributeVideo23#5910cccb case *e2e.DocumentAttributeAudio23: // documentAttributeAudio23#51448e5 case *e2e.DocumentAttributeFilename: // documentAttributeFilename#15590068 case *e2e.DocumentAttributeAudio45: // documentAttributeAudio45#ded218e0 case *e2e.DocumentAttributeSticker: // documentAttributeSticker#3a556302 case *e2e.DocumentAttributeAudio: // documentAttributeAudio#9852f9c6 case *e2e.DocumentAttributeVideo: // documentAttributeVideo#ef02ce6 default: panic(v) }
func DecodeDocumentAttribute ¶
func DecodeDocumentAttribute(buf *bin.Buffer) (DocumentAttributeClass, error)
DecodeDocumentAttribute implements binary de-serialization for DocumentAttributeClass.
type DocumentAttributeFilename ¶
type DocumentAttributeFilename struct { // The file name FileName string }
DocumentAttributeFilename represents TL type `documentAttributeFilename#15590068`. A simple document with a file name
See https://core.telegram.org/constructor/documentAttributeFilename for reference.
func (*DocumentAttributeFilename) Decode ¶
func (d *DocumentAttributeFilename) Decode(b *bin.Buffer) error
Decode implements bin.Decoder.
func (*DocumentAttributeFilename) DecodeBare ¶
func (d *DocumentAttributeFilename) DecodeBare(b *bin.Buffer) error
DecodeBare implements bin.BareDecoder.
func (*DocumentAttributeFilename) Encode ¶
func (d *DocumentAttributeFilename) Encode(b *bin.Buffer) error
Encode implements bin.Encoder.
func (*DocumentAttributeFilename) EncodeBare ¶
func (d *DocumentAttributeFilename) EncodeBare(b *bin.Buffer) error
EncodeBare implements bin.BareEncoder.
func (*DocumentAttributeFilename) GetFileName ¶
func (d *DocumentAttributeFilename) GetFileName() (value string)
GetFileName returns value of FileName field.
func (*DocumentAttributeFilename) String ¶
func (d *DocumentAttributeFilename) String() string
String implements fmt.Stringer.
func (*DocumentAttributeFilename) TypeID ¶
func (*DocumentAttributeFilename) TypeID() uint32
TypeID returns type id in TL schema.
func (*DocumentAttributeFilename) TypeInfo ¶
func (d *DocumentAttributeFilename) TypeInfo() tdp.Type
TypeInfo returns info about TL type.
func (*DocumentAttributeFilename) TypeName ¶
func (*DocumentAttributeFilename) TypeName() string
TypeName returns name of type in TL schema.
func (*DocumentAttributeFilename) Zero ¶
func (d *DocumentAttributeFilename) Zero() bool
type DocumentAttributeImageSize ¶
DocumentAttributeImageSize represents TL type `documentAttributeImageSize#6c37c15c`. Defines the width and height of an image uploaded as document
See https://core.telegram.org/constructor/documentAttributeImageSize for reference.
func (*DocumentAttributeImageSize) Decode ¶
func (d *DocumentAttributeImageSize) Decode(b *bin.Buffer) error
Decode implements bin.Decoder.
func (*DocumentAttributeImageSize) DecodeBare ¶
func (d *DocumentAttributeImageSize) DecodeBare(b *bin.Buffer) error
DecodeBare implements bin.BareDecoder.
func (*DocumentAttributeImageSize) Encode ¶
func (d *DocumentAttributeImageSize) Encode(b *bin.Buffer) error
Encode implements bin.Encoder.
func (*DocumentAttributeImageSize) EncodeBare ¶
func (d *DocumentAttributeImageSize) EncodeBare(b *bin.Buffer) error
EncodeBare implements bin.BareEncoder.
func (*DocumentAttributeImageSize) GetH ¶
func (d *DocumentAttributeImageSize) GetH() (value int)
GetH returns value of H field.
func (*DocumentAttributeImageSize) GetW ¶
func (d *DocumentAttributeImageSize) GetW() (value int)
GetW returns value of W field.
func (*DocumentAttributeImageSize) String ¶
func (d *DocumentAttributeImageSize) String() string
String implements fmt.Stringer.
func (*DocumentAttributeImageSize) TypeID ¶
func (*DocumentAttributeImageSize) TypeID() uint32
TypeID returns type id in TL schema.
func (*DocumentAttributeImageSize) TypeInfo ¶
func (d *DocumentAttributeImageSize) TypeInfo() tdp.Type
TypeInfo returns info about TL type.
func (*DocumentAttributeImageSize) TypeName ¶
func (*DocumentAttributeImageSize) TypeName() string
TypeName returns name of type in TL schema.
func (*DocumentAttributeImageSize) Zero ¶
func (d *DocumentAttributeImageSize) Zero() bool
type DocumentAttributeSticker ¶
type DocumentAttributeSticker struct { // Alternative emoji representation of sticker Alt string // Associated stickerset Stickerset InputStickerSetClass }
DocumentAttributeSticker represents TL type `documentAttributeSticker#3a556302`. Defines a sticker
See https://core.telegram.org/constructor/documentAttributeSticker for reference.
func (*DocumentAttributeSticker) Decode ¶
func (d *DocumentAttributeSticker) Decode(b *bin.Buffer) error
Decode implements bin.Decoder.
func (*DocumentAttributeSticker) DecodeBare ¶
func (d *DocumentAttributeSticker) DecodeBare(b *bin.Buffer) error
DecodeBare implements bin.BareDecoder.
func (*DocumentAttributeSticker) Encode ¶
func (d *DocumentAttributeSticker) Encode(b *bin.Buffer) error
Encode implements bin.Encoder.
func (*DocumentAttributeSticker) EncodeBare ¶
func (d *DocumentAttributeSticker) EncodeBare(b *bin.Buffer) error
EncodeBare implements bin.BareEncoder.
func (*DocumentAttributeSticker) GetAlt ¶
func (d *DocumentAttributeSticker) GetAlt() (value string)
GetAlt returns value of Alt field.
func (*DocumentAttributeSticker) GetStickerset ¶
func (d *DocumentAttributeSticker) GetStickerset() (value InputStickerSetClass)
GetStickerset returns value of Stickerset field.
func (*DocumentAttributeSticker) String ¶
func (d *DocumentAttributeSticker) String() string
String implements fmt.Stringer.
func (*DocumentAttributeSticker) TypeID ¶
func (*DocumentAttributeSticker) TypeID() uint32
TypeID returns type id in TL schema.
func (*DocumentAttributeSticker) TypeInfo ¶
func (d *DocumentAttributeSticker) TypeInfo() tdp.Type
TypeInfo returns info about TL type.
func (*DocumentAttributeSticker) TypeName ¶
func (*DocumentAttributeSticker) TypeName() string
TypeName returns name of type in TL schema.
func (*DocumentAttributeSticker) Zero ¶
func (d *DocumentAttributeSticker) Zero() bool
type DocumentAttributeSticker23 ¶
type DocumentAttributeSticker23 struct { }
DocumentAttributeSticker23 represents TL type `documentAttributeSticker23#fb0a5727`.
See https://core.telegram.org/constructor/documentAttributeSticker23 for reference.
func (*DocumentAttributeSticker23) Decode ¶
func (d *DocumentAttributeSticker23) Decode(b *bin.Buffer) error
Decode implements bin.Decoder.
func (*DocumentAttributeSticker23) DecodeBare ¶
func (d *DocumentAttributeSticker23) DecodeBare(b *bin.Buffer) error
DecodeBare implements bin.BareDecoder.
func (*DocumentAttributeSticker23) Encode ¶
func (d *DocumentAttributeSticker23) Encode(b *bin.Buffer) error
Encode implements bin.Encoder.
func (*DocumentAttributeSticker23) EncodeBare ¶
func (d *DocumentAttributeSticker23) EncodeBare(b *bin.Buffer) error
EncodeBare implements bin.BareEncoder.
func (*DocumentAttributeSticker23) String ¶
func (d *DocumentAttributeSticker23) String() string
String implements fmt.Stringer.
func (*DocumentAttributeSticker23) TypeID ¶
func (*DocumentAttributeSticker23) TypeID() uint32
TypeID returns type id in TL schema.
func (*DocumentAttributeSticker23) TypeInfo ¶
func (d *DocumentAttributeSticker23) TypeInfo() tdp.Type
TypeInfo returns info about TL type.
func (*DocumentAttributeSticker23) TypeName ¶
func (*DocumentAttributeSticker23) TypeName() string
TypeName returns name of type in TL schema.
func (*DocumentAttributeSticker23) Zero ¶
func (d *DocumentAttributeSticker23) Zero() bool
type DocumentAttributeVideo ¶
type DocumentAttributeVideo struct { // Flags, see TL conditional fields¹ // // Links: // 1) https://core.telegram.org/mtproto/TL-combinators#conditional-fields Flags bin.Fields // Whether this is a round video RoundMessage bool // Duration in seconds Duration int // Video width W int // Video height H int }
DocumentAttributeVideo represents TL type `documentAttributeVideo#ef02ce6`. Defines a video
See https://core.telegram.org/constructor/documentAttributeVideo for reference.
func (*DocumentAttributeVideo) Decode ¶
func (d *DocumentAttributeVideo) Decode(b *bin.Buffer) error
Decode implements bin.Decoder.
func (*DocumentAttributeVideo) DecodeBare ¶
func (d *DocumentAttributeVideo) DecodeBare(b *bin.Buffer) error
DecodeBare implements bin.BareDecoder.
func (*DocumentAttributeVideo) Encode ¶
func (d *DocumentAttributeVideo) Encode(b *bin.Buffer) error
Encode implements bin.Encoder.
func (*DocumentAttributeVideo) EncodeBare ¶
func (d *DocumentAttributeVideo) EncodeBare(b *bin.Buffer) error
EncodeBare implements bin.BareEncoder.
func (*DocumentAttributeVideo) GetDuration ¶
func (d *DocumentAttributeVideo) GetDuration() (value int)
GetDuration returns value of Duration field.
func (*DocumentAttributeVideo) GetH ¶
func (d *DocumentAttributeVideo) GetH() (value int)
GetH returns value of H field.
func (*DocumentAttributeVideo) GetRoundMessage ¶
func (d *DocumentAttributeVideo) GetRoundMessage() (value bool)
GetRoundMessage returns value of RoundMessage conditional field.
func (*DocumentAttributeVideo) GetW ¶
func (d *DocumentAttributeVideo) GetW() (value int)
GetW returns value of W field.
func (*DocumentAttributeVideo) SetFlags ¶
func (d *DocumentAttributeVideo) SetFlags()
SetFlags sets flags for non-zero fields.
func (*DocumentAttributeVideo) SetRoundMessage ¶
func (d *DocumentAttributeVideo) SetRoundMessage(value bool)
SetRoundMessage sets value of RoundMessage conditional field.
func (*DocumentAttributeVideo) String ¶
func (d *DocumentAttributeVideo) String() string
String implements fmt.Stringer.
func (*DocumentAttributeVideo) TypeID ¶
func (*DocumentAttributeVideo) TypeID() uint32
TypeID returns type id in TL schema.
func (*DocumentAttributeVideo) TypeInfo ¶
func (d *DocumentAttributeVideo) TypeInfo() tdp.Type
TypeInfo returns info about TL type.
func (*DocumentAttributeVideo) TypeName ¶
func (*DocumentAttributeVideo) TypeName() string
TypeName returns name of type in TL schema.
func (*DocumentAttributeVideo) Zero ¶
func (d *DocumentAttributeVideo) Zero() bool
type DocumentAttributeVideo23 ¶
type DocumentAttributeVideo23 struct { // Duration field of DocumentAttributeVideo23. Duration int // W field of DocumentAttributeVideo23. W int // H field of DocumentAttributeVideo23. H int }
DocumentAttributeVideo23 represents TL type `documentAttributeVideo23#5910cccb`.
See https://core.telegram.org/constructor/documentAttributeVideo23 for reference.
func (*DocumentAttributeVideo23) Decode ¶
func (d *DocumentAttributeVideo23) Decode(b *bin.Buffer) error
Decode implements bin.Decoder.
func (*DocumentAttributeVideo23) DecodeBare ¶
func (d *DocumentAttributeVideo23) DecodeBare(b *bin.Buffer) error
DecodeBare implements bin.BareDecoder.
func (*DocumentAttributeVideo23) Encode ¶
func (d *DocumentAttributeVideo23) Encode(b *bin.Buffer) error
Encode implements bin.Encoder.
func (*DocumentAttributeVideo23) EncodeBare ¶
func (d *DocumentAttributeVideo23) EncodeBare(b *bin.Buffer) error
EncodeBare implements bin.BareEncoder.
func (*DocumentAttributeVideo23) GetDuration ¶
func (d *DocumentAttributeVideo23) GetDuration() (value int)
GetDuration returns value of Duration field.
func (*DocumentAttributeVideo23) GetH ¶
func (d *DocumentAttributeVideo23) GetH() (value int)
GetH returns value of H field.
func (*DocumentAttributeVideo23) GetW ¶
func (d *DocumentAttributeVideo23) GetW() (value int)
GetW returns value of W field.
func (*DocumentAttributeVideo23) String ¶
func (d *DocumentAttributeVideo23) String() string
String implements fmt.Stringer.
func (*DocumentAttributeVideo23) TypeID ¶
func (*DocumentAttributeVideo23) TypeID() uint32
TypeID returns type id in TL schema.
func (*DocumentAttributeVideo23) TypeInfo ¶
func (d *DocumentAttributeVideo23) TypeInfo() tdp.Type
TypeInfo returns info about TL type.
func (*DocumentAttributeVideo23) TypeName ¶
func (*DocumentAttributeVideo23) TypeName() string
TypeName returns name of type in TL schema.
func (*DocumentAttributeVideo23) Zero ¶
func (d *DocumentAttributeVideo23) Zero() bool
type Double ¶
type Double struct { }
Double represents TL type `double#2210c154`.
See https://core.telegram.org/constructor/double for reference.
func (*Double) DecodeBare ¶
DecodeBare implements bin.BareDecoder.
func (*Double) EncodeBare ¶
EncodeBare implements bin.BareEncoder.
type FileLocation ¶
type FileLocation struct { // DCID field of FileLocation. DCID int // VolumeID field of FileLocation. VolumeID int64 // LocalID field of FileLocation. LocalID int // Secret field of FileLocation. Secret int64 }
FileLocation represents TL type `fileLocation#53d69076`.
See https://core.telegram.org/constructor/fileLocation for reference.
func (*FileLocation) Decode ¶
func (f *FileLocation) Decode(b *bin.Buffer) error
Decode implements bin.Decoder.
func (*FileLocation) DecodeBare ¶
func (f *FileLocation) DecodeBare(b *bin.Buffer) error
DecodeBare implements bin.BareDecoder.
func (*FileLocation) Encode ¶
func (f *FileLocation) Encode(b *bin.Buffer) error
Encode implements bin.Encoder.
func (*FileLocation) EncodeBare ¶
func (f *FileLocation) EncodeBare(b *bin.Buffer) error
EncodeBare implements bin.BareEncoder.
func (*FileLocation) GetDCID ¶
func (f *FileLocation) GetDCID() (value int)
GetDCID returns value of DCID field.
func (*FileLocation) GetLocalID ¶
func (f *FileLocation) GetLocalID() (value int)
GetLocalID returns value of LocalID field.
func (*FileLocation) GetSecret ¶
func (f *FileLocation) GetSecret() (value int64)
GetSecret returns value of Secret field.
func (*FileLocation) GetVolumeID ¶
func (f *FileLocation) GetVolumeID() (value int64)
GetVolumeID returns value of VolumeID field.
func (*FileLocation) String ¶
func (f *FileLocation) String() string
String implements fmt.Stringer.
func (*FileLocation) TypeID ¶
func (*FileLocation) TypeID() uint32
TypeID returns type id in TL schema.
func (*FileLocation) TypeInfo ¶
func (f *FileLocation) TypeInfo() tdp.Type
TypeInfo returns info about TL type.
func (*FileLocation) TypeName ¶
func (*FileLocation) TypeName() string
TypeName returns name of type in TL schema.
func (*FileLocation) Zero ¶
func (f *FileLocation) Zero() bool
type FileLocationBox ¶
type FileLocationBox struct {
FileLocation FileLocationClass
}
FileLocation boxes the FileLocationClass providing a helper.
type FileLocationClass ¶
type FileLocationClass interface { bin.Encoder bin.Decoder bin.BareEncoder bin.BareDecoder // TypeID returns type id in TL schema. // // See https://core.telegram.org/mtproto/TL-tl#remarks. TypeID() uint32 // TypeName returns name of type in TL schema. TypeName() string // String implements fmt.Stringer. String() string // Zero returns true if current object has a zero value. Zero() bool // VolumeID field of FileLocationUnavailable. GetVolumeID() (value int64) // LocalID field of FileLocationUnavailable. GetLocalID() (value int) // Secret field of FileLocationUnavailable. GetSecret() (value int64) // contains filtered or unexported methods }
FileLocationClass represents FileLocation generic type.
See https://core.telegram.org/type/FileLocation for reference.
Example:
g, err := e2e.DecodeFileLocation(buf) if err != nil { panic(err) } switch v := g.(type) { case *e2e.FileLocationUnavailable: // fileLocationUnavailable#7c596b46 case *e2e.FileLocation: // fileLocation#53d69076 default: panic(v) }
func DecodeFileLocation ¶
func DecodeFileLocation(buf *bin.Buffer) (FileLocationClass, error)
DecodeFileLocation implements binary de-serialization for FileLocationClass.
type FileLocationUnavailable ¶
FileLocationUnavailable represents TL type `fileLocationUnavailable#7c596b46`.
See https://core.telegram.org/constructor/fileLocationUnavailable for reference.
func (*FileLocationUnavailable) Decode ¶
func (f *FileLocationUnavailable) Decode(b *bin.Buffer) error
Decode implements bin.Decoder.
func (*FileLocationUnavailable) DecodeBare ¶
func (f *FileLocationUnavailable) DecodeBare(b *bin.Buffer) error
DecodeBare implements bin.BareDecoder.
func (*FileLocationUnavailable) Encode ¶
func (f *FileLocationUnavailable) Encode(b *bin.Buffer) error
Encode implements bin.Encoder.
func (*FileLocationUnavailable) EncodeBare ¶
func (f *FileLocationUnavailable) EncodeBare(b *bin.Buffer) error
EncodeBare implements bin.BareEncoder.
func (*FileLocationUnavailable) GetLocalID ¶
func (f *FileLocationUnavailable) GetLocalID() (value int)
GetLocalID returns value of LocalID field.
func (*FileLocationUnavailable) GetSecret ¶
func (f *FileLocationUnavailable) GetSecret() (value int64)
GetSecret returns value of Secret field.
func (*FileLocationUnavailable) GetVolumeID ¶
func (f *FileLocationUnavailable) GetVolumeID() (value int64)
GetVolumeID returns value of VolumeID field.
func (*FileLocationUnavailable) String ¶
func (f *FileLocationUnavailable) String() string
String implements fmt.Stringer.
func (*FileLocationUnavailable) TypeID ¶
func (*FileLocationUnavailable) TypeID() uint32
TypeID returns type id in TL schema.
func (*FileLocationUnavailable) TypeInfo ¶
func (f *FileLocationUnavailable) TypeInfo() tdp.Type
TypeInfo returns info about TL type.
func (*FileLocationUnavailable) TypeName ¶
func (*FileLocationUnavailable) TypeName() string
TypeName returns name of type in TL schema.
func (*FileLocationUnavailable) Zero ¶
func (f *FileLocationUnavailable) Zero() bool
type InputStickerSetBox ¶
type InputStickerSetBox struct {
InputStickerSet InputStickerSetClass
}
InputStickerSet boxes the InputStickerSetClass providing a helper.
type InputStickerSetClass ¶
type InputStickerSetClass interface { bin.Encoder bin.Decoder bin.BareEncoder bin.BareDecoder // TypeID returns type id in TL schema. // // See https://core.telegram.org/mtproto/TL-tl#remarks. TypeID() uint32 // TypeName returns name of type in TL schema. TypeName() string // String implements fmt.Stringer. String() string // Zero returns true if current object has a zero value. Zero() bool // contains filtered or unexported methods }
InputStickerSetClass represents InputStickerSet generic type.
See https://core.telegram.org/type/InputStickerSet for reference.
Example:
g, err := e2e.DecodeInputStickerSet(buf) if err != nil { panic(err) } switch v := g.(type) { case *e2e.InputStickerSetShortName: // inputStickerSetShortName#861cc8a0 case *e2e.InputStickerSetEmpty: // inputStickerSetEmpty#ffb62b95 default: panic(v) }
func DecodeInputStickerSet ¶
func DecodeInputStickerSet(buf *bin.Buffer) (InputStickerSetClass, error)
DecodeInputStickerSet implements binary de-serialization for InputStickerSetClass.
type InputStickerSetEmpty ¶
type InputStickerSetEmpty struct { }
InputStickerSetEmpty represents TL type `inputStickerSetEmpty#ffb62b95`. Empty constructor
See https://core.telegram.org/constructor/inputStickerSetEmpty for reference.
func (*InputStickerSetEmpty) Decode ¶
func (i *InputStickerSetEmpty) Decode(b *bin.Buffer) error
Decode implements bin.Decoder.
func (*InputStickerSetEmpty) DecodeBare ¶
func (i *InputStickerSetEmpty) DecodeBare(b *bin.Buffer) error
DecodeBare implements bin.BareDecoder.
func (*InputStickerSetEmpty) Encode ¶
func (i *InputStickerSetEmpty) Encode(b *bin.Buffer) error
Encode implements bin.Encoder.
func (*InputStickerSetEmpty) EncodeBare ¶
func (i *InputStickerSetEmpty) EncodeBare(b *bin.Buffer) error
EncodeBare implements bin.BareEncoder.
func (*InputStickerSetEmpty) String ¶
func (i *InputStickerSetEmpty) String() string
String implements fmt.Stringer.
func (*InputStickerSetEmpty) TypeID ¶
func (*InputStickerSetEmpty) TypeID() uint32
TypeID returns type id in TL schema.
func (*InputStickerSetEmpty) TypeInfo ¶
func (i *InputStickerSetEmpty) TypeInfo() tdp.Type
TypeInfo returns info about TL type.
func (*InputStickerSetEmpty) TypeName ¶
func (*InputStickerSetEmpty) TypeName() string
TypeName returns name of type in TL schema.
func (*InputStickerSetEmpty) Zero ¶
func (i *InputStickerSetEmpty) Zero() bool
type InputStickerSetShortName ¶
type InputStickerSetShortName struct { // Short name from a stickerset deep link »¹ // // Links: // 1) https://core.telegram.org/api/links#stickerset-links ShortName string }
InputStickerSetShortName represents TL type `inputStickerSetShortName#861cc8a0`. Stickerset by short name, from a stickerset deep link »¹
Links:
See https://core.telegram.org/constructor/inputStickerSetShortName for reference.
func (*InputStickerSetShortName) Decode ¶
func (i *InputStickerSetShortName) Decode(b *bin.Buffer) error
Decode implements bin.Decoder.
func (*InputStickerSetShortName) DecodeBare ¶
func (i *InputStickerSetShortName) DecodeBare(b *bin.Buffer) error
DecodeBare implements bin.BareDecoder.
func (*InputStickerSetShortName) Encode ¶
func (i *InputStickerSetShortName) Encode(b *bin.Buffer) error
Encode implements bin.Encoder.
func (*InputStickerSetShortName) EncodeBare ¶
func (i *InputStickerSetShortName) EncodeBare(b *bin.Buffer) error
EncodeBare implements bin.BareEncoder.
func (*InputStickerSetShortName) GetShortName ¶
func (i *InputStickerSetShortName) GetShortName() (value string)
GetShortName returns value of ShortName field.
func (*InputStickerSetShortName) String ¶
func (i *InputStickerSetShortName) String() string
String implements fmt.Stringer.
func (*InputStickerSetShortName) TypeID ¶
func (*InputStickerSetShortName) TypeID() uint32
TypeID returns type id in TL schema.
func (*InputStickerSetShortName) TypeInfo ¶
func (i *InputStickerSetShortName) TypeInfo() tdp.Type
TypeInfo returns info about TL type.
func (*InputStickerSetShortName) TypeName ¶
func (*InputStickerSetShortName) TypeName() string
TypeName returns name of type in TL schema.
func (*InputStickerSetShortName) Zero ¶
func (i *InputStickerSetShortName) Zero() bool
type Int ¶
type Int struct { }
Int represents TL type `int#a8509bda`.
See https://core.telegram.org/constructor/int for reference.
func (*Int) DecodeBare ¶
DecodeBare implements bin.BareDecoder.
func (*Int) EncodeBare ¶
EncodeBare implements bin.BareEncoder.
type Long ¶
type Long struct { }
Long represents TL type `long#22076cba`.
See https://core.telegram.org/constructor/long for reference.
func (*Long) DecodeBare ¶
DecodeBare implements bin.BareDecoder.
func (*Long) EncodeBare ¶
EncodeBare implements bin.BareEncoder.
type MessageEntityBankCard ¶
type MessageEntityBankCard struct { // Offset of message entity within message (in UTF-16 code units¹) // // Links: // 1) https://core.telegram.org/api/entities#entity-length Offset int // Length of message entity within message (in UTF-16 code units¹) // // Links: // 1) https://core.telegram.org/api/entities#entity-length Length int }
MessageEntityBankCard represents TL type `messageEntityBankCard#761e6af4`. Indicates a credit card number
See https://core.telegram.org/constructor/messageEntityBankCard for reference.
func (*MessageEntityBankCard) Decode ¶
func (m *MessageEntityBankCard) Decode(b *bin.Buffer) error
Decode implements bin.Decoder.
func (*MessageEntityBankCard) DecodeBare ¶
func (m *MessageEntityBankCard) DecodeBare(b *bin.Buffer) error
DecodeBare implements bin.BareDecoder.
func (*MessageEntityBankCard) Encode ¶
func (m *MessageEntityBankCard) Encode(b *bin.Buffer) error
Encode implements bin.Encoder.
func (*MessageEntityBankCard) EncodeBare ¶
func (m *MessageEntityBankCard) EncodeBare(b *bin.Buffer) error
EncodeBare implements bin.BareEncoder.
func (*MessageEntityBankCard) GetLength ¶
func (m *MessageEntityBankCard) GetLength() (value int)
GetLength returns value of Length field.
func (*MessageEntityBankCard) GetOffset ¶
func (m *MessageEntityBankCard) GetOffset() (value int)
GetOffset returns value of Offset field.
func (*MessageEntityBankCard) String ¶
func (m *MessageEntityBankCard) String() string
String implements fmt.Stringer.
func (*MessageEntityBankCard) TypeID ¶
func (*MessageEntityBankCard) TypeID() uint32
TypeID returns type id in TL schema.
func (*MessageEntityBankCard) TypeInfo ¶
func (m *MessageEntityBankCard) TypeInfo() tdp.Type
TypeInfo returns info about TL type.
func (*MessageEntityBankCard) TypeName ¶
func (*MessageEntityBankCard) TypeName() string
TypeName returns name of type in TL schema.
func (*MessageEntityBankCard) Zero ¶
func (m *MessageEntityBankCard) Zero() bool
type MessageEntityBlockquote ¶
type MessageEntityBlockquote struct { // Offset of message entity within message (in UTF-16 code units¹) // // Links: // 1) https://core.telegram.org/api/entities#entity-length Offset int // Length of message entity within message (in UTF-16 code units¹) // // Links: // 1) https://core.telegram.org/api/entities#entity-length Length int }
MessageEntityBlockquote represents TL type `messageEntityBlockquote#20df5d0`. Message entity representing a block quote.
See https://core.telegram.org/constructor/messageEntityBlockquote for reference.
func (*MessageEntityBlockquote) Decode ¶
func (m *MessageEntityBlockquote) Decode(b *bin.Buffer) error
Decode implements bin.Decoder.
func (*MessageEntityBlockquote) DecodeBare ¶
func (m *MessageEntityBlockquote) DecodeBare(b *bin.Buffer) error
DecodeBare implements bin.BareDecoder.
func (*MessageEntityBlockquote) Encode ¶
func (m *MessageEntityBlockquote) Encode(b *bin.Buffer) error
Encode implements bin.Encoder.
func (*MessageEntityBlockquote) EncodeBare ¶
func (m *MessageEntityBlockquote) EncodeBare(b *bin.Buffer) error
EncodeBare implements bin.BareEncoder.
func (*MessageEntityBlockquote) GetLength ¶
func (m *MessageEntityBlockquote) GetLength() (value int)
GetLength returns value of Length field.
func (*MessageEntityBlockquote) GetOffset ¶
func (m *MessageEntityBlockquote) GetOffset() (value int)
GetOffset returns value of Offset field.
func (*MessageEntityBlockquote) String ¶
func (m *MessageEntityBlockquote) String() string
String implements fmt.Stringer.
func (*MessageEntityBlockquote) TypeID ¶
func (*MessageEntityBlockquote) TypeID() uint32
TypeID returns type id in TL schema.
func (*MessageEntityBlockquote) TypeInfo ¶
func (m *MessageEntityBlockquote) TypeInfo() tdp.Type
TypeInfo returns info about TL type.
func (*MessageEntityBlockquote) TypeName ¶
func (*MessageEntityBlockquote) TypeName() string
TypeName returns name of type in TL schema.
func (*MessageEntityBlockquote) Zero ¶
func (m *MessageEntityBlockquote) Zero() bool
type MessageEntityBold ¶
type MessageEntityBold struct { // Offset of message entity within message (in UTF-16 code units¹) // // Links: // 1) https://core.telegram.org/api/entities#entity-length Offset int // Length of message entity within message (in UTF-16 code units¹) // // Links: // 1) https://core.telegram.org/api/entities#entity-length Length int }
MessageEntityBold represents TL type `messageEntityBold#bd610bc9`. Message entity representing bold text.
See https://core.telegram.org/constructor/messageEntityBold for reference.
func (*MessageEntityBold) Decode ¶
func (m *MessageEntityBold) Decode(b *bin.Buffer) error
Decode implements bin.Decoder.
func (*MessageEntityBold) DecodeBare ¶
func (m *MessageEntityBold) DecodeBare(b *bin.Buffer) error
DecodeBare implements bin.BareDecoder.
func (*MessageEntityBold) Encode ¶
func (m *MessageEntityBold) Encode(b *bin.Buffer) error
Encode implements bin.Encoder.
func (*MessageEntityBold) EncodeBare ¶
func (m *MessageEntityBold) EncodeBare(b *bin.Buffer) error
EncodeBare implements bin.BareEncoder.
func (*MessageEntityBold) GetLength ¶
func (m *MessageEntityBold) GetLength() (value int)
GetLength returns value of Length field.
func (*MessageEntityBold) GetOffset ¶
func (m *MessageEntityBold) GetOffset() (value int)
GetOffset returns value of Offset field.
func (*MessageEntityBold) String ¶
func (m *MessageEntityBold) String() string
String implements fmt.Stringer.
func (*MessageEntityBold) TypeID ¶
func (*MessageEntityBold) TypeID() uint32
TypeID returns type id in TL schema.
func (*MessageEntityBold) TypeInfo ¶
func (m *MessageEntityBold) TypeInfo() tdp.Type
TypeInfo returns info about TL type.
func (*MessageEntityBold) TypeName ¶
func (*MessageEntityBold) TypeName() string
TypeName returns name of type in TL schema.
func (*MessageEntityBold) Zero ¶
func (m *MessageEntityBold) Zero() bool
type MessageEntityBotCommand ¶
type MessageEntityBotCommand struct { // Offset of message entity within message (in UTF-16 code units¹) // // Links: // 1) https://core.telegram.org/api/entities#entity-length Offset int // Length of message entity within message (in UTF-16 code units¹) // // Links: // 1) https://core.telegram.org/api/entities#entity-length Length int }
MessageEntityBotCommand represents TL type `messageEntityBotCommand#6cef8ac7`. Message entity representing a bot /command
See https://core.telegram.org/constructor/messageEntityBotCommand for reference.
func (*MessageEntityBotCommand) Decode ¶
func (m *MessageEntityBotCommand) Decode(b *bin.Buffer) error
Decode implements bin.Decoder.
func (*MessageEntityBotCommand) DecodeBare ¶
func (m *MessageEntityBotCommand) DecodeBare(b *bin.Buffer) error
DecodeBare implements bin.BareDecoder.
func (*MessageEntityBotCommand) Encode ¶
func (m *MessageEntityBotCommand) Encode(b *bin.Buffer) error
Encode implements bin.Encoder.
func (*MessageEntityBotCommand) EncodeBare ¶
func (m *MessageEntityBotCommand) EncodeBare(b *bin.Buffer) error
EncodeBare implements bin.BareEncoder.
func (*MessageEntityBotCommand) GetLength ¶
func (m *MessageEntityBotCommand) GetLength() (value int)
GetLength returns value of Length field.
func (*MessageEntityBotCommand) GetOffset ¶
func (m *MessageEntityBotCommand) GetOffset() (value int)
GetOffset returns value of Offset field.
func (*MessageEntityBotCommand) String ¶
func (m *MessageEntityBotCommand) String() string
String implements fmt.Stringer.
func (*MessageEntityBotCommand) TypeID ¶
func (*MessageEntityBotCommand) TypeID() uint32
TypeID returns type id in TL schema.
func (*MessageEntityBotCommand) TypeInfo ¶
func (m *MessageEntityBotCommand) TypeInfo() tdp.Type
TypeInfo returns info about TL type.
func (*MessageEntityBotCommand) TypeName ¶
func (*MessageEntityBotCommand) TypeName() string
TypeName returns name of type in TL schema.
func (*MessageEntityBotCommand) Zero ¶
func (m *MessageEntityBotCommand) Zero() bool
type MessageEntityBox ¶
type MessageEntityBox struct {
MessageEntity MessageEntityClass
}
MessageEntity boxes the MessageEntityClass providing a helper.
type MessageEntityCashtag ¶
type MessageEntityCashtag struct { // Offset of message entity within message (in UTF-16 code units¹) // // Links: // 1) https://core.telegram.org/api/entities#entity-length Offset int // Length of message entity within message (in UTF-16 code units¹) // // Links: // 1) https://core.telegram.org/api/entities#entity-length Length int }
MessageEntityCashtag represents TL type `messageEntityCashtag#4c4e743f`. Message entity representing a $cashtag.
See https://core.telegram.org/constructor/messageEntityCashtag for reference.
func (*MessageEntityCashtag) Decode ¶
func (m *MessageEntityCashtag) Decode(b *bin.Buffer) error
Decode implements bin.Decoder.
func (*MessageEntityCashtag) DecodeBare ¶
func (m *MessageEntityCashtag) DecodeBare(b *bin.Buffer) error
DecodeBare implements bin.BareDecoder.
func (*MessageEntityCashtag) Encode ¶
func (m *MessageEntityCashtag) Encode(b *bin.Buffer) error
Encode implements bin.Encoder.
func (*MessageEntityCashtag) EncodeBare ¶
func (m *MessageEntityCashtag) EncodeBare(b *bin.Buffer) error
EncodeBare implements bin.BareEncoder.
func (*MessageEntityCashtag) GetLength ¶
func (m *MessageEntityCashtag) GetLength() (value int)
GetLength returns value of Length field.
func (*MessageEntityCashtag) GetOffset ¶
func (m *MessageEntityCashtag) GetOffset() (value int)
GetOffset returns value of Offset field.
func (*MessageEntityCashtag) String ¶
func (m *MessageEntityCashtag) String() string
String implements fmt.Stringer.
func (*MessageEntityCashtag) TypeID ¶
func (*MessageEntityCashtag) TypeID() uint32
TypeID returns type id in TL schema.
func (*MessageEntityCashtag) TypeInfo ¶
func (m *MessageEntityCashtag) TypeInfo() tdp.Type
TypeInfo returns info about TL type.
func (*MessageEntityCashtag) TypeName ¶
func (*MessageEntityCashtag) TypeName() string
TypeName returns name of type in TL schema.
func (*MessageEntityCashtag) Zero ¶
func (m *MessageEntityCashtag) Zero() bool
type MessageEntityClass ¶
type MessageEntityClass interface { bin.Encoder bin.Decoder bin.BareEncoder bin.BareDecoder // TypeID returns type id in TL schema. // // See https://core.telegram.org/mtproto/TL-tl#remarks. TypeID() uint32 // TypeName returns name of type in TL schema. TypeName() string // String implements fmt.Stringer. String() string // Zero returns true if current object has a zero value. Zero() bool // Offset of message entity within message (in UTF-16 code units¹) // // Links: // 1) https://core.telegram.org/api/entities#entity-length GetOffset() (value int) // Length of message entity within message (in UTF-16 code units¹) // // Links: // 1) https://core.telegram.org/api/entities#entity-length GetLength() (value int) // contains filtered or unexported methods }
MessageEntityClass represents MessageEntity generic type.
See https://core.telegram.org/type/MessageEntity for reference.
Example:
g, err := e2e.DecodeMessageEntity(buf) if err != nil { panic(err) } switch v := g.(type) { case *e2e.MessageEntityUnknown: // messageEntityUnknown#bb92ba95 case *e2e.MessageEntityMention: // messageEntityMention#fa04579d case *e2e.MessageEntityHashtag: // messageEntityHashtag#6f635b0d case *e2e.MessageEntityBotCommand: // messageEntityBotCommand#6cef8ac7 case *e2e.MessageEntityURL: // messageEntityUrl#6ed02538 case *e2e.MessageEntityEmail: // messageEntityEmail#64e475c2 case *e2e.MessageEntityBold: // messageEntityBold#bd610bc9 case *e2e.MessageEntityItalic: // messageEntityItalic#826f8b60 case *e2e.MessageEntityCode: // messageEntityCode#28a20571 case *e2e.MessageEntityPre: // messageEntityPre#73924be0 case *e2e.MessageEntityTextURL: // messageEntityTextUrl#76a6d327 case *e2e.MessageEntityMentionName: // messageEntityMentionName#352dca58 case *e2e.MessageEntityPhone: // messageEntityPhone#9b69e34b case *e2e.MessageEntityCashtag: // messageEntityCashtag#4c4e743f case *e2e.MessageEntityBankCard: // messageEntityBankCard#761e6af4 case *e2e.MessageEntityUnderline: // messageEntityUnderline#9c4e7e8b case *e2e.MessageEntityStrike: // messageEntityStrike#bf0693d4 case *e2e.MessageEntityBlockquote: // messageEntityBlockquote#20df5d0 case *e2e.MessageEntitySpoiler: // messageEntitySpoiler#32ca960f case *e2e.MessageEntityCustomEmoji: // messageEntityCustomEmoji#c8cf05f8 default: panic(v) }
func DecodeMessageEntity ¶
func DecodeMessageEntity(buf *bin.Buffer) (MessageEntityClass, error)
DecodeMessageEntity implements binary de-serialization for MessageEntityClass.
type MessageEntityCode ¶
type MessageEntityCode struct { // Offset of message entity within message (in UTF-16 code units¹) // // Links: // 1) https://core.telegram.org/api/entities#entity-length Offset int // Length of message entity within message (in UTF-16 code units¹) // // Links: // 1) https://core.telegram.org/api/entities#entity-length Length int }
MessageEntityCode represents TL type `messageEntityCode#28a20571`. Message entity representing a codeblock.
See https://core.telegram.org/constructor/messageEntityCode for reference.
func (*MessageEntityCode) Decode ¶
func (m *MessageEntityCode) Decode(b *bin.Buffer) error
Decode implements bin.Decoder.
func (*MessageEntityCode) DecodeBare ¶
func (m *MessageEntityCode) DecodeBare(b *bin.Buffer) error
DecodeBare implements bin.BareDecoder.
func (*MessageEntityCode) Encode ¶
func (m *MessageEntityCode) Encode(b *bin.Buffer) error
Encode implements bin.Encoder.
func (*MessageEntityCode) EncodeBare ¶
func (m *MessageEntityCode) EncodeBare(b *bin.Buffer) error
EncodeBare implements bin.BareEncoder.
func (*MessageEntityCode) GetLength ¶
func (m *MessageEntityCode) GetLength() (value int)
GetLength returns value of Length field.
func (*MessageEntityCode) GetOffset ¶
func (m *MessageEntityCode) GetOffset() (value int)
GetOffset returns value of Offset field.
func (*MessageEntityCode) String ¶
func (m *MessageEntityCode) String() string
String implements fmt.Stringer.
func (*MessageEntityCode) TypeID ¶
func (*MessageEntityCode) TypeID() uint32
TypeID returns type id in TL schema.
func (*MessageEntityCode) TypeInfo ¶
func (m *MessageEntityCode) TypeInfo() tdp.Type
TypeInfo returns info about TL type.
func (*MessageEntityCode) TypeName ¶
func (*MessageEntityCode) TypeName() string
TypeName returns name of type in TL schema.
func (*MessageEntityCode) Zero ¶
func (m *MessageEntityCode) Zero() bool
type MessageEntityCustomEmoji ¶
type MessageEntityCustomEmoji struct { // Offset of message entity within message (in UTF-16 code units¹) // // Links: // 1) https://core.telegram.org/api/entities#entity-length Offset int // Length of message entity within message (in UTF-16 code units¹) // // Links: // 1) https://core.telegram.org/api/entities#entity-length Length int // Document ID of the custom emoji¹, use messages.getCustomEmojiDocuments² to fetch the // emoji animation and the actual emoji it represents. // // Links: // 1) https://core.telegram.org/api/custom-emoji // 2) https://core.telegram.org/method/messages.getCustomEmojiDocuments DocumentID int64 }
MessageEntityCustomEmoji represents TL type `messageEntityCustomEmoji#c8cf05f8`. Represents a custom emoji. Note that this entity must wrap exactly one regular emoji (the one contained in documentAttributeCustomEmoji¹.alt) in the related text, otherwise the server will ignore it.
Links:
See https://core.telegram.org/constructor/messageEntityCustomEmoji for reference.
func (*MessageEntityCustomEmoji) Decode ¶
func (m *MessageEntityCustomEmoji) Decode(b *bin.Buffer) error
Decode implements bin.Decoder.
func (*MessageEntityCustomEmoji) DecodeBare ¶
func (m *MessageEntityCustomEmoji) DecodeBare(b *bin.Buffer) error
DecodeBare implements bin.BareDecoder.
func (*MessageEntityCustomEmoji) Encode ¶
func (m *MessageEntityCustomEmoji) Encode(b *bin.Buffer) error
Encode implements bin.Encoder.
func (*MessageEntityCustomEmoji) EncodeBare ¶
func (m *MessageEntityCustomEmoji) EncodeBare(b *bin.Buffer) error
EncodeBare implements bin.BareEncoder.
func (*MessageEntityCustomEmoji) GetDocumentID ¶
func (m *MessageEntityCustomEmoji) GetDocumentID() (value int64)
GetDocumentID returns value of DocumentID field.
func (*MessageEntityCustomEmoji) GetLength ¶
func (m *MessageEntityCustomEmoji) GetLength() (value int)
GetLength returns value of Length field.
func (*MessageEntityCustomEmoji) GetOffset ¶
func (m *MessageEntityCustomEmoji) GetOffset() (value int)
GetOffset returns value of Offset field.
func (*MessageEntityCustomEmoji) String ¶
func (m *MessageEntityCustomEmoji) String() string
String implements fmt.Stringer.
func (*MessageEntityCustomEmoji) TypeID ¶
func (*MessageEntityCustomEmoji) TypeID() uint32
TypeID returns type id in TL schema.
func (*MessageEntityCustomEmoji) TypeInfo ¶
func (m *MessageEntityCustomEmoji) TypeInfo() tdp.Type
TypeInfo returns info about TL type.
func (*MessageEntityCustomEmoji) TypeName ¶
func (*MessageEntityCustomEmoji) TypeName() string
TypeName returns name of type in TL schema.
func (*MessageEntityCustomEmoji) Zero ¶
func (m *MessageEntityCustomEmoji) Zero() bool
type MessageEntityEmail ¶
type MessageEntityEmail struct { // Offset of message entity within message (in UTF-16 code units¹) // // Links: // 1) https://core.telegram.org/api/entities#entity-length Offset int // Length of message entity within message (in UTF-16 code units¹) // // Links: // 1) https://core.telegram.org/api/entities#entity-length Length int }
MessageEntityEmail represents TL type `messageEntityEmail#64e475c2`. Message entity representing an email@example.com¹.
Links:
See https://core.telegram.org/constructor/messageEntityEmail for reference.
func (*MessageEntityEmail) Decode ¶
func (m *MessageEntityEmail) Decode(b *bin.Buffer) error
Decode implements bin.Decoder.
func (*MessageEntityEmail) DecodeBare ¶
func (m *MessageEntityEmail) DecodeBare(b *bin.Buffer) error
DecodeBare implements bin.BareDecoder.
func (*MessageEntityEmail) Encode ¶
func (m *MessageEntityEmail) Encode(b *bin.Buffer) error
Encode implements bin.Encoder.
func (*MessageEntityEmail) EncodeBare ¶
func (m *MessageEntityEmail) EncodeBare(b *bin.Buffer) error
EncodeBare implements bin.BareEncoder.
func (*MessageEntityEmail) GetLength ¶
func (m *MessageEntityEmail) GetLength() (value int)
GetLength returns value of Length field.
func (*MessageEntityEmail) GetOffset ¶
func (m *MessageEntityEmail) GetOffset() (value int)
GetOffset returns value of Offset field.
func (*MessageEntityEmail) String ¶
func (m *MessageEntityEmail) String() string
String implements fmt.Stringer.
func (*MessageEntityEmail) TypeID ¶
func (*MessageEntityEmail) TypeID() uint32
TypeID returns type id in TL schema.
func (*MessageEntityEmail) TypeInfo ¶
func (m *MessageEntityEmail) TypeInfo() tdp.Type
TypeInfo returns info about TL type.
func (*MessageEntityEmail) TypeName ¶
func (*MessageEntityEmail) TypeName() string
TypeName returns name of type in TL schema.
func (*MessageEntityEmail) Zero ¶
func (m *MessageEntityEmail) Zero() bool
type MessageEntityHashtag ¶
type MessageEntityHashtag struct { // Offset of message entity within message (in UTF-16 code units¹) // // Links: // 1) https://core.telegram.org/api/entities#entity-length Offset int // Length of message entity within message (in UTF-16 code units¹) // // Links: // 1) https://core.telegram.org/api/entities#entity-length Length int }
MessageEntityHashtag represents TL type `messageEntityHashtag#6f635b0d`. #hashtag message entity
See https://core.telegram.org/constructor/messageEntityHashtag for reference.
func (*MessageEntityHashtag) Decode ¶
func (m *MessageEntityHashtag) Decode(b *bin.Buffer) error
Decode implements bin.Decoder.
func (*MessageEntityHashtag) DecodeBare ¶
func (m *MessageEntityHashtag) DecodeBare(b *bin.Buffer) error
DecodeBare implements bin.BareDecoder.
func (*MessageEntityHashtag) Encode ¶
func (m *MessageEntityHashtag) Encode(b *bin.Buffer) error
Encode implements bin.Encoder.
func (*MessageEntityHashtag) EncodeBare ¶
func (m *MessageEntityHashtag) EncodeBare(b *bin.Buffer) error
EncodeBare implements bin.BareEncoder.
func (*MessageEntityHashtag) GetLength ¶
func (m *MessageEntityHashtag) GetLength() (value int)
GetLength returns value of Length field.
func (*MessageEntityHashtag) GetOffset ¶
func (m *MessageEntityHashtag) GetOffset() (value int)
GetOffset returns value of Offset field.
func (*MessageEntityHashtag) String ¶
func (m *MessageEntityHashtag) String() string
String implements fmt.Stringer.
func (*MessageEntityHashtag) TypeID ¶
func (*MessageEntityHashtag) TypeID() uint32
TypeID returns type id in TL schema.
func (*MessageEntityHashtag) TypeInfo ¶
func (m *MessageEntityHashtag) TypeInfo() tdp.Type
TypeInfo returns info about TL type.
func (*MessageEntityHashtag) TypeName ¶
func (*MessageEntityHashtag) TypeName() string
TypeName returns name of type in TL schema.
func (*MessageEntityHashtag) Zero ¶
func (m *MessageEntityHashtag) Zero() bool
type MessageEntityItalic ¶
type MessageEntityItalic struct { // Offset of message entity within message (in UTF-16 code units¹) // // Links: // 1) https://core.telegram.org/api/entities#entity-length Offset int // Length of message entity within message (in UTF-16 code units¹) // // Links: // 1) https://core.telegram.org/api/entities#entity-length Length int }
MessageEntityItalic represents TL type `messageEntityItalic#826f8b60`. Message entity representing italic text.
See https://core.telegram.org/constructor/messageEntityItalic for reference.
func (*MessageEntityItalic) Decode ¶
func (m *MessageEntityItalic) Decode(b *bin.Buffer) error
Decode implements bin.Decoder.
func (*MessageEntityItalic) DecodeBare ¶
func (m *MessageEntityItalic) DecodeBare(b *bin.Buffer) error
DecodeBare implements bin.BareDecoder.
func (*MessageEntityItalic) Encode ¶
func (m *MessageEntityItalic) Encode(b *bin.Buffer) error
Encode implements bin.Encoder.
func (*MessageEntityItalic) EncodeBare ¶
func (m *MessageEntityItalic) EncodeBare(b *bin.Buffer) error
EncodeBare implements bin.BareEncoder.
func (*MessageEntityItalic) GetLength ¶
func (m *MessageEntityItalic) GetLength() (value int)
GetLength returns value of Length field.
func (*MessageEntityItalic) GetOffset ¶
func (m *MessageEntityItalic) GetOffset() (value int)
GetOffset returns value of Offset field.
func (*MessageEntityItalic) String ¶
func (m *MessageEntityItalic) String() string
String implements fmt.Stringer.
func (*MessageEntityItalic) TypeID ¶
func (*MessageEntityItalic) TypeID() uint32
TypeID returns type id in TL schema.
func (*MessageEntityItalic) TypeInfo ¶
func (m *MessageEntityItalic) TypeInfo() tdp.Type
TypeInfo returns info about TL type.
func (*MessageEntityItalic) TypeName ¶
func (*MessageEntityItalic) TypeName() string
TypeName returns name of type in TL schema.
func (*MessageEntityItalic) Zero ¶
func (m *MessageEntityItalic) Zero() bool
type MessageEntityMention ¶
type MessageEntityMention struct { // Offset of message entity within message (in UTF-16 code units¹) // // Links: // 1) https://core.telegram.org/api/entities#entity-length Offset int // Length of message entity within message (in UTF-16 code units¹) // // Links: // 1) https://core.telegram.org/api/entities#entity-length Length int }
MessageEntityMention represents TL type `messageEntityMention#fa04579d`. Message entity mentioning¹ a user by @username; messageEntityMentionName² can also be used to mention users by their ID.
Links:
- https://core.telegram.org/api/mentions
- https://core.telegram.org/constructor/messageEntityMentionName
See https://core.telegram.org/constructor/messageEntityMention for reference.
func (*MessageEntityMention) Decode ¶
func (m *MessageEntityMention) Decode(b *bin.Buffer) error
Decode implements bin.Decoder.
func (*MessageEntityMention) DecodeBare ¶
func (m *MessageEntityMention) DecodeBare(b *bin.Buffer) error
DecodeBare implements bin.BareDecoder.
func (*MessageEntityMention) Encode ¶
func (m *MessageEntityMention) Encode(b *bin.Buffer) error
Encode implements bin.Encoder.
func (*MessageEntityMention) EncodeBare ¶
func (m *MessageEntityMention) EncodeBare(b *bin.Buffer) error
EncodeBare implements bin.BareEncoder.
func (*MessageEntityMention) GetLength ¶
func (m *MessageEntityMention) GetLength() (value int)
GetLength returns value of Length field.
func (*MessageEntityMention) GetOffset ¶
func (m *MessageEntityMention) GetOffset() (value int)
GetOffset returns value of Offset field.
func (*MessageEntityMention) String ¶
func (m *MessageEntityMention) String() string
String implements fmt.Stringer.
func (*MessageEntityMention) TypeID ¶
func (*MessageEntityMention) TypeID() uint32
TypeID returns type id in TL schema.
func (*MessageEntityMention) TypeInfo ¶
func (m *MessageEntityMention) TypeInfo() tdp.Type
TypeInfo returns info about TL type.
func (*MessageEntityMention) TypeName ¶
func (*MessageEntityMention) TypeName() string
TypeName returns name of type in TL schema.
func (*MessageEntityMention) Zero ¶
func (m *MessageEntityMention) Zero() bool
type MessageEntityMentionName ¶
type MessageEntityMentionName struct { // Offset of message entity within message (in UTF-16 code units¹) // // Links: // 1) https://core.telegram.org/api/entities#entity-length Offset int // Length of message entity within message (in UTF-16 code units¹) // // Links: // 1) https://core.telegram.org/api/entities#entity-length Length int // Identifier of the user that was mentioned UserID int }
MessageEntityMentionName represents TL type `messageEntityMentionName#352dca58`. Message entity representing a user mention¹: for creating a mention use inputMessageEntityMentionName².
Links:
- https://core.telegram.org/api/mentions
- https://core.telegram.org/constructor/inputMessageEntityMentionName
See https://core.telegram.org/constructor/messageEntityMentionName for reference.
func (*MessageEntityMentionName) Decode ¶
func (m *MessageEntityMentionName) Decode(b *bin.Buffer) error
Decode implements bin.Decoder.
func (*MessageEntityMentionName) DecodeBare ¶
func (m *MessageEntityMentionName) DecodeBare(b *bin.Buffer) error
DecodeBare implements bin.BareDecoder.
func (*MessageEntityMentionName) Encode ¶
func (m *MessageEntityMentionName) Encode(b *bin.Buffer) error
Encode implements bin.Encoder.
func (*MessageEntityMentionName) EncodeBare ¶
func (m *MessageEntityMentionName) EncodeBare(b *bin.Buffer) error
EncodeBare implements bin.BareEncoder.
func (*MessageEntityMentionName) GetLength ¶
func (m *MessageEntityMentionName) GetLength() (value int)
GetLength returns value of Length field.
func (*MessageEntityMentionName) GetOffset ¶
func (m *MessageEntityMentionName) GetOffset() (value int)
GetOffset returns value of Offset field.
func (*MessageEntityMentionName) GetUserID ¶
func (m *MessageEntityMentionName) GetUserID() (value int)
GetUserID returns value of UserID field.
func (*MessageEntityMentionName) String ¶
func (m *MessageEntityMentionName) String() string
String implements fmt.Stringer.
func (*MessageEntityMentionName) TypeID ¶
func (*MessageEntityMentionName) TypeID() uint32
TypeID returns type id in TL schema.
func (*MessageEntityMentionName) TypeInfo ¶
func (m *MessageEntityMentionName) TypeInfo() tdp.Type
TypeInfo returns info about TL type.
func (*MessageEntityMentionName) TypeName ¶
func (*MessageEntityMentionName) TypeName() string
TypeName returns name of type in TL schema.
func (*MessageEntityMentionName) Zero ¶
func (m *MessageEntityMentionName) Zero() bool
type MessageEntityPhone ¶
type MessageEntityPhone struct { // Offset of message entity within message (in UTF-16 code units¹) // // Links: // 1) https://core.telegram.org/api/entities#entity-length Offset int // Length of message entity within message (in UTF-16 code units¹) // // Links: // 1) https://core.telegram.org/api/entities#entity-length Length int }
MessageEntityPhone represents TL type `messageEntityPhone#9b69e34b`. Message entity representing a phone number.
See https://core.telegram.org/constructor/messageEntityPhone for reference.
func (*MessageEntityPhone) Decode ¶
func (m *MessageEntityPhone) Decode(b *bin.Buffer) error
Decode implements bin.Decoder.
func (*MessageEntityPhone) DecodeBare ¶
func (m *MessageEntityPhone) DecodeBare(b *bin.Buffer) error
DecodeBare implements bin.BareDecoder.
func (*MessageEntityPhone) Encode ¶
func (m *MessageEntityPhone) Encode(b *bin.Buffer) error
Encode implements bin.Encoder.
func (*MessageEntityPhone) EncodeBare ¶
func (m *MessageEntityPhone) EncodeBare(b *bin.Buffer) error
EncodeBare implements bin.BareEncoder.
func (*MessageEntityPhone) GetLength ¶
func (m *MessageEntityPhone) GetLength() (value int)
GetLength returns value of Length field.
func (*MessageEntityPhone) GetOffset ¶
func (m *MessageEntityPhone) GetOffset() (value int)
GetOffset returns value of Offset field.
func (*MessageEntityPhone) String ¶
func (m *MessageEntityPhone) String() string
String implements fmt.Stringer.
func (*MessageEntityPhone) TypeID ¶
func (*MessageEntityPhone) TypeID() uint32
TypeID returns type id in TL schema.
func (*MessageEntityPhone) TypeInfo ¶
func (m *MessageEntityPhone) TypeInfo() tdp.Type
TypeInfo returns info about TL type.
func (*MessageEntityPhone) TypeName ¶
func (*MessageEntityPhone) TypeName() string
TypeName returns name of type in TL schema.
func (*MessageEntityPhone) Zero ¶
func (m *MessageEntityPhone) Zero() bool
type MessageEntityPre ¶
type MessageEntityPre struct { // Offset of message entity within message (in UTF-16 code units¹) // // Links: // 1) https://core.telegram.org/api/entities#entity-length Offset int // Length of message entity within message (in UTF-16 code units¹) // // Links: // 1) https://core.telegram.org/api/entities#entity-length Length int // Programming language of the code Language string }
MessageEntityPre represents TL type `messageEntityPre#73924be0`. Message entity representing a preformatted codeblock, allowing the user to specify a programming language for the codeblock.
See https://core.telegram.org/constructor/messageEntityPre for reference.
func (*MessageEntityPre) Decode ¶
func (m *MessageEntityPre) Decode(b *bin.Buffer) error
Decode implements bin.Decoder.
func (*MessageEntityPre) DecodeBare ¶
func (m *MessageEntityPre) DecodeBare(b *bin.Buffer) error
DecodeBare implements bin.BareDecoder.
func (*MessageEntityPre) Encode ¶
func (m *MessageEntityPre) Encode(b *bin.Buffer) error
Encode implements bin.Encoder.
func (*MessageEntityPre) EncodeBare ¶
func (m *MessageEntityPre) EncodeBare(b *bin.Buffer) error
EncodeBare implements bin.BareEncoder.
func (*MessageEntityPre) GetLanguage ¶
func (m *MessageEntityPre) GetLanguage() (value string)
GetLanguage returns value of Language field.
func (*MessageEntityPre) GetLength ¶
func (m *MessageEntityPre) GetLength() (value int)
GetLength returns value of Length field.
func (*MessageEntityPre) GetOffset ¶
func (m *MessageEntityPre) GetOffset() (value int)
GetOffset returns value of Offset field.
func (*MessageEntityPre) String ¶
func (m *MessageEntityPre) String() string
String implements fmt.Stringer.
func (*MessageEntityPre) TypeID ¶
func (*MessageEntityPre) TypeID() uint32
TypeID returns type id in TL schema.
func (*MessageEntityPre) TypeInfo ¶
func (m *MessageEntityPre) TypeInfo() tdp.Type
TypeInfo returns info about TL type.
func (*MessageEntityPre) TypeName ¶
func (*MessageEntityPre) TypeName() string
TypeName returns name of type in TL schema.
func (*MessageEntityPre) Zero ¶
func (m *MessageEntityPre) Zero() bool
type MessageEntitySpoiler ¶
type MessageEntitySpoiler struct { // Offset of message entity within message (in UTF-16 code units¹) // // Links: // 1) https://core.telegram.org/api/entities#entity-length Offset int // Length of message entity within message (in UTF-16 code units¹) // // Links: // 1) https://core.telegram.org/api/entities#entity-length Length int }
MessageEntitySpoiler represents TL type `messageEntitySpoiler#32ca960f`. Message entity representing a spoiler
See https://core.telegram.org/constructor/messageEntitySpoiler for reference.
func (*MessageEntitySpoiler) Decode ¶
func (m *MessageEntitySpoiler) Decode(b *bin.Buffer) error
Decode implements bin.Decoder.
func (*MessageEntitySpoiler) DecodeBare ¶
func (m *MessageEntitySpoiler) DecodeBare(b *bin.Buffer) error
DecodeBare implements bin.BareDecoder.
func (*MessageEntitySpoiler) Encode ¶
func (m *MessageEntitySpoiler) Encode(b *bin.Buffer) error
Encode implements bin.Encoder.
func (*MessageEntitySpoiler) EncodeBare ¶
func (m *MessageEntitySpoiler) EncodeBare(b *bin.Buffer) error
EncodeBare implements bin.BareEncoder.
func (*MessageEntitySpoiler) GetLength ¶
func (m *MessageEntitySpoiler) GetLength() (value int)
GetLength returns value of Length field.
func (*MessageEntitySpoiler) GetOffset ¶
func (m *MessageEntitySpoiler) GetOffset() (value int)
GetOffset returns value of Offset field.
func (*MessageEntitySpoiler) String ¶
func (m *MessageEntitySpoiler) String() string
String implements fmt.Stringer.
func (*MessageEntitySpoiler) TypeID ¶
func (*MessageEntitySpoiler) TypeID() uint32
TypeID returns type id in TL schema.
func (*MessageEntitySpoiler) TypeInfo ¶
func (m *MessageEntitySpoiler) TypeInfo() tdp.Type
TypeInfo returns info about TL type.
func (*MessageEntitySpoiler) TypeName ¶
func (*MessageEntitySpoiler) TypeName() string
TypeName returns name of type in TL schema.
func (*MessageEntitySpoiler) Zero ¶
func (m *MessageEntitySpoiler) Zero() bool
type MessageEntityStrike ¶
type MessageEntityStrike struct { // Offset of message entity within message (in UTF-16 code units¹) // // Links: // 1) https://core.telegram.org/api/entities#entity-length Offset int // Length of message entity within message (in UTF-16 code units¹) // // Links: // 1) https://core.telegram.org/api/entities#entity-length Length int }
MessageEntityStrike represents TL type `messageEntityStrike#bf0693d4`. Message entity representing strikethrough text.
See https://core.telegram.org/constructor/messageEntityStrike for reference.
func (*MessageEntityStrike) Decode ¶
func (m *MessageEntityStrike) Decode(b *bin.Buffer) error
Decode implements bin.Decoder.
func (*MessageEntityStrike) DecodeBare ¶
func (m *MessageEntityStrike) DecodeBare(b *bin.Buffer) error
DecodeBare implements bin.BareDecoder.
func (*MessageEntityStrike) Encode ¶
func (m *MessageEntityStrike) Encode(b *bin.Buffer) error
Encode implements bin.Encoder.
func (*MessageEntityStrike) EncodeBare ¶
func (m *MessageEntityStrike) EncodeBare(b *bin.Buffer) error
EncodeBare implements bin.BareEncoder.
func (*MessageEntityStrike) GetLength ¶
func (m *MessageEntityStrike) GetLength() (value int)
GetLength returns value of Length field.
func (*MessageEntityStrike) GetOffset ¶
func (m *MessageEntityStrike) GetOffset() (value int)
GetOffset returns value of Offset field.
func (*MessageEntityStrike) String ¶
func (m *MessageEntityStrike) String() string
String implements fmt.Stringer.
func (*MessageEntityStrike) TypeID ¶
func (*MessageEntityStrike) TypeID() uint32
TypeID returns type id in TL schema.
func (*MessageEntityStrike) TypeInfo ¶
func (m *MessageEntityStrike) TypeInfo() tdp.Type
TypeInfo returns info about TL type.
func (*MessageEntityStrike) TypeName ¶
func (*MessageEntityStrike) TypeName() string
TypeName returns name of type in TL schema.
func (*MessageEntityStrike) Zero ¶
func (m *MessageEntityStrike) Zero() bool
type MessageEntityTextURL ¶
type MessageEntityTextURL struct { // Offset of message entity within message (in UTF-16 code units¹) // // Links: // 1) https://core.telegram.org/api/entities#entity-length Offset int // Length of message entity within message (in UTF-16 code units¹) // // Links: // 1) https://core.telegram.org/api/entities#entity-length Length int // The actual URL URL string }
MessageEntityTextURL represents TL type `messageEntityTextUrl#76a6d327`. Message entity representing a text url¹: for in-text urls like https://google.com² use messageEntityUrl³. Note that an additional confirmation popup with the full URL must be displayed to the user before opening this link, unless the domain satisfies the conditions specified in the domain whitelist documentation »¹.
Links:
- https://google.com
- https://google.com
- https://core.telegram.org/constructor/messageEntityUrl
- https://core.telegram.org/api/config#whitelisted-domains
See https://core.telegram.org/constructor/messageEntityTextUrl for reference.
func (*MessageEntityTextURL) Decode ¶
func (m *MessageEntityTextURL) Decode(b *bin.Buffer) error
Decode implements bin.Decoder.
func (*MessageEntityTextURL) DecodeBare ¶
func (m *MessageEntityTextURL) DecodeBare(b *bin.Buffer) error
DecodeBare implements bin.BareDecoder.
func (*MessageEntityTextURL) Encode ¶
func (m *MessageEntityTextURL) Encode(b *bin.Buffer) error
Encode implements bin.Encoder.
func (*MessageEntityTextURL) EncodeBare ¶
func (m *MessageEntityTextURL) EncodeBare(b *bin.Buffer) error
EncodeBare implements bin.BareEncoder.
func (*MessageEntityTextURL) GetLength ¶
func (m *MessageEntityTextURL) GetLength() (value int)
GetLength returns value of Length field.
func (*MessageEntityTextURL) GetOffset ¶
func (m *MessageEntityTextURL) GetOffset() (value int)
GetOffset returns value of Offset field.
func (*MessageEntityTextURL) GetURL ¶
func (m *MessageEntityTextURL) GetURL() (value string)
GetURL returns value of URL field.
func (*MessageEntityTextURL) String ¶
func (m *MessageEntityTextURL) String() string
String implements fmt.Stringer.
func (*MessageEntityTextURL) TypeID ¶
func (*MessageEntityTextURL) TypeID() uint32
TypeID returns type id in TL schema.
func (*MessageEntityTextURL) TypeInfo ¶
func (m *MessageEntityTextURL) TypeInfo() tdp.Type
TypeInfo returns info about TL type.
func (*MessageEntityTextURL) TypeName ¶
func (*MessageEntityTextURL) TypeName() string
TypeName returns name of type in TL schema.
func (*MessageEntityTextURL) Zero ¶
func (m *MessageEntityTextURL) Zero() bool
type MessageEntityURL ¶
type MessageEntityURL struct { // Offset of message entity within message (in UTF-16 code units¹) // // Links: // 1) https://core.telegram.org/api/entities#entity-length Offset int // Length of message entity within message (in UTF-16 code units¹) // // Links: // 1) https://core.telegram.org/api/entities#entity-length Length int }
MessageEntityURL represents TL type `messageEntityUrl#6ed02538`. Message entity representing an in-text url: https://google.com¹; for text urls², use messageEntityTextUrl³.
Links:
See https://core.telegram.org/constructor/messageEntityUrl for reference.
func (*MessageEntityURL) Decode ¶
func (m *MessageEntityURL) Decode(b *bin.Buffer) error
Decode implements bin.Decoder.
func (*MessageEntityURL) DecodeBare ¶
func (m *MessageEntityURL) DecodeBare(b *bin.Buffer) error
DecodeBare implements bin.BareDecoder.
func (*MessageEntityURL) Encode ¶
func (m *MessageEntityURL) Encode(b *bin.Buffer) error
Encode implements bin.Encoder.
func (*MessageEntityURL) EncodeBare ¶
func (m *MessageEntityURL) EncodeBare(b *bin.Buffer) error
EncodeBare implements bin.BareEncoder.
func (*MessageEntityURL) GetLength ¶
func (m *MessageEntityURL) GetLength() (value int)
GetLength returns value of Length field.
func (*MessageEntityURL) GetOffset ¶
func (m *MessageEntityURL) GetOffset() (value int)
GetOffset returns value of Offset field.
func (*MessageEntityURL) String ¶
func (m *MessageEntityURL) String() string
String implements fmt.Stringer.
func (*MessageEntityURL) TypeID ¶
func (*MessageEntityURL) TypeID() uint32
TypeID returns type id in TL schema.
func (*MessageEntityURL) TypeInfo ¶
func (m *MessageEntityURL) TypeInfo() tdp.Type
TypeInfo returns info about TL type.
func (*MessageEntityURL) TypeName ¶
func (*MessageEntityURL) TypeName() string
TypeName returns name of type in TL schema.
func (*MessageEntityURL) Zero ¶
func (m *MessageEntityURL) Zero() bool
type MessageEntityUnderline ¶
type MessageEntityUnderline struct { // Offset of message entity within message (in UTF-16 code units¹) // // Links: // 1) https://core.telegram.org/api/entities#entity-length Offset int // Length of message entity within message (in UTF-16 code units¹) // // Links: // 1) https://core.telegram.org/api/entities#entity-length Length int }
MessageEntityUnderline represents TL type `messageEntityUnderline#9c4e7e8b`. Message entity representing underlined text.
See https://core.telegram.org/constructor/messageEntityUnderline for reference.
func (*MessageEntityUnderline) Decode ¶
func (m *MessageEntityUnderline) Decode(b *bin.Buffer) error
Decode implements bin.Decoder.
func (*MessageEntityUnderline) DecodeBare ¶
func (m *MessageEntityUnderline) DecodeBare(b *bin.Buffer) error
DecodeBare implements bin.BareDecoder.
func (*MessageEntityUnderline) Encode ¶
func (m *MessageEntityUnderline) Encode(b *bin.Buffer) error
Encode implements bin.Encoder.
func (*MessageEntityUnderline) EncodeBare ¶
func (m *MessageEntityUnderline) EncodeBare(b *bin.Buffer) error
EncodeBare implements bin.BareEncoder.
func (*MessageEntityUnderline) GetLength ¶
func (m *MessageEntityUnderline) GetLength() (value int)
GetLength returns value of Length field.
func (*MessageEntityUnderline) GetOffset ¶
func (m *MessageEntityUnderline) GetOffset() (value int)
GetOffset returns value of Offset field.
func (*MessageEntityUnderline) String ¶
func (m *MessageEntityUnderline) String() string
String implements fmt.Stringer.
func (*MessageEntityUnderline) TypeID ¶
func (*MessageEntityUnderline) TypeID() uint32
TypeID returns type id in TL schema.
func (*MessageEntityUnderline) TypeInfo ¶
func (m *MessageEntityUnderline) TypeInfo() tdp.Type
TypeInfo returns info about TL type.
func (*MessageEntityUnderline) TypeName ¶
func (*MessageEntityUnderline) TypeName() string
TypeName returns name of type in TL schema.
func (*MessageEntityUnderline) Zero ¶
func (m *MessageEntityUnderline) Zero() bool
type MessageEntityUnknown ¶
type MessageEntityUnknown struct { // Offset of message entity within message (in UTF-16 code units¹) // // Links: // 1) https://core.telegram.org/api/entities#entity-length Offset int // Length of message entity within message (in UTF-16 code units¹) // // Links: // 1) https://core.telegram.org/api/entities#entity-length Length int }
MessageEntityUnknown represents TL type `messageEntityUnknown#bb92ba95`. Unknown message entity
See https://core.telegram.org/constructor/messageEntityUnknown for reference.
func (*MessageEntityUnknown) Decode ¶
func (m *MessageEntityUnknown) Decode(b *bin.Buffer) error
Decode implements bin.Decoder.
func (*MessageEntityUnknown) DecodeBare ¶
func (m *MessageEntityUnknown) DecodeBare(b *bin.Buffer) error
DecodeBare implements bin.BareDecoder.
func (*MessageEntityUnknown) Encode ¶
func (m *MessageEntityUnknown) Encode(b *bin.Buffer) error
Encode implements bin.Encoder.
func (*MessageEntityUnknown) EncodeBare ¶
func (m *MessageEntityUnknown) EncodeBare(b *bin.Buffer) error
EncodeBare implements bin.BareEncoder.
func (*MessageEntityUnknown) GetLength ¶
func (m *MessageEntityUnknown) GetLength() (value int)
GetLength returns value of Length field.
func (*MessageEntityUnknown) GetOffset ¶
func (m *MessageEntityUnknown) GetOffset() (value int)
GetOffset returns value of Offset field.
func (*MessageEntityUnknown) String ¶
func (m *MessageEntityUnknown) String() string
String implements fmt.Stringer.
func (*MessageEntityUnknown) TypeID ¶
func (*MessageEntityUnknown) TypeID() uint32
TypeID returns type id in TL schema.
func (*MessageEntityUnknown) TypeInfo ¶
func (m *MessageEntityUnknown) TypeInfo() tdp.Type
TypeInfo returns info about TL type.
func (*MessageEntityUnknown) TypeName ¶
func (*MessageEntityUnknown) TypeName() string
TypeName returns name of type in TL schema.
func (*MessageEntityUnknown) Zero ¶
func (m *MessageEntityUnknown) Zero() bool
type PhotoCachedSize ¶
type PhotoCachedSize struct { // Thumbnail type Type string // Location field of PhotoCachedSize. Location FileLocationClass // Image width W int // Image height H int // Binary data, file content Bytes []byte }
PhotoCachedSize represents TL type `photoCachedSize#e9a734fa`. Description of an image and its content.
See https://core.telegram.org/constructor/photoCachedSize for reference.
func (*PhotoCachedSize) Decode ¶
func (p *PhotoCachedSize) Decode(b *bin.Buffer) error
Decode implements bin.Decoder.
func (*PhotoCachedSize) DecodeBare ¶
func (p *PhotoCachedSize) DecodeBare(b *bin.Buffer) error
DecodeBare implements bin.BareDecoder.
func (*PhotoCachedSize) Encode ¶
func (p *PhotoCachedSize) Encode(b *bin.Buffer) error
Encode implements bin.Encoder.
func (*PhotoCachedSize) EncodeBare ¶
func (p *PhotoCachedSize) EncodeBare(b *bin.Buffer) error
EncodeBare implements bin.BareEncoder.
func (*PhotoCachedSize) GetBytes ¶
func (p *PhotoCachedSize) GetBytes() (value []byte)
GetBytes returns value of Bytes field.
func (*PhotoCachedSize) GetH ¶
func (p *PhotoCachedSize) GetH() (value int)
GetH returns value of H field.
func (*PhotoCachedSize) GetLocation ¶
func (p *PhotoCachedSize) GetLocation() (value FileLocationClass)
GetLocation returns value of Location field.
func (*PhotoCachedSize) GetType ¶
func (p *PhotoCachedSize) GetType() (value string)
GetType returns value of Type field.
func (*PhotoCachedSize) GetW ¶
func (p *PhotoCachedSize) GetW() (value int)
GetW returns value of W field.
func (*PhotoCachedSize) String ¶
func (p *PhotoCachedSize) String() string
String implements fmt.Stringer.
func (*PhotoCachedSize) TypeID ¶
func (*PhotoCachedSize) TypeID() uint32
TypeID returns type id in TL schema.
func (*PhotoCachedSize) TypeInfo ¶
func (p *PhotoCachedSize) TypeInfo() tdp.Type
TypeInfo returns info about TL type.
func (*PhotoCachedSize) TypeName ¶
func (*PhotoCachedSize) TypeName() string
TypeName returns name of type in TL schema.
func (*PhotoCachedSize) Zero ¶
func (p *PhotoCachedSize) Zero() bool
type PhotoSize ¶
type PhotoSize struct { // Thumbnail type »¹ // // Links: // 1) https://core.telegram.org/api/files#image-thumbnail-types Type string // Location field of PhotoSize. Location FileLocationClass // Image width W int // Image height H int // File size Size int }
PhotoSize represents TL type `photoSize#77bfb61b`. Image description.
See https://core.telegram.org/constructor/photoSize for reference.
func (*PhotoSize) DecodeBare ¶
DecodeBare implements bin.BareDecoder.
func (*PhotoSize) EncodeBare ¶
EncodeBare implements bin.BareEncoder.
func (*PhotoSize) GetLocation ¶
func (p *PhotoSize) GetLocation() (value FileLocationClass)
GetLocation returns value of Location field.
type PhotoSizeBox ¶
type PhotoSizeBox struct {
PhotoSize PhotoSizeClass
}
PhotoSize boxes the PhotoSizeClass providing a helper.
type PhotoSizeClass ¶
type PhotoSizeClass interface { bin.Encoder bin.Decoder bin.BareEncoder bin.BareDecoder // TypeID returns type id in TL schema. // // See https://core.telegram.org/mtproto/TL-tl#remarks. TypeID() uint32 // TypeName returns name of type in TL schema. TypeName() string // String implements fmt.Stringer. String() string // Zero returns true if current object has a zero value. Zero() bool // Thumbnail type »¹ // // Links: // 1) https://core.telegram.org/api/files#image-thumbnail-types GetType() (value string) // contains filtered or unexported methods }
PhotoSizeClass represents PhotoSize generic type.
See https://core.telegram.org/type/PhotoSize for reference.
Example:
g, err := e2e.DecodePhotoSize(buf) if err != nil { panic(err) } switch v := g.(type) { case *e2e.PhotoSizeEmpty: // photoSizeEmpty#e17e23c case *e2e.PhotoSize: // photoSize#77bfb61b case *e2e.PhotoCachedSize: // photoCachedSize#e9a734fa default: panic(v) }
func DecodePhotoSize ¶
func DecodePhotoSize(buf *bin.Buffer) (PhotoSizeClass, error)
DecodePhotoSize implements binary de-serialization for PhotoSizeClass.
type PhotoSizeEmpty ¶
type PhotoSizeEmpty struct { // Thumbnail type »¹ // // Links: // 1) https://core.telegram.org/api/files#image-thumbnail-types Type string }
PhotoSizeEmpty represents TL type `photoSizeEmpty#e17e23c`. Empty constructor. Image with this thumbnail is unavailable.
See https://core.telegram.org/constructor/photoSizeEmpty for reference.
func (*PhotoSizeEmpty) Decode ¶
func (p *PhotoSizeEmpty) Decode(b *bin.Buffer) error
Decode implements bin.Decoder.
func (*PhotoSizeEmpty) DecodeBare ¶
func (p *PhotoSizeEmpty) DecodeBare(b *bin.Buffer) error
DecodeBare implements bin.BareDecoder.
func (*PhotoSizeEmpty) Encode ¶
func (p *PhotoSizeEmpty) Encode(b *bin.Buffer) error
Encode implements bin.Encoder.
func (*PhotoSizeEmpty) EncodeBare ¶
func (p *PhotoSizeEmpty) EncodeBare(b *bin.Buffer) error
EncodeBare implements bin.BareEncoder.
func (*PhotoSizeEmpty) GetType ¶
func (p *PhotoSizeEmpty) GetType() (value string)
GetType returns value of Type field.
func (*PhotoSizeEmpty) String ¶
func (p *PhotoSizeEmpty) String() string
String implements fmt.Stringer.
func (*PhotoSizeEmpty) TypeID ¶
func (*PhotoSizeEmpty) TypeID() uint32
TypeID returns type id in TL schema.
func (*PhotoSizeEmpty) TypeInfo ¶
func (p *PhotoSizeEmpty) TypeInfo() tdp.Type
TypeInfo returns info about TL type.
func (*PhotoSizeEmpty) TypeName ¶
func (*PhotoSizeEmpty) TypeName() string
TypeName returns name of type in TL schema.
func (*PhotoSizeEmpty) Zero ¶
func (p *PhotoSizeEmpty) Zero() bool
type SendMessageActionBox ¶
type SendMessageActionBox struct {
SendMessageAction SendMessageActionClass
}
SendMessageAction boxes the SendMessageActionClass providing a helper.
type SendMessageActionClass ¶
type SendMessageActionClass interface { bin.Encoder bin.Decoder bin.BareEncoder bin.BareDecoder // TypeID returns type id in TL schema. // // See https://core.telegram.org/mtproto/TL-tl#remarks. TypeID() uint32 // TypeName returns name of type in TL schema. TypeName() string // String implements fmt.Stringer. String() string // Zero returns true if current object has a zero value. Zero() bool // contains filtered or unexported methods }
SendMessageActionClass represents SendMessageAction generic type.
See https://core.telegram.org/type/SendMessageAction for reference.
Example:
g, err := e2e.DecodeSendMessageAction(buf) if err != nil { panic(err) } switch v := g.(type) { case *e2e.SendMessageTypingAction: // sendMessageTypingAction#16bf744e case *e2e.SendMessageCancelAction: // sendMessageCancelAction#fd5ec8f5 case *e2e.SendMessageRecordVideoAction: // sendMessageRecordVideoAction#a187d66f case *e2e.SendMessageUploadVideoAction: // sendMessageUploadVideoAction#92042ff7 case *e2e.SendMessageRecordAudioAction: // sendMessageRecordAudioAction#d52f73f7 case *e2e.SendMessageUploadAudioAction: // sendMessageUploadAudioAction#e6ac8a6f case *e2e.SendMessageUploadPhotoAction: // sendMessageUploadPhotoAction#990a3c1a case *e2e.SendMessageUploadDocumentAction: // sendMessageUploadDocumentAction#8faee98e case *e2e.SendMessageGeoLocationAction: // sendMessageGeoLocationAction#176f8ba1 case *e2e.SendMessageChooseContactAction: // sendMessageChooseContactAction#628cbc6f case *e2e.SendMessageRecordRoundAction: // sendMessageRecordRoundAction#88f27fbc case *e2e.SendMessageUploadRoundAction: // sendMessageUploadRoundAction#bb718624 default: panic(v) }
func DecodeSendMessageAction ¶
func DecodeSendMessageAction(buf *bin.Buffer) (SendMessageActionClass, error)
DecodeSendMessageAction implements binary de-serialization for SendMessageActionClass.
type SendMessageCancelAction ¶
type SendMessageCancelAction struct { }
SendMessageCancelAction represents TL type `sendMessageCancelAction#fd5ec8f5`. Invalidate all previous action updates. E.g. when user deletes entered text or aborts a video upload.
See https://core.telegram.org/constructor/sendMessageCancelAction for reference.
func (*SendMessageCancelAction) Decode ¶
func (s *SendMessageCancelAction) Decode(b *bin.Buffer) error
Decode implements bin.Decoder.
func (*SendMessageCancelAction) DecodeBare ¶
func (s *SendMessageCancelAction) DecodeBare(b *bin.Buffer) error
DecodeBare implements bin.BareDecoder.
func (*SendMessageCancelAction) Encode ¶
func (s *SendMessageCancelAction) Encode(b *bin.Buffer) error
Encode implements bin.Encoder.
func (*SendMessageCancelAction) EncodeBare ¶
func (s *SendMessageCancelAction) EncodeBare(b *bin.Buffer) error
EncodeBare implements bin.BareEncoder.
func (*SendMessageCancelAction) String ¶
func (s *SendMessageCancelAction) String() string
String implements fmt.Stringer.
func (*SendMessageCancelAction) TypeID ¶
func (*SendMessageCancelAction) TypeID() uint32
TypeID returns type id in TL schema.
func (*SendMessageCancelAction) TypeInfo ¶
func (s *SendMessageCancelAction) TypeInfo() tdp.Type
TypeInfo returns info about TL type.
func (*SendMessageCancelAction) TypeName ¶
func (*SendMessageCancelAction) TypeName() string
TypeName returns name of type in TL schema.
func (*SendMessageCancelAction) Zero ¶
func (s *SendMessageCancelAction) Zero() bool
type SendMessageChooseContactAction ¶
type SendMessageChooseContactAction struct { }
SendMessageChooseContactAction represents TL type `sendMessageChooseContactAction#628cbc6f`. User is selecting a contact to share.
See https://core.telegram.org/constructor/sendMessageChooseContactAction for reference.
func (*SendMessageChooseContactAction) Decode ¶
func (s *SendMessageChooseContactAction) Decode(b *bin.Buffer) error
Decode implements bin.Decoder.
func (*SendMessageChooseContactAction) DecodeBare ¶
func (s *SendMessageChooseContactAction) DecodeBare(b *bin.Buffer) error
DecodeBare implements bin.BareDecoder.
func (*SendMessageChooseContactAction) Encode ¶
func (s *SendMessageChooseContactAction) Encode(b *bin.Buffer) error
Encode implements bin.Encoder.
func (*SendMessageChooseContactAction) EncodeBare ¶
func (s *SendMessageChooseContactAction) EncodeBare(b *bin.Buffer) error
EncodeBare implements bin.BareEncoder.
func (*SendMessageChooseContactAction) String ¶
func (s *SendMessageChooseContactAction) String() string
String implements fmt.Stringer.
func (*SendMessageChooseContactAction) TypeID ¶
func (*SendMessageChooseContactAction) TypeID() uint32
TypeID returns type id in TL schema.
func (*SendMessageChooseContactAction) TypeInfo ¶
func (s *SendMessageChooseContactAction) TypeInfo() tdp.Type
TypeInfo returns info about TL type.
func (*SendMessageChooseContactAction) TypeName ¶
func (*SendMessageChooseContactAction) TypeName() string
TypeName returns name of type in TL schema.
func (*SendMessageChooseContactAction) Zero ¶
func (s *SendMessageChooseContactAction) Zero() bool
type SendMessageGeoLocationAction ¶
type SendMessageGeoLocationAction struct { }
SendMessageGeoLocationAction represents TL type `sendMessageGeoLocationAction#176f8ba1`. User is selecting a location to share.
See https://core.telegram.org/constructor/sendMessageGeoLocationAction for reference.
func (*SendMessageGeoLocationAction) Decode ¶
func (s *SendMessageGeoLocationAction) Decode(b *bin.Buffer) error
Decode implements bin.Decoder.
func (*SendMessageGeoLocationAction) DecodeBare ¶
func (s *SendMessageGeoLocationAction) DecodeBare(b *bin.Buffer) error
DecodeBare implements bin.BareDecoder.
func (*SendMessageGeoLocationAction) Encode ¶
func (s *SendMessageGeoLocationAction) Encode(b *bin.Buffer) error
Encode implements bin.Encoder.
func (*SendMessageGeoLocationAction) EncodeBare ¶
func (s *SendMessageGeoLocationAction) EncodeBare(b *bin.Buffer) error
EncodeBare implements bin.BareEncoder.
func (*SendMessageGeoLocationAction) String ¶
func (s *SendMessageGeoLocationAction) String() string
String implements fmt.Stringer.
func (*SendMessageGeoLocationAction) TypeID ¶
func (*SendMessageGeoLocationAction) TypeID() uint32
TypeID returns type id in TL schema.
func (*SendMessageGeoLocationAction) TypeInfo ¶
func (s *SendMessageGeoLocationAction) TypeInfo() tdp.Type
TypeInfo returns info about TL type.
func (*SendMessageGeoLocationAction) TypeName ¶
func (*SendMessageGeoLocationAction) TypeName() string
TypeName returns name of type in TL schema.
func (*SendMessageGeoLocationAction) Zero ¶
func (s *SendMessageGeoLocationAction) Zero() bool
type SendMessageRecordAudioAction ¶
type SendMessageRecordAudioAction struct { }
SendMessageRecordAudioAction represents TL type `sendMessageRecordAudioAction#d52f73f7`. User is recording a voice message.
See https://core.telegram.org/constructor/sendMessageRecordAudioAction for reference.
func (*SendMessageRecordAudioAction) Decode ¶
func (s *SendMessageRecordAudioAction) Decode(b *bin.Buffer) error
Decode implements bin.Decoder.
func (*SendMessageRecordAudioAction) DecodeBare ¶
func (s *SendMessageRecordAudioAction) DecodeBare(b *bin.Buffer) error
DecodeBare implements bin.BareDecoder.
func (*SendMessageRecordAudioAction) Encode ¶
func (s *SendMessageRecordAudioAction) Encode(b *bin.Buffer) error
Encode implements bin.Encoder.
func (*SendMessageRecordAudioAction) EncodeBare ¶
func (s *SendMessageRecordAudioAction) EncodeBare(b *bin.Buffer) error
EncodeBare implements bin.BareEncoder.
func (*SendMessageRecordAudioAction) String ¶
func (s *SendMessageRecordAudioAction) String() string
String implements fmt.Stringer.
func (*SendMessageRecordAudioAction) TypeID ¶
func (*SendMessageRecordAudioAction) TypeID() uint32
TypeID returns type id in TL schema.
func (*SendMessageRecordAudioAction) TypeInfo ¶
func (s *SendMessageRecordAudioAction) TypeInfo() tdp.Type
TypeInfo returns info about TL type.
func (*SendMessageRecordAudioAction) TypeName ¶
func (*SendMessageRecordAudioAction) TypeName() string
TypeName returns name of type in TL schema.
func (*SendMessageRecordAudioAction) Zero ¶
func (s *SendMessageRecordAudioAction) Zero() bool
type SendMessageRecordRoundAction ¶
type SendMessageRecordRoundAction struct { }
SendMessageRecordRoundAction represents TL type `sendMessageRecordRoundAction#88f27fbc`. User is recording a round video to share
See https://core.telegram.org/constructor/sendMessageRecordRoundAction for reference.
func (*SendMessageRecordRoundAction) Decode ¶
func (s *SendMessageRecordRoundAction) Decode(b *bin.Buffer) error
Decode implements bin.Decoder.
func (*SendMessageRecordRoundAction) DecodeBare ¶
func (s *SendMessageRecordRoundAction) DecodeBare(b *bin.Buffer) error
DecodeBare implements bin.BareDecoder.
func (*SendMessageRecordRoundAction) Encode ¶
func (s *SendMessageRecordRoundAction) Encode(b *bin.Buffer) error
Encode implements bin.Encoder.
func (*SendMessageRecordRoundAction) EncodeBare ¶
func (s *SendMessageRecordRoundAction) EncodeBare(b *bin.Buffer) error
EncodeBare implements bin.BareEncoder.
func (*SendMessageRecordRoundAction) String ¶
func (s *SendMessageRecordRoundAction) String() string
String implements fmt.Stringer.
func (*SendMessageRecordRoundAction) TypeID ¶
func (*SendMessageRecordRoundAction) TypeID() uint32
TypeID returns type id in TL schema.
func (*SendMessageRecordRoundAction) TypeInfo ¶
func (s *SendMessageRecordRoundAction) TypeInfo() tdp.Type
TypeInfo returns info about TL type.
func (*SendMessageRecordRoundAction) TypeName ¶
func (*SendMessageRecordRoundAction) TypeName() string
TypeName returns name of type in TL schema.
func (*SendMessageRecordRoundAction) Zero ¶
func (s *SendMessageRecordRoundAction) Zero() bool
type SendMessageRecordVideoAction ¶
type SendMessageRecordVideoAction struct { }
SendMessageRecordVideoAction represents TL type `sendMessageRecordVideoAction#a187d66f`. User is recording a video.
See https://core.telegram.org/constructor/sendMessageRecordVideoAction for reference.
func (*SendMessageRecordVideoAction) Decode ¶
func (s *SendMessageRecordVideoAction) Decode(b *bin.Buffer) error
Decode implements bin.Decoder.
func (*SendMessageRecordVideoAction) DecodeBare ¶
func (s *SendMessageRecordVideoAction) DecodeBare(b *bin.Buffer) error
DecodeBare implements bin.BareDecoder.
func (*SendMessageRecordVideoAction) Encode ¶
func (s *SendMessageRecordVideoAction) Encode(b *bin.Buffer) error
Encode implements bin.Encoder.
func (*SendMessageRecordVideoAction) EncodeBare ¶
func (s *SendMessageRecordVideoAction) EncodeBare(b *bin.Buffer) error
EncodeBare implements bin.BareEncoder.
func (*SendMessageRecordVideoAction) String ¶
func (s *SendMessageRecordVideoAction) String() string
String implements fmt.Stringer.
func (*SendMessageRecordVideoAction) TypeID ¶
func (*SendMessageRecordVideoAction) TypeID() uint32
TypeID returns type id in TL schema.
func (*SendMessageRecordVideoAction) TypeInfo ¶
func (s *SendMessageRecordVideoAction) TypeInfo() tdp.Type
TypeInfo returns info about TL type.
func (*SendMessageRecordVideoAction) TypeName ¶
func (*SendMessageRecordVideoAction) TypeName() string
TypeName returns name of type in TL schema.
func (*SendMessageRecordVideoAction) Zero ¶
func (s *SendMessageRecordVideoAction) Zero() bool
type SendMessageTypingAction ¶
type SendMessageTypingAction struct { }
SendMessageTypingAction represents TL type `sendMessageTypingAction#16bf744e`. User is typing.
See https://core.telegram.org/constructor/sendMessageTypingAction for reference.
func (*SendMessageTypingAction) Decode ¶
func (s *SendMessageTypingAction) Decode(b *bin.Buffer) error
Decode implements bin.Decoder.
func (*SendMessageTypingAction) DecodeBare ¶
func (s *SendMessageTypingAction) DecodeBare(b *bin.Buffer) error
DecodeBare implements bin.BareDecoder.
func (*SendMessageTypingAction) Encode ¶
func (s *SendMessageTypingAction) Encode(b *bin.Buffer) error
Encode implements bin.Encoder.
func (*SendMessageTypingAction) EncodeBare ¶
func (s *SendMessageTypingAction) EncodeBare(b *bin.Buffer) error
EncodeBare implements bin.BareEncoder.
func (*SendMessageTypingAction) String ¶
func (s *SendMessageTypingAction) String() string
String implements fmt.Stringer.
func (*SendMessageTypingAction) TypeID ¶
func (*SendMessageTypingAction) TypeID() uint32
TypeID returns type id in TL schema.
func (*SendMessageTypingAction) TypeInfo ¶
func (s *SendMessageTypingAction) TypeInfo() tdp.Type
TypeInfo returns info about TL type.
func (*SendMessageTypingAction) TypeName ¶
func (*SendMessageTypingAction) TypeName() string
TypeName returns name of type in TL schema.
func (*SendMessageTypingAction) Zero ¶
func (s *SendMessageTypingAction) Zero() bool
type SendMessageUploadAudioAction ¶
type SendMessageUploadAudioAction struct { }
SendMessageUploadAudioAction represents TL type `sendMessageUploadAudioAction#e6ac8a6f`. User is uploading a voice message.
See https://core.telegram.org/constructor/sendMessageUploadAudioAction for reference.
func (*SendMessageUploadAudioAction) Decode ¶
func (s *SendMessageUploadAudioAction) Decode(b *bin.Buffer) error
Decode implements bin.Decoder.
func (*SendMessageUploadAudioAction) DecodeBare ¶
func (s *SendMessageUploadAudioAction) DecodeBare(b *bin.Buffer) error
DecodeBare implements bin.BareDecoder.
func (*SendMessageUploadAudioAction) Encode ¶
func (s *SendMessageUploadAudioAction) Encode(b *bin.Buffer) error
Encode implements bin.Encoder.
func (*SendMessageUploadAudioAction) EncodeBare ¶
func (s *SendMessageUploadAudioAction) EncodeBare(b *bin.Buffer) error
EncodeBare implements bin.BareEncoder.
func (*SendMessageUploadAudioAction) String ¶
func (s *SendMessageUploadAudioAction) String() string
String implements fmt.Stringer.
func (*SendMessageUploadAudioAction) TypeID ¶
func (*SendMessageUploadAudioAction) TypeID() uint32
TypeID returns type id in TL schema.
func (*SendMessageUploadAudioAction) TypeInfo ¶
func (s *SendMessageUploadAudioAction) TypeInfo() tdp.Type
TypeInfo returns info about TL type.
func (*SendMessageUploadAudioAction) TypeName ¶
func (*SendMessageUploadAudioAction) TypeName() string
TypeName returns name of type in TL schema.
func (*SendMessageUploadAudioAction) Zero ¶
func (s *SendMessageUploadAudioAction) Zero() bool
type SendMessageUploadDocumentAction ¶
type SendMessageUploadDocumentAction struct { }
SendMessageUploadDocumentAction represents TL type `sendMessageUploadDocumentAction#8faee98e`. User is uploading a file.
See https://core.telegram.org/constructor/sendMessageUploadDocumentAction for reference.
func (*SendMessageUploadDocumentAction) Decode ¶
func (s *SendMessageUploadDocumentAction) Decode(b *bin.Buffer) error
Decode implements bin.Decoder.
func (*SendMessageUploadDocumentAction) DecodeBare ¶
func (s *SendMessageUploadDocumentAction) DecodeBare(b *bin.Buffer) error
DecodeBare implements bin.BareDecoder.
func (*SendMessageUploadDocumentAction) Encode ¶
func (s *SendMessageUploadDocumentAction) Encode(b *bin.Buffer) error
Encode implements bin.Encoder.
func (*SendMessageUploadDocumentAction) EncodeBare ¶
func (s *SendMessageUploadDocumentAction) EncodeBare(b *bin.Buffer) error
EncodeBare implements bin.BareEncoder.
func (*SendMessageUploadDocumentAction) String ¶
func (s *SendMessageUploadDocumentAction) String() string
String implements fmt.Stringer.
func (*SendMessageUploadDocumentAction) TypeID ¶
func (*SendMessageUploadDocumentAction) TypeID() uint32
TypeID returns type id in TL schema.
func (*SendMessageUploadDocumentAction) TypeInfo ¶
func (s *SendMessageUploadDocumentAction) TypeInfo() tdp.Type
TypeInfo returns info about TL type.
func (*SendMessageUploadDocumentAction) TypeName ¶
func (*SendMessageUploadDocumentAction) TypeName() string
TypeName returns name of type in TL schema.
func (*SendMessageUploadDocumentAction) Zero ¶
func (s *SendMessageUploadDocumentAction) Zero() bool
type SendMessageUploadPhotoAction ¶
type SendMessageUploadPhotoAction struct { }
SendMessageUploadPhotoAction represents TL type `sendMessageUploadPhotoAction#990a3c1a`. User is uploading a photo.
See https://core.telegram.org/constructor/sendMessageUploadPhotoAction for reference.
func (*SendMessageUploadPhotoAction) Decode ¶
func (s *SendMessageUploadPhotoAction) Decode(b *bin.Buffer) error
Decode implements bin.Decoder.
func (*SendMessageUploadPhotoAction) DecodeBare ¶
func (s *SendMessageUploadPhotoAction) DecodeBare(b *bin.Buffer) error
DecodeBare implements bin.BareDecoder.
func (*SendMessageUploadPhotoAction) Encode ¶
func (s *SendMessageUploadPhotoAction) Encode(b *bin.Buffer) error
Encode implements bin.Encoder.
func (*SendMessageUploadPhotoAction) EncodeBare ¶
func (s *SendMessageUploadPhotoAction) EncodeBare(b *bin.Buffer) error
EncodeBare implements bin.BareEncoder.
func (*SendMessageUploadPhotoAction) String ¶
func (s *SendMessageUploadPhotoAction) String() string
String implements fmt.Stringer.
func (*SendMessageUploadPhotoAction) TypeID ¶
func (*SendMessageUploadPhotoAction) TypeID() uint32
TypeID returns type id in TL schema.
func (*SendMessageUploadPhotoAction) TypeInfo ¶
func (s *SendMessageUploadPhotoAction) TypeInfo() tdp.Type
TypeInfo returns info about TL type.
func (*SendMessageUploadPhotoAction) TypeName ¶
func (*SendMessageUploadPhotoAction) TypeName() string
TypeName returns name of type in TL schema.
func (*SendMessageUploadPhotoAction) Zero ¶
func (s *SendMessageUploadPhotoAction) Zero() bool
type SendMessageUploadRoundAction ¶
type SendMessageUploadRoundAction struct { }
SendMessageUploadRoundAction represents TL type `sendMessageUploadRoundAction#bb718624`. User is uploading a round video
See https://core.telegram.org/constructor/sendMessageUploadRoundAction for reference.
func (*SendMessageUploadRoundAction) Decode ¶
func (s *SendMessageUploadRoundAction) Decode(b *bin.Buffer) error
Decode implements bin.Decoder.
func (*SendMessageUploadRoundAction) DecodeBare ¶
func (s *SendMessageUploadRoundAction) DecodeBare(b *bin.Buffer) error
DecodeBare implements bin.BareDecoder.
func (*SendMessageUploadRoundAction) Encode ¶
func (s *SendMessageUploadRoundAction) Encode(b *bin.Buffer) error
Encode implements bin.Encoder.
func (*SendMessageUploadRoundAction) EncodeBare ¶
func (s *SendMessageUploadRoundAction) EncodeBare(b *bin.Buffer) error
EncodeBare implements bin.BareEncoder.
func (*SendMessageUploadRoundAction) String ¶
func (s *SendMessageUploadRoundAction) String() string
String implements fmt.Stringer.
func (*SendMessageUploadRoundAction) TypeID ¶
func (*SendMessageUploadRoundAction) TypeID() uint32
TypeID returns type id in TL schema.
func (*SendMessageUploadRoundAction) TypeInfo ¶
func (s *SendMessageUploadRoundAction) TypeInfo() tdp.Type
TypeInfo returns info about TL type.
func (*SendMessageUploadRoundAction) TypeName ¶
func (*SendMessageUploadRoundAction) TypeName() string
TypeName returns name of type in TL schema.
func (*SendMessageUploadRoundAction) Zero ¶
func (s *SendMessageUploadRoundAction) Zero() bool
type SendMessageUploadVideoAction ¶
type SendMessageUploadVideoAction struct { }
SendMessageUploadVideoAction represents TL type `sendMessageUploadVideoAction#92042ff7`. User is uploading a video.
See https://core.telegram.org/constructor/sendMessageUploadVideoAction for reference.
func (*SendMessageUploadVideoAction) Decode ¶
func (s *SendMessageUploadVideoAction) Decode(b *bin.Buffer) error
Decode implements bin.Decoder.
func (*SendMessageUploadVideoAction) DecodeBare ¶
func (s *SendMessageUploadVideoAction) DecodeBare(b *bin.Buffer) error
DecodeBare implements bin.BareDecoder.
func (*SendMessageUploadVideoAction) Encode ¶
func (s *SendMessageUploadVideoAction) Encode(b *bin.Buffer) error
Encode implements bin.Encoder.
func (*SendMessageUploadVideoAction) EncodeBare ¶
func (s *SendMessageUploadVideoAction) EncodeBare(b *bin.Buffer) error
EncodeBare implements bin.BareEncoder.
func (*SendMessageUploadVideoAction) String ¶
func (s *SendMessageUploadVideoAction) String() string
String implements fmt.Stringer.
func (*SendMessageUploadVideoAction) TypeID ¶
func (*SendMessageUploadVideoAction) TypeID() uint32
TypeID returns type id in TL schema.
func (*SendMessageUploadVideoAction) TypeInfo ¶
func (s *SendMessageUploadVideoAction) TypeInfo() tdp.Type
TypeInfo returns info about TL type.
func (*SendMessageUploadVideoAction) TypeName ¶
func (*SendMessageUploadVideoAction) TypeName() string
TypeName returns name of type in TL schema.
func (*SendMessageUploadVideoAction) Zero ¶
func (s *SendMessageUploadVideoAction) Zero() bool
type String ¶
type String struct { }
String represents TL type `string#b5286e24`.
See https://core.telegram.org/constructor/string for reference.
func (*String) DecodeBare ¶
DecodeBare implements bin.BareDecoder.
func (*String) EncodeBare ¶
EncodeBare implements bin.BareEncoder.
type TestDummyFunctionRequest ¶
type TestDummyFunctionRequest struct { }
TestDummyFunctionRequest represents TL type `test.dummyFunction#c8357709`.
See https://core.telegram.org/method/test.dummyFunction for reference.
func (*TestDummyFunctionRequest) Decode ¶
func (d *TestDummyFunctionRequest) Decode(b *bin.Buffer) error
Decode implements bin.Decoder.
func (*TestDummyFunctionRequest) DecodeBare ¶
func (d *TestDummyFunctionRequest) DecodeBare(b *bin.Buffer) error
DecodeBare implements bin.BareDecoder.
func (*TestDummyFunctionRequest) Encode ¶
func (d *TestDummyFunctionRequest) Encode(b *bin.Buffer) error
Encode implements bin.Encoder.
func (*TestDummyFunctionRequest) EncodeBare ¶
func (d *TestDummyFunctionRequest) EncodeBare(b *bin.Buffer) error
EncodeBare implements bin.BareEncoder.
func (*TestDummyFunctionRequest) String ¶
func (d *TestDummyFunctionRequest) String() string
String implements fmt.Stringer.
func (*TestDummyFunctionRequest) TypeID ¶
func (*TestDummyFunctionRequest) TypeID() uint32
TypeID returns type id in TL schema.
func (*TestDummyFunctionRequest) TypeInfo ¶
func (d *TestDummyFunctionRequest) TypeInfo() tdp.Type
TypeInfo returns info about TL type.
func (*TestDummyFunctionRequest) TypeName ¶
func (*TestDummyFunctionRequest) TypeName() string
TypeName returns name of type in TL schema.
func (*TestDummyFunctionRequest) Zero ¶
func (d *TestDummyFunctionRequest) Zero() bool
type True ¶
type True struct { }
True represents TL type `true#3fedd339`. See predefined identifiers¹.
Links:
See https://core.telegram.org/constructor/true for reference.
func (*True) DecodeBare ¶
DecodeBare implements bin.BareDecoder.
func (*True) EncodeBare ¶
EncodeBare implements bin.BareEncoder.
Source Files ¶
- e2e.go
- tl_bool_gen.go
- tl_bytes_gen.go
- tl_client_gen.go
- tl_decrypted_message_action_gen.go
- tl_decrypted_message_gen.go
- tl_decrypted_message_layer_gen.go
- tl_decrypted_message_media_gen.go
- tl_document_attribute_gen.go
- tl_double_gen.go
- tl_file_location_gen.go
- tl_input_sticker_set_gen.go
- tl_int_gen.go
- tl_long_gen.go
- tl_message_entity_gen.go
- tl_photo_size_gen.go
- tl_registry_gen.go
- tl_send_message_action_gen.go
- tl_string_gen.go
- tl_test_dummy_function_gen.go
- tl_true_gen.go