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

An item of a list to be sent. More...

#include <Types.h>

Public Types

using Ptr = std::shared_ptr<InputRichBlockListItem>

Public Attributes

std::vector< std::shared_ptr< InputRichBlock > > blocks { }
 The content of the item.
std::optional< bool > hasCheckbox { }
 Optional. Pass True if the item has a checkbox.
std::optional< bool > isChecked { }
 Optional. Pass 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 to be sent.

Definition at line 6913 of file Types.h.

Member Typedef Documentation

◆ Ptr

Definition at line 6914 of file Types.h.

Member Data Documentation

◆ blocks

std::vector<std::shared_ptr<InputRichBlock> > TgBot::InputRichBlockListItem::blocks { }

The content of the item.

Definition at line 6919 of file Types.h.

◆ hasCheckbox

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

Optional. Pass True if the item has a checkbox.

Definition at line 6923 of file Types.h.

◆ isChecked

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

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

Definition at line 6927 of file Types.h.

◆ type

std::optional<std::string> TgBot::InputRichBlockListItem::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 6937 of file Types.h.

◆ value

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

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

Definition at line 6931 of file Types.h.


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