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)
#
(text, position, entities : Array(Tourmaline::MessageEntity) = [] of Tourmaline::MessageEntity, is_manual : Bool? = nil)
Methods#
#entities : Array(Tourmaline::MessageEntity)
#
: 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.
#entities=(entities : Array(Tourmaline::MessageEntity))
#
(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.
#is_manual=(is_manual : Bool?)
#
(is_manual : Bool?)
Optional. True, if the quote was chosen manually by the message sender. Otherwise, the quote was added automatically by the server.
#is_manual? : Bool?
#
: Bool?
Optional. True, if the quote was chosen manually by the message sender. Otherwise, the quote was added automatically by the server.
#position : Int32 | Int64
#
: Int32 | Int64
Approximate quote position in the original message in UTF-16 code units as specified by the sender
#position=(position : Int32 | Int64)
#
(position : Int32 | Int64)
Approximate quote position in the original message in UTF-16 code units as specified by the sender
#text : String
#
: String
Text of the quoted part of a message that is replied to by the given message
#text=(text : String)
#
(text : String)
Text of the quoted part of a message that is replied to by the given message