Skip to content

class Tourmaline::TextQuote
inherits Reference #

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

Included modules

JSON::Serializable

Constructors#

.new(text, position, entities : Array(Tourmaline::MessageEntity) = [] of Tourmaline::MessageEntity, is_manual : Bool? = nil) #

View source

.new(pull : JSON::PullParser) #

View source

Methods#

#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.

View 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.

View source

#is_manual=(is_manual : Bool?) #

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

View source

#is_manual? : Bool? #

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

View source

#position : Int32 | Int64 #

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

View source

#position=(position : Int32 | Int64) #

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

View source

#text : String #

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

View source

#text=(text : String) #

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

View source