e2e

package
v0.50.0 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package e2e implements MTProto encoding and decoding.

Index

Constants

View Source
const BoolFalseTypeID = 0xbc799737

BoolFalseTypeID is TL type id of BoolFalse.

View Source
const BoolTrueTypeID = 0x997275b5

BoolTrueTypeID is TL type id of BoolTrue.

View Source
const BytesTypeID = 0xe937bb82

BytesTypeID is TL type id of Bytes.

View Source
const DecryptedMessage23TypeID = 0x204d3878

DecryptedMessage23TypeID is TL type id of DecryptedMessage23.

View Source
const DecryptedMessage46TypeID = 0x36b091de

DecryptedMessage46TypeID is TL type id of DecryptedMessage46.

View Source
const DecryptedMessage8TypeID = 0x1f814f1f

DecryptedMessage8TypeID is TL type id of DecryptedMessage8.

View Source
const DecryptedMessageActionAbortKeyTypeID = 0xdd05ec6b

DecryptedMessageActionAbortKeyTypeID is TL type id of DecryptedMessageActionAbortKey.

View Source
const DecryptedMessageActionAcceptKeyTypeID = 0x6fe1735b

DecryptedMessageActionAcceptKeyTypeID is TL type id of DecryptedMessageActionAcceptKey.

View Source
const DecryptedMessageActionCommitKeyTypeID = 0xec2e0b9b

DecryptedMessageActionCommitKeyTypeID is TL type id of DecryptedMessageActionCommitKey.

View Source
const DecryptedMessageActionDeleteMessagesTypeID = 0x65614304

DecryptedMessageActionDeleteMessagesTypeID is TL type id of DecryptedMessageActionDeleteMessages.

View Source
const DecryptedMessageActionFlushHistoryTypeID = 0x6719e45c

DecryptedMessageActionFlushHistoryTypeID is TL type id of DecryptedMessageActionFlushHistory.

View Source
const DecryptedMessageActionNoopTypeID = 0xa82fdd63

DecryptedMessageActionNoopTypeID is TL type id of DecryptedMessageActionNoop.

View Source
const DecryptedMessageActionNotifyLayerTypeID = 0xf3048883

DecryptedMessageActionNotifyLayerTypeID is TL type id of DecryptedMessageActionNotifyLayer.

View Source
const DecryptedMessageActionReadMessagesTypeID = 0xc4f40be

DecryptedMessageActionReadMessagesTypeID is TL type id of DecryptedMessageActionReadMessages.

View Source
const DecryptedMessageActionRequestKeyTypeID = 0xf3c9611b

DecryptedMessageActionRequestKeyTypeID is TL type id of DecryptedMessageActionRequestKey.

View Source
const DecryptedMessageActionResendTypeID = 0x511110b0

DecryptedMessageActionResendTypeID is TL type id of DecryptedMessageActionResend.

View Source
const DecryptedMessageActionScreenshotMessagesTypeID = 0x8ac1f475

DecryptedMessageActionScreenshotMessagesTypeID is TL type id of DecryptedMessageActionScreenshotMessages.

View Source
const DecryptedMessageActionSetMessageTTLTypeID = 0xa1733aec

DecryptedMessageActionSetMessageTTLTypeID is TL type id of DecryptedMessageActionSetMessageTTL.

View Source
const DecryptedMessageActionTypingTypeID = 0xccb27641

DecryptedMessageActionTypingTypeID is TL type id of DecryptedMessageActionTyping.

View Source
const DecryptedMessageLayerTypeID = 0x1be31789

DecryptedMessageLayerTypeID is TL type id of DecryptedMessageLayer.

View Source
const DecryptedMessageMediaAudio8TypeID = 0x6080758f

DecryptedMessageMediaAudio8TypeID is TL type id of DecryptedMessageMediaAudio8.

View Source
const DecryptedMessageMediaAudioTypeID = 0x57e0a9cb

DecryptedMessageMediaAudioTypeID is TL type id of DecryptedMessageMediaAudio.

View Source
const DecryptedMessageMediaContactTypeID = 0x588a0a97

DecryptedMessageMediaContactTypeID is TL type id of DecryptedMessageMediaContact.

View Source
const DecryptedMessageMediaDocument23TypeID = 0xb095434b

DecryptedMessageMediaDocument23TypeID is TL type id of DecryptedMessageMediaDocument23.

View Source
const DecryptedMessageMediaDocumentTypeID = 0x7afe8ae2

DecryptedMessageMediaDocumentTypeID is TL type id of DecryptedMessageMediaDocument.

View Source
const DecryptedMessageMediaEmptyTypeID = 0x89f5c4a

DecryptedMessageMediaEmptyTypeID is TL type id of DecryptedMessageMediaEmpty.

View Source
const DecryptedMessageMediaExternalDocumentTypeID = 0xfa95b0dd

DecryptedMessageMediaExternalDocumentTypeID is TL type id of DecryptedMessageMediaExternalDocument.

View Source
const DecryptedMessageMediaGeoPointTypeID = 0x35480a59

DecryptedMessageMediaGeoPointTypeID is TL type id of DecryptedMessageMediaGeoPoint.

View Source
const DecryptedMessageMediaPhoto23TypeID = 0x32798a8c

DecryptedMessageMediaPhoto23TypeID is TL type id of DecryptedMessageMediaPhoto23.

View Source
const DecryptedMessageMediaPhotoTypeID = 0xf1fa8d78

DecryptedMessageMediaPhotoTypeID is TL type id of DecryptedMessageMediaPhoto.

View Source
const DecryptedMessageMediaVenueTypeID = 0x8a0df56f

DecryptedMessageMediaVenueTypeID is TL type id of DecryptedMessageMediaVenue.

View Source
const DecryptedMessageMediaVideo23TypeID = 0x524a415d

DecryptedMessageMediaVideo23TypeID is TL type id of DecryptedMessageMediaVideo23.

View Source
const DecryptedMessageMediaVideo8TypeID = 0x4cee6ef3

DecryptedMessageMediaVideo8TypeID is TL type id of DecryptedMessageMediaVideo8.

View Source
const DecryptedMessageMediaVideoTypeID = 0x970c8c0e

DecryptedMessageMediaVideoTypeID is TL type id of DecryptedMessageMediaVideo.

View Source
const DecryptedMessageMediaWebPageTypeID = 0xe50511d8

DecryptedMessageMediaWebPageTypeID is TL type id of DecryptedMessageMediaWebPage.

View Source
const DecryptedMessageService8TypeID = 0xaa48327d

DecryptedMessageService8TypeID is TL type id of DecryptedMessageService8.

View Source
const DecryptedMessageServiceTypeID = 0x73164160

DecryptedMessageServiceTypeID is TL type id of DecryptedMessageService.

View Source
const DecryptedMessageTypeID = 0x91cc4674

DecryptedMessageTypeID is TL type id of DecryptedMessage.

View Source
const DocumentAttributeAnimatedTypeID = 0x11b58939

DocumentAttributeAnimatedTypeID is TL type id of DocumentAttributeAnimated.

View Source
const DocumentAttributeAudio23TypeID = 0x51448e5

DocumentAttributeAudio23TypeID is TL type id of DocumentAttributeAudio23.

View Source
const DocumentAttributeAudio45TypeID = 0xded218e0

DocumentAttributeAudio45TypeID is TL type id of DocumentAttributeAudio45.

View Source
const DocumentAttributeAudioTypeID = 0x9852f9c6

DocumentAttributeAudioTypeID is TL type id of DocumentAttributeAudio.

View Source
const DocumentAttributeFilenameTypeID = 0x15590068

DocumentAttributeFilenameTypeID is TL type id of DocumentAttributeFilename.

View Source
const DocumentAttributeImageSizeTypeID = 0x6c37c15c

DocumentAttributeImageSizeTypeID is TL type id of DocumentAttributeImageSize.

View Source
const DocumentAttributeSticker23TypeID = 0xfb0a5727

DocumentAttributeSticker23TypeID is TL type id of DocumentAttributeSticker23.

View Source
const DocumentAttributeStickerTypeID = 0x3a556302

DocumentAttributeStickerTypeID is TL type id of DocumentAttributeSticker.

View Source
const DocumentAttributeVideo66TypeID = 0xef02ce6

DocumentAttributeVideo66TypeID is TL type id of DocumentAttributeVideo66.

View Source
const DocumentAttributeVideoTypeID = 0x5910cccb

DocumentAttributeVideoTypeID is TL type id of DocumentAttributeVideo.

View Source
const DoubleTypeID = 0x2210c154

DoubleTypeID is TL type id of Double.

View Source
const FileLocationTypeID = 0x53d69076

FileLocationTypeID is TL type id of FileLocation.

View Source
const FileLocationUnavailableTypeID = 0x7c596b46

FileLocationUnavailableTypeID is TL type id of FileLocationUnavailable.

View Source
const InputStickerSetEmptyTypeID = 0xffb62b95

InputStickerSetEmptyTypeID is TL type id of InputStickerSetEmpty.

View Source
const InputStickerSetShortNameTypeID = 0x861cc8a0

InputStickerSetShortNameTypeID is TL type id of InputStickerSetShortName.

View Source
const IntTypeID = 0xa8509bda

IntTypeID is TL type id of Int.

View Source
const LongTypeID = 0x22076cba

LongTypeID is TL type id of Long.

View Source
const MessageEntityBankCardTypeID = 0x761e6af4

MessageEntityBankCardTypeID is TL type id of MessageEntityBankCard.

View Source
const MessageEntityBlockquoteTypeID = 0x20df5d0

MessageEntityBlockquoteTypeID is TL type id of MessageEntityBlockquote.

View Source
const MessageEntityBoldTypeID = 0xbd610bc9

MessageEntityBoldTypeID is TL type id of MessageEntityBold.

View Source
const MessageEntityBotCommandTypeID = 0x6cef8ac7

MessageEntityBotCommandTypeID is TL type id of MessageEntityBotCommand.

View Source
const MessageEntityCashtagTypeID = 0x4c4e743f

MessageEntityCashtagTypeID is TL type id of MessageEntityCashtag.

View Source
const MessageEntityCodeTypeID = 0x28a20571

MessageEntityCodeTypeID is TL type id of MessageEntityCode.

View Source
const MessageEntityEmailTypeID = 0x64e475c2

MessageEntityEmailTypeID is TL type id of MessageEntityEmail.

View Source
const MessageEntityHashtagTypeID = 0x6f635b0d

MessageEntityHashtagTypeID is TL type id of MessageEntityHashtag.

View Source
const MessageEntityItalicTypeID = 0x826f8b60

MessageEntityItalicTypeID is TL type id of MessageEntityItalic.

View Source
const MessageEntityMentionNameTypeID = 0x352dca58

MessageEntityMentionNameTypeID is TL type id of MessageEntityMentionName.

View Source
const MessageEntityMentionTypeID = 0xfa04579d

MessageEntityMentionTypeID is TL type id of MessageEntityMention.

View Source
const MessageEntityPhoneTypeID = 0x9b69e34b

MessageEntityPhoneTypeID is TL type id of MessageEntityPhone.

View Source
const MessageEntityPreTypeID = 0x73924be0

MessageEntityPreTypeID is TL type id of MessageEntityPre.

View Source
const MessageEntityStrikeTypeID = 0xbf0693d4

MessageEntityStrikeTypeID is TL type id of MessageEntityStrike.

View Source
const MessageEntityTextURLTypeID = 0x76a6d327

MessageEntityTextURLTypeID is TL type id of MessageEntityTextURL.

View Source
const MessageEntityURLTypeID = 0x6ed02538

MessageEntityURLTypeID is TL type id of MessageEntityURL.

View Source
const MessageEntityUnderlineTypeID = 0x9c4e7e8b

MessageEntityUnderlineTypeID is TL type id of MessageEntityUnderline.

View Source
const MessageEntityUnknownTypeID = 0xbb92ba95

MessageEntityUnknownTypeID is TL type id of MessageEntityUnknown.

View Source
const PhotoCachedSizeTypeID = 0xe9a734fa

PhotoCachedSizeTypeID is TL type id of PhotoCachedSize.

View Source
const PhotoSizeEmptyTypeID = 0xe17e23c

PhotoSizeEmptyTypeID is TL type id of PhotoSizeEmpty.

View Source
const PhotoSizeTypeID = 0x77bfb61b

PhotoSizeTypeID is TL type id of PhotoSize.

View Source
const SendMessageCancelActionTypeID = 0xfd5ec8f5

SendMessageCancelActionTypeID is TL type id of SendMessageCancelAction.

View Source
const SendMessageChooseContactActionTypeID = 0x628cbc6f

SendMessageChooseContactActionTypeID is TL type id of SendMessageChooseContactAction.

View Source
const SendMessageGeoLocationActionTypeID = 0x176f8ba1

SendMessageGeoLocationActionTypeID is TL type id of SendMessageGeoLocationAction.

View Source
const SendMessageRecordAudioActionTypeID = 0xd52f73f7

SendMessageRecordAudioActionTypeID is TL type id of SendMessageRecordAudioAction.

View Source
const SendMessageRecordRoundActionTypeID = 0x88f27fbc

SendMessageRecordRoundActionTypeID is TL type id of SendMessageRecordRoundAction.

View Source
const SendMessageRecordVideoActionTypeID = 0xa187d66f

SendMessageRecordVideoActionTypeID is TL type id of SendMessageRecordVideoAction.

View Source
const SendMessageTypingActionTypeID = 0x16bf744e

SendMessageTypingActionTypeID is TL type id of SendMessageTypingAction.

View Source
const SendMessageUploadAudioActionTypeID = 0xe6ac8a6f

SendMessageUploadAudioActionTypeID is TL type id of SendMessageUploadAudioAction.

View Source
const SendMessageUploadDocumentActionTypeID = 0x8faee98e

SendMessageUploadDocumentActionTypeID is TL type id of SendMessageUploadDocumentAction.

View Source
const SendMessageUploadPhotoActionTypeID = 0x990a3c1a

SendMessageUploadPhotoActionTypeID is TL type id of SendMessageUploadPhotoAction.

View Source
const SendMessageUploadRoundActionTypeID = 0xbb718624

SendMessageUploadRoundActionTypeID is TL type id of SendMessageUploadRoundAction.

View Source
const SendMessageUploadVideoActionTypeID = 0x92042ff7

SendMessageUploadVideoActionTypeID is TL type id of SendMessageUploadVideoAction.

View Source
const StringTypeID = 0xb5286e24

StringTypeID is TL type id of String.

View Source
const TestDummyFunctionRequestTypeID = 0xc8357709

TestDummyFunctionRequestTypeID is TL type id of TestDummyFunctionRequest.

View Source
const TrueTypeID = 0x3fedd339

TrueTypeID is TL type id of True.

Variables

This section is empty.

Functions

func NamesMap added in v0.25.0

func NamesMap() map[string]uint32

NamesMap returns mapping from type names to TL type ids.

func TypesConstructorMap

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

TypesConstructorMap maps type ids to constructors.

func TypesMap

func TypesMap() map[uint32]string

TypesMap returns mapping from type ids to TL type names.

Types

type BoolBox

type BoolBox struct {
	Bool BoolClass
}

Bool boxes the BoolClass providing a helper.

func (*BoolBox) Decode

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

Decode implements bin.Decoder for BoolBox.

func (*BoolBox) Encode

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

Encode implements bin.Encode for BoolBox.

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

func DecodeBool

func DecodeBool(buf *bin.Buffer) (BoolClass, error)

DecodeBool implements binary de-serialization for BoolClass.

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

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

Decode implements bin.Decoder.

func (*BoolFalse) DecodeBare added in v0.30.0

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

DecodeBare implements bin.BareDecoder.

func (*BoolFalse) Encode

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

Encode implements bin.Encoder.

func (*BoolFalse) EncodeBare added in v0.30.0

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

EncodeBare implements bin.BareEncoder.

func (*BoolFalse) String

func (b *BoolFalse) String() string

String implements fmt.Stringer.

func (*BoolFalse) TypeID

func (*BoolFalse) TypeID() uint32

TypeID returns type id in TL schema.

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

func (*BoolFalse) TypeInfo added in v0.25.0

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

TypeInfo returns info about TL type.

func (*BoolFalse) TypeName added in v0.25.0

func (*BoolFalse) TypeName() string

TypeName returns name of type in TL schema.

func (*BoolFalse) Zero

func (b *BoolFalse) Zero() bool

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

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

Decode implements bin.Decoder.

func (*BoolTrue) DecodeBare added in v0.30.0

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

DecodeBare implements bin.BareDecoder.

func (*BoolTrue) Encode

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

Encode implements bin.Encoder.

func (*BoolTrue) EncodeBare added in v0.30.0

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

EncodeBare implements bin.BareEncoder.

func (*BoolTrue) String

func (b *BoolTrue) String() string

String implements fmt.Stringer.

func (*BoolTrue) TypeID

func (*BoolTrue) TypeID() uint32

TypeID returns type id in TL schema.

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

func (*BoolTrue) TypeInfo added in v0.25.0

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

TypeInfo returns info about TL type.

func (*BoolTrue) TypeName added in v0.25.0

func (*BoolTrue) TypeName() string

TypeName returns name of type in TL schema.

func (*BoolTrue) Zero

func (b *BoolTrue) Zero() bool

type Bytes

type Bytes struct {
}

Bytes represents TL type `bytes#e937bb82`.

See https://core.telegram.org/constructor/bytes for reference.

func (*Bytes) Decode

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

Decode implements bin.Decoder.

func (*Bytes) DecodeBare added in v0.30.0

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

DecodeBare implements bin.BareDecoder.

func (*Bytes) Encode

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

Encode implements bin.Encoder.

func (*Bytes) EncodeBare added in v0.30.0

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

EncodeBare implements bin.BareEncoder.

func (*Bytes) String

func (b *Bytes) String() string

String implements fmt.Stringer.

func (*Bytes) TypeID

func (*Bytes) TypeID() uint32

TypeID returns type id in TL schema.

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

func (*Bytes) TypeInfo added in v0.25.0

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

TypeInfo returns info about TL type.

func (*Bytes) TypeName added in v0.25.0

func (*Bytes) TypeName() string

TypeName returns name of type in TL schema.

func (*Bytes) Zero

func (b *Bytes) Zero() bool

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client implement methods for calling functions from TL schema via Invoker.

func NewClient

func NewClient(invoker Invoker) *Client

NewClient creates new Client.

func (*Client) Invoker added in v0.50.0

func (c *Client) Invoker() Invoker

Invoker returns Invoker used by this client.

func (*Client) TestDummyFunction

func (c *Client) TestDummyFunction(ctx context.Context) (bool, error)

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 added in v0.30.0

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 added in v0.30.0

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

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

func (*DecryptedMessage) TypeInfo added in v0.25.0

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

TypeInfo returns info about TL type.

func (*DecryptedMessage) TypeName added in v0.25.0

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 added in v0.30.0

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 added in v0.30.0

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.

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

func (*DecryptedMessage23) TypeInfo added in v0.25.0

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

TypeInfo returns info about TL type.

func (*DecryptedMessage23) TypeName added in v0.25.0

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 added in v0.30.0

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 added in v0.30.0

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

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.

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

func (*DecryptedMessage46) TypeInfo added in v0.25.0

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

TypeInfo returns info about TL type.

func (*DecryptedMessage46) TypeName added in v0.25.0

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 added in v0.30.0

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 added in v0.30.0

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.

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

func (*DecryptedMessage8) TypeInfo added in v0.25.0

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

TypeInfo returns info about TL type.

func (*DecryptedMessage8) TypeName added in v0.25.0

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

Decode implements bin.Decoder.

func (*DecryptedMessageActionAbortKey) DecodeBare added in v0.30.0

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

DecodeBare implements bin.BareDecoder.

func (*DecryptedMessageActionAbortKey) Encode

Encode implements bin.Encoder.

func (*DecryptedMessageActionAbortKey) EncodeBare added in v0.30.0

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

String implements fmt.Stringer.

func (*DecryptedMessageActionAbortKey) TypeID

TypeID returns type id in TL schema.

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

func (*DecryptedMessageActionAbortKey) TypeInfo added in v0.25.0

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

TypeInfo returns info about TL type.

func (*DecryptedMessageActionAbortKey) TypeName added in v0.25.0

TypeName returns name of type in TL schema.

func (*DecryptedMessageActionAbortKey) Zero

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

Decode implements bin.Decoder.

func (*DecryptedMessageActionAcceptKey) DecodeBare added in v0.30.0

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

DecodeBare implements bin.BareDecoder.

func (*DecryptedMessageActionAcceptKey) Encode

Encode implements bin.Encoder.

func (*DecryptedMessageActionAcceptKey) EncodeBare added in v0.30.0

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

String implements fmt.Stringer.

func (*DecryptedMessageActionAcceptKey) TypeID

TypeID returns type id in TL schema.

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

func (*DecryptedMessageActionAcceptKey) TypeInfo added in v0.25.0

TypeInfo returns info about TL type.

func (*DecryptedMessageActionAcceptKey) TypeName added in v0.25.0

TypeName returns name of type in TL schema.

func (*DecryptedMessageActionAcceptKey) Zero

type DecryptedMessageActionBox

type DecryptedMessageActionBox struct {
	DecryptedMessageAction DecryptedMessageActionClass
}

DecryptedMessageAction boxes the DecryptedMessageActionClass providing a helper.

func (*DecryptedMessageActionBox) Decode

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

Decode implements bin.Decoder for DecryptedMessageActionBox.

func (*DecryptedMessageActionBox) Encode

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

Encode implements bin.Encode for DecryptedMessageActionBox.

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

Decode implements bin.Decoder.

func (*DecryptedMessageActionCommitKey) DecodeBare added in v0.30.0

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

DecodeBare implements bin.BareDecoder.

func (*DecryptedMessageActionCommitKey) Encode

Encode implements bin.Encoder.

func (*DecryptedMessageActionCommitKey) EncodeBare added in v0.30.0

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

String implements fmt.Stringer.

func (*DecryptedMessageActionCommitKey) TypeID

TypeID returns type id in TL schema.

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

func (*DecryptedMessageActionCommitKey) TypeInfo added in v0.25.0

TypeInfo returns info about TL type.

func (*DecryptedMessageActionCommitKey) TypeName added in v0.25.0

TypeName returns name of type in TL schema.

func (*DecryptedMessageActionCommitKey) Zero

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

Decode implements bin.Decoder.

func (*DecryptedMessageActionDeleteMessages) DecodeBare added in v0.30.0

DecodeBare implements bin.BareDecoder.

func (*DecryptedMessageActionDeleteMessages) Encode

Encode implements bin.Encoder.

func (*DecryptedMessageActionDeleteMessages) EncodeBare added in v0.30.0

EncodeBare implements bin.BareEncoder.

func (*DecryptedMessageActionDeleteMessages) GetRandomIDs added in v0.26.0

func (d *DecryptedMessageActionDeleteMessages) GetRandomIDs() (value []int64)

GetRandomIDs returns value of RandomIDs field.

func (*DecryptedMessageActionDeleteMessages) String

String implements fmt.Stringer.

func (*DecryptedMessageActionDeleteMessages) TypeID

TypeID returns type id in TL schema.

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

func (*DecryptedMessageActionDeleteMessages) TypeInfo added in v0.25.0

TypeInfo returns info about TL type.

func (*DecryptedMessageActionDeleteMessages) TypeName added in v0.25.0

TypeName returns name of type in TL schema.

func (*DecryptedMessageActionDeleteMessages) Zero

type DecryptedMessageActionFlushHistory

type DecryptedMessageActionFlushHistory struct {
}

DecryptedMessageActionFlushHistory represents TL type `decryptedMessageActionFlushHistory#6719e45c`.

See https://core.telegram.org/constructor/decryptedMessageActionFlushHistory for reference.

func (*DecryptedMessageActionFlushHistory) Decode

Decode implements bin.Decoder.

func (*DecryptedMessageActionFlushHistory) DecodeBare added in v0.30.0

DecodeBare implements bin.BareDecoder.

func (*DecryptedMessageActionFlushHistory) Encode

Encode implements bin.Encoder.

func (*DecryptedMessageActionFlushHistory) EncodeBare added in v0.30.0

EncodeBare implements bin.BareEncoder.

func (*DecryptedMessageActionFlushHistory) String

String implements fmt.Stringer.

func (*DecryptedMessageActionFlushHistory) TypeID

TypeID returns type id in TL schema.

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

func (*DecryptedMessageActionFlushHistory) TypeInfo added in v0.25.0

TypeInfo returns info about TL type.

func (*DecryptedMessageActionFlushHistory) TypeName added in v0.25.0

TypeName returns name of type in TL schema.

func (*DecryptedMessageActionFlushHistory) Zero

type DecryptedMessageActionNoop

type DecryptedMessageActionNoop struct {
}

DecryptedMessageActionNoop represents TL type `decryptedMessageActionNoop#a82fdd63`.

See https://core.telegram.org/constructor/decryptedMessageActionNoop for reference.

func (*DecryptedMessageActionNoop) Decode

Decode implements bin.Decoder.

func (*DecryptedMessageActionNoop) DecodeBare added in v0.30.0

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

DecodeBare implements bin.BareDecoder.

func (*DecryptedMessageActionNoop) Encode

Encode implements bin.Encoder.

func (*DecryptedMessageActionNoop) EncodeBare added in v0.30.0

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

TypeID returns type id in TL schema.

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

func (*DecryptedMessageActionNoop) TypeInfo added in v0.25.0

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

TypeInfo returns info about TL type.

func (*DecryptedMessageActionNoop) TypeName added in v0.25.0

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

Decode implements bin.Decoder.

func (*DecryptedMessageActionNotifyLayer) DecodeBare added in v0.30.0

DecodeBare implements bin.BareDecoder.

func (*DecryptedMessageActionNotifyLayer) Encode

Encode implements bin.Encoder.

func (*DecryptedMessageActionNotifyLayer) EncodeBare added in v0.30.0

EncodeBare implements bin.BareEncoder.

func (*DecryptedMessageActionNotifyLayer) GetLayer

func (d *DecryptedMessageActionNotifyLayer) GetLayer() (value int)

GetLayer returns value of Layer field.

func (*DecryptedMessageActionNotifyLayer) String

String implements fmt.Stringer.

func (*DecryptedMessageActionNotifyLayer) TypeID

TypeID returns type id in TL schema.

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

func (*DecryptedMessageActionNotifyLayer) TypeInfo added in v0.25.0

TypeInfo returns info about TL type.

func (*DecryptedMessageActionNotifyLayer) TypeName added in v0.25.0

TypeName returns name of type in TL schema.

func (*DecryptedMessageActionNotifyLayer) Zero

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

Decode implements bin.Decoder.

func (*DecryptedMessageActionReadMessages) DecodeBare added in v0.30.0

DecodeBare implements bin.BareDecoder.

func (*DecryptedMessageActionReadMessages) Encode

Encode implements bin.Encoder.

func (*DecryptedMessageActionReadMessages) EncodeBare added in v0.30.0

EncodeBare implements bin.BareEncoder.

func (*DecryptedMessageActionReadMessages) GetRandomIDs added in v0.26.0

func (d *DecryptedMessageActionReadMessages) GetRandomIDs() (value []int64)

GetRandomIDs returns value of RandomIDs field.

func (*DecryptedMessageActionReadMessages) String

String implements fmt.Stringer.

func (*DecryptedMessageActionReadMessages) TypeID

TypeID returns type id in TL schema.

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

func (*DecryptedMessageActionReadMessages) TypeInfo added in v0.25.0

TypeInfo returns info about TL type.

func (*DecryptedMessageActionReadMessages) TypeName added in v0.25.0

TypeName returns name of type in TL schema.

func (*DecryptedMessageActionReadMessages) Zero

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

Decode implements bin.Decoder.

func (*DecryptedMessageActionRequestKey) DecodeBare added in v0.30.0

DecodeBare implements bin.BareDecoder.

func (*DecryptedMessageActionRequestKey) Encode

Encode implements bin.Encoder.

func (*DecryptedMessageActionRequestKey) EncodeBare added in v0.30.0

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

String implements fmt.Stringer.

func (*DecryptedMessageActionRequestKey) TypeID

TypeID returns type id in TL schema.

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

func (*DecryptedMessageActionRequestKey) TypeInfo added in v0.25.0

TypeInfo returns info about TL type.

func (*DecryptedMessageActionRequestKey) TypeName added in v0.25.0

TypeName returns name of type in TL schema.

func (*DecryptedMessageActionRequestKey) Zero

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

Decode implements bin.Decoder.

func (*DecryptedMessageActionResend) DecodeBare added in v0.30.0

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

DecodeBare implements bin.BareDecoder.

func (*DecryptedMessageActionResend) Encode

Encode implements bin.Encoder.

func (*DecryptedMessageActionResend) EncodeBare added in v0.30.0

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

String implements fmt.Stringer.

func (*DecryptedMessageActionResend) TypeID

TypeID returns type id in TL schema.

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

func (*DecryptedMessageActionResend) TypeInfo added in v0.25.0

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

TypeInfo returns info about TL type.

func (*DecryptedMessageActionResend) TypeName added in v0.25.0

TypeName returns name of type in TL schema.

func (*DecryptedMessageActionResend) Zero

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

Decode implements bin.Decoder.

func (*DecryptedMessageActionScreenshotMessages) DecodeBare added in v0.30.0

DecodeBare implements bin.BareDecoder.

func (*DecryptedMessageActionScreenshotMessages) Encode

Encode implements bin.Encoder.

func (*DecryptedMessageActionScreenshotMessages) EncodeBare added in v0.30.0

EncodeBare implements bin.BareEncoder.

func (*DecryptedMessageActionScreenshotMessages) GetRandomIDs added in v0.26.0

func (d *DecryptedMessageActionScreenshotMessages) GetRandomIDs() (value []int64)

GetRandomIDs returns value of RandomIDs field.

func (*DecryptedMessageActionScreenshotMessages) String

String implements fmt.Stringer.

func (*DecryptedMessageActionScreenshotMessages) TypeID

TypeID returns type id in TL schema.

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

func (*DecryptedMessageActionScreenshotMessages) TypeInfo added in v0.25.0

TypeInfo returns info about TL type.

func (*DecryptedMessageActionScreenshotMessages) TypeName added in v0.25.0

TypeName returns name of type in TL schema.

func (*DecryptedMessageActionScreenshotMessages) Zero

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

Decode implements bin.Decoder.

func (*DecryptedMessageActionSetMessageTTL) DecodeBare added in v0.30.0

DecodeBare implements bin.BareDecoder.

func (*DecryptedMessageActionSetMessageTTL) Encode

Encode implements bin.Encoder.

func (*DecryptedMessageActionSetMessageTTL) EncodeBare added in v0.30.0

EncodeBare implements bin.BareEncoder.

func (*DecryptedMessageActionSetMessageTTL) GetTTLSeconds

func (d *DecryptedMessageActionSetMessageTTL) GetTTLSeconds() (value int)

GetTTLSeconds returns value of TTLSeconds field.

func (*DecryptedMessageActionSetMessageTTL) String

String implements fmt.Stringer.

func (*DecryptedMessageActionSetMessageTTL) TypeID

TypeID returns type id in TL schema.

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

func (*DecryptedMessageActionSetMessageTTL) TypeInfo added in v0.25.0

TypeInfo returns info about TL type.

func (*DecryptedMessageActionSetMessageTTL) TypeName added in v0.25.0

TypeName returns name of type in TL schema.

func (*DecryptedMessageActionSetMessageTTL) Zero

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

Decode implements bin.Decoder.

func (*DecryptedMessageActionTyping) DecodeBare added in v0.30.0

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

DecodeBare implements bin.BareDecoder.

func (*DecryptedMessageActionTyping) Encode

Encode implements bin.Encoder.

func (*DecryptedMessageActionTyping) EncodeBare added in v0.30.0

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

EncodeBare implements bin.BareEncoder.

func (*DecryptedMessageActionTyping) GetAction

GetAction returns value of Action field.

func (*DecryptedMessageActionTyping) String

String implements fmt.Stringer.

func (*DecryptedMessageActionTyping) TypeID

TypeID returns type id in TL schema.

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

func (*DecryptedMessageActionTyping) TypeInfo added in v0.25.0

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

TypeInfo returns info about TL type.

func (*DecryptedMessageActionTyping) TypeName added in v0.25.0

TypeName returns name of type in TL schema.

func (*DecryptedMessageActionTyping) Zero

type DecryptedMessageBox

type DecryptedMessageBox struct {
	DecryptedMessage DecryptedMessageClass
}

DecryptedMessage boxes the DecryptedMessageClass providing a helper.

func (*DecryptedMessageBox) Decode

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

Decode implements bin.Decoder for DecryptedMessageBox.

func (*DecryptedMessageBox) Encode

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

Encode implements bin.Encode for DecryptedMessageBox.

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 added in v0.30.0

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 added in v0.30.0

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.

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

func (*DecryptedMessageLayer) TypeInfo added in v0.25.0

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

TypeInfo returns info about TL type.

func (*DecryptedMessageLayer) TypeName added in v0.25.0

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

Decode implements bin.Decoder.

func (*DecryptedMessageMediaAudio) DecodeBare added in v0.30.0

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

DecodeBare implements bin.BareDecoder.

func (*DecryptedMessageMediaAudio) Encode

Encode implements bin.Encoder.

func (*DecryptedMessageMediaAudio) EncodeBare added in v0.30.0

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

TypeID returns type id in TL schema.

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

func (*DecryptedMessageMediaAudio) TypeInfo added in v0.25.0

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

TypeInfo returns info about TL type.

func (*DecryptedMessageMediaAudio) TypeName added in v0.25.0

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

Decode implements bin.Decoder.

func (*DecryptedMessageMediaAudio8) DecodeBare added in v0.30.0

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

DecodeBare implements bin.BareDecoder.

func (*DecryptedMessageMediaAudio8) Encode

Encode implements bin.Encoder.

func (*DecryptedMessageMediaAudio8) EncodeBare added in v0.30.0

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

TypeID returns type id in TL schema.

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

func (*DecryptedMessageMediaAudio8) TypeInfo added in v0.25.0

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

TypeInfo returns info about TL type.

func (*DecryptedMessageMediaAudio8) TypeName added in v0.25.0

func (*DecryptedMessageMediaAudio8) TypeName() string

TypeName returns name of type in TL schema.

func (*DecryptedMessageMediaAudio8) Zero

type DecryptedMessageMediaBox

type DecryptedMessageMediaBox struct {
	DecryptedMessageMedia DecryptedMessageMediaClass
}

DecryptedMessageMedia boxes the DecryptedMessageMediaClass providing a helper.

func (*DecryptedMessageMediaBox) Decode

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

Decode implements bin.Decoder for DecryptedMessageMediaBox.

func (*DecryptedMessageMediaBox) Encode

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

Encode implements bin.Encode for DecryptedMessageMediaBox.

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.DecryptedMessageMediaPhoto23: // decryptedMessageMediaPhoto23#32798a8c
case *e2e.DecryptedMessageMediaVideo8: // decryptedMessageMediaVideo8#4cee6ef3
case *e2e.DecryptedMessageMediaGeoPoint: // decryptedMessageMediaGeoPoint#35480a59
case *e2e.DecryptedMessageMediaContact: // decryptedMessageMediaContact#588a0a97
case *e2e.DecryptedMessageMediaDocument23: // decryptedMessageMediaDocument23#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.DecryptedMessageMediaDocument: // decryptedMessageMediaDocument#7afe8ae2
case *e2e.DecryptedMessageMediaVenue: // decryptedMessageMediaVenue#8a0df56f
case *e2e.DecryptedMessageMediaWebPage: // decryptedMessageMediaWebPage#e50511d8
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

Decode implements bin.Decoder.

func (*DecryptedMessageMediaContact) DecodeBare added in v0.30.0

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

DecodeBare implements bin.BareDecoder.

func (*DecryptedMessageMediaContact) Encode

Encode implements bin.Encoder.

func (*DecryptedMessageMediaContact) EncodeBare added in v0.30.0

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

String implements fmt.Stringer.

func (*DecryptedMessageMediaContact) TypeID

TypeID returns type id in TL schema.

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

func (*DecryptedMessageMediaContact) TypeInfo added in v0.25.0

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

TypeInfo returns info about TL type.

func (*DecryptedMessageMediaContact) TypeName added in v0.25.0

TypeName returns name of type in TL schema.

func (*DecryptedMessageMediaContact) Zero

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 int
	// 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#7afe8ae2`.

See https://core.telegram.org/constructor/decryptedMessageMediaDocument for reference.

func (*DecryptedMessageMediaDocument) Decode

Decode implements bin.Decoder.

func (*DecryptedMessageMediaDocument) DecodeBare added in v0.30.0

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

DecodeBare implements bin.BareDecoder.

func (*DecryptedMessageMediaDocument) Encode

Encode implements bin.Encoder.

func (*DecryptedMessageMediaDocument) EncodeBare added in v0.30.0

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

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

String implements fmt.Stringer.

func (*DecryptedMessageMediaDocument) TypeID

TypeID returns type id in TL schema.

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

func (*DecryptedMessageMediaDocument) TypeInfo added in v0.25.0

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

TypeInfo returns info about TL type.

func (*DecryptedMessageMediaDocument) TypeName added in v0.25.0

TypeName returns name of type in TL schema.

func (*DecryptedMessageMediaDocument) Zero

type DecryptedMessageMediaDocument23

type DecryptedMessageMediaDocument23 struct {
	// Thumb field of DecryptedMessageMediaDocument23.
	Thumb []byte
	// ThumbW field of DecryptedMessageMediaDocument23.
	ThumbW int
	// ThumbH field of DecryptedMessageMediaDocument23.
	ThumbH int
	// FileName field of DecryptedMessageMediaDocument23.
	FileName string
	// MimeType field of DecryptedMessageMediaDocument23.
	MimeType string
	// Size field of DecryptedMessageMediaDocument23.
	Size int
	// Key field of DecryptedMessageMediaDocument23.
	Key []byte
	// Iv field of DecryptedMessageMediaDocument23.
	Iv []byte
}

DecryptedMessageMediaDocument23 represents TL type `decryptedMessageMediaDocument23#b095434b`.

See https://core.telegram.org/constructor/decryptedMessageMediaDocument23 for reference.

func (*DecryptedMessageMediaDocument23) Decode

Decode implements bin.Decoder.

func (*DecryptedMessageMediaDocument23) DecodeBare added in v0.30.0

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

DecodeBare implements bin.BareDecoder.

func (*DecryptedMessageMediaDocument23) Encode

Encode implements bin.Encoder.

func (*DecryptedMessageMediaDocument23) EncodeBare added in v0.30.0

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

EncodeBare implements bin.BareEncoder.

func (*DecryptedMessageMediaDocument23) GetFileName

func (d *DecryptedMessageMediaDocument23) GetFileName() (value string)

GetFileName returns value of FileName field.

func (*DecryptedMessageMediaDocument23) GetIv

func (d *DecryptedMessageMediaDocument23) GetIv() (value []byte)

GetIv returns value of Iv field.

func (*DecryptedMessageMediaDocument23) GetKey

func (d *DecryptedMessageMediaDocument23) GetKey() (value []byte)

GetKey returns value of Key field.

func (*DecryptedMessageMediaDocument23) GetMimeType

func (d *DecryptedMessageMediaDocument23) GetMimeType() (value string)

GetMimeType returns value of MimeType field.

func (*DecryptedMessageMediaDocument23) GetSize

func (d *DecryptedMessageMediaDocument23) GetSize() (value int)

GetSize returns value of Size field.

func (*DecryptedMessageMediaDocument23) GetThumb

func (d *DecryptedMessageMediaDocument23) GetThumb() (value []byte)

GetThumb returns value of Thumb field.

func (*DecryptedMessageMediaDocument23) GetThumbH

func (d *DecryptedMessageMediaDocument23) GetThumbH() (value int)

GetThumbH returns value of ThumbH field.

func (*DecryptedMessageMediaDocument23) GetThumbW

func (d *DecryptedMessageMediaDocument23) GetThumbW() (value int)

GetThumbW returns value of ThumbW field.

func (*DecryptedMessageMediaDocument23) String

String implements fmt.Stringer.

func (*DecryptedMessageMediaDocument23) TypeID

TypeID returns type id in TL schema.

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

func (*DecryptedMessageMediaDocument23) TypeInfo added in v0.25.0

TypeInfo returns info about TL type.

func (*DecryptedMessageMediaDocument23) TypeName added in v0.25.0

TypeName returns name of type in TL schema.

func (*DecryptedMessageMediaDocument23) Zero

type DecryptedMessageMediaEmpty

type DecryptedMessageMediaEmpty struct {
}

DecryptedMessageMediaEmpty represents TL type `decryptedMessageMediaEmpty#89f5c4a`.

See https://core.telegram.org/constructor/decryptedMessageMediaEmpty for reference.

func (*DecryptedMessageMediaEmpty) Decode

Decode implements bin.Decoder.

func (*DecryptedMessageMediaEmpty) DecodeBare added in v0.30.0

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

DecodeBare implements bin.BareDecoder.

func (*DecryptedMessageMediaEmpty) Encode

Encode implements bin.Encoder.

func (*DecryptedMessageMediaEmpty) EncodeBare added in v0.30.0

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

TypeID returns type id in TL schema.

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

func (*DecryptedMessageMediaEmpty) TypeInfo added in v0.25.0

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

TypeInfo returns info about TL type.

func (*DecryptedMessageMediaEmpty) TypeName added in v0.25.0

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

Decode implements bin.Decoder.

func (*DecryptedMessageMediaExternalDocument) DecodeBare added in v0.30.0

DecodeBare implements bin.BareDecoder.

func (*DecryptedMessageMediaExternalDocument) Encode

Encode implements bin.Encoder.

func (*DecryptedMessageMediaExternalDocument) EncodeBare added in v0.30.0

EncodeBare implements bin.BareEncoder.

func (*DecryptedMessageMediaExternalDocument) GetAccessHash

func (d *DecryptedMessageMediaExternalDocument) GetAccessHash() (value int64)

GetAccessHash returns value of AccessHash field.

func (*DecryptedMessageMediaExternalDocument) GetAttributes

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

GetThumb returns value of Thumb field.

func (*DecryptedMessageMediaExternalDocument) String

String implements fmt.Stringer.

func (*DecryptedMessageMediaExternalDocument) TypeID

TypeID returns type id in TL schema.

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

func (*DecryptedMessageMediaExternalDocument) TypeInfo added in v0.25.0

TypeInfo returns info about TL type.

func (*DecryptedMessageMediaExternalDocument) TypeName added in v0.25.0

TypeName returns name of type in TL schema.

func (*DecryptedMessageMediaExternalDocument) Zero

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

Decode implements bin.Decoder.

func (*DecryptedMessageMediaGeoPoint) DecodeBare added in v0.30.0

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

DecodeBare implements bin.BareDecoder.

func (*DecryptedMessageMediaGeoPoint) Encode

Encode implements bin.Encoder.

func (*DecryptedMessageMediaGeoPoint) EncodeBare added in v0.30.0

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

String implements fmt.Stringer.

func (*DecryptedMessageMediaGeoPoint) TypeID

TypeID returns type id in TL schema.

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

func (*DecryptedMessageMediaGeoPoint) TypeInfo added in v0.25.0

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

TypeInfo returns info about TL type.

func (*DecryptedMessageMediaGeoPoint) TypeName added in v0.25.0

TypeName returns name of type in TL schema.

func (*DecryptedMessageMediaGeoPoint) Zero

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

Decode implements bin.Decoder.

func (*DecryptedMessageMediaPhoto) DecodeBare added in v0.30.0

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

DecodeBare implements bin.BareDecoder.

func (*DecryptedMessageMediaPhoto) Encode

Encode implements bin.Encoder.

func (*DecryptedMessageMediaPhoto) EncodeBare added in v0.30.0

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

TypeID returns type id in TL schema.

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

func (*DecryptedMessageMediaPhoto) TypeInfo added in v0.25.0

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

TypeInfo returns info about TL type.

func (*DecryptedMessageMediaPhoto) TypeName added in v0.25.0

func (*DecryptedMessageMediaPhoto) TypeName() string

TypeName returns name of type in TL schema.

func (*DecryptedMessageMediaPhoto) Zero

func (d *DecryptedMessageMediaPhoto) Zero() bool

type DecryptedMessageMediaPhoto23

type DecryptedMessageMediaPhoto23 struct {
	// Thumb field of DecryptedMessageMediaPhoto23.
	Thumb []byte
	// ThumbW field of DecryptedMessageMediaPhoto23.
	ThumbW int
	// ThumbH field of DecryptedMessageMediaPhoto23.
	ThumbH int
	// W field of DecryptedMessageMediaPhoto23.
	W int
	// H field of DecryptedMessageMediaPhoto23.
	H int
	// Size field of DecryptedMessageMediaPhoto23.
	Size int
	// Key field of DecryptedMessageMediaPhoto23.
	Key []byte
	// Iv field of DecryptedMessageMediaPhoto23.
	Iv []byte
}

DecryptedMessageMediaPhoto23 represents TL type `decryptedMessageMediaPhoto23#32798a8c`.

See https://core.telegram.org/constructor/decryptedMessageMediaPhoto23 for reference.

func (*DecryptedMessageMediaPhoto23) Decode

Decode implements bin.Decoder.

func (*DecryptedMessageMediaPhoto23) DecodeBare added in v0.30.0

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

DecodeBare implements bin.BareDecoder.

func (*DecryptedMessageMediaPhoto23) Encode

Encode implements bin.Encoder.

func (*DecryptedMessageMediaPhoto23) EncodeBare added in v0.30.0

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

EncodeBare implements bin.BareEncoder.

func (*DecryptedMessageMediaPhoto23) GetH

func (d *DecryptedMessageMediaPhoto23) GetH() (value int)

GetH returns value of H field.

func (*DecryptedMessageMediaPhoto23) GetIv

func (d *DecryptedMessageMediaPhoto23) GetIv() (value []byte)

GetIv returns value of Iv field.

func (*DecryptedMessageMediaPhoto23) GetKey

func (d *DecryptedMessageMediaPhoto23) GetKey() (value []byte)

GetKey returns value of Key field.

func (*DecryptedMessageMediaPhoto23) GetSize

func (d *DecryptedMessageMediaPhoto23) GetSize() (value int)

GetSize returns value of Size field.

func (*DecryptedMessageMediaPhoto23) GetThumb

func (d *DecryptedMessageMediaPhoto23) GetThumb() (value []byte)

GetThumb returns value of Thumb field.

func (*DecryptedMessageMediaPhoto23) GetThumbH

func (d *DecryptedMessageMediaPhoto23) GetThumbH() (value int)

GetThumbH returns value of ThumbH field.

func (*DecryptedMessageMediaPhoto23) GetThumbW

func (d *DecryptedMessageMediaPhoto23) GetThumbW() (value int)

GetThumbW returns value of ThumbW field.

func (*DecryptedMessageMediaPhoto23) GetW

func (d *DecryptedMessageMediaPhoto23) GetW() (value int)

GetW returns value of W field.

func (*DecryptedMessageMediaPhoto23) String

String implements fmt.Stringer.

func (*DecryptedMessageMediaPhoto23) TypeID

TypeID returns type id in TL schema.

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

func (*DecryptedMessageMediaPhoto23) TypeInfo added in v0.25.0

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

TypeInfo returns info about TL type.

func (*DecryptedMessageMediaPhoto23) TypeName added in v0.25.0

TypeName returns name of type in TL schema.

func (*DecryptedMessageMediaPhoto23) Zero

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

Decode implements bin.Decoder.

func (*DecryptedMessageMediaVenue) DecodeBare added in v0.30.0

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

DecodeBare implements bin.BareDecoder.

func (*DecryptedMessageMediaVenue) Encode

Encode implements bin.Encoder.

func (*DecryptedMessageMediaVenue) EncodeBare added in v0.30.0

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

TypeID returns type id in TL schema.

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

func (*DecryptedMessageMediaVenue) TypeInfo added in v0.25.0

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

TypeInfo returns info about TL type.

func (*DecryptedMessageMediaVenue) TypeName added in v0.25.0

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

Decode implements bin.Decoder.

func (*DecryptedMessageMediaVideo) DecodeBare added in v0.30.0

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

DecodeBare implements bin.BareDecoder.

func (*DecryptedMessageMediaVideo) Encode

Encode implements bin.Encoder.

func (*DecryptedMessageMediaVideo) EncodeBare added in v0.30.0

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

TypeID returns type id in TL schema.

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

func (*DecryptedMessageMediaVideo) TypeInfo added in v0.25.0

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

TypeInfo returns info about TL type.

func (*DecryptedMessageMediaVideo) TypeName added in v0.25.0

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

Decode implements bin.Decoder.

func (*DecryptedMessageMediaVideo23) DecodeBare added in v0.30.0

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

DecodeBare implements bin.BareDecoder.

func (*DecryptedMessageMediaVideo23) Encode

Encode implements bin.Encoder.

func (*DecryptedMessageMediaVideo23) EncodeBare added in v0.30.0

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

String implements fmt.Stringer.

func (*DecryptedMessageMediaVideo23) TypeID

TypeID returns type id in TL schema.

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

func (*DecryptedMessageMediaVideo23) TypeInfo added in v0.25.0

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

TypeInfo returns info about TL type.

func (*DecryptedMessageMediaVideo23) TypeName added in v0.25.0

TypeName returns name of type in TL schema.

func (*DecryptedMessageMediaVideo23) Zero

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

Decode implements bin.Decoder.

func (*DecryptedMessageMediaVideo8) DecodeBare added in v0.30.0

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

DecodeBare implements bin.BareDecoder.

func (*DecryptedMessageMediaVideo8) Encode

Encode implements bin.Encoder.

func (*DecryptedMessageMediaVideo8) EncodeBare added in v0.30.0

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

TypeID returns type id in TL schema.

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

func (*DecryptedMessageMediaVideo8) TypeInfo added in v0.25.0

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

TypeInfo returns info about TL type.

func (*DecryptedMessageMediaVideo8) TypeName added in v0.25.0

func (*DecryptedMessageMediaVideo8) TypeName() string

TypeName returns name of type in TL schema.

func (*DecryptedMessageMediaVideo8) Zero

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

Decode implements bin.Decoder.

func (*DecryptedMessageMediaWebPage) DecodeBare added in v0.30.0

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

DecodeBare implements bin.BareDecoder.

func (*DecryptedMessageMediaWebPage) Encode

Encode implements bin.Encoder.

func (*DecryptedMessageMediaWebPage) EncodeBare added in v0.30.0

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

String implements fmt.Stringer.

func (*DecryptedMessageMediaWebPage) TypeID

TypeID returns type id in TL schema.

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

func (*DecryptedMessageMediaWebPage) TypeInfo added in v0.25.0

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

TypeInfo returns info about TL type.

func (*DecryptedMessageMediaWebPage) TypeName added in v0.25.0

TypeName returns name of type in TL schema.

func (*DecryptedMessageMediaWebPage) Zero

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 added in v0.30.0

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 added in v0.30.0

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

EncodeBare implements bin.BareEncoder.

func (*DecryptedMessageService) GetAction

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.

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

func (*DecryptedMessageService) TypeInfo added in v0.25.0

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

TypeInfo returns info about TL type.

func (*DecryptedMessageService) TypeName added in v0.25.0

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 added in v0.30.0

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 added in v0.30.0

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

EncodeBare implements bin.BareEncoder.

func (*DecryptedMessageService8) GetAction

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.

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

func (*DecryptedMessageService8) TypeInfo added in v0.25.0

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

TypeInfo returns info about TL type.

func (*DecryptedMessageService8) TypeName added in v0.25.0

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 added in v0.30.0

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 added in v0.30.0

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

TypeID returns type id in TL schema.

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

func (*DocumentAttributeAnimated) TypeInfo added in v0.25.0

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

TypeInfo returns info about TL type.

func (*DocumentAttributeAnimated) TypeName added in v0.25.0

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
	//
	// 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 added in v0.30.0

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 added in v0.30.0

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

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

func (*DocumentAttributeAudio) TypeInfo added in v0.25.0

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

TypeInfo returns info about TL type.

func (*DocumentAttributeAudio) TypeName added in v0.25.0

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 added in v0.30.0

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 added in v0.30.0

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.

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

func (*DocumentAttributeAudio23) TypeInfo added in v0.25.0

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

TypeInfo returns info about TL type.

func (*DocumentAttributeAudio23) TypeName added in v0.25.0

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 added in v0.30.0

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 added in v0.30.0

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.

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

func (*DocumentAttributeAudio45) TypeInfo added in v0.25.0

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

TypeInfo returns info about TL type.

func (*DocumentAttributeAudio45) TypeName added in v0.25.0

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.

func (*DocumentAttributeBox) Decode

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

Decode implements bin.Decoder for DocumentAttributeBox.

func (*DocumentAttributeBox) Encode

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

Encode implements bin.Encode for DocumentAttributeBox.

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.DocumentAttributeVideo: // documentAttributeVideo#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.DocumentAttributeVideo66: // documentAttributeVideo66#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 added in v0.30.0

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 added in v0.30.0

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

TypeID returns type id in TL schema.

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

func (*DocumentAttributeFilename) TypeInfo added in v0.25.0

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

TypeInfo returns info about TL type.

func (*DocumentAttributeFilename) TypeName added in v0.25.0

func (*DocumentAttributeFilename) TypeName() string

TypeName returns name of type in TL schema.

func (*DocumentAttributeFilename) Zero

func (d *DocumentAttributeFilename) Zero() bool

type DocumentAttributeImageSize

type DocumentAttributeImageSize struct {
	// Width of image
	W int
	// Height of image
	H int
}

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

Decode implements bin.Decoder.

func (*DocumentAttributeImageSize) DecodeBare added in v0.30.0

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

DecodeBare implements bin.BareDecoder.

func (*DocumentAttributeImageSize) Encode

Encode implements bin.Encoder.

func (*DocumentAttributeImageSize) EncodeBare added in v0.30.0

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

TypeID returns type id in TL schema.

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

func (*DocumentAttributeImageSize) TypeInfo added in v0.25.0

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

TypeInfo returns info about TL type.

func (*DocumentAttributeImageSize) TypeName added in v0.25.0

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 added in v0.30.0

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 added in v0.30.0

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.

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

func (*DocumentAttributeSticker) TypeInfo added in v0.25.0

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

TypeInfo returns info about TL type.

func (*DocumentAttributeSticker) TypeName added in v0.25.0

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

Decode implements bin.Decoder.

func (*DocumentAttributeSticker23) DecodeBare added in v0.30.0

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

DecodeBare implements bin.BareDecoder.

func (*DocumentAttributeSticker23) Encode

Encode implements bin.Encoder.

func (*DocumentAttributeSticker23) EncodeBare added in v0.30.0

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

TypeID returns type id in TL schema.

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

func (*DocumentAttributeSticker23) TypeInfo added in v0.25.0

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

TypeInfo returns info about TL type.

func (*DocumentAttributeSticker23) TypeName added in v0.25.0

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 {
	// Duration in seconds
	Duration int
	// Video width
	W int
	// Video height
	H int
}

DocumentAttributeVideo represents TL type `documentAttributeVideo#5910cccb`. 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 added in v0.30.0

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 added in v0.30.0

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

func (d *DocumentAttributeVideo) GetW() (value int)

GetW returns value of W 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.

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

func (*DocumentAttributeVideo) TypeInfo added in v0.25.0

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

TypeInfo returns info about TL type.

func (*DocumentAttributeVideo) TypeName added in v0.25.0

func (*DocumentAttributeVideo) TypeName() string

TypeName returns name of type in TL schema.

func (*DocumentAttributeVideo) Zero

func (d *DocumentAttributeVideo) Zero() bool

type DocumentAttributeVideo66

type DocumentAttributeVideo66 struct {
	// Flags field of DocumentAttributeVideo66.
	Flags bin.Fields
	// RoundMessage field of DocumentAttributeVideo66.
	RoundMessage bool
	// Duration field of DocumentAttributeVideo66.
	Duration int
	// W field of DocumentAttributeVideo66.
	W int
	// H field of DocumentAttributeVideo66.
	H int
}

DocumentAttributeVideo66 represents TL type `documentAttributeVideo66#ef02ce6`.

See https://core.telegram.org/constructor/documentAttributeVideo66 for reference.

func (*DocumentAttributeVideo66) Decode

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

Decode implements bin.Decoder.

func (*DocumentAttributeVideo66) DecodeBare added in v0.30.0

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

DecodeBare implements bin.BareDecoder.

func (*DocumentAttributeVideo66) Encode

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

Encode implements bin.Encoder.

func (*DocumentAttributeVideo66) EncodeBare added in v0.30.0

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

EncodeBare implements bin.BareEncoder.

func (*DocumentAttributeVideo66) GetDuration

func (d *DocumentAttributeVideo66) GetDuration() (value int)

GetDuration returns value of Duration field.

func (*DocumentAttributeVideo66) GetH

func (d *DocumentAttributeVideo66) GetH() (value int)

GetH returns value of H field.

func (*DocumentAttributeVideo66) GetRoundMessage

func (d *DocumentAttributeVideo66) GetRoundMessage() (value bool)

GetRoundMessage returns value of RoundMessage conditional field.

func (*DocumentAttributeVideo66) GetW

func (d *DocumentAttributeVideo66) GetW() (value int)

GetW returns value of W field.

func (*DocumentAttributeVideo66) SetRoundMessage

func (d *DocumentAttributeVideo66) SetRoundMessage(value bool)

SetRoundMessage sets value of RoundMessage conditional field.

func (*DocumentAttributeVideo66) String

func (d *DocumentAttributeVideo66) String() string

String implements fmt.Stringer.

func (*DocumentAttributeVideo66) TypeID

func (*DocumentAttributeVideo66) TypeID() uint32

TypeID returns type id in TL schema.

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

func (*DocumentAttributeVideo66) TypeInfo added in v0.25.0

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

TypeInfo returns info about TL type.

func (*DocumentAttributeVideo66) TypeName added in v0.25.0

func (*DocumentAttributeVideo66) TypeName() string

TypeName returns name of type in TL schema.

func (*DocumentAttributeVideo66) Zero

func (d *DocumentAttributeVideo66) Zero() bool

type Double

type Double struct {
}

Double represents TL type `double#2210c154`.

See https://core.telegram.org/constructor/double for reference.

func (*Double) Decode

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

Decode implements bin.Decoder.

func (*Double) DecodeBare added in v0.30.0

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

DecodeBare implements bin.BareDecoder.

func (*Double) Encode

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

Encode implements bin.Encoder.

func (*Double) EncodeBare added in v0.30.0

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

EncodeBare implements bin.BareEncoder.

func (*Double) String

func (d *Double) String() string

String implements fmt.Stringer.

func (*Double) TypeID

func (*Double) TypeID() uint32

TypeID returns type id in TL schema.

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

func (*Double) TypeInfo added in v0.25.0

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

TypeInfo returns info about TL type.

func (*Double) TypeName added in v0.25.0

func (*Double) TypeName() string

TypeName returns name of type in TL schema.

func (*Double) Zero

func (d *Double) Zero() bool

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 added in v0.30.0

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 added in v0.30.0

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.

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

func (*FileLocation) TypeInfo added in v0.25.0

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

TypeInfo returns info about TL type.

func (*FileLocation) TypeName added in v0.25.0

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.

func (*FileLocationBox) Decode

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

Decode implements bin.Decoder for FileLocationBox.

func (*FileLocationBox) Encode

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

Encode implements bin.Encode for FileLocationBox.

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

type FileLocationUnavailable struct {
	// VolumeID field of FileLocationUnavailable.
	VolumeID int64
	// LocalID field of FileLocationUnavailable.
	LocalID int
	// Secret field of FileLocationUnavailable.
	Secret int64
}

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 added in v0.30.0

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 added in v0.30.0

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.

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

func (*FileLocationUnavailable) TypeInfo added in v0.25.0

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

TypeInfo returns info about TL type.

func (*FileLocationUnavailable) TypeName added in v0.25.0

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.

func (*InputStickerSetBox) Decode

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

Decode implements bin.Decoder for InputStickerSetBox.

func (*InputStickerSetBox) Encode

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

Encode implements bin.Encode for InputStickerSetBox.

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 added in v0.30.0

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 added in v0.30.0

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.

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

func (*InputStickerSetEmpty) TypeInfo added in v0.25.0

func (i *InputStickerSetEmpty) TypeInfo() tdp.Type

TypeInfo returns info about TL type.

func (*InputStickerSetEmpty) TypeName added in v0.25.0

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 {
	// From tg://addstickers?set=short_name
	ShortName string
}

InputStickerSetShortName represents TL type `inputStickerSetShortName#861cc8a0`. Stickerset by short name, from tg://addstickers?set=short_name

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 added in v0.30.0

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 added in v0.30.0

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.

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

func (*InputStickerSetShortName) TypeInfo added in v0.25.0

func (i *InputStickerSetShortName) TypeInfo() tdp.Type

TypeInfo returns info about TL type.

func (*InputStickerSetShortName) TypeName added in v0.25.0

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

func (i *Int) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*Int) DecodeBare added in v0.30.0

func (i *Int) DecodeBare(b *bin.Buffer) error

DecodeBare implements bin.BareDecoder.

func (*Int) Encode

func (i *Int) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

func (*Int) EncodeBare added in v0.30.0

func (i *Int) EncodeBare(b *bin.Buffer) error

EncodeBare implements bin.BareEncoder.

func (*Int) String

func (i *Int) String() string

String implements fmt.Stringer.

func (*Int) TypeID

func (*Int) TypeID() uint32

TypeID returns type id in TL schema.

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

func (*Int) TypeInfo added in v0.25.0

func (i *Int) TypeInfo() tdp.Type

TypeInfo returns info about TL type.

func (*Int) TypeName added in v0.25.0

func (*Int) TypeName() string

TypeName returns name of type in TL schema.

func (*Int) Zero

func (i *Int) Zero() bool

type Invoker

type Invoker interface {
	Invoke(ctx context.Context, input bin.Encoder, output bin.Decoder) error
}

Invoker can invoke raw MTProto rpc calls.

type Long

type Long struct {
}

Long represents TL type `long#22076cba`.

See https://core.telegram.org/constructor/long for reference.

func (*Long) Decode

func (l *Long) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*Long) DecodeBare added in v0.30.0

func (l *Long) DecodeBare(b *bin.Buffer) error

DecodeBare implements bin.BareDecoder.

func (*Long) Encode

func (l *Long) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

func (*Long) EncodeBare added in v0.30.0

func (l *Long) EncodeBare(b *bin.Buffer) error

EncodeBare implements bin.BareEncoder.

func (*Long) String

func (l *Long) String() string

String implements fmt.Stringer.

func (*Long) TypeID

func (*Long) TypeID() uint32

TypeID returns type id in TL schema.

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

func (*Long) TypeInfo added in v0.25.0

func (l *Long) TypeInfo() tdp.Type

TypeInfo returns info about TL type.

func (*Long) TypeName added in v0.25.0

func (*Long) TypeName() string

TypeName returns name of type in TL schema.

func (*Long) Zero

func (l *Long) Zero() bool

type MessageEntityBankCard

type MessageEntityBankCard struct {
	// Offset of message entity within message (in UTF-8 codepoints)
	Offset int
	// Length of message entity within message (in UTF-8 codepoints)
	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 added in v0.30.0

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 added in v0.30.0

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.

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

func (*MessageEntityBankCard) TypeInfo added in v0.25.0

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

TypeInfo returns info about TL type.

func (*MessageEntityBankCard) TypeName added in v0.25.0

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-8 codepoints)
	Offset int
	// Length of message entity within message (in UTF-8 codepoints)
	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 added in v0.30.0

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 added in v0.30.0

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.

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

func (*MessageEntityBlockquote) TypeInfo added in v0.25.0

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

TypeInfo returns info about TL type.

func (*MessageEntityBlockquote) TypeName added in v0.25.0

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-8 codepoints)
	Offset int
	// Length of message entity within message (in UTF-8 codepoints)
	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 added in v0.30.0

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 added in v0.30.0

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.

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

func (*MessageEntityBold) TypeInfo added in v0.25.0

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

TypeInfo returns info about TL type.

func (*MessageEntityBold) TypeName added in v0.25.0

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-8 codepoints)
	Offset int
	// Length of message entity within message (in UTF-8 codepoints)
	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 added in v0.30.0

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 added in v0.30.0

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.

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

func (*MessageEntityBotCommand) TypeInfo added in v0.25.0

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

TypeInfo returns info about TL type.

func (*MessageEntityBotCommand) TypeName added in v0.25.0

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.

func (*MessageEntityBox) Decode

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

Decode implements bin.Decoder for MessageEntityBox.

func (*MessageEntityBox) Encode

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

Encode implements bin.Encode for MessageEntityBox.

type MessageEntityCashtag

type MessageEntityCashtag struct {
	// Offset of message entity within message (in UTF-8 codepoints)
	Offset int
	// Length of message entity within message (in UTF-8 codepoints)
	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 added in v0.30.0

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 added in v0.30.0

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.

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

func (*MessageEntityCashtag) TypeInfo added in v0.25.0

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

TypeInfo returns info about TL type.

func (*MessageEntityCashtag) TypeName added in v0.25.0

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-8 codepoints)
	GetOffset() (value int)
	// Length of message entity within message (in UTF-8 codepoints)
	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
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-8 codepoints)
	Offset int
	// Length of message entity within message (in UTF-8 codepoints)
	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 added in v0.30.0

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 added in v0.30.0

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.

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

func (*MessageEntityCode) TypeInfo added in v0.25.0

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

TypeInfo returns info about TL type.

func (*MessageEntityCode) TypeName added in v0.25.0

func (*MessageEntityCode) TypeName() string

TypeName returns name of type in TL schema.

func (*MessageEntityCode) Zero

func (m *MessageEntityCode) Zero() bool

type MessageEntityEmail

type MessageEntityEmail struct {
	// Offset of message entity within message (in UTF-8 codepoints)
	Offset int
	// Length of message entity within message (in UTF-8 codepoints)
	Length int
}

MessageEntityEmail represents TL type `messageEntityEmail#64e475c2`. Message entity representing an email@example.com¹.

Links:

  1. https://core.telegram.orgmailto:email@example.com

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 added in v0.30.0

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 added in v0.30.0

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.

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

func (*MessageEntityEmail) TypeInfo added in v0.25.0

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

TypeInfo returns info about TL type.

func (*MessageEntityEmail) TypeName added in v0.25.0

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-8 codepoints)
	Offset int
	// Length of message entity within message (in UTF-8 codepoints)
	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 added in v0.30.0

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 added in v0.30.0

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.

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

func (*MessageEntityHashtag) TypeInfo added in v0.25.0

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

TypeInfo returns info about TL type.

func (*MessageEntityHashtag) TypeName added in v0.25.0

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-8 codepoints)
	Offset int
	// Length of message entity within message (in UTF-8 codepoints)
	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 added in v0.30.0

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 added in v0.30.0

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.

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

func (*MessageEntityItalic) TypeInfo added in v0.25.0

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

TypeInfo returns info about TL type.

func (*MessageEntityItalic) TypeName added in v0.25.0

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-8 codepoints)
	Offset int
	// Length of message entity within message (in UTF-8 codepoints)
	Length int
}

MessageEntityMention represents TL type `messageEntityMention#fa04579d`. Message entity mentioning¹ the current user

Links:

  1. https://core.telegram.org/api/mentions

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 added in v0.30.0

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 added in v0.30.0

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.

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

func (*MessageEntityMention) TypeInfo added in v0.25.0

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

TypeInfo returns info about TL type.

func (*MessageEntityMention) TypeName added in v0.25.0

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-8 codepoints)
	Offset int
	// Length of message entity within message (in UTF-8 codepoints)
	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:

  1. https://core.telegram.org/api/mentions
  2. 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 added in v0.30.0

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 added in v0.30.0

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.

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

func (*MessageEntityMentionName) TypeInfo added in v0.25.0

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

TypeInfo returns info about TL type.

func (*MessageEntityMentionName) TypeName added in v0.25.0

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-8 codepoints)
	Offset int
	// Length of message entity within message (in UTF-8 codepoints)
	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 added in v0.30.0

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 added in v0.30.0

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.

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

func (*MessageEntityPhone) TypeInfo added in v0.25.0

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

TypeInfo returns info about TL type.

func (*MessageEntityPhone) TypeName added in v0.25.0

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-8 codepoints)
	Offset int
	// Length of message entity within message (in UTF-8 codepoints)
	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 added in v0.30.0

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 added in v0.30.0

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.

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

func (*MessageEntityPre) TypeInfo added in v0.25.0

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

TypeInfo returns info about TL type.

func (*MessageEntityPre) TypeName added in v0.25.0

func (*MessageEntityPre) TypeName() string

TypeName returns name of type in TL schema.

func (*MessageEntityPre) Zero

func (m *MessageEntityPre) Zero() bool

type MessageEntityStrike

type MessageEntityStrike struct {
	// Offset of message entity within message (in UTF-8 codepoints)
	Offset int
	// Length of message entity within message (in UTF-8 codepoints)
	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 added in v0.30.0

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 added in v0.30.0

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.

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

func (*MessageEntityStrike) TypeInfo added in v0.25.0

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

TypeInfo returns info about TL type.

func (*MessageEntityStrike) TypeName added in v0.25.0

func (*MessageEntityStrike) TypeName() string

TypeName returns name of type in TL schema.

func (*MessageEntityStrike) Zero

func (m *MessageEntityStrike) Zero() bool

type MessageEntityTextURL added in v0.26.0

type MessageEntityTextURL struct {
	// Offset of message entity within message (in UTF-8 codepoints)
	Offset int
	// Length of message entity within message (in UTF-8 codepoints)
	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³.

Links:

  1. https://google.com
  2. https://google.com
  3. https://core.telegram.org/constructor/messageEntityUrl

See https://core.telegram.org/constructor/messageEntityTextUrl for reference.

func (*MessageEntityTextURL) Decode added in v0.26.0

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

Decode implements bin.Decoder.

func (*MessageEntityTextURL) DecodeBare added in v0.30.0

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

DecodeBare implements bin.BareDecoder.

func (*MessageEntityTextURL) Encode added in v0.26.0

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

Encode implements bin.Encoder.

func (*MessageEntityTextURL) EncodeBare added in v0.30.0

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

EncodeBare implements bin.BareEncoder.

func (*MessageEntityTextURL) GetLength added in v0.26.0

func (m *MessageEntityTextURL) GetLength() (value int)

GetLength returns value of Length field.

func (*MessageEntityTextURL) GetOffset added in v0.26.0

func (m *MessageEntityTextURL) GetOffset() (value int)

GetOffset returns value of Offset field.

func (*MessageEntityTextURL) GetURL added in v0.26.0

func (m *MessageEntityTextURL) GetURL() (value string)

GetURL returns value of URL field.

func (*MessageEntityTextURL) String added in v0.26.0

func (m *MessageEntityTextURL) String() string

String implements fmt.Stringer.

func (*MessageEntityTextURL) TypeID added in v0.26.0

func (*MessageEntityTextURL) TypeID() uint32

TypeID returns type id in TL schema.

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

func (*MessageEntityTextURL) TypeInfo added in v0.26.0

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

TypeInfo returns info about TL type.

func (*MessageEntityTextURL) TypeName added in v0.26.0

func (*MessageEntityTextURL) TypeName() string

TypeName returns name of type in TL schema.

func (*MessageEntityTextURL) Zero added in v0.26.0

func (m *MessageEntityTextURL) Zero() bool

type MessageEntityURL added in v0.26.0

type MessageEntityURL struct {
	// Offset of message entity within message (in UTF-8 codepoints)
	Offset int
	// Length of message entity within message (in UTF-8 codepoints)
	Length int
}

MessageEntityURL represents TL type `messageEntityUrl#6ed02538`. Message entity representing an in-text url: https://google.com¹; for text urls², use messageEntityTextUrl³.

Links:

  1. https://google.com
  2. https://google.com
  3. https://core.telegram.org/constructor/messageEntityTextUrl

See https://core.telegram.org/constructor/messageEntityUrl for reference.

func (*MessageEntityURL) Decode added in v0.26.0

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

Decode implements bin.Decoder.

func (*MessageEntityURL) DecodeBare added in v0.30.0

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

DecodeBare implements bin.BareDecoder.

func (*MessageEntityURL) Encode added in v0.26.0

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

Encode implements bin.Encoder.

func (*MessageEntityURL) EncodeBare added in v0.30.0

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

EncodeBare implements bin.BareEncoder.

func (*MessageEntityURL) GetLength added in v0.26.0

func (m *MessageEntityURL) GetLength() (value int)

GetLength returns value of Length field.

func (*MessageEntityURL) GetOffset added in v0.26.0

func (m *MessageEntityURL) GetOffset() (value int)

GetOffset returns value of Offset field.

func (*MessageEntityURL) String added in v0.26.0

func (m *MessageEntityURL) String() string

String implements fmt.Stringer.

func (*MessageEntityURL) TypeID added in v0.26.0

func (*MessageEntityURL) TypeID() uint32

TypeID returns type id in TL schema.

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

func (*MessageEntityURL) TypeInfo added in v0.26.0

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

TypeInfo returns info about TL type.

func (*MessageEntityURL) TypeName added in v0.26.0

func (*MessageEntityURL) TypeName() string

TypeName returns name of type in TL schema.

func (*MessageEntityURL) Zero added in v0.26.0

func (m *MessageEntityURL) Zero() bool

type MessageEntityUnderline

type MessageEntityUnderline struct {
	// Offset of message entity within message (in UTF-8 codepoints)
	Offset int
	// Length of message entity within message (in UTF-8 codepoints)
	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 added in v0.30.0

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 added in v0.30.0

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.

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

func (*MessageEntityUnderline) TypeInfo added in v0.25.0

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

TypeInfo returns info about TL type.

func (*MessageEntityUnderline) TypeName added in v0.25.0

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-8 codepoints)
	Offset int
	// Length of message entity within message (in UTF-8 codepoints)
	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 added in v0.30.0

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 added in v0.30.0

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.

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

func (*MessageEntityUnknown) TypeInfo added in v0.25.0

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

TypeInfo returns info about TL type.

func (*MessageEntityUnknown) TypeName added in v0.25.0

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
	// File location
	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 added in v0.30.0

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 added in v0.30.0

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.

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

func (*PhotoCachedSize) TypeInfo added in v0.25.0

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

TypeInfo returns info about TL type.

func (*PhotoCachedSize) TypeName added in v0.25.0

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
	Type string
	// File location
	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) Decode

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

Decode implements bin.Decoder.

func (*PhotoSize) DecodeBare added in v0.30.0

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

DecodeBare implements bin.BareDecoder.

func (*PhotoSize) Encode

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

Encode implements bin.Encoder.

func (*PhotoSize) EncodeBare added in v0.30.0

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

EncodeBare implements bin.BareEncoder.

func (*PhotoSize) GetH

func (p *PhotoSize) GetH() (value int)

GetH returns value of H field.

func (*PhotoSize) GetLocation

func (p *PhotoSize) GetLocation() (value FileLocationClass)

GetLocation returns value of Location field.

func (*PhotoSize) GetSize

func (p *PhotoSize) GetSize() (value int)

GetSize returns value of Size field.

func (*PhotoSize) GetType

func (p *PhotoSize) GetType() (value string)

GetType returns value of Type field.

func (*PhotoSize) GetW

func (p *PhotoSize) GetW() (value int)

GetW returns value of W field.

func (*PhotoSize) String

func (p *PhotoSize) String() string

String implements fmt.Stringer.

func (*PhotoSize) TypeID

func (*PhotoSize) TypeID() uint32

TypeID returns type id in TL schema.

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

func (*PhotoSize) TypeInfo added in v0.25.0

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

TypeInfo returns info about TL type.

func (*PhotoSize) TypeName added in v0.25.0

func (*PhotoSize) TypeName() string

TypeName returns name of type in TL schema.

func (*PhotoSize) Zero

func (p *PhotoSize) Zero() bool

type PhotoSizeBox

type PhotoSizeBox struct {
	PhotoSize PhotoSizeClass
}

PhotoSize boxes the PhotoSizeClass providing a helper.

func (*PhotoSizeBox) Decode

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

Decode implements bin.Decoder for PhotoSizeBox.

func (*PhotoSizeBox) Encode

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

Encode implements bin.Encode for PhotoSizeBox.

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 (see. photoSize¹)
	//
	// Links:
	//  1) https://core.telegram.org/constructor/photoSize
	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 (see. photoSize¹)
	//
	// Links:
	//  1) https://core.telegram.org/constructor/photoSize
	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 added in v0.30.0

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 added in v0.30.0

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.

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

func (*PhotoSizeEmpty) TypeInfo added in v0.25.0

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

TypeInfo returns info about TL type.

func (*PhotoSizeEmpty) TypeName added in v0.25.0

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.

func (*SendMessageActionBox) Decode

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

Decode implements bin.Decoder for SendMessageActionBox.

func (*SendMessageActionBox) Encode

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

Encode implements bin.Encode for SendMessageActionBox.

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 added in v0.30.0

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 added in v0.30.0

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.

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

func (*SendMessageCancelAction) TypeInfo added in v0.25.0

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

TypeInfo returns info about TL type.

func (*SendMessageCancelAction) TypeName added in v0.25.0

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

Decode implements bin.Decoder.

func (*SendMessageChooseContactAction) DecodeBare added in v0.30.0

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

DecodeBare implements bin.BareDecoder.

func (*SendMessageChooseContactAction) Encode

Encode implements bin.Encoder.

func (*SendMessageChooseContactAction) EncodeBare added in v0.30.0

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

EncodeBare implements bin.BareEncoder.

func (*SendMessageChooseContactAction) String

String implements fmt.Stringer.

func (*SendMessageChooseContactAction) TypeID

TypeID returns type id in TL schema.

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

func (*SendMessageChooseContactAction) TypeInfo added in v0.25.0

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

TypeInfo returns info about TL type.

func (*SendMessageChooseContactAction) TypeName added in v0.25.0

TypeName returns name of type in TL schema.

func (*SendMessageChooseContactAction) Zero

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

Decode implements bin.Decoder.

func (*SendMessageGeoLocationAction) DecodeBare added in v0.30.0

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

DecodeBare implements bin.BareDecoder.

func (*SendMessageGeoLocationAction) Encode

Encode implements bin.Encoder.

func (*SendMessageGeoLocationAction) EncodeBare added in v0.30.0

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

EncodeBare implements bin.BareEncoder.

func (*SendMessageGeoLocationAction) String

String implements fmt.Stringer.

func (*SendMessageGeoLocationAction) TypeID

TypeID returns type id in TL schema.

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

func (*SendMessageGeoLocationAction) TypeInfo added in v0.25.0

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

TypeInfo returns info about TL type.

func (*SendMessageGeoLocationAction) TypeName added in v0.25.0

TypeName returns name of type in TL schema.

func (*SendMessageGeoLocationAction) Zero

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

Decode implements bin.Decoder.

func (*SendMessageRecordAudioAction) DecodeBare added in v0.30.0

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

DecodeBare implements bin.BareDecoder.

func (*SendMessageRecordAudioAction) Encode

Encode implements bin.Encoder.

func (*SendMessageRecordAudioAction) EncodeBare added in v0.30.0

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

EncodeBare implements bin.BareEncoder.

func (*SendMessageRecordAudioAction) String

String implements fmt.Stringer.

func (*SendMessageRecordAudioAction) TypeID

TypeID returns type id in TL schema.

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

func (*SendMessageRecordAudioAction) TypeInfo added in v0.25.0

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

TypeInfo returns info about TL type.

func (*SendMessageRecordAudioAction) TypeName added in v0.25.0

TypeName returns name of type in TL schema.

func (*SendMessageRecordAudioAction) Zero

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

Decode implements bin.Decoder.

func (*SendMessageRecordRoundAction) DecodeBare added in v0.30.0

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

DecodeBare implements bin.BareDecoder.

func (*SendMessageRecordRoundAction) Encode

Encode implements bin.Encoder.

func (*SendMessageRecordRoundAction) EncodeBare added in v0.30.0

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

EncodeBare implements bin.BareEncoder.

func (*SendMessageRecordRoundAction) String

String implements fmt.Stringer.

func (*SendMessageRecordRoundAction) TypeID

TypeID returns type id in TL schema.

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

func (*SendMessageRecordRoundAction) TypeInfo added in v0.25.0

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

TypeInfo returns info about TL type.

func (*SendMessageRecordRoundAction) TypeName added in v0.25.0

TypeName returns name of type in TL schema.

func (*SendMessageRecordRoundAction) Zero

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

Decode implements bin.Decoder.

func (*SendMessageRecordVideoAction) DecodeBare added in v0.30.0

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

DecodeBare implements bin.BareDecoder.

func (*SendMessageRecordVideoAction) Encode

Encode implements bin.Encoder.

func (*SendMessageRecordVideoAction) EncodeBare added in v0.30.0

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

EncodeBare implements bin.BareEncoder.

func (*SendMessageRecordVideoAction) String

String implements fmt.Stringer.

func (*SendMessageRecordVideoAction) TypeID

TypeID returns type id in TL schema.

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

func (*SendMessageRecordVideoAction) TypeInfo added in v0.25.0

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

TypeInfo returns info about TL type.

func (*SendMessageRecordVideoAction) TypeName added in v0.25.0

TypeName returns name of type in TL schema.

func (*SendMessageRecordVideoAction) Zero

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 added in v0.30.0

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 added in v0.30.0

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.

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

func (*SendMessageTypingAction) TypeInfo added in v0.25.0

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

TypeInfo returns info about TL type.

func (*SendMessageTypingAction) TypeName added in v0.25.0

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

Decode implements bin.Decoder.

func (*SendMessageUploadAudioAction) DecodeBare added in v0.30.0

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

DecodeBare implements bin.BareDecoder.

func (*SendMessageUploadAudioAction) Encode

Encode implements bin.Encoder.

func (*SendMessageUploadAudioAction) EncodeBare added in v0.30.0

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

EncodeBare implements bin.BareEncoder.

func (*SendMessageUploadAudioAction) String

String implements fmt.Stringer.

func (*SendMessageUploadAudioAction) TypeID

TypeID returns type id in TL schema.

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

func (*SendMessageUploadAudioAction) TypeInfo added in v0.25.0

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

TypeInfo returns info about TL type.

func (*SendMessageUploadAudioAction) TypeName added in v0.25.0

TypeName returns name of type in TL schema.

func (*SendMessageUploadAudioAction) Zero

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

Decode implements bin.Decoder.

func (*SendMessageUploadDocumentAction) DecodeBare added in v0.30.0

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

DecodeBare implements bin.BareDecoder.

func (*SendMessageUploadDocumentAction) Encode

Encode implements bin.Encoder.

func (*SendMessageUploadDocumentAction) EncodeBare added in v0.30.0

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

EncodeBare implements bin.BareEncoder.

func (*SendMessageUploadDocumentAction) String

String implements fmt.Stringer.

func (*SendMessageUploadDocumentAction) TypeID

TypeID returns type id in TL schema.

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

func (*SendMessageUploadDocumentAction) TypeInfo added in v0.25.0

TypeInfo returns info about TL type.

func (*SendMessageUploadDocumentAction) TypeName added in v0.25.0

TypeName returns name of type in TL schema.

func (*SendMessageUploadDocumentAction) Zero

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

Decode implements bin.Decoder.

func (*SendMessageUploadPhotoAction) DecodeBare added in v0.30.0

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

DecodeBare implements bin.BareDecoder.

func (*SendMessageUploadPhotoAction) Encode

Encode implements bin.Encoder.

func (*SendMessageUploadPhotoAction) EncodeBare added in v0.30.0

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

EncodeBare implements bin.BareEncoder.

func (*SendMessageUploadPhotoAction) String

String implements fmt.Stringer.

func (*SendMessageUploadPhotoAction) TypeID

TypeID returns type id in TL schema.

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

func (*SendMessageUploadPhotoAction) TypeInfo added in v0.25.0

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

TypeInfo returns info about TL type.

func (*SendMessageUploadPhotoAction) TypeName added in v0.25.0

TypeName returns name of type in TL schema.

func (*SendMessageUploadPhotoAction) Zero

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

Decode implements bin.Decoder.

func (*SendMessageUploadRoundAction) DecodeBare added in v0.30.0

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

DecodeBare implements bin.BareDecoder.

func (*SendMessageUploadRoundAction) Encode

Encode implements bin.Encoder.

func (*SendMessageUploadRoundAction) EncodeBare added in v0.30.0

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

EncodeBare implements bin.BareEncoder.

func (*SendMessageUploadRoundAction) String

String implements fmt.Stringer.

func (*SendMessageUploadRoundAction) TypeID

TypeID returns type id in TL schema.

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

func (*SendMessageUploadRoundAction) TypeInfo added in v0.25.0

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

TypeInfo returns info about TL type.

func (*SendMessageUploadRoundAction) TypeName added in v0.25.0

TypeName returns name of type in TL schema.

func (*SendMessageUploadRoundAction) Zero

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

Decode implements bin.Decoder.

func (*SendMessageUploadVideoAction) DecodeBare added in v0.30.0

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

DecodeBare implements bin.BareDecoder.

func (*SendMessageUploadVideoAction) Encode

Encode implements bin.Encoder.

func (*SendMessageUploadVideoAction) EncodeBare added in v0.30.0

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

EncodeBare implements bin.BareEncoder.

func (*SendMessageUploadVideoAction) String

String implements fmt.Stringer.

func (*SendMessageUploadVideoAction) TypeID

TypeID returns type id in TL schema.

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

func (*SendMessageUploadVideoAction) TypeInfo added in v0.25.0

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

TypeInfo returns info about TL type.

func (*SendMessageUploadVideoAction) TypeName added in v0.25.0

TypeName returns name of type in TL schema.

func (*SendMessageUploadVideoAction) Zero

type String

type String struct {
}

String represents TL type `string#b5286e24`.

See https://core.telegram.org/constructor/string for reference.

func (*String) Decode

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

Decode implements bin.Decoder.

func (*String) DecodeBare added in v0.30.0

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

DecodeBare implements bin.BareDecoder.

func (*String) Encode

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

Encode implements bin.Encoder.

func (*String) EncodeBare added in v0.30.0

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

EncodeBare implements bin.BareEncoder.

func (*String) String

func (s *String) String() string

String implements fmt.Stringer.

func (*String) TypeID

func (*String) TypeID() uint32

TypeID returns type id in TL schema.

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

func (*String) TypeInfo added in v0.25.0

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

TypeInfo returns info about TL type.

func (*String) TypeName added in v0.25.0

func (*String) TypeName() string

TypeName returns name of type in TL schema.

func (*String) Zero

func (s *String) Zero() bool

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 added in v0.30.0

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 added in v0.30.0

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.

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

func (*TestDummyFunctionRequest) TypeInfo added in v0.25.0

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

TypeInfo returns info about TL type.

func (*TestDummyFunctionRequest) TypeName added in v0.25.0

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:

  1. https://core.telegram.org/mtproto/TL-formal#predefined-identifiers

See https://core.telegram.org/constructor/true for reference.

func (*True) Decode

func (t *True) Decode(b *bin.Buffer) error

Decode implements bin.Decoder.

func (*True) DecodeBare added in v0.30.0

func (t *True) DecodeBare(b *bin.Buffer) error

DecodeBare implements bin.BareDecoder.

func (*True) Encode

func (t *True) Encode(b *bin.Buffer) error

Encode implements bin.Encoder.

func (*True) EncodeBare added in v0.30.0

func (t *True) EncodeBare(b *bin.Buffer) error

EncodeBare implements bin.BareEncoder.

func (*True) String

func (t *True) String() string

String implements fmt.Stringer.

func (*True) TypeID

func (*True) TypeID() uint32

TypeID returns type id in TL schema.

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

func (*True) TypeInfo added in v0.25.0

func (t *True) TypeInfo() tdp.Type

TypeInfo returns info about TL type.

func (*True) TypeName added in v0.25.0

func (*True) TypeName() string

TypeName returns name of type in TL schema.

func (*True) Zero

func (t *True) Zero() bool

Jump to

Keyboard shortcuts

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