class Tourmaline::TextQuote
- Tourmaline::TextQuote
- Reference
- Object
Overview
This object contains information about the quoted part of a message that is replied to by the given message.
Included Modules
- JSON::Serializable
Defined in:
tourmaline/types/api.crConstructors
- .new(text : String, position : Int32 | Int64, entities : Array(Tourmaline::MessageEntity) = [] of Tourmaline::MessageEntity, is_manual : Bool | Nil = nil)
- .new(pull : JSON::PullParser)
Instance Method Summary
-
#entities : Array(Tourmaline::MessageEntity)
Optional.
-
#entities=(entities : Array(Tourmaline::MessageEntity))
Optional.
-
#is_manual=(is_manual : Bool | Nil)
Optional.
-
#is_manual? : Bool | Nil
Optional.
-
#position : Int32 | Int64
Approximate quote position in the original message in UTF-16 code units as specified by the sender
-
#position=(position : Int32 | Int64)
Approximate quote position in the original message in UTF-16 code units as specified by the sender
-
#text : String
Text of the quoted part of a message that is replied to by the given message
-
#text=(text : String)
Text of the quoted part of a message that is replied to by the given message
Constructor Detail
Instance Method Detail
Optional. Special entities that appear in the quote. Currently, only bold, italic, underline, strikethrough, spoiler, and custom_emoji entities are kept in quotes.
Optional. Special entities that appear in the quote. Currently, only bold, italic, underline, strikethrough, spoiler, and custom_emoji entities are kept in quotes.
Optional. True, if the quote was chosen manually by the message sender. Otherwise, the quote was added automatically by the server.
Optional. True, if the quote was chosen manually by the message sender. Otherwise, the quote was added automatically by the server.
Approximate quote position in the original message in UTF-16 code units as specified by the sender
Approximate quote position in the original message in UTF-16 code units as specified by the sender
Text of the quoted part of a message that is replied to by the given message