tgbot-cpp
Loading...
Searching...
No Matches
Audio.h
Go to the documentation of this file.
1#ifndef TGBOT_AUDIO_H
2#define TGBOT_AUDIO_H
3
5
6#include <cstdint>
7#include <memory>
8#include <string>
9
10namespace TgBot {
11
17class Audio {
18
19public:
20 typedef std::shared_ptr<Audio> Ptr;
21
25 std::string fileId;
26
31 std::string fileUniqueId;
32
36 std::int32_t duration;
37
41 std::string performer;
42
46 std::string title;
47
51 std::string fileName;
52
56 std::string mimeType;
57
64 std::int64_t fileSize;
65
70};
71}
72
73#endif //TGBOT_AUDIO_H
This object represents an audio file to be treated as music by the Telegram clients.
Definition Audio.h:17
std::string mimeType
Optional. MIME type of the file as defined by sender.
Definition Audio.h:56
std::shared_ptr< Audio > Ptr
Definition Audio.h:20
std::string fileName
Optional. Original filename as defined by sender.
Definition Audio.h:51
std::int64_t fileSize
Optional. File size in bytes.
Definition Audio.h:64
std::int32_t duration
Duration of the audio in seconds as defined by sender.
Definition Audio.h:36
std::string title
Optional. Title of the audio as defined by sender or by audio tags.
Definition Audio.h:46
PhotoSize::Ptr thumb
Optional. Thumbnail of the album cover to which the music file belongs.
Definition Audio.h:69
std::string performer
Optional. Performer of the audio as defined by sender or by audio tags.
Definition Audio.h:41
std::string fileId
Identifier for this file, which can be used to download or reuse the file.
Definition Audio.h:25
std::string fileUniqueId
Unique identifier for this file, which is supposed to be the same over time and for different bots....
Definition Audio.h:31
std::shared_ptr< PhotoSize > Ptr
Definition PhotoSize.h:18
Definition Api.h:39