This object represents a voice note.
More...
#include <Voice.h>
|
std::string | fileId |
| Identifier for this file, which can be used to download or reuse the file.
|
|
std::string | fileUniqueId |
| Unique identifier for this file, which is supposed to be the same over time and for different bots. Can't be used to download or reuse the file.
|
|
std::int32_t | duration |
| Duration of the audio in seconds as defined by sender.
|
|
std::string | mimeType |
| Optional. MIME type of the file as defined by sender.
|
|
std::int64_t | fileSize |
| Optional. File size in bytes.
|
|
This object represents a voice note.
Definition at line 15 of file Voice.h.
◆ Ptr
◆ duration
std::int32_t TgBot::Voice::duration |
Duration of the audio in seconds as defined by sender.
Definition at line 33 of file Voice.h.
◆ fileId
std::string TgBot::Voice::fileId |
Identifier for this file, which can be used to download or reuse the file.
Definition at line 22 of file Voice.h.
◆ fileSize
std::int64_t TgBot::Voice::fileSize |
Optional. File size in bytes.
It can be bigger than 2^31 and some programming languages may have difficulty/silent defects in interpreting it. But it has at most 52 significant bits, so a signed 64-bit integer or double-precision float type are safe for storing this value.
Definition at line 46 of file Voice.h.
◆ fileUniqueId
std::string TgBot::Voice::fileUniqueId |
Unique identifier for this file, which is supposed to be the same over time and for different bots. Can't be used to download or reuse the file.
Definition at line 28 of file Voice.h.
◆ mimeType
std::string TgBot::Voice::mimeType |
Optional. MIME type of the file as defined by sender.
Definition at line 38 of file Voice.h.
The documentation for this class was generated from the following file: