tgbot-cpp
Loading...
Searching...
No Matches
TgBot::PhotoSize Struct Reference

This object represents one size of a photo or a file / sticker thumbnail. More...

#include <Types.h>

Public Types

using Ptr = std::shared_ptr<PhotoSize>

Public Attributes

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::int32_t width { }
 Photo width.
std::int32_t height { }
 Photo height.
std::optional< std::int32_t > fileSize { }
 Optional. File size in bytes.

Detailed Description

This object represents one size of a photo or a file / sticker thumbnail.

Definition at line 10743 of file Types.h.

Member Typedef Documentation

◆ Ptr

using TgBot::PhotoSize::Ptr = std::shared_ptr<PhotoSize>

Definition at line 10744 of file Types.h.

Member Data Documentation

◆ fileId

std::string TgBot::PhotoSize::fileId { }

Identifier for this file, which can be used to download or reuse the file.

Definition at line 10749 of file Types.h.

◆ fileSize

std::optional<std::int32_t> TgBot::PhotoSize::fileSize { }

Optional. File size in bytes.

Definition at line 10770 of file Types.h.

◆ fileUniqueId

std::string TgBot::PhotoSize::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 10755 of file Types.h.

◆ height

std::int32_t TgBot::PhotoSize::height { }

Photo height.

Definition at line 10765 of file Types.h.

◆ width

std::int32_t TgBot::PhotoSize::width { }

Photo width.

Definition at line 10760 of file Types.h.


The documentation for this struct was generated from the following file: