class
Hamilton::Types::TextQuote
- Hamilton::Types::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
- Hamilton::Types::Common
- JSON::Serializable
Defined in:
types/text_quote.crConstructors
- .new(pull : JSON::PullParser)
- .new(params)
- .new(*, __pull_for_json_serializable pull : JSON::PullParser)
- .new(**params)
Instance Method Summary
-
#entities : Array(Hamilton::Types::MessageEntity) | Nil
Special entities that appear in the quote.
-
#entities=(entities : Array(Hamilton::Types::MessageEntity) | Nil)
Special entities that appear in the quote.
-
#is_manual : Bool | Nil
True, if the quote was chosen manually by the message sender.
-
#is_manual=(is_manual : Bool | Nil)
True, if the quote was chosen manually by the message sender.
-
#non_nil_fields : Array(String)
List of available non-nil fields.
-
#non_nil_fields=(non_nil_fields : Array(String))
List of available non-nil fields.
-
#position : Int32
Approximate quote position in the original message in UTF-16 code units as specified by the sender.
-
#position=(position : Int32)
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.
Instance methods inherited from class Reference
==(other : Hamilton::Any)
==
Instance methods inherited from class Object
===(other : Hamilton::Any)
===
Constructor Detail
Instance Method Detail
Special entities that appear in the quote. Currently, only bold, italic, underline, strikethrough, spoiler, and custom_emoji entities are kept in quotes.
Special entities that appear in the quote. Currently, only bold, italic, underline, strikethrough, spoiler, and custom_emoji entities are kept in quotes.
True, if the quote was chosen manually by the message sender. Otherwise, the quote was added automatically by the server.
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.