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

A block containing a list of buttons that are shown in one row, corresponding to the custom HTML tag <tg-button-row>. More...

#include <Types.h>

Public Types

using Ptr = std::shared_ptr<RichBlockButtons>

Public Attributes

std::string type { TYPE }
 Type of the block, always “buttons”
std::vector< std::shared_ptr< RichMessageButton > > buttons { }
 The buttons.
std::optional< std::string > align { }
 Optional. Horizontal alignment of the buttons. Currently, must be one of “left”, “center”, or “right”.

Static Public Attributes

static TGBOT_API const std::string TYPE

Detailed Description

A block containing a list of buttons that are shown in one row, corresponding to the custom HTML tag <tg-button-row>.

Definition at line 10832 of file Types.h.

Member Typedef Documentation

◆ Ptr

Definition at line 10833 of file Types.h.

Member Data Documentation

◆ align

std::optional<std::string> TgBot::RichBlockButtons::align { }

Optional. Horizontal alignment of the buttons. Currently, must be one of “left”, “center”, or “right”.

Definition at line 10849 of file Types.h.

◆ buttons

std::vector<std::shared_ptr<RichMessageButton> > TgBot::RichBlockButtons::buttons { }

The buttons.

Definition at line 10844 of file Types.h.

◆ TYPE

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

Definition at line 10835 of file Types.h.

◆ type

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

Type of the block, always “buttons”

Definition at line 10840 of file Types.h.


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