This object represents a general file (as opposed to photos, voice messages and audio files).
More...
#include <Types.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::shared_ptr< PhotoSize > | thumbnail { } |
| | Optional. Document thumbnail as defined by the sender.
|
| std::optional< std::string > | fileName { } |
| | Optional. Original filename 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.
|
This object represents a general file (as opposed to photos, voice messages and audio files).
Definition at line 3093 of file Types.h.
◆ Ptr
◆ fileId
| std::string TgBot::Document::fileId { } |
Identifier for this file, which can be used to download or reuse the file.
Definition at line 3099 of file Types.h.
◆ fileName
| std::optional<std::string> TgBot::Document::fileName { } |
Optional. Original filename as defined by the sender.
Definition at line 3112 of file Types.h.
◆ fileSize
| std::optional<std::int64_t> TgBot::Document::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 3123 of file Types.h.
◆ fileUniqueId
| std::string TgBot::Document::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 3104 of file Types.h.
◆ mimeType
| std::optional<std::string> TgBot::Document::mimeType { } |
Optional. MIME type of the file as defined by the sender.
Definition at line 3116 of file Types.h.
◆ thumbnail
| std::shared_ptr<PhotoSize> TgBot::Document::thumbnail { } |
Optional. Document thumbnail as defined by the sender.
Definition at line 3108 of file Types.h.
The documentation for this struct was generated from the following file: