tgbot-cpp
Loading...
Searching...
No Matches
File.h
Go to the documentation of this file.
1#ifndef TGBOT_FILE_H
2#define TGBOT_FILE_H
3
4#include <cstdint>
5#include <memory>
6#include <string>
7
8namespace TgBot {
9
20class File {
21
22public:
23 typedef std::shared_ptr<File> Ptr;
24
28 std::string fileId;
29
34 std::string fileUniqueId;
35
42 std::int64_t fileSize;
43
48 std::string filePath;
49};
50}
51
52#endif //TGBOT_FILE_H
This object represents a file ready to be downloaded. The file can be downloaded via Api::downloadFil...
Definition File.h:20
std::int64_t fileSize
Optional. File size in bytes.
Definition File.h:42
std::string fileId
Identifier for this file, which can be used to download or reuse the file.
Definition File.h:28
std::string fileUniqueId
Unique identifier for this file, which is supposed to be the same over time and for different bots....
Definition File.h:34
std::shared_ptr< File > Ptr
Definition File.h:23
std::string filePath
Optional. File path. Use Api::downloadFile or https://api.telegram.org/file/bot<token>/<filePath> to ...
Definition File.h:48
Definition Api.h:40