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
7
8#include <memory>
9#include <string>
10#include <vector>
11
12namespace TgBot {
13
20
21public:
22 static const std::string TYPE;
23
24 typedef std::shared_ptr<InputTextMessageContent> Ptr;
25
27 this->type = TYPE;
28 }
29
33 std::string messageText;
34
40 std::string parseMode;
41
45 std::vector<MessageEntity::Ptr> entities;
46
51};
52}
53
54#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.
std::string messageText
Text of the message to be sent, 1-4096 characters.
LinkPreviewOptions::Ptr linkPreviewOptions
Optional. Link preview generation options for the message.
std::shared_ptr< InputTextMessageContent > Ptr
std::string parseMode
Optional. Mode for parsing entities in the message text.
std::vector< MessageEntity::Ptr > entities
Optional. List of special entities that appear in message text, which can be specified instead of par...
Definition Api.h:40