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

An item of a list. More...

#include <Types.h>

Public Types

using Ptr = std::shared_ptr<RichBlockListItem>

Public Attributes

std::string label { }
 Label of the item.
std::vector< std::shared_ptr< RichBlock > > blocks { }
 The content of the item.
std::optional< bool > hasCheckbox { }
 Optional. True, if the item has a checkbox.
std::optional< bool > isChecked { }
 Optional. True, if the item has a checked checkbox.
std::optional< std::int32_t > value { }
 Optional. For ordered lists, the numeric value of the item label.
std::optional< std::string > type { }
 Optional. For ordered lists, the type of the item label; must be one of “a” for lowercase letters, “A” for uppercase letters, “i” for lowercase Roman numerals, “I” for uppercase Roman numerals, or “1” for decimal numbers.

Detailed Description

An item of a list.

Definition at line 11471 of file Types.h.

Member Typedef Documentation

◆ Ptr

Definition at line 11472 of file Types.h.

Member Data Documentation

◆ blocks

std::vector<std::shared_ptr<RichBlock> > TgBot::RichBlockListItem::blocks { }

The content of the item.

Definition at line 11481 of file Types.h.

◆ hasCheckbox

std::optional<bool> TgBot::RichBlockListItem::hasCheckbox { }

Optional. True, if the item has a checkbox.

Definition at line 11485 of file Types.h.

◆ isChecked

std::optional<bool> TgBot::RichBlockListItem::isChecked { }

Optional. True, if the item has a checked checkbox.

Definition at line 11489 of file Types.h.

◆ label

std::string TgBot::RichBlockListItem::label { }

Label of the item.

Definition at line 11477 of file Types.h.

◆ type

std::optional<std::string> TgBot::RichBlockListItem::type { }

Optional. For ordered lists, the type of the item label; must be one of “a” for lowercase letters, “A” for uppercase letters, “i” for lowercase Roman numerals, “I” for uppercase Roman numerals, or “1” for decimal numbers.

Definition at line 11499 of file Types.h.

◆ value

std::optional<std::int32_t> TgBot::RichBlockListItem::value { }

Optional. For ordered lists, the numeric value of the item label.

Definition at line 11493 of file Types.h.


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