Skip to content

GramIO API Reference / @gramio/contexts/dist / TextQuote

Class: TextQuote ​

Defined in: contexts/index.d.ts:3066

This object contains information about the quoted part of a message that is replied to by the given message.

Constructors ​

Constructor ​

new TextQuote(payload): TextQuote

Defined in: contexts/index.d.ts:3068

Parameters ​

ParameterType
payloadTelegramTextQuote

Returns ​

TextQuote

Properties ​

PropertyTypeDefined in
payloadTelegramTextQuotecontexts/index.d.ts:3067

Accessors ​

[toStringTag] ​

Get Signature ​

get [toStringTag](): string

Defined in: contexts/index.d.ts:3070

MDN

Returns ​

string


entities ​

Get Signature ​

get entities(): MessageEntity[]

Defined in: contexts/index.d.ts:3074

Special entities that appear in the quote. Currently, only bold, italic, underline, strikethrough, spoiler, and custom_emoji entities are kept in quotes.

Returns ​

MessageEntity[]


position ​

Get Signature ​

get position(): number

Defined in: contexts/index.d.ts:3076

Approximate quote position in the original message in UTF-16 code units as specified by the sender

Returns ​

number


text ​

Get Signature ​

get text(): string

Defined in: contexts/index.d.ts:3072

Text of the quoted part of a message that is replied to by the given message

Returns ​

string

Methods ​

isManual() ​

isManual(): true

Defined in: contexts/index.d.ts:3078

true, if the quote was chosen manually by the message sender. Otherwise, the quote was added automatically by the server.

Returns ​

true