tgbot-cpp
Loading...
Searching...
No Matches
TgBot::Voice Struct Reference

This object represents a voice note. More...

#include <Types.h>

Public Types

using Ptr = std::shared_ptr<Voice>

Public Attributes

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 the sender.
std::optional< std::string > mimeType { }
 Optional. MIME type of the file as defined by the sender.
std::optional< std::int64_t > 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.

Detailed Description

This object represents a voice note.

Definition at line 14225 of file Types.h.

Member Typedef Documentation

◆ Ptr

using TgBot::Voice::Ptr = std::shared_ptr<Voice>

Definition at line 14226 of file Types.h.

Member Data Documentation

◆ duration

std::int32_t TgBot::Voice::duration { }

Duration of the audio in seconds as defined by the sender.

Definition at line 14240 of file Types.h.

◆ fileId

std::string TgBot::Voice::fileId { }

Identifier for this file, which can be used to download or reuse the file.

Definition at line 14231 of file Types.h.

◆ fileSize

std::optional<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 14251 of file Types.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 14236 of file Types.h.

◆ mimeType

std::optional<std::string> TgBot::Voice::mimeType { }

Optional. MIME type of the file as defined by the sender.

Definition at line 14244 of file Types.h.


The documentation for this struct was generated from the following file: