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

A block with a map, corresponding to the custom HTML tag <tg-map>. The map's width and height must not exceed 10000 in total. The width and height ratio must be at most 20. More...

#include <Types.h>

Public Types

using Ptr = std::shared_ptr<InputRichBlockMap>

Public Attributes

std::string type { TYPE }
 Type of the block, always “map”
std::shared_ptr< Location > location { }
 Location of the center of the map.
std::optional< std::int32_t > zoom { }
 Optional. Map zoom level; 0-24.
std::optional< std::int32_t > width { }
 Optional. Map width; 0-10000.
std::optional< std::int32_t > height { }
 Optional. Map height; 0-10000.
std::shared_ptr< RichBlockCaption > caption { }
 Optional. Caption of the block.

Static Public Attributes

static TGBOT_API const std::string TYPE

Detailed Description

A block with a map, corresponding to the custom HTML tag <tg-map>. The map's width and height must not exceed 10000 in total. The width and height ratio must be at most 20.

Definition at line 6948 of file Types.h.

Member Typedef Documentation

◆ Ptr

Definition at line 6949 of file Types.h.

Member Data Documentation

◆ caption

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

Optional. Caption of the block.

Definition at line 6976 of file Types.h.

◆ height

std::optional<std::int32_t> TgBot::InputRichBlockMap::height { }

Optional. Map height; 0-10000.

Definition at line 6972 of file Types.h.

◆ location

std::shared_ptr<Location> TgBot::InputRichBlockMap::location { }

Location of the center of the map.

Definition at line 6960 of file Types.h.

◆ TYPE

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

Definition at line 6951 of file Types.h.

◆ type

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

Type of the block, always “map”

Definition at line 6956 of file Types.h.

◆ width

std::optional<std::int32_t> TgBot::InputRichBlockMap::width { }

Optional. Map width; 0-10000.

Definition at line 6968 of file Types.h.

◆ zoom

std::optional<std::int32_t> TgBot::InputRichBlockMap::zoom { }

Optional. Map zoom level; 0-24.

Definition at line 6964 of file Types.h.


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