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

A block with a video, corresponding to the HTML tag <video>. More...

#include <Types.h>

Public Types

using Ptr = std::shared_ptr<RichBlockVideo>

Public Attributes

std::string type { TYPE }
 Type of the block, always “video”
std::shared_ptr< Videovideo { }
 The video.
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 video, corresponding to the HTML tag <video>.

Definition at line 12326 of file Types.h.

Member Typedef Documentation

◆ Ptr

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

Definition at line 12327 of file Types.h.

Member Data Documentation

◆ caption

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

Optional. Caption of the block.

Definition at line 12349 of file Types.h.

◆ hasSpoiler

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

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

Definition at line 12344 of file Types.h.

◆ TYPE

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

Definition at line 12329 of file Types.h.

◆ type

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

Type of the block, always “video”

Definition at line 12334 of file Types.h.

◆ video

std::shared_ptr<Video> TgBot::RichBlockVideo::video { }

The video.

Definition at line 12339 of file Types.h.


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