class

Tourmaline::TextQuote

Inherits JSON::Serializable < Reference < Object

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

Constructors

new(text : String, position : Int32 | Int64, entities : Array(Tourmaline::MessageEntity) = [] of Tourmaline::MessageEntity, is_manual : Bool | Nil = nil)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

entities

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

Source
entities=(entities : Array(Tourmaline::MessageEntity))

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

Source
is_manual=(is_manual : Bool | Nil)

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

Source
is_manual?

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

Source
position

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

Source
position=(position : Int32 | Int64)

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

Source
text

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

Source
text=(text : String)

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

Source