TextQuote

@Serializable
data class TextQuote(val text: String, val entities: List<MessageEntity>? = null, val position: Int, val isManual: Boolean? = null)

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

Api reference

Constructors

Link copied to clipboard
constructor(text: String, entities: List<MessageEntity>? = null, position: Int, isManual: Boolean? = null)

Properties

Link copied to clipboard

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

Link copied to clipboard
val isManual: Boolean? = null

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

Link copied to clipboard

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

Link copied to clipboard

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