tgbot-cpp
Loading...
Searching...
No Matches
InputMedia.h
Go to the documentation of this file.
1#ifndef TGBOT_INPUTMEDIA_H
2#define TGBOT_INPUTMEDIA_H
3
5
6#include <memory>
7#include <string>
8#include <vector>
9
10namespace TgBot {
11
20public:
21 typedef std::shared_ptr<InputMedia> Ptr;
22
24
25 virtual ~InputMedia() {}
26
30 std::string type;
31
38 std::string media;
39
43 std::string caption;
44
50 std::string parseMode;
51
55 std::vector<MessageEntity::Ptr> captionEntities;
56};
57}
58
59#endif //TGBOT_INPUTMEDIA_H
This abstract class is base of all input media.
Definition InputMedia.h:19
std::string media
File to send.
Definition InputMedia.h:38
std::vector< MessageEntity::Ptr > captionEntities
Optional. List of special entities that appear in the caption, which can be specified instead of pars...
Definition InputMedia.h:55
std::string caption
Optional. Caption of the media to be sent, 0-1024 characters after entities parsing.
Definition InputMedia.h:43
std::string type
Type of the result.
Definition InputMedia.h:30
virtual ~InputMedia()
Definition InputMedia.h:25
std::shared_ptr< InputMedia > Ptr
Definition InputMedia.h:21
std::string parseMode
Optional. Mode for parsing entities in the media caption.
Definition InputMedia.h:50
Definition Api.h:39