tgbot-cpp
Loading...
Searching...
No Matches
TextQuote.h
Go to the documentation of this file.
1#ifndef TGBOT_TEXTQUOTE_H
2#define TGBOT_TEXTQUOTE_H
3
5
6#include <cstdint>
7#include <memory>
8#include <string>
9#include <vector>
10
11namespace TgBot {
12
18class TextQuote {
19
20public:
21 typedef std::shared_ptr<TextQuote> Ptr;
22
26 std::string text;
27
33 std::vector<MessageEntity::Ptr> entities;
34
38 std::int32_t position;
39
46};
47}
48
49#endif //TGBOT_TEXTQUOTE_H
This object contains information about the quoted part of a message that is replied to by the given m...
Definition TextQuote.h:18
std::shared_ptr< TextQuote > Ptr
Definition TextQuote.h:21
std::int32_t position
Approximate quote position in the original message in UTF-16 code units as specified by the sender.
Definition TextQuote.h:38
std::vector< MessageEntity::Ptr > entities
Optional. Special entities that appear in the quote.
Definition TextQuote.h:33
bool isManual
Optional. True, if the quote was chosen manually by the message sender.
Definition TextQuote.h:45
std::string text
Text of the quoted part of a message that is replied to by the given message.
Definition TextQuote.h:26
Definition Api.h:40