tgbot-cpp
Loading...
Searching...
No Matches
Voice.h
Go to the documentation of this file.
1#ifndef TGBOT_VOICE_H
2#define TGBOT_VOICE_H
3
4#include <cstdint>
5#include <memory>
6#include <string>
7
8namespace TgBot {
9
15class Voice {
16public:
17 typedef std::shared_ptr<Voice> Ptr;
18
22 std::string fileId;
23
28 std::string fileUniqueId;
29
33 std::int32_t duration;
34
38 std::string mimeType;
39
46 std::int64_t fileSize;
47};
48}
49
50#endif //TGBOT_VOICE_H
This object represents a voice note.
Definition Voice.h:15
std::string fileId
Identifier for this file, which can be used to download or reuse the file.
Definition Voice.h:22
std::int64_t fileSize
Optional. File size in bytes.
Definition Voice.h:46
std::shared_ptr< Voice > Ptr
Definition Voice.h:17
std::string fileUniqueId
Unique identifier for this file, which is supposed to be the same over time and for different bots....
Definition Voice.h:28
std::int32_t duration
Duration of the audio in seconds as defined by sender.
Definition Voice.h:33
std::string mimeType
Optional. MIME type of the file as defined by sender.
Definition Voice.h:38
Definition Api.h:39