e2e

package
v0.33.2 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 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 BoolClassArray added in v0.25.0

type BoolClassArray []BoolClass

BoolClassArray is adapter for slice of BoolClass.

func (BoolClassArray) First added in v0.25.0

func (s BoolClassArray) First() (v BoolClass, ok bool)

First returns first element of slice (if exists).

func (BoolClassArray) Last added in v0.25.0

func (s BoolClassArray) Last() (v BoolClass, ok bool)

Last returns last element of slice (if exists).

func (*BoolClassArray) Pop added in v0.25.0

func (s *BoolClassArray) Pop() (v BoolClass, ok bool)

Pop returns last element of slice (if exists) and deletes it.

func (*BoolClassArray) PopFirst added in v0.25.0

func (s *BoolClassArray) PopFirst() (v BoolClass, ok bool)

PopFirst returns first element of slice (if exists) and deletes it.

func (BoolClassArray) Retain added in v0.25.0

func (s BoolClassArray) Retain(keep func(x BoolClass) bool) BoolClassArray

Retain filters in-place slice of BoolClass.

func (BoolClassArray) Sort added in v0.25.0

func (s BoolClassArray) Sort(less func(a, b BoolClass) bool) BoolClassArray

Sort sorts slice of BoolClass.

func (BoolClassArray) SortStable added in v0.25.0

func (s BoolClassArray) SortStable(less func(a, b BoolClass) bool) BoolClassArray

SortStable sorts slice of 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

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) FillFrom added in v0.25.0

func (d *DecryptedMessage) FillFrom(from interface {
	GetSilent() (value bool)
	GetRandomID() (value int64)
	GetTTL() (value int)
	GetMessage() (value string)
	GetMedia() (value DecryptedMessageMediaClass, ok bool)
	GetEntities() (value []MessageEntityClass, ok bool)
	GetViaBotName() (value string, ok bool)
	GetReplyToRandomID() (value int64, ok bool)
	GetGroupedID() (value int64, ok bool)
})

FillFrom fills DecryptedMessage from given interface.

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) MapEntities added in v0.25.0

func (d *DecryptedMessage) MapEntities() (value MessageEntityClassArray, ok bool)

MapEntities returns field Entities wrapped in MessageEntityClassArray helper.

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) FillFrom added in v0.25.0

func (d *DecryptedMessage23) FillFrom(from interface {
	GetRandomID() (value int64)
	GetTTL() (value int)
	GetMessage() (value string)
	GetMedia() (value DecryptedMessageMediaClass)
})

FillFrom fills DecryptedMessage23 from given interface.

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

type DecryptedMessage23Array []DecryptedMessage23

DecryptedMessage23Array is adapter for slice of DecryptedMessage23.

func (DecryptedMessage23Array) First added in v0.25.0

First returns first element of slice (if exists).

func (DecryptedMessage23Array) Last added in v0.25.0

Last returns last element of slice (if exists).

func (*DecryptedMessage23Array) Pop added in v0.25.0

Pop returns last element of slice (if exists) and deletes it.

func (*DecryptedMessage23Array) PopFirst added in v0.25.0

func (s *DecryptedMessage23Array) PopFirst() (v DecryptedMessage23, ok bool)

PopFirst returns first element of slice (if exists) and deletes it.

func (DecryptedMessage23Array) Retain added in v0.25.0

Retain filters in-place slice of DecryptedMessage23.

func (DecryptedMessage23Array) Sort added in v0.25.0

Sort sorts slice of DecryptedMessage23.

func (DecryptedMessage23Array) SortStable added in v0.25.0

SortStable sorts slice of DecryptedMessage23.

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) FillFrom added in v0.25.0

func (d *DecryptedMessage46) FillFrom(from interface {
	GetRandomID() (value int64)
	GetTTL() (value int)
	GetMessage() (value string)
	GetMedia() (value DecryptedMessageMediaClass, ok bool)
	GetEntities() (value []MessageEntityClass, ok bool)
	GetViaBotName() (value string, ok bool)
	GetReplyToRandomID() (value int64, ok bool)
})

FillFrom fills DecryptedMessage46 from given interface.

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) MapEntities added in v0.25.0

func (d *DecryptedMessage46) MapEntities() (value MessageEntityClassArray, ok bool)

MapEntities returns field Entities wrapped in MessageEntityClassArray helper.

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

type DecryptedMessage46Array []DecryptedMessage46

DecryptedMessage46Array is adapter for slice of DecryptedMessage46.

func (DecryptedMessage46Array) First added in v0.25.0

First returns first element of slice (if exists).

func (DecryptedMessage46Array) Last added in v0.25.0

Last returns last element of slice (if exists).

func (*DecryptedMessage46Array) Pop added in v0.25.0

Pop returns last element of slice (if exists) and deletes it.

func (*DecryptedMessage46Array) PopFirst added in v0.25.0

func (s *DecryptedMessage46Array) PopFirst() (v DecryptedMessage46, ok bool)

PopFirst returns first element of slice (if exists) and deletes it.

func (DecryptedMessage46Array) Retain added in v0.25.0

Retain filters in-place slice of DecryptedMessage46.

func (DecryptedMessage46Array) Sort added in v0.25.0

Sort sorts slice of DecryptedMessage46.

func (DecryptedMessage46Array) SortStable added in v0.25.0

SortStable sorts slice of DecryptedMessage46.

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) FillFrom added in v0.25.0

func (d *DecryptedMessage8) FillFrom(from interface {
	GetRandomID() (value int64)
	GetRandomBytes() (value []byte)
	GetMessage() (value string)
	GetMedia() (value DecryptedMessageMediaClass)
})

FillFrom fills DecryptedMessage8 from given interface.

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

type DecryptedMessage8Array []DecryptedMessage8

DecryptedMessage8Array is adapter for slice of DecryptedMessage8.

func (DecryptedMessage8Array) First added in v0.25.0

func (s DecryptedMessage8Array) First() (v DecryptedMessage8, ok bool)

First returns first element of slice (if exists).

func (DecryptedMessage8Array) Last added in v0.25.0

Last returns last element of slice (if exists).

func (*DecryptedMessage8Array) Pop added in v0.25.0

Pop returns last element of slice (if exists) and deletes it.

func (*DecryptedMessage8Array) PopFirst added in v0.25.0

func (s *DecryptedMessage8Array) PopFirst() (v DecryptedMessage8, ok bool)

PopFirst returns first element of slice (if exists) and deletes it.

func (DecryptedMessage8Array) Retain added in v0.25.0

Retain filters in-place slice of DecryptedMessage8.

func (DecryptedMessage8Array) Sort added in v0.25.0

Sort sorts slice of DecryptedMessage8.

func (DecryptedMessage8Array) SortStable added in v0.25.0

SortStable sorts slice of DecryptedMessage8.

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) FillFrom added in v0.25.0

func (d *DecryptedMessageActionAbortKey) FillFrom(from interface {
	GetExchangeID() (value int64)
})

FillFrom fills DecryptedMessageActionAbortKey from given interface.

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

type DecryptedMessageActionAbortKeyArray []DecryptedMessageActionAbortKey

DecryptedMessageActionAbortKeyArray is adapter for slice of DecryptedMessageActionAbortKey.

func (DecryptedMessageActionAbortKeyArray) First added in v0.25.0

First returns first element of slice (if exists).

func (DecryptedMessageActionAbortKeyArray) Last added in v0.25.0

Last returns last element of slice (if exists).

func (*DecryptedMessageActionAbortKeyArray) Pop added in v0.25.0

Pop returns last element of slice (if exists) and deletes it.

func (*DecryptedMessageActionAbortKeyArray) PopFirst added in v0.25.0

PopFirst returns first element of slice (if exists) and deletes it.

func (DecryptedMessageActionAbortKeyArray) Retain added in v0.25.0

Retain filters in-place slice of DecryptedMessageActionAbortKey.

func (DecryptedMessageActionAbortKeyArray) Sort added in v0.25.0

Sort sorts slice of DecryptedMessageActionAbortKey.

func (DecryptedMessageActionAbortKeyArray) SortStable added in v0.25.0

SortStable sorts slice of DecryptedMessageActionAbortKey.

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) FillFrom added in v0.25.0

func (d *DecryptedMessageActionAcceptKey) FillFrom(from interface {
	GetExchangeID() (value int64)
	GetGB() (value []byte)
	GetKeyFingerprint() (value int64)
})

FillFrom fills DecryptedMessageActionAcceptKey from given interface.

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

type DecryptedMessageActionAcceptKeyArray []DecryptedMessageActionAcceptKey

DecryptedMessageActionAcceptKeyArray is adapter for slice of DecryptedMessageActionAcceptKey.

func (DecryptedMessageActionAcceptKeyArray) First added in v0.25.0

First returns first element of slice (if exists).

func (DecryptedMessageActionAcceptKeyArray) Last added in v0.25.0

Last returns last element of slice (if exists).

func (*DecryptedMessageActionAcceptKeyArray) Pop added in v0.25.0

Pop returns last element of slice (if exists) and deletes it.

func (*DecryptedMessageActionAcceptKeyArray) PopFirst added in v0.25.0

PopFirst returns first element of slice (if exists) and deletes it.

func (DecryptedMessageActionAcceptKeyArray) Retain added in v0.25.0

Retain filters in-place slice of DecryptedMessageActionAcceptKey.

func (DecryptedMessageActionAcceptKeyArray) Sort added in v0.25.0

Sort sorts slice of DecryptedMessageActionAcceptKey.

func (DecryptedMessageActionAcceptKeyArray) SortStable added in v0.25.0

SortStable sorts slice of DecryptedMessageActionAcceptKey.

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

type DecryptedMessageActionClassArray []DecryptedMessageActionClass

DecryptedMessageActionClassArray is adapter for slice of DecryptedMessageActionClass.

func (DecryptedMessageActionClassArray) AsDecryptedMessageActionAbortKey added in v0.25.0

func (s DecryptedMessageActionClassArray) AsDecryptedMessageActionAbortKey() (to DecryptedMessageActionAbortKeyArray)

AsDecryptedMessageActionAbortKey returns copy with only DecryptedMessageActionAbortKey constructors.

func (DecryptedMessageActionClassArray) AsDecryptedMessageActionAcceptKey added in v0.25.0

func (s DecryptedMessageActionClassArray) AsDecryptedMessageActionAcceptKey() (to DecryptedMessageActionAcceptKeyArray)

AsDecryptedMessageActionAcceptKey returns copy with only DecryptedMessageActionAcceptKey constructors.

func (DecryptedMessageActionClassArray) AsDecryptedMessageActionCommitKey added in v0.25.0

func (s DecryptedMessageActionClassArray) AsDecryptedMessageActionCommitKey() (to DecryptedMessageActionCommitKeyArray)

AsDecryptedMessageActionCommitKey returns copy with only DecryptedMessageActionCommitKey constructors.

func (DecryptedMessageActionClassArray) AsDecryptedMessageActionDeleteMessages added in v0.25.0

func (s DecryptedMessageActionClassArray) AsDecryptedMessageActionDeleteMessages() (to DecryptedMessageActionDeleteMessagesArray)

AsDecryptedMessageActionDeleteMessages returns copy with only DecryptedMessageActionDeleteMessages constructors.

func (DecryptedMessageActionClassArray) AsDecryptedMessageActionNotifyLayer added in v0.25.0

func (s DecryptedMessageActionClassArray) AsDecryptedMessageActionNotifyLayer() (to DecryptedMessageActionNotifyLayerArray)

AsDecryptedMessageActionNotifyLayer returns copy with only DecryptedMessageActionNotifyLayer constructors.

func (DecryptedMessageActionClassArray) AsDecryptedMessageActionReadMessages added in v0.25.0

func (s DecryptedMessageActionClassArray) AsDecryptedMessageActionReadMessages() (to DecryptedMessageActionReadMessagesArray)

AsDecryptedMessageActionReadMessages returns copy with only DecryptedMessageActionReadMessages constructors.

func (DecryptedMessageActionClassArray) AsDecryptedMessageActionRequestKey added in v0.25.0

func (s DecryptedMessageActionClassArray) AsDecryptedMessageActionRequestKey() (to DecryptedMessageActionRequestKeyArray)

AsDecryptedMessageActionRequestKey returns copy with only DecryptedMessageActionRequestKey constructors.

func (DecryptedMessageActionClassArray) AsDecryptedMessageActionResend added in v0.25.0

func (s DecryptedMessageActionClassArray) AsDecryptedMessageActionResend() (to DecryptedMessageActionResendArray)

AsDecryptedMessageActionResend returns copy with only DecryptedMessageActionResend constructors.

func (DecryptedMessageActionClassArray) AsDecryptedMessageActionScreenshotMessages added in v0.25.0

func (s DecryptedMessageActionClassArray) AsDecryptedMessageActionScreenshotMessages() (to DecryptedMessageActionScreenshotMessagesArray)

AsDecryptedMessageActionScreenshotMessages returns copy with only DecryptedMessageActionScreenshotMessages constructors.

func (DecryptedMessageActionClassArray) AsDecryptedMessageActionSetMessageTTL added in v0.25.0

func (s DecryptedMessageActionClassArray) AsDecryptedMessageActionSetMessageTTL() (to DecryptedMessageActionSetMessageTTLArray)

AsDecryptedMessageActionSetMessageTTL returns copy with only DecryptedMessageActionSetMessageTTL constructors.

func (DecryptedMessageActionClassArray) AsDecryptedMessageActionTyping added in v0.25.0

func (s DecryptedMessageActionClassArray) AsDecryptedMessageActionTyping() (to DecryptedMessageActionTypingArray)

AsDecryptedMessageActionTyping returns copy with only DecryptedMessageActionTyping constructors.

func (DecryptedMessageActionClassArray) First added in v0.25.0

First returns first element of slice (if exists).

func (DecryptedMessageActionClassArray) Last added in v0.25.0

Last returns last element of slice (if exists).

func (*DecryptedMessageActionClassArray) Pop added in v0.25.0

Pop returns last element of slice (if exists) and deletes it.

func (*DecryptedMessageActionClassArray) PopFirst added in v0.25.0

PopFirst returns first element of slice (if exists) and deletes it.

func (DecryptedMessageActionClassArray) Retain added in v0.25.0

Retain filters in-place slice of DecryptedMessageActionClass.

func (DecryptedMessageActionClassArray) Sort added in v0.25.0

Sort sorts slice of DecryptedMessageActionClass.

func (DecryptedMessageActionClassArray) SortStable added in v0.25.0

SortStable sorts slice of 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) FillFrom added in v0.25.0

func (d *DecryptedMessageActionCommitKey) FillFrom(from interface {
	GetExchangeID() (value int64)
	GetKeyFingerprint() (value int64)
})

FillFrom fills DecryptedMessageActionCommitKey from given interface.

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

type DecryptedMessageActionCommitKeyArray []DecryptedMessageActionCommitKey

DecryptedMessageActionCommitKeyArray is adapter for slice of DecryptedMessageActionCommitKey.

func (DecryptedMessageActionCommitKeyArray) First added in v0.25.0

First returns first element of slice (if exists).

func (DecryptedMessageActionCommitKeyArray) Last added in v0.25.0

Last returns last element of slice (if exists).

func (*DecryptedMessageActionCommitKeyArray) Pop added in v0.25.0

Pop returns last element of slice (if exists) and deletes it.

func (*DecryptedMessageActionCommitKeyArray) PopFirst added in v0.25.0

PopFirst returns first element of slice (if exists) and deletes it.

func (DecryptedMessageActionCommitKeyArray) Retain added in v0.25.0

Retain filters in-place slice of DecryptedMessageActionCommitKey.

func (DecryptedMessageActionCommitKeyArray) Sort added in v0.25.0

Sort sorts slice of DecryptedMessageActionCommitKey.

func (DecryptedMessageActionCommitKeyArray) SortStable added in v0.25.0

SortStable sorts slice of DecryptedMessageActionCommitKey.

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) FillFrom added in v0.25.0

func (d *DecryptedMessageActionDeleteMessages) FillFrom(from interface {
	GetRandomIDs() (value []int64)
})

FillFrom fills DecryptedMessageActionDeleteMessages from given interface.

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

type DecryptedMessageActionDeleteMessagesArray []DecryptedMessageActionDeleteMessages

DecryptedMessageActionDeleteMessagesArray is adapter for slice of DecryptedMessageActionDeleteMessages.

func (DecryptedMessageActionDeleteMessagesArray) First added in v0.25.0

First returns first element of slice (if exists).

func (DecryptedMessageActionDeleteMessagesArray) Last added in v0.25.0

Last returns last element of slice (if exists).

func (*DecryptedMessageActionDeleteMessagesArray) Pop added in v0.25.0

Pop returns last element of slice (if exists) and deletes it.

func (*DecryptedMessageActionDeleteMessagesArray) PopFirst added in v0.25.0

PopFirst returns first element of slice (if exists) and deletes it.

func (DecryptedMessageActionDeleteMessagesArray) Retain added in v0.25.0

Retain filters in-place slice of DecryptedMessageActionDeleteMessages.

func (DecryptedMessageActionDeleteMessagesArray) Sort added in v0.25.0

Sort sorts slice of DecryptedMessageActionDeleteMessages.

func (DecryptedMessageActionDeleteMessagesArray) SortStable added in v0.25.0

SortStable sorts slice of DecryptedMessageActionDeleteMessages.

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) FillFrom added in v0.25.0

func (d *DecryptedMessageActionNotifyLayer) FillFrom(from interface {
	GetLayer() (value int)
})

FillFrom fills DecryptedMessageActionNotifyLayer from given interface.

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

type DecryptedMessageActionNotifyLayerArray []DecryptedMessageActionNotifyLayer

DecryptedMessageActionNotifyLayerArray is adapter for slice of DecryptedMessageActionNotifyLayer.

func (DecryptedMessageActionNotifyLayerArray) First added in v0.25.0

First returns first element of slice (if exists).

func (DecryptedMessageActionNotifyLayerArray) Last added in v0.25.0

Last returns last element of slice (if exists).

func (*DecryptedMessageActionNotifyLayerArray) Pop added in v0.25.0

Pop returns last element of slice (if exists) and deletes it.

func (*DecryptedMessageActionNotifyLayerArray) PopFirst added in v0.25.0

PopFirst returns first element of slice (if exists) and deletes it.

func (DecryptedMessageActionNotifyLayerArray) Retain added in v0.25.0

Retain filters in-place slice of DecryptedMessageActionNotifyLayer.

func (DecryptedMessageActionNotifyLayerArray) Sort added in v0.25.0

Sort sorts slice of DecryptedMessageActionNotifyLayer.

func (DecryptedMessageActionNotifyLayerArray) SortStable added in v0.25.0

SortStable sorts slice of DecryptedMessageActionNotifyLayer.

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) FillFrom added in v0.25.0

func (d *DecryptedMessageActionReadMessages) FillFrom(from interface {
	GetRandomIDs() (value []int64)
})

FillFrom fills DecryptedMessageActionReadMessages from given interface.

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

type DecryptedMessageActionReadMessagesArray []DecryptedMessageActionReadMessages

DecryptedMessageActionReadMessagesArray is adapter for slice of DecryptedMessageActionReadMessages.

func (DecryptedMessageActionReadMessagesArray) First added in v0.25.0

First returns first element of slice (if exists).

func (DecryptedMessageActionReadMessagesArray) Last added in v0.25.0

Last returns last element of slice (if exists).

func (*DecryptedMessageActionReadMessagesArray) Pop added in v0.25.0

Pop returns last element of slice (if exists) and deletes it.

func (*DecryptedMessageActionReadMessagesArray) PopFirst added in v0.25.0

PopFirst returns first element of slice (if exists) and deletes it.

func (DecryptedMessageActionReadMessagesArray) Retain added in v0.25.0

Retain filters in-place slice of DecryptedMessageActionReadMessages.

func (DecryptedMessageActionReadMessagesArray) Sort added in v0.25.0

Sort sorts slice of DecryptedMessageActionReadMessages.

func (DecryptedMessageActionReadMessagesArray) SortStable added in v0.25.0

SortStable sorts slice of DecryptedMessageActionReadMessages.

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) FillFrom added in v0.25.0

func (d *DecryptedMessageActionRequestKey) FillFrom(from interface {
	GetExchangeID() (value int64)
	GetGA() (value []byte)
})

FillFrom fills DecryptedMessageActionRequestKey from given interface.

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

type DecryptedMessageActionRequestKeyArray []DecryptedMessageActionRequestKey

DecryptedMessageActionRequestKeyArray is adapter for slice of DecryptedMessageActionRequestKey.

func (DecryptedMessageActionRequestKeyArray) First added in v0.25.0

First returns first element of slice (if exists).

func (DecryptedMessageActionRequestKeyArray) Last added in v0.25.0

Last returns last element of slice (if exists).

func (*DecryptedMessageActionRequestKeyArray) Pop added in v0.25.0

Pop returns last element of slice (if exists) and deletes it.

func (*DecryptedMessageActionRequestKeyArray) PopFirst added in v0.25.0

PopFirst returns first element of slice (if exists) and deletes it.

func (DecryptedMessageActionRequestKeyArray) Retain added in v0.25.0

Retain filters in-place slice of DecryptedMessageActionRequestKey.

func (DecryptedMessageActionRequestKeyArray) Sort added in v0.25.0

Sort sorts slice of DecryptedMessageActionRequestKey.

func (DecryptedMessageActionRequestKeyArray) SortStable added in v0.25.0

SortStable sorts slice of DecryptedMessageActionRequestKey.

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) FillFrom added in v0.25.0

func (d *DecryptedMessageActionResend) FillFrom(from interface {
	GetStartSeqNo() (value int)
	GetEndSeqNo() (value int)
})

FillFrom fills DecryptedMessageActionResend from given interface.

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

type DecryptedMessageActionResendArray []DecryptedMessageActionResend

DecryptedMessageActionResendArray is adapter for slice of DecryptedMessageActionResend.

func (DecryptedMessageActionResendArray) First added in v0.25.0

First returns first element of slice (if exists).

func (DecryptedMessageActionResendArray) Last added in v0.25.0

Last returns last element of slice (if exists).

func (*DecryptedMessageActionResendArray) Pop added in v0.25.0

Pop returns last element of slice (if exists) and deletes it.

func (*DecryptedMessageActionResendArray) PopFirst added in v0.25.0

PopFirst returns first element of slice (if exists) and deletes it.

func (DecryptedMessageActionResendArray) Retain added in v0.25.0

Retain filters in-place slice of DecryptedMessageActionResend.

func (DecryptedMessageActionResendArray) Sort added in v0.25.0

Sort sorts slice of DecryptedMessageActionResend.

func (DecryptedMessageActionResendArray) SortStable added in v0.25.0

SortStable sorts slice of DecryptedMessageActionResend.

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) FillFrom added in v0.25.0

func (d *DecryptedMessageActionScreenshotMessages) FillFrom(from interface {
	GetRandomIDs() (value []int64)
})

FillFrom fills DecryptedMessageActionScreenshotMessages from given interface.

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

type DecryptedMessageActionScreenshotMessagesArray []DecryptedMessageActionScreenshotMessages

DecryptedMessageActionScreenshotMessagesArray is adapter for slice of DecryptedMessageActionScreenshotMessages.

func (DecryptedMessageActionScreenshotMessagesArray) First added in v0.25.0

First returns first element of slice (if exists).

func (DecryptedMessageActionScreenshotMessagesArray) Last added in v0.25.0

Last returns last element of slice (if exists).

func (*DecryptedMessageActionScreenshotMessagesArray) Pop added in v0.25.0

Pop returns last element of slice (if exists) and deletes it.

func (*DecryptedMessageActionScreenshotMessagesArray) PopFirst added in v0.25.0

PopFirst returns first element of slice (if exists) and deletes it.

func (DecryptedMessageActionScreenshotMessagesArray) Retain added in v0.25.0

Retain filters in-place slice of DecryptedMessageActionScreenshotMessages.

func (DecryptedMessageActionScreenshotMessagesArray) Sort added in v0.25.0

Sort sorts slice of DecryptedMessageActionScreenshotMessages.

func (DecryptedMessageActionScreenshotMessagesArray) SortStable added in v0.25.0

SortStable sorts slice of DecryptedMessageActionScreenshotMessages.

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) FillFrom added in v0.25.0

func (d *DecryptedMessageActionSetMessageTTL) FillFrom(from interface {
	GetTTLSeconds() (value int)
})

FillFrom fills DecryptedMessageActionSetMessageTTL from given interface.

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

type DecryptedMessageActionSetMessageTTLArray []DecryptedMessageActionSetMessageTTL

DecryptedMessageActionSetMessageTTLArray is adapter for slice of DecryptedMessageActionSetMessageTTL.

func (DecryptedMessageActionSetMessageTTLArray) First added in v0.25.0

First returns first element of slice (if exists).

func (DecryptedMessageActionSetMessageTTLArray) Last added in v0.25.0

Last returns last element of slice (if exists).

func (*DecryptedMessageActionSetMessageTTLArray) Pop added in v0.25.0

Pop returns last element of slice (if exists) and deletes it.

func (*DecryptedMessageActionSetMessageTTLArray) PopFirst added in v0.25.0

PopFirst returns first element of slice (if exists) and deletes it.

func (DecryptedMessageActionSetMessageTTLArray) Retain added in v0.25.0

Retain filters in-place slice of DecryptedMessageActionSetMessageTTL.

func (DecryptedMessageActionSetMessageTTLArray) Sort added in v0.25.0

Sort sorts slice of DecryptedMessageActionSetMessageTTL.

func (DecryptedMessageActionSetMessageTTLArray) SortStable added in v0.25.0

SortStable sorts slice of DecryptedMessageActionSetMessageTTL.

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) FillFrom added in v0.25.0

func (d *DecryptedMessageActionTyping) FillFrom(from interface {
	GetAction() (value SendMessageActionClass)
})

FillFrom fills DecryptedMessageActionTyping from given interface.

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

type DecryptedMessageActionTypingArray []DecryptedMessageActionTyping

DecryptedMessageActionTypingArray is adapter for slice of DecryptedMessageActionTyping.

func (DecryptedMessageActionTypingArray) First added in v0.25.0

First returns first element of slice (if exists).

func (DecryptedMessageActionTypingArray) Last added in v0.25.0

Last returns last element of slice (if exists).

func (*DecryptedMessageActionTypingArray) Pop added in v0.25.0

Pop returns last element of slice (if exists) and deletes it.

func (*DecryptedMessageActionTypingArray) PopFirst added in v0.25.0

PopFirst returns first element of slice (if exists) and deletes it.

func (DecryptedMessageActionTypingArray) Retain added in v0.25.0

Retain filters in-place slice of DecryptedMessageActionTyping.

func (DecryptedMessageActionTypingArray) Sort added in v0.25.0

Sort sorts slice of DecryptedMessageActionTyping.

func (DecryptedMessageActionTypingArray) SortStable added in v0.25.0

SortStable sorts slice of DecryptedMessageActionTyping.

type DecryptedMessageArray added in v0.25.0

type DecryptedMessageArray []DecryptedMessage

DecryptedMessageArray is adapter for slice of DecryptedMessage.

func (DecryptedMessageArray) First added in v0.25.0

func (s DecryptedMessageArray) First() (v DecryptedMessage, ok bool)

First returns first element of slice (if exists).

func (DecryptedMessageArray) Last added in v0.25.0

func (s DecryptedMessageArray) Last() (v DecryptedMessage, ok bool)

Last returns last element of slice (if exists).

func (*DecryptedMessageArray) Pop added in v0.25.0

func (s *DecryptedMessageArray) Pop() (v DecryptedMessage, ok bool)

Pop returns last element of slice (if exists) and deletes it.

func (*DecryptedMessageArray) PopFirst added in v0.25.0

func (s *DecryptedMessageArray) PopFirst() (v DecryptedMessage, ok bool)

PopFirst returns first element of slice (if exists) and deletes it.

func (DecryptedMessageArray) Retain added in v0.25.0

Retain filters in-place slice of DecryptedMessage.

func (DecryptedMessageArray) Sort added in v0.25.0

Sort sorts slice of DecryptedMessage.

func (DecryptedMessageArray) SortStable added in v0.25.0

func (s DecryptedMessageArray) SortStable(less func(a, b DecryptedMessage) bool) DecryptedMessageArray

SortStable sorts slice of DecryptedMessage.

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

type DecryptedMessageClassArray []DecryptedMessageClass

DecryptedMessageClassArray is adapter for slice of DecryptedMessageClass.

func (DecryptedMessageClassArray) AsDecryptedMessage added in v0.25.0

func (s DecryptedMessageClassArray) AsDecryptedMessage() (to DecryptedMessageArray)

AsDecryptedMessage returns copy with only DecryptedMessage constructors.

func (DecryptedMessageClassArray) AsDecryptedMessage23 added in v0.25.0

func (s DecryptedMessageClassArray) AsDecryptedMessage23() (to DecryptedMessage23Array)

AsDecryptedMessage23 returns copy with only DecryptedMessage23 constructors.

func (DecryptedMessageClassArray) AsDecryptedMessage46 added in v0.25.0

func (s DecryptedMessageClassArray) AsDecryptedMessage46() (to DecryptedMessage46Array)

AsDecryptedMessage46 returns copy with only DecryptedMessage46 constructors.

func (DecryptedMessageClassArray) AsDecryptedMessage8 added in v0.25.0

func (s DecryptedMessageClassArray) AsDecryptedMessage8() (to DecryptedMessage8Array)

AsDecryptedMessage8 returns copy with only DecryptedMessage8 constructors.

func (DecryptedMessageClassArray) AsDecryptedMessageService added in v0.25.0

func (s DecryptedMessageClassArray) AsDecryptedMessageService() (to DecryptedMessageServiceArray)

AsDecryptedMessageService returns copy with only DecryptedMessageService constructors.

func (DecryptedMessageClassArray) AsDecryptedMessageService8 added in v0.25.0

func (s DecryptedMessageClassArray) AsDecryptedMessageService8() (to DecryptedMessageService8Array)

AsDecryptedMessageService8 returns copy with only DecryptedMessageService8 constructors.

func (DecryptedMessageClassArray) First added in v0.25.0

First returns first element of slice (if exists).

func (DecryptedMessageClassArray) Last added in v0.25.0

Last returns last element of slice (if exists).

func (*DecryptedMessageClassArray) Pop added in v0.25.0

Pop returns last element of slice (if exists) and deletes it.

func (*DecryptedMessageClassArray) PopFirst added in v0.25.0

PopFirst returns first element of slice (if exists) and deletes it.

func (DecryptedMessageClassArray) Retain added in v0.25.0

Retain filters in-place slice of DecryptedMessageClass.

func (DecryptedMessageClassArray) Sort added in v0.25.0

Sort sorts slice of DecryptedMessageClass.

func (DecryptedMessageClassArray) SortStable added in v0.25.0

SortStable sorts slice of 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) FillFrom added in v0.25.0

func (d *DecryptedMessageLayer) FillFrom(from interface {
	GetRandomBytes() (value []byte)
	GetLayer() (value int)
	GetInSeqNo() (value int)
	GetOutSeqNo() (value int)
	GetMessage() (value DecryptedMessageClass)
})

FillFrom fills DecryptedMessageLayer from given interface.

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) FillFrom added in v0.25.0

func (d *DecryptedMessageMediaAudio) FillFrom(from interface {
	GetDuration() (value int)
	GetMimeType() (value string)
	GetSize() (value int)
	GetKey() (value []byte)
	GetIv() (value []byte)
})

FillFrom fills DecryptedMessageMediaAudio from given interface.

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) FillFrom added in v0.25.0

func (d *DecryptedMessageMediaAudio8) FillFrom(from interface {
	GetDuration() (value int)
	GetSize() (value int)
	GetKey() (value []byte)
	GetIv() (value []byte)
})

FillFrom fills DecryptedMessageMediaAudio8 from given interface.

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

type DecryptedMessageMediaAudio8Array []DecryptedMessageMediaAudio8

DecryptedMessageMediaAudio8Array is adapter for slice of DecryptedMessageMediaAudio8.

func (DecryptedMessageMediaAudio8Array) First added in v0.25.0

First returns first element of slice (if exists).

func (DecryptedMessageMediaAudio8Array) Last added in v0.25.0

Last returns last element of slice (if exists).

func (*DecryptedMessageMediaAudio8Array) Pop added in v0.25.0

Pop returns last element of slice (if exists) and deletes it.

func (*DecryptedMessageMediaAudio8Array) PopFirst added in v0.25.0

PopFirst returns first element of slice (if exists) and deletes it.

func (DecryptedMessageMediaAudio8Array) Retain added in v0.25.0

Retain filters in-place slice of DecryptedMessageMediaAudio8.

func (DecryptedMessageMediaAudio8Array) Sort added in v0.25.0

Sort sorts slice of DecryptedMessageMediaAudio8.

func (DecryptedMessageMediaAudio8Array) SortStable added in v0.25.0

SortStable sorts slice of DecryptedMessageMediaAudio8.

type DecryptedMessageMediaAudioArray added in v0.25.0

type DecryptedMessageMediaAudioArray []DecryptedMessageMediaAudio

DecryptedMessageMediaAudioArray is adapter for slice of DecryptedMessageMediaAudio.

func (DecryptedMessageMediaAudioArray) First added in v0.25.0

First returns first element of slice (if exists).

func (DecryptedMessageMediaAudioArray) Last added in v0.25.0

Last returns last element of slice (if exists).

func (*DecryptedMessageMediaAudioArray) Pop added in v0.25.0

Pop returns last element of slice (if exists) and deletes it.

func (*DecryptedMessageMediaAudioArray) PopFirst added in v0.25.0

PopFirst returns first element of slice (if exists) and deletes it.

func (DecryptedMessageMediaAudioArray) Retain added in v0.25.0

Retain filters in-place slice of DecryptedMessageMediaAudio.

func (DecryptedMessageMediaAudioArray) Sort added in v0.25.0

Sort sorts slice of DecryptedMessageMediaAudio.

func (DecryptedMessageMediaAudioArray) SortStable added in v0.25.0

SortStable sorts slice of DecryptedMessageMediaAudio.

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

type DecryptedMessageMediaClassArray []DecryptedMessageMediaClass

DecryptedMessageMediaClassArray is adapter for slice of DecryptedMessageMediaClass.

func (DecryptedMessageMediaClassArray) AsDecryptedMessageMediaAudio added in v0.25.0

func (s DecryptedMessageMediaClassArray) AsDecryptedMessageMediaAudio() (to DecryptedMessageMediaAudioArray)

AsDecryptedMessageMediaAudio returns copy with only DecryptedMessageMediaAudio constructors.

func (DecryptedMessageMediaClassArray) AsDecryptedMessageMediaAudio8 added in v0.25.0

func (s DecryptedMessageMediaClassArray) AsDecryptedMessageMediaAudio8() (to DecryptedMessageMediaAudio8Array)

AsDecryptedMessageMediaAudio8 returns copy with only DecryptedMessageMediaAudio8 constructors.

func (DecryptedMessageMediaClassArray) AsDecryptedMessageMediaContact added in v0.25.0

func (s DecryptedMessageMediaClassArray) AsDecryptedMessageMediaContact() (to DecryptedMessageMediaContactArray)

AsDecryptedMessageMediaContact returns copy with only DecryptedMessageMediaContact constructors.

func (DecryptedMessageMediaClassArray) AsDecryptedMessageMediaDocument added in v0.25.0

func (s DecryptedMessageMediaClassArray) AsDecryptedMessageMediaDocument() (to DecryptedMessageMediaDocumentArray)

AsDecryptedMessageMediaDocument returns copy with only DecryptedMessageMediaDocument constructors.

func (DecryptedMessageMediaClassArray) AsDecryptedMessageMediaDocument23 added in v0.25.0

func (s DecryptedMessageMediaClassArray) AsDecryptedMessageMediaDocument23() (to DecryptedMessageMediaDocument23Array)

AsDecryptedMessageMediaDocument23 returns copy with only DecryptedMessageMediaDocument23 constructors.

func (DecryptedMessageMediaClassArray) AsDecryptedMessageMediaExternalDocument added in v0.25.0

func (s DecryptedMessageMediaClassArray) AsDecryptedMessageMediaExternalDocument() (to DecryptedMessageMediaExternalDocumentArray)

AsDecryptedMessageMediaExternalDocument returns copy with only DecryptedMessageMediaExternalDocument constructors.

func (DecryptedMessageMediaClassArray) AsDecryptedMessageMediaGeoPoint added in v0.25.0

func (s DecryptedMessageMediaClassArray) AsDecryptedMessageMediaGeoPoint() (to DecryptedMessageMediaGeoPointArray)

AsDecryptedMessageMediaGeoPoint returns copy with only DecryptedMessageMediaGeoPoint constructors.

func (DecryptedMessageMediaClassArray) AsDecryptedMessageMediaPhoto added in v0.25.0

func (s DecryptedMessageMediaClassArray) AsDecryptedMessageMediaPhoto() (to DecryptedMessageMediaPhotoArray)

AsDecryptedMessageMediaPhoto returns copy with only DecryptedMessageMediaPhoto constructors.

func (DecryptedMessageMediaClassArray) AsDecryptedMessageMediaPhoto23 added in v0.25.0

func (s DecryptedMessageMediaClassArray) AsDecryptedMessageMediaPhoto23() (to DecryptedMessageMediaPhoto23Array)

AsDecryptedMessageMediaPhoto23 returns copy with only DecryptedMessageMediaPhoto23 constructors.

func (DecryptedMessageMediaClassArray) AsDecryptedMessageMediaVenue added in v0.25.0

func (s DecryptedMessageMediaClassArray) AsDecryptedMessageMediaVenue() (to DecryptedMessageMediaVenueArray)

AsDecryptedMessageMediaVenue returns copy with only DecryptedMessageMediaVenue constructors.

func (DecryptedMessageMediaClassArray) AsDecryptedMessageMediaVideo added in v0.25.0

func (s DecryptedMessageMediaClassArray) AsDecryptedMessageMediaVideo() (to DecryptedMessageMediaVideoArray)

AsDecryptedMessageMediaVideo returns copy with only DecryptedMessageMediaVideo constructors.

func (DecryptedMessageMediaClassArray) AsDecryptedMessageMediaVideo23 added in v0.25.0

func (s DecryptedMessageMediaClassArray) AsDecryptedMessageMediaVideo23() (to DecryptedMessageMediaVideo23Array)

AsDecryptedMessageMediaVideo23 returns copy with only DecryptedMessageMediaVideo23 constructors.

func (DecryptedMessageMediaClassArray) AsDecryptedMessageMediaVideo8 added in v0.25.0

func (s DecryptedMessageMediaClassArray) AsDecryptedMessageMediaVideo8() (to DecryptedMessageMediaVideo8Array)

AsDecryptedMessageMediaVideo8 returns copy with only DecryptedMessageMediaVideo8 constructors.

func (DecryptedMessageMediaClassArray) AsDecryptedMessageMediaWebPage added in v0.25.0

func (s DecryptedMessageMediaClassArray) AsDecryptedMessageMediaWebPage() (to DecryptedMessageMediaWebPageArray)

AsDecryptedMessageMediaWebPage returns copy with only DecryptedMessageMediaWebPage constructors.

func (DecryptedMessageMediaClassArray) First added in v0.25.0

First returns first element of slice (if exists).

func (DecryptedMessageMediaClassArray) Last added in v0.25.0

Last returns last element of slice (if exists).

func (*DecryptedMessageMediaClassArray) Pop added in v0.25.0

Pop returns last element of slice (if exists) and deletes it.

func (*DecryptedMessageMediaClassArray) PopFirst added in v0.25.0

PopFirst returns first element of slice (if exists) and deletes it.

func (DecryptedMessageMediaClassArray) Retain added in v0.25.0

Retain filters in-place slice of DecryptedMessageMediaClass.

func (DecryptedMessageMediaClassArray) Sort added in v0.25.0

Sort sorts slice of DecryptedMessageMediaClass.

func (DecryptedMessageMediaClassArray) SortStable added in v0.25.0

SortStable sorts slice of 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) FillFrom added in v0.25.0

func (d *DecryptedMessageMediaContact) FillFrom(from interface {
	GetPhoneNumber() (value string)
	GetFirstName() (value string)
	GetLastName() (value string)
	GetUserID() (value int)
})

FillFrom fills DecryptedMessageMediaContact from given interface.

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

type DecryptedMessageMediaContactArray []DecryptedMessageMediaContact

DecryptedMessageMediaContactArray is adapter for slice of DecryptedMessageMediaContact.

func (DecryptedMessageMediaContactArray) First added in v0.25.0

First returns first element of slice (if exists).

func (DecryptedMessageMediaContactArray) Last added in v0.25.0

Last returns last element of slice (if exists).

func (*DecryptedMessageMediaContactArray) Pop added in v0.25.0

Pop returns last element of slice (if exists) and deletes it.

func (*DecryptedMessageMediaContactArray) PopFirst added in v0.25.0

PopFirst returns first element of slice (if exists) and deletes it.

func (DecryptedMessageMediaContactArray) Retain added in v0.25.0

Retain filters in-place slice of DecryptedMessageMediaContact.

func (DecryptedMessageMediaContactArray) Sort added in v0.25.0

Sort sorts slice of DecryptedMessageMediaContact.

func (DecryptedMessageMediaContactArray) SortStable added in v0.25.0

SortStable sorts slice of DecryptedMessageMediaContact.

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) FillFrom added in v0.25.0

func (d *DecryptedMessageMediaDocument) FillFrom(from interface {
	GetThumb() (value []byte)
	GetThumbW() (value int)
	GetThumbH() (value int)
	GetMimeType() (value string)
	GetSize() (value int)
	GetKey() (value []byte)
	GetIv() (value []byte)
	GetAttributes() (value []DocumentAttributeClass)
	GetCaption() (value string)
})

FillFrom fills DecryptedMessageMediaDocument from given interface.

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) MapAttributes added in v0.25.0

MapAttributes returns field Attributes wrapped in DocumentAttributeClassArray helper.

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) FillFrom added in v0.25.0

func (d *DecryptedMessageMediaDocument23) FillFrom(from interface {
	GetThumb() (value []byte)
	GetThumbW() (value int)
	GetThumbH() (value int)
	GetFileName() (value string)
	GetMimeType() (value string)
	GetSize() (value int)
	GetKey() (value []byte)
	GetIv() (value []byte)
})

FillFrom fills DecryptedMessageMediaDocument23 from given interface.

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

type DecryptedMessageMediaDocument23Array []DecryptedMessageMediaDocument23

DecryptedMessageMediaDocument23Array is adapter for slice of DecryptedMessageMediaDocument23.

func (DecryptedMessageMediaDocument23Array) First added in v0.25.0

First returns first element of slice (if exists).

func (DecryptedMessageMediaDocument23Array) Last added in v0.25.0

Last returns last element of slice (if exists).

func (*DecryptedMessageMediaDocument23Array) Pop added in v0.25.0

Pop returns last element of slice (if exists) and deletes it.

func (*DecryptedMessageMediaDocument23Array) PopFirst added in v0.25.0

PopFirst returns first element of slice (if exists) and deletes it.

func (DecryptedMessageMediaDocument23Array) Retain added in v0.25.0

Retain filters in-place slice of DecryptedMessageMediaDocument23.

func (DecryptedMessageMediaDocument23Array) Sort added in v0.25.0

Sort sorts slice of DecryptedMessageMediaDocument23.

func (DecryptedMessageMediaDocument23Array) SortStable added in v0.25.0

SortStable sorts slice of DecryptedMessageMediaDocument23.

type DecryptedMessageMediaDocumentArray added in v0.25.0

type DecryptedMessageMediaDocumentArray []DecryptedMessageMediaDocument

DecryptedMessageMediaDocumentArray is adapter for slice of DecryptedMessageMediaDocument.

func (DecryptedMessageMediaDocumentArray) First added in v0.25.0

First returns first element of slice (if exists).

func (DecryptedMessageMediaDocumentArray) Last added in v0.25.0

Last returns last element of slice (if exists).

func (*DecryptedMessageMediaDocumentArray) Pop added in v0.25.0

Pop returns last element of slice (if exists) and deletes it.

func (*DecryptedMessageMediaDocumentArray) PopFirst added in v0.25.0

PopFirst returns first element of slice (if exists) and deletes it.

func (DecryptedMessageMediaDocumentArray) Retain added in v0.25.0

Retain filters in-place slice of DecryptedMessageMediaDocument.

func (DecryptedMessageMediaDocumentArray) Sort added in v0.25.0

Sort sorts slice of DecryptedMessageMediaDocument.

func (DecryptedMessageMediaDocumentArray) SortStable added in v0.25.0

SortStable sorts slice of DecryptedMessageMediaDocument.

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) FillFrom added in v0.25.0

func (d *DecryptedMessageMediaExternalDocument) FillFrom(from interface {
	GetID() (value int64)
	GetAccessHash() (value int64)
	GetDate() (value int)
	GetMimeType() (value string)
	GetSize() (value int)
	GetThumb() (value PhotoSizeClass)
	GetDCID() (value int)
	GetAttributes() (value []DocumentAttributeClass)
})

FillFrom fills DecryptedMessageMediaExternalDocument from given interface.

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) MapAttributes added in v0.25.0

MapAttributes returns field Attributes wrapped in DocumentAttributeClassArray helper.

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

type DecryptedMessageMediaExternalDocumentArray []DecryptedMessageMediaExternalDocument

DecryptedMessageMediaExternalDocumentArray is adapter for slice of DecryptedMessageMediaExternalDocument.

func (DecryptedMessageMediaExternalDocumentArray) First added in v0.25.0

First returns first element of slice (if exists).

func (DecryptedMessageMediaExternalDocumentArray) Last added in v0.25.0

Last returns last element of slice (if exists).

func (*DecryptedMessageMediaExternalDocumentArray) Pop added in v0.25.0

Pop returns last element of slice (if exists) and deletes it.

func (*DecryptedMessageMediaExternalDocumentArray) PopFirst added in v0.25.0

PopFirst returns first element of slice (if exists) and deletes it.

func (DecryptedMessageMediaExternalDocumentArray) Retain added in v0.25.0

Retain filters in-place slice of DecryptedMessageMediaExternalDocument.

func (DecryptedMessageMediaExternalDocumentArray) Sort added in v0.25.0

Sort sorts slice of DecryptedMessageMediaExternalDocument.

func (DecryptedMessageMediaExternalDocumentArray) SortByDate added in v0.25.0

SortByDate sorts slice of DecryptedMessageMediaExternalDocument by Date.

func (DecryptedMessageMediaExternalDocumentArray) SortStable added in v0.25.0

SortStable sorts slice of DecryptedMessageMediaExternalDocument.

func (DecryptedMessageMediaExternalDocumentArray) SortStableByDate added in v0.25.0

SortStableByDate sorts slice of DecryptedMessageMediaExternalDocument by Date.

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) FillFrom added in v0.25.0

func (d *DecryptedMessageMediaGeoPoint) FillFrom(from interface {
	GetLat() (value float64)
	GetLong() (value float64)
})

FillFrom fills DecryptedMessageMediaGeoPoint from given interface.

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

type DecryptedMessageMediaGeoPointArray []DecryptedMessageMediaGeoPoint

DecryptedMessageMediaGeoPointArray is adapter for slice of DecryptedMessageMediaGeoPoint.

func (DecryptedMessageMediaGeoPointArray) First added in v0.25.0

First returns first element of slice (if exists).

func (DecryptedMessageMediaGeoPointArray) Last added in v0.25.0

Last returns last element of slice (if exists).

func (*DecryptedMessageMediaGeoPointArray) Pop added in v0.25.0

Pop returns last element of slice (if exists) and deletes it.

func (*DecryptedMessageMediaGeoPointArray) PopFirst added in v0.25.0

PopFirst returns first element of slice (if exists) and deletes it.

func (DecryptedMessageMediaGeoPointArray) Retain added in v0.25.0

Retain filters in-place slice of DecryptedMessageMediaGeoPoint.

func (DecryptedMessageMediaGeoPointArray) Sort added in v0.25.0

Sort sorts slice of DecryptedMessageMediaGeoPoint.

func (DecryptedMessageMediaGeoPointArray) SortStable added in v0.25.0

SortStable sorts slice of DecryptedMessageMediaGeoPoint.

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) FillFrom added in v0.25.0

func (d *DecryptedMessageMediaPhoto) FillFrom(from interface {
	GetThumb() (value []byte)
	GetThumbW() (value int)
	GetThumbH() (value int)
	GetW() (value int)
	GetH() (value int)
	GetSize() (value int)
	GetKey() (value []byte)
	GetIv() (value []byte)
	GetCaption() (value string)
})

FillFrom fills DecryptedMessageMediaPhoto from given interface.

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) FillFrom added in v0.25.0

func (d *DecryptedMessageMediaPhoto23) FillFrom(from interface {
	GetThumb() (value []byte)
	GetThumbW() (value int)
	GetThumbH() (value int)
	GetW() (value int)
	GetH() (value int)
	GetSize() (value int)
	GetKey() (value []byte)
	GetIv() (value []byte)
})

FillFrom fills DecryptedMessageMediaPhoto23 from given interface.

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

type DecryptedMessageMediaPhoto23Array []DecryptedMessageMediaPhoto23

DecryptedMessageMediaPhoto23Array is adapter for slice of DecryptedMessageMediaPhoto23.

func (DecryptedMessageMediaPhoto23Array) First added in v0.25.0

First returns first element of slice (if exists).

func (DecryptedMessageMediaPhoto23Array) Last added in v0.25.0

Last returns last element of slice (if exists).

func (*DecryptedMessageMediaPhoto23Array) Pop added in v0.25.0

Pop returns last element of slice (if exists) and deletes it.

func (*DecryptedMessageMediaPhoto23Array) PopFirst added in v0.25.0

PopFirst returns first element of slice (if exists) and deletes it.

func (DecryptedMessageMediaPhoto23Array) Retain added in v0.25.0

Retain filters in-place slice of DecryptedMessageMediaPhoto23.

func (DecryptedMessageMediaPhoto23Array) Sort added in v0.25.0

Sort sorts slice of DecryptedMessageMediaPhoto23.

func (DecryptedMessageMediaPhoto23Array) SortStable added in v0.25.0

SortStable sorts slice of DecryptedMessageMediaPhoto23.

type DecryptedMessageMediaPhotoArray added in v0.25.0

type DecryptedMessageMediaPhotoArray []DecryptedMessageMediaPhoto

DecryptedMessageMediaPhotoArray is adapter for slice of DecryptedMessageMediaPhoto.

func (DecryptedMessageMediaPhotoArray) First added in v0.25.0

First returns first element of slice (if exists).

func (DecryptedMessageMediaPhotoArray) Last added in v0.25.0

Last returns last element of slice (if exists).

func (*DecryptedMessageMediaPhotoArray) Pop added in v0.25.0

Pop returns last element of slice (if exists) and deletes it.

func (*DecryptedMessageMediaPhotoArray) PopFirst added in v0.25.0

PopFirst returns first element of slice (if exists) and deletes it.

func (DecryptedMessageMediaPhotoArray) Retain added in v0.25.0

Retain filters in-place slice of DecryptedMessageMediaPhoto.

func (DecryptedMessageMediaPhotoArray) Sort added in v0.25.0

Sort sorts slice of DecryptedMessageMediaPhoto.

func (DecryptedMessageMediaPhotoArray) SortStable added in v0.25.0

SortStable sorts slice of DecryptedMessageMediaPhoto.

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) FillFrom added in v0.25.0

func (d *DecryptedMessageMediaVenue) FillFrom(from interface {
	GetLat() (value float64)
	GetLong() (value float64)
	GetTitle() (value string)
	GetAddress() (value string)
	GetProvider() (value string)
	GetVenueID() (value string)
})

FillFrom fills DecryptedMessageMediaVenue from given interface.

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

type DecryptedMessageMediaVenueArray []DecryptedMessageMediaVenue

DecryptedMessageMediaVenueArray is adapter for slice of DecryptedMessageMediaVenue.

func (DecryptedMessageMediaVenueArray) First added in v0.25.0

First returns first element of slice (if exists).

func (DecryptedMessageMediaVenueArray) Last added in v0.25.0

Last returns last element of slice (if exists).

func (*DecryptedMessageMediaVenueArray) Pop added in v0.25.0

Pop returns last element of slice (if exists) and deletes it.

func (*DecryptedMessageMediaVenueArray) PopFirst added in v0.25.0

PopFirst returns first element of slice (if exists) and deletes it.

func (DecryptedMessageMediaVenueArray) Retain added in v0.25.0

Retain filters in-place slice of DecryptedMessageMediaVenue.

func (DecryptedMessageMediaVenueArray) Sort added in v0.25.0

Sort sorts slice of DecryptedMessageMediaVenue.

func (DecryptedMessageMediaVenueArray) SortStable added in v0.25.0

SortStable sorts slice of DecryptedMessageMediaVenue.

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) FillFrom added in v0.25.0

func (d *DecryptedMessageMediaVideo) FillFrom(from interface {
	GetThumb() (value []byte)
	GetThumbW() (value int)
	GetThumbH() (value int)
	GetDuration() (value int)
	GetMimeType() (value string)
	GetW() (value int)
	GetH() (value int)
	GetSize() (value int)
	GetKey() (value []byte)
	GetIv() (value []byte)
	GetCaption() (value string)
})

FillFrom fills DecryptedMessageMediaVideo from given interface.

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) FillFrom added in v0.25.0

func (d *DecryptedMessageMediaVideo23) FillFrom(from interface {
	GetThumb() (value []byte)
	GetThumbW() (value int)
	GetThumbH() (value int)
	GetDuration() (value int)
	GetMimeType() (value string)
	GetW() (value int)
	GetH() (value int)
	GetSize() (value int)
	GetKey() (value []byte)
	GetIv() (value []byte)
})

FillFrom fills DecryptedMessageMediaVideo23 from given interface.

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

type DecryptedMessageMediaVideo23Array []DecryptedMessageMediaVideo23

DecryptedMessageMediaVideo23Array is adapter for slice of DecryptedMessageMediaVideo23.

func (DecryptedMessageMediaVideo23Array) First added in v0.25.0

First returns first element of slice (if exists).

func (DecryptedMessageMediaVideo23Array) Last added in v0.25.0

Last returns last element of slice (if exists).

func (*DecryptedMessageMediaVideo23Array) Pop added in v0.25.0

Pop returns last element of slice (if exists) and deletes it.

func (*DecryptedMessageMediaVideo23Array) PopFirst added in v0.25.0

PopFirst returns first element of slice (if exists) and deletes it.

func (DecryptedMessageMediaVideo23Array) Retain added in v0.25.0

Retain filters in-place slice of DecryptedMessageMediaVideo23.

func (DecryptedMessageMediaVideo23Array) Sort added in v0.25.0

Sort sorts slice of DecryptedMessageMediaVideo23.

func (DecryptedMessageMediaVideo23Array) SortStable added in v0.25.0

SortStable sorts slice of DecryptedMessageMediaVideo23.

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) FillFrom added in v0.25.0

func (d *DecryptedMessageMediaVideo8) FillFrom(from interface {
	GetThumb() (value []byte)
	GetThumbW() (value int)
	GetThumbH() (value int)
	GetDuration() (value int)
	GetW() (value int)
	GetH() (value int)
	GetSize() (value int)
	GetKey() (value []byte)
	GetIv() (value []byte)
})

FillFrom fills DecryptedMessageMediaVideo8 from given interface.

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

type DecryptedMessageMediaVideo8Array []DecryptedMessageMediaVideo8

DecryptedMessageMediaVideo8Array is adapter for slice of DecryptedMessageMediaVideo8.

func (DecryptedMessageMediaVideo8Array) First added in v0.25.0

First returns first element of slice (if exists).

func (DecryptedMessageMediaVideo8Array) Last added in v0.25.0

Last returns last element of slice (if exists).

func (*DecryptedMessageMediaVideo8Array) Pop added in v0.25.0

Pop returns last element of slice (if exists) and deletes it.

func (*DecryptedMessageMediaVideo8Array) PopFirst added in v0.25.0

PopFirst returns first element of slice (if exists) and deletes it.

func (DecryptedMessageMediaVideo8Array) Retain added in v0.25.0

Retain filters in-place slice of DecryptedMessageMediaVideo8.

func (DecryptedMessageMediaVideo8Array) Sort added in v0.25.0

Sort sorts slice of DecryptedMessageMediaVideo8.

func (DecryptedMessageMediaVideo8Array) SortStable added in v0.25.0

SortStable sorts slice of DecryptedMessageMediaVideo8.

type DecryptedMessageMediaVideoArray added in v0.25.0

type DecryptedMessageMediaVideoArray []DecryptedMessageMediaVideo

DecryptedMessageMediaVideoArray is adapter for slice of DecryptedMessageMediaVideo.

func (DecryptedMessageMediaVideoArray) First added in v0.25.0

First returns first element of slice (if exists).

func (DecryptedMessageMediaVideoArray) Last added in v0.25.0

Last returns last element of slice (if exists).

func (*DecryptedMessageMediaVideoArray) Pop added in v0.25.0

Pop returns last element of slice (if exists) and deletes it.

func (*DecryptedMessageMediaVideoArray) PopFirst added in v0.25.0

PopFirst returns first element of slice (if exists) and deletes it.

func (DecryptedMessageMediaVideoArray) Retain added in v0.25.0

Retain filters in-place slice of DecryptedMessageMediaVideo.

func (DecryptedMessageMediaVideoArray) Sort added in v0.25.0

Sort sorts slice of DecryptedMessageMediaVideo.

func (DecryptedMessageMediaVideoArray) SortStable added in v0.25.0

SortStable sorts slice of DecryptedMessageMediaVideo.

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) FillFrom added in v0.25.0

func (d *DecryptedMessageMediaWebPage) FillFrom(from interface {
	GetURL() (value string)
})

FillFrom fills DecryptedMessageMediaWebPage from given interface.

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

type DecryptedMessageMediaWebPageArray []DecryptedMessageMediaWebPage

DecryptedMessageMediaWebPageArray is adapter for slice of DecryptedMessageMediaWebPage.

func (DecryptedMessageMediaWebPageArray) First added in v0.25.0

First returns first element of slice (if exists).

func (DecryptedMessageMediaWebPageArray) Last added in v0.25.0

Last returns last element of slice (if exists).

func (*DecryptedMessageMediaWebPageArray) Pop added in v0.25.0

Pop returns last element of slice (if exists) and deletes it.

func (*DecryptedMessageMediaWebPageArray) PopFirst added in v0.25.0

PopFirst returns first element of slice (if exists) and deletes it.

func (DecryptedMessageMediaWebPageArray) Retain added in v0.25.0

Retain filters in-place slice of DecryptedMessageMediaWebPage.

func (DecryptedMessageMediaWebPageArray) Sort added in v0.25.0

Sort sorts slice of DecryptedMessageMediaWebPage.

func (DecryptedMessageMediaWebPageArray) SortStable added in v0.25.0

SortStable sorts slice of DecryptedMessageMediaWebPage.

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) FillFrom added in v0.25.0

func (d *DecryptedMessageService) FillFrom(from interface {
	GetRandomID() (value int64)
	GetAction() (value DecryptedMessageActionClass)
})

FillFrom fills DecryptedMessageService from given interface.

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) FillFrom added in v0.25.0

func (d *DecryptedMessageService8) FillFrom(from interface {
	GetRandomID() (value int64)
	GetRandomBytes() (value []byte)
	GetAction() (value DecryptedMessageActionClass)
})

FillFrom fills DecryptedMessageService8 from given interface.

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

type DecryptedMessageService8Array []DecryptedMessageService8

DecryptedMessageService8Array is adapter for slice of DecryptedMessageService8.

func (DecryptedMessageService8Array) First added in v0.25.0

First returns first element of slice (if exists).

func (DecryptedMessageService8Array) Last added in v0.25.0

Last returns last element of slice (if exists).

func (*DecryptedMessageService8Array) Pop added in v0.25.0

Pop returns last element of slice (if exists) and deletes it.

func (*DecryptedMessageService8Array) PopFirst added in v0.25.0

PopFirst returns first element of slice (if exists) and deletes it.

func (DecryptedMessageService8Array) Retain added in v0.25.0

Retain filters in-place slice of DecryptedMessageService8.

func (DecryptedMessageService8Array) Sort added in v0.25.0

Sort sorts slice of DecryptedMessageService8.

func (DecryptedMessageService8Array) SortStable added in v0.25.0

SortStable sorts slice of DecryptedMessageService8.

type DecryptedMessageServiceArray added in v0.25.0

type DecryptedMessageServiceArray []DecryptedMessageService

DecryptedMessageServiceArray is adapter for slice of DecryptedMessageService.

func (DecryptedMessageServiceArray) First added in v0.25.0

First returns first element of slice (if exists).

func (DecryptedMessageServiceArray) Last added in v0.25.0

Last returns last element of slice (if exists).

func (*DecryptedMessageServiceArray) Pop added in v0.25.0

Pop returns last element of slice (if exists) and deletes it.

func (*DecryptedMessageServiceArray) PopFirst added in v0.25.0

PopFirst returns first element of slice (if exists) and deletes it.

func (DecryptedMessageServiceArray) Retain added in v0.25.0

Retain filters in-place slice of DecryptedMessageService.

func (DecryptedMessageServiceArray) Sort added in v0.25.0

Sort sorts slice of DecryptedMessageService.

func (DecryptedMessageServiceArray) SortStable added in v0.25.0

SortStable sorts slice of DecryptedMessageService.

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) FillFrom added in v0.25.0

func (d *DocumentAttributeAudio) FillFrom(from interface {
	GetVoice() (value bool)
	GetDuration() (value int)
	GetTitle() (value string, ok bool)
	GetPerformer() (value string, ok bool)
	GetWaveform() (value []byte, ok bool)
})

FillFrom fills DocumentAttributeAudio from given interface.

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) FillFrom added in v0.25.0

func (d *DocumentAttributeAudio23) FillFrom(from interface {
	GetDuration() (value int)
})

FillFrom fills DocumentAttributeAudio23 from given interface.

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

type DocumentAttributeAudio23Array []DocumentAttributeAudio23

DocumentAttributeAudio23Array is adapter for slice of DocumentAttributeAudio23.

func (DocumentAttributeAudio23Array) First added in v0.25.0

First returns first element of slice (if exists).

func (DocumentAttributeAudio23Array) Last added in v0.25.0

Last returns last element of slice (if exists).

func (*DocumentAttributeAudio23Array) Pop added in v0.25.0

Pop returns last element of slice (if exists) and deletes it.

func (*DocumentAttributeAudio23Array) PopFirst added in v0.25.0

PopFirst returns first element of slice (if exists) and deletes it.

func (DocumentAttributeAudio23Array) Retain added in v0.25.0

Retain filters in-place slice of DocumentAttributeAudio23.

func (DocumentAttributeAudio23Array) Sort added in v0.25.0

Sort sorts slice of DocumentAttributeAudio23.

func (DocumentAttributeAudio23Array) SortStable added in v0.25.0

SortStable sorts slice of DocumentAttributeAudio23.

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) FillFrom added in v0.25.0

func (d *DocumentAttributeAudio45) FillFrom(from interface {
	GetDuration() (value int)
	GetTitle() (value string)
	GetPerformer() (value string)
})

FillFrom fills DocumentAttributeAudio45 from given interface.

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

type DocumentAttributeAudio45Array []DocumentAttributeAudio45

DocumentAttributeAudio45Array is adapter for slice of DocumentAttributeAudio45.

func (DocumentAttributeAudio45Array) First added in v0.25.0

First returns first element of slice (if exists).

func (DocumentAttributeAudio45Array) Last added in v0.25.0

Last returns last element of slice (if exists).

func (*DocumentAttributeAudio45Array) Pop added in v0.25.0

Pop returns last element of slice (if exists) and deletes it.

func (*DocumentAttributeAudio45Array) PopFirst added in v0.25.0

PopFirst returns first element of slice (if exists) and deletes it.

func (DocumentAttributeAudio45Array) Retain added in v0.25.0

Retain filters in-place slice of DocumentAttributeAudio45.

func (DocumentAttributeAudio45Array) Sort added in v0.25.0

Sort sorts slice of DocumentAttributeAudio45.

func (DocumentAttributeAudio45Array) SortStable added in v0.25.0

SortStable sorts slice of DocumentAttributeAudio45.

type DocumentAttributeAudioArray added in v0.25.0

type DocumentAttributeAudioArray []DocumentAttributeAudio

DocumentAttributeAudioArray is adapter for slice of DocumentAttributeAudio.

func (DocumentAttributeAudioArray) First added in v0.25.0

First returns first element of slice (if exists).

func (DocumentAttributeAudioArray) Last added in v0.25.0

Last returns last element of slice (if exists).

func (*DocumentAttributeAudioArray) Pop added in v0.25.0

Pop returns last element of slice (if exists) and deletes it.

func (*DocumentAttributeAudioArray) PopFirst added in v0.25.0

PopFirst returns first element of slice (if exists) and deletes it.

func (DocumentAttributeAudioArray) Retain added in v0.25.0

Retain filters in-place slice of DocumentAttributeAudio.

func (DocumentAttributeAudioArray) Sort added in v0.25.0

Sort sorts slice of DocumentAttributeAudio.

func (DocumentAttributeAudioArray) SortStable added in v0.25.0

SortStable sorts slice of DocumentAttributeAudio.

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

type DocumentAttributeClassArray []DocumentAttributeClass

DocumentAttributeClassArray is adapter for slice of DocumentAttributeClass.

func (DocumentAttributeClassArray) AsDocumentAttributeAudio added in v0.25.0

func (s DocumentAttributeClassArray) AsDocumentAttributeAudio() (to DocumentAttributeAudioArray)

AsDocumentAttributeAudio returns copy with only DocumentAttributeAudio constructors.

func (DocumentAttributeClassArray) AsDocumentAttributeAudio23 added in v0.25.0

func (s DocumentAttributeClassArray) AsDocumentAttributeAudio23() (to DocumentAttributeAudio23Array)

AsDocumentAttributeAudio23 returns copy with only DocumentAttributeAudio23 constructors.

func (DocumentAttributeClassArray) AsDocumentAttributeAudio45 added in v0.25.0

func (s DocumentAttributeClassArray) AsDocumentAttributeAudio45() (to DocumentAttributeAudio45Array)

AsDocumentAttributeAudio45 returns copy with only DocumentAttributeAudio45 constructors.

func (DocumentAttributeClassArray) AsDocumentAttributeFilename added in v0.25.0

func (s DocumentAttributeClassArray) AsDocumentAttributeFilename() (to DocumentAttributeFilenameArray)

AsDocumentAttributeFilename returns copy with only DocumentAttributeFilename constructors.

func (DocumentAttributeClassArray) AsDocumentAttributeImageSize added in v0.25.0

func (s DocumentAttributeClassArray) AsDocumentAttributeImageSize() (to DocumentAttributeImageSizeArray)

AsDocumentAttributeImageSize returns copy with only DocumentAttributeImageSize constructors.

func (DocumentAttributeClassArray) AsDocumentAttributeSticker added in v0.25.0

func (s DocumentAttributeClassArray) AsDocumentAttributeSticker() (to DocumentAttributeStickerArray)

AsDocumentAttributeSticker returns copy with only DocumentAttributeSticker constructors.

func (DocumentAttributeClassArray) AsDocumentAttributeVideo added in v0.25.0

func (s DocumentAttributeClassArray) AsDocumentAttributeVideo() (to DocumentAttributeVideoArray)

AsDocumentAttributeVideo returns copy with only DocumentAttributeVideo constructors.

func (DocumentAttributeClassArray) AsDocumentAttributeVideo66 added in v0.25.0

func (s DocumentAttributeClassArray) AsDocumentAttributeVideo66() (to DocumentAttributeVideo66Array)

AsDocumentAttributeVideo66 returns copy with only DocumentAttributeVideo66 constructors.

func (DocumentAttributeClassArray) First added in v0.25.0

First returns first element of slice (if exists).

func (DocumentAttributeClassArray) Last added in v0.25.0

Last returns last element of slice (if exists).

func (*DocumentAttributeClassArray) Pop added in v0.25.0

Pop returns last element of slice (if exists) and deletes it.

func (*DocumentAttributeClassArray) PopFirst added in v0.25.0

PopFirst returns first element of slice (if exists) and deletes it.

func (DocumentAttributeClassArray) Retain added in v0.25.0

Retain filters in-place slice of DocumentAttributeClass.

func (DocumentAttributeClassArray) Sort added in v0.25.0

Sort sorts slice of DocumentAttributeClass.

func (DocumentAttributeClassArray) SortStable added in v0.25.0

SortStable sorts slice of 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) FillFrom added in v0.25.0

func (d *DocumentAttributeFilename) FillFrom(from interface {
	GetFileName() (value string)
})

FillFrom fills DocumentAttributeFilename from given interface.

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

type DocumentAttributeFilenameArray []DocumentAttributeFilename

DocumentAttributeFilenameArray is adapter for slice of DocumentAttributeFilename.

func (DocumentAttributeFilenameArray) First added in v0.25.0

First returns first element of slice (if exists).

func (DocumentAttributeFilenameArray) Last added in v0.25.0

Last returns last element of slice (if exists).

func (*DocumentAttributeFilenameArray) Pop added in v0.25.0

Pop returns last element of slice (if exists) and deletes it.

func (*DocumentAttributeFilenameArray) PopFirst added in v0.25.0

PopFirst returns first element of slice (if exists) and deletes it.

func (DocumentAttributeFilenameArray) Retain added in v0.25.0

Retain filters in-place slice of DocumentAttributeFilename.

func (DocumentAttributeFilenameArray) Sort added in v0.25.0

Sort sorts slice of DocumentAttributeFilename.

func (DocumentAttributeFilenameArray) SortStable added in v0.25.0

SortStable sorts slice of DocumentAttributeFilename.

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) FillFrom added in v0.25.0

func (d *DocumentAttributeImageSize) FillFrom(from interface {
	GetW() (value int)
	GetH() (value int)
})

FillFrom fills DocumentAttributeImageSize from given interface.

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

type DocumentAttributeImageSizeArray []DocumentAttributeImageSize

DocumentAttributeImageSizeArray is adapter for slice of DocumentAttributeImageSize.

func (DocumentAttributeImageSizeArray) First added in v0.25.0

First returns first element of slice (if exists).

func (DocumentAttributeImageSizeArray) Last added in v0.25.0

Last returns last element of slice (if exists).

func (*DocumentAttributeImageSizeArray) Pop added in v0.25.0

Pop returns last element of slice (if exists) and deletes it.

func (*DocumentAttributeImageSizeArray) PopFirst added in v0.25.0

PopFirst returns first element of slice (if exists) and deletes it.

func (DocumentAttributeImageSizeArray) Retain added in v0.25.0

Retain filters in-place slice of DocumentAttributeImageSize.

func (DocumentAttributeImageSizeArray) Sort added in v0.25.0

Sort sorts slice of DocumentAttributeImageSize.

func (DocumentAttributeImageSizeArray) SortStable added in v0.25.0

SortStable sorts slice of DocumentAttributeImageSize.

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) FillFrom added in v0.25.0

func (d *DocumentAttributeSticker) FillFrom(from interface {
	GetAlt() (value string)
	GetStickerset() (value InputStickerSetClass)
})

FillFrom fills DocumentAttributeSticker from given interface.

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

type DocumentAttributeStickerArray []DocumentAttributeSticker

DocumentAttributeStickerArray is adapter for slice of DocumentAttributeSticker.

func (DocumentAttributeStickerArray) First added in v0.25.0

First returns first element of slice (if exists).

func (DocumentAttributeStickerArray) Last added in v0.25.0

Last returns last element of slice (if exists).

func (*DocumentAttributeStickerArray) Pop added in v0.25.0

Pop returns last element of slice (if exists) and deletes it.

func (*DocumentAttributeStickerArray) PopFirst added in v0.25.0

PopFirst returns first element of slice (if exists) and deletes it.

func (DocumentAttributeStickerArray) Retain added in v0.25.0

Retain filters in-place slice of DocumentAttributeSticker.

func (DocumentAttributeStickerArray) Sort added in v0.25.0

Sort sorts slice of DocumentAttributeSticker.

func (DocumentAttributeStickerArray) SortStable added in v0.25.0

SortStable sorts slice of DocumentAttributeSticker.

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) FillFrom added in v0.25.0

func (d *DocumentAttributeVideo) FillFrom(from interface {
	GetDuration() (value int)
	GetW() (value int)
	GetH() (value int)
})

FillFrom fills DocumentAttributeVideo from given interface.

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) FillFrom added in v0.25.0

func (d *DocumentAttributeVideo66) FillFrom(from interface {
	GetRoundMessage() (value bool)
	GetDuration() (value int)
	GetW() (value int)
	GetH() (value int)
})

FillFrom fills DocumentAttributeVideo66 from given interface.

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

type DocumentAttributeVideo66Array []DocumentAttributeVideo66

DocumentAttributeVideo66Array is adapter for slice of DocumentAttributeVideo66.

func (DocumentAttributeVideo66Array) First added in v0.25.0

First returns first element of slice (if exists).

func (DocumentAttributeVideo66Array) Last added in v0.25.0

Last returns last element of slice (if exists).

func (*DocumentAttributeVideo66Array) Pop added in v0.25.0

Pop returns last element of slice (if exists) and deletes it.

func (*DocumentAttributeVideo66Array) PopFirst added in v0.25.0

PopFirst returns first element of slice (if exists) and deletes it.

func (DocumentAttributeVideo66Array) Retain added in v0.25.0

Retain filters in-place slice of DocumentAttributeVideo66.

func (DocumentAttributeVideo66Array) Sort added in v0.25.0

Sort sorts slice of DocumentAttributeVideo66.

func (DocumentAttributeVideo66Array) SortStable added in v0.25.0

SortStable sorts slice of DocumentAttributeVideo66.

type DocumentAttributeVideoArray added in v0.25.0

type DocumentAttributeVideoArray []DocumentAttributeVideo

DocumentAttributeVideoArray is adapter for slice of DocumentAttributeVideo.

func (DocumentAttributeVideoArray) First added in v0.25.0

First returns first element of slice (if exists).

func (DocumentAttributeVideoArray) Last added in v0.25.0

Last returns last element of slice (if exists).

func (*DocumentAttributeVideoArray) Pop added in v0.25.0

Pop returns last element of slice (if exists) and deletes it.

func (*DocumentAttributeVideoArray) PopFirst added in v0.25.0

PopFirst returns first element of slice (if exists) and deletes it.

func (DocumentAttributeVideoArray) Retain added in v0.25.0

Retain filters in-place slice of DocumentAttributeVideo.

func (DocumentAttributeVideoArray) Sort added in v0.25.0

Sort sorts slice of DocumentAttributeVideo.

func (DocumentAttributeVideoArray) SortStable added in v0.25.0

SortStable sorts slice of DocumentAttributeVideo.

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) AsAvailable added in v0.25.0

func (f *FileLocation) AsAvailable() (*FileLocation, bool)

AsAvailable tries to map FileLocation to FileLocation.

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) FillFrom added in v0.25.0

func (f *FileLocation) FillFrom(from interface {
	GetDCID() (value int)
	GetVolumeID() (value int64)
	GetLocalID() (value int)
	GetSecret() (value int64)
})

FillFrom fills FileLocation from given interface.

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

type FileLocationArray []FileLocation

FileLocationArray is adapter for slice of FileLocation.

func (FileLocationArray) First added in v0.25.0

func (s FileLocationArray) First() (v FileLocation, ok bool)

First returns first element of slice (if exists).

func (FileLocationArray) Last added in v0.25.0

func (s FileLocationArray) Last() (v FileLocation, ok bool)

Last returns last element of slice (if exists).

func (*FileLocationArray) Pop added in v0.25.0

func (s *FileLocationArray) Pop() (v FileLocation, ok bool)

Pop returns last element of slice (if exists) and deletes it.

func (*FileLocationArray) PopFirst added in v0.25.0

func (s *FileLocationArray) PopFirst() (v FileLocation, ok bool)

PopFirst returns first element of slice (if exists) and deletes it.

func (FileLocationArray) Retain added in v0.25.0

func (s FileLocationArray) Retain(keep func(x FileLocation) bool) FileLocationArray

Retain filters in-place slice of FileLocation.

func (FileLocationArray) Sort added in v0.25.0

func (s FileLocationArray) Sort(less func(a, b FileLocation) bool) FileLocationArray

Sort sorts slice of FileLocation.

func (FileLocationArray) SortStable added in v0.25.0

func (s FileLocationArray) SortStable(less func(a, b FileLocation) bool) FileLocationArray

SortStable sorts slice of FileLocation.

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)

	// AsAvailable tries to map FileLocationClass to FileLocation.
	AsAvailable() (*FileLocation, bool)
	// 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 FileLocationClassArray added in v0.25.0

type FileLocationClassArray []FileLocationClass

FileLocationClassArray is adapter for slice of FileLocationClass.

func (FileLocationClassArray) AppendOnlyAvailable added in v0.25.0

func (s FileLocationClassArray) AppendOnlyAvailable(to []*FileLocation) []*FileLocation

AppendOnlyAvailable appends only Available constructors to given slice.

func (FileLocationClassArray) AsAvailable added in v0.25.0

func (s FileLocationClassArray) AsAvailable() (to []*FileLocation)

AsAvailable returns copy with only Available constructors.

func (FileLocationClassArray) AsFileLocation added in v0.25.0

func (s FileLocationClassArray) AsFileLocation() (to FileLocationArray)

AsFileLocation returns copy with only FileLocation constructors.

func (FileLocationClassArray) AsFileLocationUnavailable added in v0.25.0

func (s FileLocationClassArray) AsFileLocationUnavailable() (to FileLocationUnavailableArray)

AsFileLocationUnavailable returns copy with only FileLocationUnavailable constructors.

func (FileLocationClassArray) First added in v0.25.0

func (s FileLocationClassArray) First() (v FileLocationClass, ok bool)

First returns first element of slice (if exists).

func (FileLocationClassArray) FirstAsAvailable added in v0.25.0

func (s FileLocationClassArray) FirstAsAvailable() (v *FileLocation, ok bool)

FirstAsAvailable returns first element of slice (if exists).

func (FileLocationClassArray) Last added in v0.25.0

Last returns last element of slice (if exists).

func (FileLocationClassArray) LastAsAvailable added in v0.25.0

func (s FileLocationClassArray) LastAsAvailable() (v *FileLocation, ok bool)

LastAsAvailable returns last element of slice (if exists).

func (*FileLocationClassArray) Pop added in v0.25.0

Pop returns last element of slice (if exists) and deletes it.

func (*FileLocationClassArray) PopAsAvailable added in v0.25.0

func (s *FileLocationClassArray) PopAsAvailable() (v *FileLocation, ok bool)

PopAsAvailable returns element of slice (if exists).

func (*FileLocationClassArray) PopFirst added in v0.25.0

func (s *FileLocationClassArray) PopFirst() (v FileLocationClass, ok bool)

PopFirst returns first element of slice (if exists) and deletes it.

func (*FileLocationClassArray) PopFirstAsAvailable added in v0.25.0

func (s *FileLocationClassArray) PopFirstAsAvailable() (v *FileLocation, ok bool)

PopFirstAsAvailable returns element of slice (if exists).

func (FileLocationClassArray) Retain added in v0.25.0

Retain filters in-place slice of FileLocationClass.

func (FileLocationClassArray) Sort added in v0.25.0

Sort sorts slice of FileLocationClass.

func (FileLocationClassArray) SortStable added in v0.25.0

SortStable sorts slice of 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) AsAvailable added in v0.25.0

func (f *FileLocationUnavailable) AsAvailable() (*FileLocation, bool)

AsAvailable tries to map FileLocationUnavailable to FileLocation.

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) FillFrom added in v0.25.0

func (f *FileLocationUnavailable) FillFrom(from interface {
	GetVolumeID() (value int64)
	GetLocalID() (value int)
	GetSecret() (value int64)
})

FillFrom fills FileLocationUnavailable from given interface.

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

type FileLocationUnavailableArray []FileLocationUnavailable

FileLocationUnavailableArray is adapter for slice of FileLocationUnavailable.

func (FileLocationUnavailableArray) First added in v0.25.0

First returns first element of slice (if exists).

func (FileLocationUnavailableArray) Last added in v0.25.0

Last returns last element of slice (if exists).

func (*FileLocationUnavailableArray) Pop added in v0.25.0

Pop returns last element of slice (if exists) and deletes it.

func (*FileLocationUnavailableArray) PopFirst added in v0.25.0

PopFirst returns first element of slice (if exists) and deletes it.

func (FileLocationUnavailableArray) Retain added in v0.25.0

Retain filters in-place slice of FileLocationUnavailable.

func (FileLocationUnavailableArray) Sort added in v0.25.0

Sort sorts slice of FileLocationUnavailable.

func (FileLocationUnavailableArray) SortStable added in v0.25.0

SortStable sorts slice of FileLocationUnavailable.

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

	// AsNotEmpty tries to map InputStickerSetClass to InputStickerSetShortName.
	AsNotEmpty() (*InputStickerSetShortName, 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 InputStickerSetClassArray added in v0.25.0

type InputStickerSetClassArray []InputStickerSetClass

InputStickerSetClassArray is adapter for slice of InputStickerSetClass.

func (InputStickerSetClassArray) AppendOnlyNotEmpty added in v0.25.0

AppendOnlyNotEmpty appends only NotEmpty constructors to given slice.

func (InputStickerSetClassArray) AsInputStickerSetShortName added in v0.25.0

func (s InputStickerSetClassArray) AsInputStickerSetShortName() (to InputStickerSetShortNameArray)

AsInputStickerSetShortName returns copy with only InputStickerSetShortName constructors.

func (InputStickerSetClassArray) AsNotEmpty added in v0.25.0

func (s InputStickerSetClassArray) AsNotEmpty() (to []*InputStickerSetShortName)

AsNotEmpty returns copy with only NotEmpty constructors.

func (InputStickerSetClassArray) First added in v0.25.0

First returns first element of slice (if exists).

func (InputStickerSetClassArray) FirstAsNotEmpty added in v0.25.0

func (s InputStickerSetClassArray) FirstAsNotEmpty() (v *InputStickerSetShortName, ok bool)

FirstAsNotEmpty returns first element of slice (if exists).

func (InputStickerSetClassArray) Last added in v0.25.0

Last returns last element of slice (if exists).

func (InputStickerSetClassArray) LastAsNotEmpty added in v0.25.0

func (s InputStickerSetClassArray) LastAsNotEmpty() (v *InputStickerSetShortName, ok bool)

LastAsNotEmpty returns last element of slice (if exists).

func (*InputStickerSetClassArray) Pop added in v0.25.0

Pop returns last element of slice (if exists) and deletes it.

func (*InputStickerSetClassArray) PopAsNotEmpty added in v0.25.0

func (s *InputStickerSetClassArray) PopAsNotEmpty() (v *InputStickerSetShortName, ok bool)

PopAsNotEmpty returns element of slice (if exists).

func (*InputStickerSetClassArray) PopFirst added in v0.25.0

func (s *InputStickerSetClassArray) PopFirst() (v InputStickerSetClass, ok bool)

PopFirst returns first element of slice (if exists) and deletes it.

func (*InputStickerSetClassArray) PopFirstAsNotEmpty added in v0.25.0

func (s *InputStickerSetClassArray) PopFirstAsNotEmpty() (v *InputStickerSetShortName, ok bool)

PopFirstAsNotEmpty returns element of slice (if exists).

func (InputStickerSetClassArray) Retain added in v0.25.0

Retain filters in-place slice of InputStickerSetClass.

func (InputStickerSetClassArray) Sort added in v0.25.0

Sort sorts slice of InputStickerSetClass.

func (InputStickerSetClassArray) SortStable added in v0.25.0

SortStable sorts slice of 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) AsNotEmpty added in v0.25.0

AsNotEmpty tries to map InputStickerSetEmpty to InputStickerSetShortName.

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) AsNotEmpty added in v0.25.0

AsNotEmpty tries to map InputStickerSetShortName to InputStickerSetShortName.

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) FillFrom added in v0.25.0

func (i *InputStickerSetShortName) FillFrom(from interface {
	GetShortName() (value string)
})

FillFrom fills InputStickerSetShortName from given interface.

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

type InputStickerSetShortNameArray []InputStickerSetShortName

InputStickerSetShortNameArray is adapter for slice of InputStickerSetShortName.

func (InputStickerSetShortNameArray) First added in v0.25.0

First returns first element of slice (if exists).

func (InputStickerSetShortNameArray) Last added in v0.25.0

Last returns last element of slice (if exists).

func (*InputStickerSetShortNameArray) Pop added in v0.25.0

Pop returns last element of slice (if exists) and deletes it.

func (*InputStickerSetShortNameArray) PopFirst added in v0.25.0

PopFirst returns first element of slice (if exists) and deletes it.

func (InputStickerSetShortNameArray) Retain added in v0.25.0

Retain filters in-place slice of InputStickerSetShortName.

func (InputStickerSetShortNameArray) Sort added in v0.25.0

Sort sorts slice of InputStickerSetShortName.

func (InputStickerSetShortNameArray) SortStable added in v0.25.0

SortStable sorts slice of InputStickerSetShortName.

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 {
	InvokeRaw(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) FillFrom added in v0.25.0

func (m *MessageEntityBankCard) FillFrom(from interface {
	GetOffset() (value int)
	GetLength() (value int)
})

FillFrom fills MessageEntityBankCard from given interface.

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

type MessageEntityBankCardArray []MessageEntityBankCard

MessageEntityBankCardArray is adapter for slice of MessageEntityBankCard.

func (MessageEntityBankCardArray) First added in v0.25.0

First returns first element of slice (if exists).

func (MessageEntityBankCardArray) Last added in v0.25.0

Last returns last element of slice (if exists).

func (*MessageEntityBankCardArray) Pop added in v0.25.0

Pop returns last element of slice (if exists) and deletes it.

func (*MessageEntityBankCardArray) PopFirst added in v0.25.0

PopFirst returns first element of slice (if exists) and deletes it.

func (MessageEntityBankCardArray) Retain added in v0.25.0

Retain filters in-place slice of MessageEntityBankCard.

func (MessageEntityBankCardArray) Sort added in v0.25.0

Sort sorts slice of MessageEntityBankCard.

func (MessageEntityBankCardArray) SortStable added in v0.25.0

SortStable sorts slice of MessageEntityBankCard.

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) FillFrom added in v0.25.0

func (m *MessageEntityBlockquote) FillFrom(from interface {
	GetOffset() (value int)
	GetLength() (value int)
})

FillFrom fills MessageEntityBlockquote from given interface.

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

type MessageEntityBlockquoteArray []MessageEntityBlockquote

MessageEntityBlockquoteArray is adapter for slice of MessageEntityBlockquote.

func (MessageEntityBlockquoteArray) First added in v0.25.0

First returns first element of slice (if exists).

func (MessageEntityBlockquoteArray) Last added in v0.25.0

Last returns last element of slice (if exists).

func (*MessageEntityBlockquoteArray) Pop added in v0.25.0

Pop returns last element of slice (if exists) and deletes it.

func (*MessageEntityBlockquoteArray) PopFirst added in v0.25.0

PopFirst returns first element of slice (if exists) and deletes it.

func (MessageEntityBlockquoteArray) Retain added in v0.25.0

Retain filters in-place slice of MessageEntityBlockquote.

func (MessageEntityBlockquoteArray) Sort added in v0.25.0

Sort sorts slice of MessageEntityBlockquote.

func (MessageEntityBlockquoteArray) SortStable added in v0.25.0

SortStable sorts slice of MessageEntityBlockquote.

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) FillFrom added in v0.25.0

func (m *MessageEntityBold) FillFrom(from interface {
	GetOffset() (value int)
	GetLength() (value int)
})

FillFrom fills MessageEntityBold from given interface.

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

type MessageEntityBoldArray []MessageEntityBold

MessageEntityBoldArray is adapter for slice of MessageEntityBold.

func (MessageEntityBoldArray) First added in v0.25.0

func (s MessageEntityBoldArray) First() (v MessageEntityBold, ok bool)

First returns first element of slice (if exists).

func (MessageEntityBoldArray) Last added in v0.25.0

Last returns last element of slice (if exists).

func (*MessageEntityBoldArray) Pop added in v0.25.0

Pop returns last element of slice (if exists) and deletes it.

func (*MessageEntityBoldArray) PopFirst added in v0.25.0

func (s *MessageEntityBoldArray) PopFirst() (v MessageEntityBold, ok bool)

PopFirst returns first element of slice (if exists) and deletes it.

func (MessageEntityBoldArray) Retain added in v0.25.0

Retain filters in-place slice of MessageEntityBold.

func (MessageEntityBoldArray) Sort added in v0.25.0

Sort sorts slice of MessageEntityBold.

func (MessageEntityBoldArray) SortStable added in v0.25.0

SortStable sorts slice of MessageEntityBold.

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) FillFrom added in v0.25.0

func (m *MessageEntityBotCommand) FillFrom(from interface {
	GetOffset() (value int)
	GetLength() (value int)
})

FillFrom fills MessageEntityBotCommand from given interface.

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

type MessageEntityBotCommandArray []MessageEntityBotCommand

MessageEntityBotCommandArray is adapter for slice of MessageEntityBotCommand.

func (MessageEntityBotCommandArray) First added in v0.25.0

First returns first element of slice (if exists).

func (MessageEntityBotCommandArray) Last added in v0.25.0

Last returns last element of slice (if exists).

func (*MessageEntityBotCommandArray) Pop added in v0.25.0

Pop returns last element of slice (if exists) and deletes it.

func (*MessageEntityBotCommandArray) PopFirst added in v0.25.0

PopFirst returns first element of slice (if exists) and deletes it.

func (MessageEntityBotCommandArray) Retain added in v0.25.0

Retain filters in-place slice of MessageEntityBotCommand.

func (MessageEntityBotCommandArray) Sort added in v0.25.0

Sort sorts slice of MessageEntityBotCommand.

func (MessageEntityBotCommandArray) SortStable added in v0.25.0

SortStable sorts slice of MessageEntityBotCommand.

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) FillFrom added in v0.25.0

func (m *MessageEntityCashtag) FillFrom(from interface {
	GetOffset() (value int)
	GetLength() (value int)
})

FillFrom fills MessageEntityCashtag from given interface.

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

type MessageEntityCashtagArray []MessageEntityCashtag

MessageEntityCashtagArray is adapter for slice of MessageEntityCashtag.

func (MessageEntityCashtagArray) First added in v0.25.0

First returns first element of slice (if exists).

func (MessageEntityCashtagArray) Last added in v0.25.0

Last returns last element of slice (if exists).

func (*MessageEntityCashtagArray) Pop added in v0.25.0

Pop returns last element of slice (if exists) and deletes it.

func (*MessageEntityCashtagArray) PopFirst added in v0.25.0

func (s *MessageEntityCashtagArray) PopFirst() (v MessageEntityCashtag, ok bool)

PopFirst returns first element of slice (if exists) and deletes it.

func (MessageEntityCashtagArray) Retain added in v0.25.0

Retain filters in-place slice of MessageEntityCashtag.

func (MessageEntityCashtagArray) Sort added in v0.25.0

Sort sorts slice of MessageEntityCashtag.

func (MessageEntityCashtagArray) SortStable added in v0.25.0

SortStable sorts slice of MessageEntityCashtag.

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

type MessageEntityClassArray []MessageEntityClass

MessageEntityClassArray is adapter for slice of MessageEntityClass.

func (MessageEntityClassArray) AsMessageEntityBankCard added in v0.25.0

func (s MessageEntityClassArray) AsMessageEntityBankCard() (to MessageEntityBankCardArray)

AsMessageEntityBankCard returns copy with only MessageEntityBankCard constructors.

func (MessageEntityClassArray) AsMessageEntityBlockquote added in v0.25.0

func (s MessageEntityClassArray) AsMessageEntityBlockquote() (to MessageEntityBlockquoteArray)

AsMessageEntityBlockquote returns copy with only MessageEntityBlockquote constructors.

func (MessageEntityClassArray) AsMessageEntityBold added in v0.25.0

func (s MessageEntityClassArray) AsMessageEntityBold() (to MessageEntityBoldArray)

AsMessageEntityBold returns copy with only MessageEntityBold constructors.

func (MessageEntityClassArray) AsMessageEntityBotCommand added in v0.25.0

func (s MessageEntityClassArray) AsMessageEntityBotCommand() (to MessageEntityBotCommandArray)

AsMessageEntityBotCommand returns copy with only MessageEntityBotCommand constructors.

func (MessageEntityClassArray) AsMessageEntityCashtag added in v0.25.0

func (s MessageEntityClassArray) AsMessageEntityCashtag() (to MessageEntityCashtagArray)

AsMessageEntityCashtag returns copy with only MessageEntityCashtag constructors.

func (MessageEntityClassArray) AsMessageEntityCode added in v0.25.0

func (s MessageEntityClassArray) AsMessageEntityCode() (to MessageEntityCodeArray)

AsMessageEntityCode returns copy with only MessageEntityCode constructors.

func (MessageEntityClassArray) AsMessageEntityEmail added in v0.25.0

func (s MessageEntityClassArray) AsMessageEntityEmail() (to MessageEntityEmailArray)

AsMessageEntityEmail returns copy with only MessageEntityEmail constructors.

func (MessageEntityClassArray) AsMessageEntityHashtag added in v0.25.0

func (s MessageEntityClassArray) AsMessageEntityHashtag() (to MessageEntityHashtagArray)

AsMessageEntityHashtag returns copy with only MessageEntityHashtag constructors.

func (MessageEntityClassArray) AsMessageEntityItalic added in v0.25.0

func (s MessageEntityClassArray) AsMessageEntityItalic() (to MessageEntityItalicArray)

AsMessageEntityItalic returns copy with only MessageEntityItalic constructors.

func (MessageEntityClassArray) AsMessageEntityMention added in v0.25.0

func (s MessageEntityClassArray) AsMessageEntityMention() (to MessageEntityMentionArray)

AsMessageEntityMention returns copy with only MessageEntityMention constructors.

func (MessageEntityClassArray) AsMessageEntityMentionName added in v0.25.0

func (s MessageEntityClassArray) AsMessageEntityMentionName() (to MessageEntityMentionNameArray)

AsMessageEntityMentionName returns copy with only MessageEntityMentionName constructors.

func (MessageEntityClassArray) AsMessageEntityPhone added in v0.25.0

func (s MessageEntityClassArray) AsMessageEntityPhone() (to MessageEntityPhoneArray)

AsMessageEntityPhone returns copy with only MessageEntityPhone constructors.

func (MessageEntityClassArray) AsMessageEntityPre added in v0.25.0

func (s MessageEntityClassArray) AsMessageEntityPre() (to MessageEntityPreArray)

AsMessageEntityPre returns copy with only MessageEntityPre constructors.

func (MessageEntityClassArray) AsMessageEntityStrike added in v0.25.0

func (s MessageEntityClassArray) AsMessageEntityStrike() (to MessageEntityStrikeArray)

AsMessageEntityStrike returns copy with only MessageEntityStrike constructors.

func (MessageEntityClassArray) AsMessageEntityTextURL added in v0.26.0

func (s MessageEntityClassArray) AsMessageEntityTextURL() (to MessageEntityTextURLArray)

AsMessageEntityTextURL returns copy with only MessageEntityTextURL constructors.

func (MessageEntityClassArray) AsMessageEntityURL added in v0.26.0

func (s MessageEntityClassArray) AsMessageEntityURL() (to MessageEntityURLArray)

AsMessageEntityURL returns copy with only MessageEntityURL constructors.

func (MessageEntityClassArray) AsMessageEntityUnderline added in v0.25.0

func (s MessageEntityClassArray) AsMessageEntityUnderline() (to MessageEntityUnderlineArray)

AsMessageEntityUnderline returns copy with only MessageEntityUnderline constructors.

func (MessageEntityClassArray) AsMessageEntityUnknown added in v0.25.0

func (s MessageEntityClassArray) AsMessageEntityUnknown() (to MessageEntityUnknownArray)

AsMessageEntityUnknown returns copy with only MessageEntityUnknown constructors.

func (MessageEntityClassArray) First added in v0.25.0

First returns first element of slice (if exists).

func (MessageEntityClassArray) Last added in v0.25.0

Last returns last element of slice (if exists).

func (*MessageEntityClassArray) Pop added in v0.25.0

Pop returns last element of slice (if exists) and deletes it.

func (*MessageEntityClassArray) PopFirst added in v0.25.0

func (s *MessageEntityClassArray) PopFirst() (v MessageEntityClass, ok bool)

PopFirst returns first element of slice (if exists) and deletes it.

func (MessageEntityClassArray) Retain added in v0.25.0

Retain filters in-place slice of MessageEntityClass.

func (MessageEntityClassArray) Sort added in v0.25.0

Sort sorts slice of MessageEntityClass.

func (MessageEntityClassArray) SortStable added in v0.25.0

SortStable sorts slice of 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) FillFrom added in v0.25.0

func (m *MessageEntityCode) FillFrom(from interface {
	GetOffset() (value int)
	GetLength() (value int)
})

FillFrom fills MessageEntityCode from given interface.

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

type MessageEntityCodeArray []MessageEntityCode

MessageEntityCodeArray is adapter for slice of MessageEntityCode.

func (MessageEntityCodeArray) First added in v0.25.0

func (s MessageEntityCodeArray) First() (v MessageEntityCode, ok bool)

First returns first element of slice (if exists).

func (MessageEntityCodeArray) Last added in v0.25.0

Last returns last element of slice (if exists).

func (*MessageEntityCodeArray) Pop added in v0.25.0

Pop returns last element of slice (if exists) and deletes it.

func (*MessageEntityCodeArray) PopFirst added in v0.25.0

func (s *MessageEntityCodeArray) PopFirst() (v MessageEntityCode, ok bool)

PopFirst returns first element of slice (if exists) and deletes it.

func (MessageEntityCodeArray) Retain added in v0.25.0

Retain filters in-place slice of MessageEntityCode.

func (MessageEntityCodeArray) Sort added in v0.25.0

Sort sorts slice of MessageEntityCode.

func (MessageEntityCodeArray) SortStable added in v0.25.0

SortStable sorts slice of MessageEntityCode.

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) FillFrom added in v0.25.0

func (m *MessageEntityEmail) FillFrom(from interface {
	GetOffset() (value int)
	GetLength() (value int)
})

FillFrom fills MessageEntityEmail from given interface.

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

type MessageEntityEmailArray []MessageEntityEmail

MessageEntityEmailArray is adapter for slice of MessageEntityEmail.

func (MessageEntityEmailArray) First added in v0.25.0

First returns first element of slice (if exists).

func (MessageEntityEmailArray) Last added in v0.25.0

Last returns last element of slice (if exists).

func (*MessageEntityEmailArray) Pop added in v0.25.0

Pop returns last element of slice (if exists) and deletes it.

func (*MessageEntityEmailArray) PopFirst added in v0.25.0

func (s *MessageEntityEmailArray) PopFirst() (v MessageEntityEmail, ok bool)

PopFirst returns first element of slice (if exists) and deletes it.

func (MessageEntityEmailArray) Retain added in v0.25.0

Retain filters in-place slice of MessageEntityEmail.

func (MessageEntityEmailArray) Sort added in v0.25.0

Sort sorts slice of MessageEntityEmail.

func (MessageEntityEmailArray) SortStable added in v0.25.0

SortStable sorts slice of MessageEntityEmail.

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) FillFrom added in v0.25.0

func (m *MessageEntityHashtag) FillFrom(from interface {
	GetOffset() (value int)
	GetLength() (value int)
})

FillFrom fills MessageEntityHashtag from given interface.

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

type MessageEntityHashtagArray []MessageEntityHashtag

MessageEntityHashtagArray is adapter for slice of MessageEntityHashtag.

func (MessageEntityHashtagArray) First added in v0.25.0

First returns first element of slice (if exists).

func (MessageEntityHashtagArray) Last added in v0.25.0

Last returns last element of slice (if exists).

func (*MessageEntityHashtagArray) Pop added in v0.25.0

Pop returns last element of slice (if exists) and deletes it.

func (*MessageEntityHashtagArray) PopFirst added in v0.25.0

func (s *MessageEntityHashtagArray) PopFirst() (v MessageEntityHashtag, ok bool)

PopFirst returns first element of slice (if exists) and deletes it.

func (MessageEntityHashtagArray) Retain added in v0.25.0

Retain filters in-place slice of MessageEntityHashtag.

func (MessageEntityHashtagArray) Sort added in v0.25.0

Sort sorts slice of MessageEntityHashtag.

func (MessageEntityHashtagArray) SortStable added in v0.25.0

SortStable sorts slice of MessageEntityHashtag.

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) FillFrom added in v0.25.0

func (m *MessageEntityItalic) FillFrom(from interface {
	GetOffset() (value int)
	GetLength() (value int)
})

FillFrom fills MessageEntityItalic from given interface.

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

type MessageEntityItalicArray []MessageEntityItalic

MessageEntityItalicArray is adapter for slice of MessageEntityItalic.

func (MessageEntityItalicArray) First added in v0.25.0

First returns first element of slice (if exists).

func (MessageEntityItalicArray) Last added in v0.25.0

Last returns last element of slice (if exists).

func (*MessageEntityItalicArray) Pop added in v0.25.0

Pop returns last element of slice (if exists) and deletes it.

func (*MessageEntityItalicArray) PopFirst added in v0.25.0

func (s *MessageEntityItalicArray) PopFirst() (v MessageEntityItalic, ok bool)

PopFirst returns first element of slice (if exists) and deletes it.

func (MessageEntityItalicArray) Retain added in v0.25.0

Retain filters in-place slice of MessageEntityItalic.

func (MessageEntityItalicArray) Sort added in v0.25.0

Sort sorts slice of MessageEntityItalic.

func (MessageEntityItalicArray) SortStable added in v0.25.0

SortStable sorts slice of MessageEntityItalic.

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) FillFrom added in v0.25.0

func (m *MessageEntityMention) FillFrom(from interface {
	GetOffset() (value int)
	GetLength() (value int)
})

FillFrom fills MessageEntityMention from given interface.

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

type MessageEntityMentionArray []MessageEntityMention

MessageEntityMentionArray is adapter for slice of MessageEntityMention.

func (MessageEntityMentionArray) First added in v0.25.0

First returns first element of slice (if exists).

func (MessageEntityMentionArray) Last added in v0.25.0

Last returns last element of slice (if exists).

func (*MessageEntityMentionArray) Pop added in v0.25.0

Pop returns last element of slice (if exists) and deletes it.

func (*MessageEntityMentionArray) PopFirst added in v0.25.0

func (s *MessageEntityMentionArray) PopFirst() (v MessageEntityMention, ok bool)

PopFirst returns first element of slice (if exists) and deletes it.

func (MessageEntityMentionArray) Retain added in v0.25.0

Retain filters in-place slice of MessageEntityMention.

func (MessageEntityMentionArray) Sort added in v0.25.0

Sort sorts slice of MessageEntityMention.

func (MessageEntityMentionArray) SortStable added in v0.25.0

SortStable sorts slice of MessageEntityMention.

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) FillFrom added in v0.25.0

func (m *MessageEntityMentionName) FillFrom(from interface {
	GetOffset() (value int)
	GetLength() (value int)
	GetUserID() (value int)
})

FillFrom fills MessageEntityMentionName from given interface.

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

type MessageEntityMentionNameArray []MessageEntityMentionName

MessageEntityMentionNameArray is adapter for slice of MessageEntityMentionName.

func (MessageEntityMentionNameArray) First added in v0.25.0

First returns first element of slice (if exists).

func (MessageEntityMentionNameArray) Last added in v0.25.0

Last returns last element of slice (if exists).

func (*MessageEntityMentionNameArray) Pop added in v0.25.0

Pop returns last element of slice (if exists) and deletes it.

func (*MessageEntityMentionNameArray) PopFirst added in v0.25.0

PopFirst returns first element of slice (if exists) and deletes it.

func (MessageEntityMentionNameArray) Retain added in v0.25.0

Retain filters in-place slice of MessageEntityMentionName.

func (MessageEntityMentionNameArray) Sort added in v0.25.0

Sort sorts slice of MessageEntityMentionName.

func (MessageEntityMentionNameArray) SortStable added in v0.25.0

SortStable sorts slice of MessageEntityMentionName.

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) FillFrom added in v0.25.0

func (m *MessageEntityPhone) FillFrom(from interface {
	GetOffset() (value int)
	GetLength() (value int)
})

FillFrom fills MessageEntityPhone from given interface.

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

type MessageEntityPhoneArray []MessageEntityPhone

MessageEntityPhoneArray is adapter for slice of MessageEntityPhone.

func (MessageEntityPhoneArray) First added in v0.25.0

First returns first element of slice (if exists).

func (MessageEntityPhoneArray) Last added in v0.25.0

Last returns last element of slice (if exists).

func (*MessageEntityPhoneArray) Pop added in v0.25.0

Pop returns last element of slice (if exists) and deletes it.

func (*MessageEntityPhoneArray) PopFirst added in v0.25.0

func (s *MessageEntityPhoneArray) PopFirst() (v MessageEntityPhone, ok bool)

PopFirst returns first element of slice (if exists) and deletes it.

func (MessageEntityPhoneArray) Retain added in v0.25.0

Retain filters in-place slice of MessageEntityPhone.

func (MessageEntityPhoneArray) Sort added in v0.25.0

Sort sorts slice of MessageEntityPhone.

func (MessageEntityPhoneArray) SortStable added in v0.25.0

SortStable sorts slice of MessageEntityPhone.

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) FillFrom added in v0.25.0

func (m *MessageEntityPre) FillFrom(from interface {
	GetOffset() (value int)
	GetLength() (value int)
	GetLanguage() (value string)
})

FillFrom fills MessageEntityPre from given interface.

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

type MessageEntityPreArray []MessageEntityPre

MessageEntityPreArray is adapter for slice of MessageEntityPre.

func (MessageEntityPreArray) First added in v0.25.0

func (s MessageEntityPreArray) First() (v MessageEntityPre, ok bool)

First returns first element of slice (if exists).

func (MessageEntityPreArray) Last added in v0.25.0

func (s MessageEntityPreArray) Last() (v MessageEntityPre, ok bool)

Last returns last element of slice (if exists).

func (*MessageEntityPreArray) Pop added in v0.25.0

func (s *MessageEntityPreArray) Pop() (v MessageEntityPre, ok bool)

Pop returns last element of slice (if exists) and deletes it.

func (*MessageEntityPreArray) PopFirst added in v0.25.0

func (s *MessageEntityPreArray) PopFirst() (v MessageEntityPre, ok bool)

PopFirst returns first element of slice (if exists) and deletes it.

func (MessageEntityPreArray) Retain added in v0.25.0

Retain filters in-place slice of MessageEntityPre.

func (MessageEntityPreArray) Sort added in v0.25.0

Sort sorts slice of MessageEntityPre.

func (MessageEntityPreArray) SortStable added in v0.25.0

func (s MessageEntityPreArray) SortStable(less func(a, b MessageEntityPre) bool) MessageEntityPreArray

SortStable sorts slice of MessageEntityPre.

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) FillFrom added in v0.25.0

func (m *MessageEntityStrike) FillFrom(from interface {
	GetOffset() (value int)
	GetLength() (value int)
})

FillFrom fills MessageEntityStrike from given interface.

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

type MessageEntityStrikeArray []MessageEntityStrike

MessageEntityStrikeArray is adapter for slice of MessageEntityStrike.

func (MessageEntityStrikeArray) First added in v0.25.0

First returns first element of slice (if exists).

func (MessageEntityStrikeArray) Last added in v0.25.0

Last returns last element of slice (if exists).

func (*MessageEntityStrikeArray) Pop added in v0.25.0

Pop returns last element of slice (if exists) and deletes it.

func (*MessageEntityStrikeArray) PopFirst added in v0.25.0

func (s *MessageEntityStrikeArray) PopFirst() (v MessageEntityStrike, ok bool)

PopFirst returns first element of slice (if exists) and deletes it.

func (MessageEntityStrikeArray) Retain added in v0.25.0

Retain filters in-place slice of MessageEntityStrike.

func (MessageEntityStrikeArray) Sort added in v0.25.0

Sort sorts slice of MessageEntityStrike.

func (MessageEntityStrikeArray) SortStable added in v0.25.0

SortStable sorts slice of MessageEntityStrike.

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) FillFrom added in v0.26.0

func (m *MessageEntityTextURL) FillFrom(from interface {
	GetOffset() (value int)
	GetLength() (value int)
	GetURL() (value string)
})

FillFrom fills MessageEntityTextURL from given interface.

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

type MessageEntityTextURLArray []MessageEntityTextURL

MessageEntityTextURLArray is adapter for slice of MessageEntityTextURL.

func (MessageEntityTextURLArray) First added in v0.26.0

First returns first element of slice (if exists).

func (MessageEntityTextURLArray) Last added in v0.26.0

Last returns last element of slice (if exists).

func (*MessageEntityTextURLArray) Pop added in v0.26.0

Pop returns last element of slice (if exists) and deletes it.

func (*MessageEntityTextURLArray) PopFirst added in v0.26.0

func (s *MessageEntityTextURLArray) PopFirst() (v MessageEntityTextURL, ok bool)

PopFirst returns first element of slice (if exists) and deletes it.

func (MessageEntityTextURLArray) Retain added in v0.26.0

Retain filters in-place slice of MessageEntityTextURL.

func (MessageEntityTextURLArray) Sort added in v0.26.0

Sort sorts slice of MessageEntityTextURL.

func (MessageEntityTextURLArray) SortStable added in v0.26.0

SortStable sorts slice of MessageEntityTextURL.

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) FillFrom added in v0.26.0

func (m *MessageEntityURL) FillFrom(from interface {
	GetOffset() (value int)
	GetLength() (value int)
})

FillFrom fills MessageEntityURL from given interface.

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

type MessageEntityURLArray []MessageEntityURL

MessageEntityURLArray is adapter for slice of MessageEntityURL.

func (MessageEntityURLArray) First added in v0.26.0

func (s MessageEntityURLArray) First() (v MessageEntityURL, ok bool)

First returns first element of slice (if exists).

func (MessageEntityURLArray) Last added in v0.26.0

func (s MessageEntityURLArray) Last() (v MessageEntityURL, ok bool)

Last returns last element of slice (if exists).

func (*MessageEntityURLArray) Pop added in v0.26.0

func (s *MessageEntityURLArray) Pop() (v MessageEntityURL, ok bool)

Pop returns last element of slice (if exists) and deletes it.

func (*MessageEntityURLArray) PopFirst added in v0.26.0

func (s *MessageEntityURLArray) PopFirst() (v MessageEntityURL, ok bool)

PopFirst returns first element of slice (if exists) and deletes it.

func (MessageEntityURLArray) Retain added in v0.26.0

Retain filters in-place slice of MessageEntityURL.

func (MessageEntityURLArray) Sort added in v0.26.0

Sort sorts slice of MessageEntityURL.

func (MessageEntityURLArray) SortStable added in v0.26.0

func (s MessageEntityURLArray) SortStable(less func(a, b MessageEntityURL) bool) MessageEntityURLArray

SortStable sorts slice of MessageEntityURL.

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) FillFrom added in v0.25.0

func (m *MessageEntityUnderline) FillFrom(from interface {
	GetOffset() (value int)
	GetLength() (value int)
})

FillFrom fills MessageEntityUnderline from given interface.

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

type MessageEntityUnderlineArray []MessageEntityUnderline

MessageEntityUnderlineArray is adapter for slice of MessageEntityUnderline.

func (MessageEntityUnderlineArray) First added in v0.25.0

First returns first element of slice (if exists).

func (MessageEntityUnderlineArray) Last added in v0.25.0

Last returns last element of slice (if exists).

func (*MessageEntityUnderlineArray) Pop added in v0.25.0

Pop returns last element of slice (if exists) and deletes it.

func (*MessageEntityUnderlineArray) PopFirst added in v0.25.0

PopFirst returns first element of slice (if exists) and deletes it.

func (MessageEntityUnderlineArray) Retain added in v0.25.0

Retain filters in-place slice of MessageEntityUnderline.

func (MessageEntityUnderlineArray) Sort added in v0.25.0

Sort sorts slice of MessageEntityUnderline.

func (MessageEntityUnderlineArray) SortStable added in v0.25.0

SortStable sorts slice of MessageEntityUnderline.

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) FillFrom added in v0.25.0

func (m *MessageEntityUnknown) FillFrom(from interface {
	GetOffset() (value int)
	GetLength() (value int)
})

FillFrom fills MessageEntityUnknown from given interface.

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

type MessageEntityUnknownArray []MessageEntityUnknown

MessageEntityUnknownArray is adapter for slice of MessageEntityUnknown.

func (MessageEntityUnknownArray) First added in v0.25.0

First returns first element of slice (if exists).

func (MessageEntityUnknownArray) Last added in v0.25.0

Last returns last element of slice (if exists).

func (*MessageEntityUnknownArray) Pop added in v0.25.0

Pop returns last element of slice (if exists) and deletes it.

func (*MessageEntityUnknownArray) PopFirst added in v0.25.0

func (s *MessageEntityUnknownArray) PopFirst() (v MessageEntityUnknown, ok bool)

PopFirst returns first element of slice (if exists) and deletes it.

func (MessageEntityUnknownArray) Retain added in v0.25.0

Retain filters in-place slice of MessageEntityUnknown.

func (MessageEntityUnknownArray) Sort added in v0.25.0

Sort sorts slice of MessageEntityUnknown.

func (MessageEntityUnknownArray) SortStable added in v0.25.0

SortStable sorts slice of MessageEntityUnknown.

type NotEmptyPhotoSize added in v0.25.0

type NotEmptyPhotoSize 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
	GetType() (value string)

	// File location
	GetLocation() (value FileLocationClass)

	// Image width
	GetW() (value int)

	// Image height
	GetH() (value int)
	// contains filtered or unexported methods
}

NotEmptyPhotoSize represents NotEmpty subset of PhotoSizeClass.

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) AsNotEmpty added in v0.25.0

func (p *PhotoCachedSize) AsNotEmpty() (NotEmptyPhotoSize, bool)

AsNotEmpty tries to map PhotoCachedSize to NotEmptyPhotoSize.

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) FillFrom added in v0.25.0

func (p *PhotoCachedSize) FillFrom(from interface {
	GetType() (value string)
	GetLocation() (value FileLocationClass)
	GetW() (value int)
	GetH() (value int)
	GetBytes() (value []byte)
})

FillFrom fills PhotoCachedSize from given interface.

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

type PhotoCachedSizeArray []PhotoCachedSize

PhotoCachedSizeArray is adapter for slice of PhotoCachedSize.

func (PhotoCachedSizeArray) First added in v0.25.0

func (s PhotoCachedSizeArray) First() (v PhotoCachedSize, ok bool)

First returns first element of slice (if exists).

func (PhotoCachedSizeArray) Last added in v0.25.0

func (s PhotoCachedSizeArray) Last() (v PhotoCachedSize, ok bool)

Last returns last element of slice (if exists).

func (*PhotoCachedSizeArray) Pop added in v0.25.0

func (s *PhotoCachedSizeArray) Pop() (v PhotoCachedSize, ok bool)

Pop returns last element of slice (if exists) and deletes it.

func (*PhotoCachedSizeArray) PopFirst added in v0.25.0

func (s *PhotoCachedSizeArray) PopFirst() (v PhotoCachedSize, ok bool)

PopFirst returns first element of slice (if exists) and deletes it.

func (PhotoCachedSizeArray) Retain added in v0.25.0

Retain filters in-place slice of PhotoCachedSize.

func (PhotoCachedSizeArray) Sort added in v0.25.0

Sort sorts slice of PhotoCachedSize.

func (PhotoCachedSizeArray) SortStable added in v0.25.0

func (s PhotoCachedSizeArray) SortStable(less func(a, b PhotoCachedSize) bool) PhotoCachedSizeArray

SortStable sorts slice of PhotoCachedSize.

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) AsNotEmpty added in v0.25.0

func (p *PhotoSize) AsNotEmpty() (NotEmptyPhotoSize, bool)

AsNotEmpty tries to map PhotoSize to NotEmptyPhotoSize.

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) FillFrom added in v0.25.0

func (p *PhotoSize) FillFrom(from interface {
	GetType() (value string)
	GetLocation() (value FileLocationClass)
	GetW() (value int)
	GetH() (value int)
	GetSize() (value int)
})

FillFrom fills PhotoSize from given interface.

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

type PhotoSizeArray []PhotoSize

PhotoSizeArray is adapter for slice of PhotoSize.

func (PhotoSizeArray) First added in v0.25.0

func (s PhotoSizeArray) First() (v PhotoSize, ok bool)

First returns first element of slice (if exists).

func (PhotoSizeArray) Last added in v0.25.0

func (s PhotoSizeArray) Last() (v PhotoSize, ok bool)

Last returns last element of slice (if exists).

func (*PhotoSizeArray) Pop added in v0.25.0

func (s *PhotoSizeArray) Pop() (v PhotoSize, ok bool)

Pop returns last element of slice (if exists) and deletes it.

func (*PhotoSizeArray) PopFirst added in v0.25.0

func (s *PhotoSizeArray) PopFirst() (v PhotoSize, ok bool)

PopFirst returns first element of slice (if exists) and deletes it.

func (PhotoSizeArray) Retain added in v0.25.0

func (s PhotoSizeArray) Retain(keep func(x PhotoSize) bool) PhotoSizeArray

Retain filters in-place slice of PhotoSize.

func (PhotoSizeArray) Sort added in v0.25.0

func (s PhotoSizeArray) Sort(less func(a, b PhotoSize) bool) PhotoSizeArray

Sort sorts slice of PhotoSize.

func (PhotoSizeArray) SortStable added in v0.25.0

func (s PhotoSizeArray) SortStable(less func(a, b PhotoSize) bool) PhotoSizeArray

SortStable sorts slice of PhotoSize.

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)

	// AsNotEmpty tries to map PhotoSizeClass to NotEmptyPhotoSize.
	AsNotEmpty() (NotEmptyPhotoSize, bool)
	// 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 PhotoSizeClassArray added in v0.25.0

type PhotoSizeClassArray []PhotoSizeClass

PhotoSizeClassArray is adapter for slice of PhotoSizeClass.

func (PhotoSizeClassArray) AppendOnlyNotEmpty added in v0.25.0

func (s PhotoSizeClassArray) AppendOnlyNotEmpty(to []NotEmptyPhotoSize) []NotEmptyPhotoSize

AppendOnlyNotEmpty appends only NotEmpty constructors to given slice.

func (PhotoSizeClassArray) AsNotEmpty added in v0.25.0

func (s PhotoSizeClassArray) AsNotEmpty() (to []NotEmptyPhotoSize)

AsNotEmpty returns copy with only NotEmpty constructors.

func (PhotoSizeClassArray) AsPhotoCachedSize added in v0.25.0

func (s PhotoSizeClassArray) AsPhotoCachedSize() (to PhotoCachedSizeArray)

AsPhotoCachedSize returns copy with only PhotoCachedSize constructors.

func (PhotoSizeClassArray) AsPhotoSize added in v0.25.0

func (s PhotoSizeClassArray) AsPhotoSize() (to PhotoSizeArray)

AsPhotoSize returns copy with only PhotoSize constructors.

func (PhotoSizeClassArray) AsPhotoSizeEmpty added in v0.25.0

func (s PhotoSizeClassArray) AsPhotoSizeEmpty() (to PhotoSizeEmptyArray)

AsPhotoSizeEmpty returns copy with only PhotoSizeEmpty constructors.

func (PhotoSizeClassArray) First added in v0.25.0

func (s PhotoSizeClassArray) First() (v PhotoSizeClass, ok bool)

First returns first element of slice (if exists).

func (PhotoSizeClassArray) FirstAsNotEmpty added in v0.25.0

func (s PhotoSizeClassArray) FirstAsNotEmpty() (v NotEmptyPhotoSize, ok bool)

FirstAsNotEmpty returns first element of slice (if exists).

func (PhotoSizeClassArray) Last added in v0.25.0

func (s PhotoSizeClassArray) Last() (v PhotoSizeClass, ok bool)

Last returns last element of slice (if exists).

func (PhotoSizeClassArray) LastAsNotEmpty added in v0.25.0

func (s PhotoSizeClassArray) LastAsNotEmpty() (v NotEmptyPhotoSize, ok bool)

LastAsNotEmpty returns last element of slice (if exists).

func (*PhotoSizeClassArray) Pop added in v0.25.0

func (s *PhotoSizeClassArray) Pop() (v PhotoSizeClass, ok bool)

Pop returns last element of slice (if exists) and deletes it.

func (*PhotoSizeClassArray) PopAsNotEmpty added in v0.25.0

func (s *PhotoSizeClassArray) PopAsNotEmpty() (v NotEmptyPhotoSize, ok bool)

PopAsNotEmpty returns element of slice (if exists).

func (*PhotoSizeClassArray) PopFirst added in v0.25.0

func (s *PhotoSizeClassArray) PopFirst() (v PhotoSizeClass, ok bool)

PopFirst returns first element of slice (if exists) and deletes it.

func (*PhotoSizeClassArray) PopFirstAsNotEmpty added in v0.25.0

func (s *PhotoSizeClassArray) PopFirstAsNotEmpty() (v NotEmptyPhotoSize, ok bool)

PopFirstAsNotEmpty returns element of slice (if exists).

func (PhotoSizeClassArray) Retain added in v0.25.0

Retain filters in-place slice of PhotoSizeClass.

func (PhotoSizeClassArray) Sort added in v0.25.0

Sort sorts slice of PhotoSizeClass.

func (PhotoSizeClassArray) SortStable added in v0.25.0

func (s PhotoSizeClassArray) SortStable(less func(a, b PhotoSizeClass) bool) PhotoSizeClassArray

SortStable sorts slice of 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) AsNotEmpty added in v0.25.0

func (p *PhotoSizeEmpty) AsNotEmpty() (NotEmptyPhotoSize, bool)

AsNotEmpty tries to map PhotoSizeEmpty to NotEmptyPhotoSize.

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) FillFrom added in v0.25.0

func (p *PhotoSizeEmpty) FillFrom(from interface {
	GetType() (value string)
})

FillFrom fills PhotoSizeEmpty from given interface.

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

type PhotoSizeEmptyArray []PhotoSizeEmpty

PhotoSizeEmptyArray is adapter for slice of PhotoSizeEmpty.

func (PhotoSizeEmptyArray) First added in v0.25.0

func (s PhotoSizeEmptyArray) First() (v PhotoSizeEmpty, ok bool)

First returns first element of slice (if exists).

func (PhotoSizeEmptyArray) Last added in v0.25.0

func (s PhotoSizeEmptyArray) Last() (v PhotoSizeEmpty, ok bool)

Last returns last element of slice (if exists).

func (*PhotoSizeEmptyArray) Pop added in v0.25.0

func (s *PhotoSizeEmptyArray) Pop() (v PhotoSizeEmpty, ok bool)

Pop returns last element of slice (if exists) and deletes it.

func (*PhotoSizeEmptyArray) PopFirst added in v0.25.0

func (s *PhotoSizeEmptyArray) PopFirst() (v PhotoSizeEmpty, ok bool)

PopFirst returns first element of slice (if exists) and deletes it.

func (PhotoSizeEmptyArray) Retain added in v0.25.0

Retain filters in-place slice of PhotoSizeEmpty.

func (PhotoSizeEmptyArray) Sort added in v0.25.0

Sort sorts slice of PhotoSizeEmpty.

func (PhotoSizeEmptyArray) SortStable added in v0.25.0

func (s PhotoSizeEmptyArray) SortStable(less func(a, b PhotoSizeEmpty) bool) PhotoSizeEmptyArray

SortStable sorts slice of PhotoSizeEmpty.

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

type SendMessageActionClassArray []SendMessageActionClass

SendMessageActionClassArray is adapter for slice of SendMessageActionClass.

func (SendMessageActionClassArray) First added in v0.25.0

First returns first element of slice (if exists).

func (SendMessageActionClassArray) Last added in v0.25.0

Last returns last element of slice (if exists).

func (*SendMessageActionClassArray) Pop added in v0.25.0

Pop returns last element of slice (if exists) and deletes it.

func (*SendMessageActionClassArray) PopFirst added in v0.25.0

PopFirst returns first element of slice (if exists) and deletes it.

func (SendMessageActionClassArray) Retain added in v0.25.0

Retain filters in-place slice of SendMessageActionClass.

func (SendMessageActionClassArray) Sort added in v0.25.0

Sort sorts slice of SendMessageActionClass.

func (SendMessageActionClassArray) SortStable added in v0.25.0

SortStable sorts slice of 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