tgbot-cpp
Loading...
Searching...
No Matches
InputMediaAudio.h
Go to the documentation of this file.
1#ifndef TGBOT_INPUTMEDIAAUDIO_H
2#define TGBOT_INPUTMEDIAAUDIO_H
3
5
6#include <memory>
7#include <string>
8
9namespace TgBot {
10
17
18public:
19 static const std::string TYPE;
20
21 typedef std::shared_ptr<InputMediaAudio> Ptr;
22
24 this->type = TYPE;
25 }
26
35 std::string thumb;
36
40 std::int32_t duration;
41
45 std::string performer;
46
50 std::string title;
51};
52}
53
54#endif //TGBOT_INPUTMEDIAAUDIO_H
Represents an audio file to be treated as music to be sent.
static const std::string TYPE
std::string performer
Optional. Performer of the audio.
std::int32_t duration
Optional. Duration of the audio in seconds.
std::shared_ptr< InputMediaAudio > Ptr
std::string title
Optional. Title of the audio.
std::string thumb
Optional. Thumbnail of the file sent; can be ignored if thumbnail generation for the file is supporte...
This abstract class is base of all input media.
Definition InputMedia.h:19
std::string type
Type of the result.
Definition InputMedia.h:30
Definition Api.h:39