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

A block with a photo, corresponding to the HTML tag. More...

#include <Types.h>

Public Types

using Ptr = std::shared_ptr<RichBlockPhoto>

Public Attributes

std::string type { TYPE }
 Type of the block, always “photo”
std::vector< std::shared_ptr< PhotoSize > > photo { }
 Available sizes of the photo.
std::optional< bool > hasSpoiler { }
 Optional. True, if the media preview is covered by a spoiler animation.
std::shared_ptr< RichBlockCaptioncaption { }
 Optional. Caption of the block.

Static Public Attributes

static TGBOT_API const std::string TYPE

Detailed Description

A block with a photo, corresponding to the HTML tag.

.

Definition at line 12074 of file Types.h.

Member Typedef Documentation

◆ Ptr

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

Definition at line 12075 of file Types.h.

Member Data Documentation

◆ caption

std::shared_ptr<RichBlockCaption> TgBot::RichBlockPhoto::caption { }

Optional. Caption of the block.

Definition at line 12097 of file Types.h.

◆ hasSpoiler

std::optional<bool> TgBot::RichBlockPhoto::hasSpoiler { }

Optional. True, if the media preview is covered by a spoiler animation.

Definition at line 12092 of file Types.h.

◆ photo

std::vector<std::shared_ptr<PhotoSize> > TgBot::RichBlockPhoto::photo { }

Available sizes of the photo.

Definition at line 12087 of file Types.h.

◆ TYPE

TGBOT_API const std::string TgBot::RichBlockPhoto::TYPE
static

Definition at line 12077 of file Types.h.

◆ type

std::string TgBot::RichBlockPhoto::type { TYPE }

Type of the block, always “photo”

Definition at line 12082 of file Types.h.


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