GramIO API Reference / @gramio/contexts/dist / TextQuote
Class: TextQuote
Defined in: contexts/index.d.ts:2281
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:2283
Parameters
| Parameter | Type |
|---|---|
payload | TelegramTextQuote |
Returns
TextQuote
Properties
| Property | Type | Defined in |
|---|---|---|
payload | TelegramTextQuote | contexts/index.d.ts:2282 |
Accessors
[toStringTag]
Get Signature
get [toStringTag]():
string
Defined in: contexts/index.d.ts:2285
Returns
string
entities
Get Signature
get entities():
MessageEntity[]
Defined in: contexts/index.d.ts:2289
Special entities that appear in the quote. Currently, only bold, italic, underline, strikethrough, spoiler, and custom_emoji entities are kept in quotes.
Returns
position
Get Signature
get position():
number
Defined in: contexts/index.d.ts:2291
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:2287
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:2293
true, if the quote was chosen manually by the message sender. Otherwise, the quote was added automatically by the server.
Returns
true