tgbotxx
1.1.6.9
Telegram Bot C++ Library
|
This object represents a general file (as opposed to photos, voice messages and audio files). https://core.telegram.org/bots/api#photosize voice messages https://core.telegram.org/bots/api#voice audio files https://core.telegram.org/bots/api#audio https://core.telegram.org/bots/api#document. More...
#include <Document.hpp>
Public Member Functions | |
Document ()=default | |
Document (const nl::json &json) | |
nl::json | toJson () const |
Serializes this object to JSON. More... | |
void | fromJson (const nl::json &json) |
Deserializes this object from JSON. More... | |
Public Attributes | |
std::string | fileId |
Identifier for this file, which can be used to download or reuse the file. More... | |
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. More... | |
Ptr< PhotoSize > | thumbnail |
Optional. Document thumbnail as defined by sender. More... | |
std::string | fileName |
Optional. Original filename as defined by sender. More... | |
std::string | mimeType |
Optional. MIME type of the file as defined by sender. More... | |
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. More... | |
This object represents a general file (as opposed to photos, voice messages and audio files). https://core.telegram.org/bots/api#photosize voice messages https://core.telegram.org/bots/api#voice audio files https://core.telegram.org/bots/api#audio https://core.telegram.org/bots/api#document.
Definition at line 13 of file Document.hpp.
|
default |
|
inlineexplicit |
Definition at line 15 of file Document.hpp.
|
inline |
Deserializes this object from JSON.
Definition at line 55 of file Document.hpp.
|
inline |
Serializes this object to JSON.
Definition at line 43 of file Document.hpp.
std::string tgbotxx::Document::fileId |
Identifier for this file, which can be used to download or reuse the file.
Definition at line 20 of file Document.hpp.
std::string tgbotxx::Document::fileName |
Optional. Original filename as defined by sender.
Definition at line 30 of file Document.hpp.
std::int64_t tgbotxx::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 38 of file Document.hpp.
std::string tgbotxx::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 24 of file Document.hpp.
std::string tgbotxx::Document::mimeType |
Optional. MIME type of the file as defined by sender.
Definition at line 33 of file Document.hpp.
Optional. Document thumbnail as defined by sender.
Definition at line 27 of file Document.hpp.