TextQuote
This object contains information about the quoted part of a message that is replied to by the given message.
Properties
text
text: string;Text of the quoted part of a message that is replied to by the given message; may be empty if the quote was chosen from a rich message
entities
entities?: MessageEntity[];Special entities that appear in the quote. Currently, only bold, italic, underline, strikethrough, spoiler, custom_emoji, and date_time entities are kept in quotes.
rich_texts
rich_texts?: RichText[];Rich text of the quote if it was chosen from a rich message. May contain only plain text, RichTextBold, RichTextItalic, RichTextUnderline, RichTextStrikethrough, RichTextSpoiler, RichTextSubscript, RichTextSuperscript, RichTextDateTime, RichTextCustomEmoji, RichTextMathematicalExpression, and arrays of them.
position
position: number;Approximate quote position in the original message in UTF-16 code units as specified by the sender. For quotes from rich messages, it is the position in the text formed by joining plain texts of all quotable texts of the message, separated by line feeds.
is_manual
is_manual?: true;True, if the quote was chosen manually by the message sender. Otherwise, the quote was added automatically by the server.