|
tgbotxx 1.1.9.2
Telegram Bot C++ Library
|
This object contains information about the quoted part of a message that is replied to by the given message. https://core.telegram.org/bots/api#textquote. More...
#include <TextQuote.hpp>
Public Member Functions | |
| TextQuote ()=default | |
| TextQuote (const nl::json &json) | |
| nl::json | toJson () const |
| Serializes this object to JSON. | |
| void | fromJson (const nl::json &json) |
| Deserializes this object from JSON. | |
Public Attributes | |
| std::string | text |
| Text of the quoted part of a message that is replied to by the given message. | |
| std::vector< Ptr< MessageEntity > > | entities |
| Optional. Special entities that appear in the quote. Currently, only bold, italic, underline, strikethrough, spoiler, and custom_emoji entities are kept in quotes. | |
| std::int32_t | position {} |
| Approximate quote position in the original message in UTF-16 code units as specified by the sender. | |
| bool | isManual {} |
| Optional. True, if the quote was chosen manually by the message sender. Otherwise, the quote was added automatically by the server. | |
This object contains information about the quoted part of a message that is replied to by the given message. https://core.telegram.org/bots/api#textquote.
Definition at line 8 of file TextQuote.hpp.
|
default |
|
inlineexplicit |
Definition at line 10 of file TextQuote.hpp.
|
inline |
Deserializes this object from JSON.
Definition at line 39 of file TextQuote.hpp.
|
inline |
Serializes this object to JSON.
Definition at line 29 of file TextQuote.hpp.
| std::vector<Ptr<MessageEntity> > tgbotxx::TextQuote::entities |
Optional. Special entities that appear in the quote. Currently, only bold, italic, underline, strikethrough, spoiler, and custom_emoji entities are kept in quotes.
Definition at line 19 of file TextQuote.hpp.
| bool tgbotxx::TextQuote::isManual {} |
Optional. True, if the quote was chosen manually by the message sender. Otherwise, the quote was added automatically by the server.
Definition at line 25 of file TextQuote.hpp.
| std::int32_t tgbotxx::TextQuote::position {} |
Approximate quote position in the original message in UTF-16 code units as specified by the sender.
Definition at line 22 of file TextQuote.hpp.
| std::string tgbotxx::TextQuote::text |
Text of the quoted part of a message that is replied to by the given message.
Definition at line 15 of file TextQuote.hpp.