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
4
#include "
tgbot/types/InputMedia.h
"
5
6
#include <memory>
7
#include <string>
8
9
namespace
TgBot
{
10
16
class
InputMediaAudio
:
public
InputMedia
{
17
18
public
:
19
static
const
std::string
TYPE
;
20
21
typedef
std::shared_ptr<InputMediaAudio>
Ptr
;
22
23
InputMediaAudio
() {
24
this->
type
=
TYPE
;
25
}
26
35
std::string
thumbnail
;
36
40
std::int32_t
duration
;
41
45
std::string
performer
;
46
50
std::string
title
;
51
};
52
}
53
54
#endif
//TGBOT_INPUTMEDIAAUDIO_H
InputMedia.h
TgBot::InputMediaAudio
Represents an audio file to be treated as music to be sent.
Definition
InputMediaAudio.h:16
TgBot::InputMediaAudio::TYPE
static const std::string TYPE
Definition
InputMediaAudio.h:19
TgBot::InputMediaAudio::performer
std::string performer
Optional. Performer of the audio.
Definition
InputMediaAudio.h:45
TgBot::InputMediaAudio::InputMediaAudio
InputMediaAudio()
Definition
InputMediaAudio.h:23
TgBot::InputMediaAudio::duration
std::int32_t duration
Optional. Duration of the audio in seconds.
Definition
InputMediaAudio.h:40
TgBot::InputMediaAudio::thumbnail
std::string thumbnail
Optional. Thumbnail of the file sent; can be ignored if thumbnail generation for the file is supporte...
Definition
InputMediaAudio.h:35
TgBot::InputMediaAudio::Ptr
std::shared_ptr< InputMediaAudio > Ptr
Definition
InputMediaAudio.h:21
TgBot::InputMediaAudio::title
std::string title
Optional. Title of the audio.
Definition
InputMediaAudio.h:50
TgBot::InputMedia
This abstract class is base of all input media.
Definition
InputMedia.h:19
TgBot::InputMedia::type
std::string type
Type of the result.
Definition
InputMedia.h:30
TgBot
Definition
Api.h:40
include
tgbot
types
InputMediaAudio.h
Generated on Tue Jun 11 2024 00:46:35 for tgbot-cpp by
1.11.0