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
4
#include "
tgbot/types/MessageEntity.h
"
5
6
#include <memory>
7
#include <string>
8
#include <vector>
9
10
namespace
TgBot
{
11
19
class
InputMedia
{
20
public
:
21
typedef
std::shared_ptr<InputMedia>
Ptr
;
22
23
InputMedia
() {}
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
MessageEntity.h
TgBot::InputMedia
This abstract class is base of all input media.
Definition
InputMedia.h:19
TgBot::InputMedia::InputMedia
InputMedia()
Definition
InputMedia.h:23
TgBot::InputMedia::media
std::string media
File to send.
Definition
InputMedia.h:38
TgBot::InputMedia::captionEntities
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
TgBot::InputMedia::caption
std::string caption
Optional. Caption of the media to be sent, 0-1024 characters after entities parsing.
Definition
InputMedia.h:43
TgBot::InputMedia::type
std::string type
Type of the result.
Definition
InputMedia.h:30
TgBot::InputMedia::~InputMedia
virtual ~InputMedia()
Definition
InputMedia.h:25
TgBot::InputMedia::Ptr
std::shared_ptr< InputMedia > Ptr
Definition
InputMedia.h:21
TgBot::InputMedia::parseMode
std::string parseMode
Optional. Mode for parsing entities in the media caption.
Definition
InputMedia.h:50
TgBot
Definition
Api.h:40
include
tgbot
types
InputMedia.h
Generated on Tue Jun 11 2024 00:46:35 for tgbot-cpp by
1.11.0