tgbot-cpp
Loading...
Searching...
No Matches
InputTextMessageContent.h
Go to the documentation of this file.
1#ifndef TGBOT_INPUTTEXTMESSAGECONTENT_H
2#define TGBOT_INPUTTEXTMESSAGECONTENT_H
3
6
7#include <memory>
8#include <string>
9#include <vector>
10
11namespace TgBot {
12
19public:
20 static const std::string TYPE;
21
22 typedef std::shared_ptr<InputTextMessageContent> Ptr;
23
25 this->type = TYPE;
26 }
27
31 std::string messageText;
32
37 std::string parseMode;
38
42 std::vector<MessageEntity::Ptr> entities;
43
48};
49}
50
51#endif //TGBOT_INPUTTEXTMESSAGECONTENT_H
This abstract class is base of all message contents.
std::string type
Type of the content.
Represents the content of a text message to be sent as the result of an inline query.
bool disableWebPagePreview
Optional. Disables link previews for links in the sent message.
std::string messageText
Text of the message to be sent, 1-4096 characters.
std::shared_ptr< InputTextMessageContent > Ptr
std::string parseMode
Optional. Mode for parsing entities in the message text. See https://core.telegram....
std::vector< MessageEntity::Ptr > entities
Optional. List of special entities that appear in message text, which can be specified instead of Inp...
Definition Api.h:39