tgbot-cpp
Loading...
Searching...
No Matches
PhotoSize.h
Go to the documentation of this file.
1#ifndef TGBOT_CPP_PHOTOSIZE_H
2#define TGBOT_CPP_PHOTOSIZE_H
3
4#include <cstdint>
5#include <string>
6#include <memory>
7
8namespace TgBot {
9
15class PhotoSize {
16
17public:
18 typedef std::shared_ptr<PhotoSize> Ptr;
19
23 std::string fileId;
24
29 std::string fileUniqueId;
30
34 std::int32_t width;
35
39 std::int32_t height;
40
44 std::int32_t fileSize;
45};
46}
47
48#endif //TGBOT_CPP_PHOTOSIZE_H
This object represents one size of a photo or a file / sticker thumbnail.
Definition PhotoSize.h:15
std::shared_ptr< PhotoSize > Ptr
Definition PhotoSize.h:18
std::int32_t width
Photo width.
Definition PhotoSize.h:34
std::int32_t height
Photo height.
Definition PhotoSize.h:39
std::string fileUniqueId
Unique identifier for this file, which is supposed to be the same over time and for different bots....
Definition PhotoSize.h:29
std::int32_t fileSize
Optional. File size.
Definition PhotoSize.h:44
std::string fileId
Identifier for this file, which can be used to download or reuse the file.
Definition PhotoSize.h:23
Definition Api.h:39