tgbot-cpp
Loading...
Searching...
No Matches
Document.h
Go to the documentation of this file.
1#ifndef TGBOT_DOCUMENT_H
2#define TGBOT_DOCUMENT_H
3
5
6#include <cstdint>
7#include <memory>
8#include <string>
9
10namespace TgBot {
11
17class Document {
18
19public:
20 typedef std::shared_ptr<Document> Ptr;
21
25 std::string fileId;
26
31 std::string fileUniqueId;
32
37
41 std::string fileName;
42
46 std::string mimeType;
47
54 std::int64_t fileSize;
55};
56}
57
58#endif //TGBOT_DOCUMENT_H
This object represents a general file (as opposed to photos, voice messages and audio files).
Definition Document.h:17
std::string fileName
Optional. Original filename as defined by sender.
Definition Document.h:41
PhotoSize::Ptr thumb
Optional. Document thumbnail as defined by sender.
Definition Document.h:36
std::int64_t fileSize
Optional. File size in bytes.
Definition Document.h:54
std::string fileId
Identifier for this file, which can be used to download or reuse the file.
Definition Document.h:25
std::string fileUniqueId
Unique identifier for this file, which is supposed to be the same over time and for different bots....
Definition Document.h:31
std::string mimeType
Optional. MIME type of the file as defined by sender.
Definition Document.h:46
std::shared_ptr< Document > Ptr
Definition Document.h:20
std::shared_ptr< PhotoSize > Ptr
Definition PhotoSize.h:18
Definition Api.h:39