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

A block with a map, corresponding to the custom HTML tag <tg-map>. More...

#include <Types.h>

Public Types

using Ptr = std::shared_ptr<RichBlockMap>

Public Attributes

std::string type { TYPE }
 Type of the block, always “map”
std::shared_ptr< Locationlocation { }
 Location of the center of the map.
std::int32_t zoom { }
 Map zoom level; 13-20.
std::int32_t width { }
 Expected width of the map.
std::int32_t height { }
 Expected height of the map.
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 map, corresponding to the custom HTML tag <tg-map>.

Definition at line 11984 of file Types.h.

Member Typedef Documentation

◆ Ptr

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

Definition at line 11985 of file Types.h.

Member Data Documentation

◆ caption

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

Optional. Caption of the block.

Definition at line 12017 of file Types.h.

◆ height

std::int32_t TgBot::RichBlockMap::height { }

Expected height of the map.

Definition at line 12012 of file Types.h.

◆ location

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

Location of the center of the map.

Definition at line 11997 of file Types.h.

◆ TYPE

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

Definition at line 11987 of file Types.h.

◆ type

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

Type of the block, always “map”

Definition at line 11992 of file Types.h.

◆ width

std::int32_t TgBot::RichBlockMap::width { }

Expected width of the map.

Definition at line 12007 of file Types.h.

◆ zoom

std::int32_t TgBot::RichBlockMap::zoom { }

Map zoom level; 13-20.

Definition at line 12002 of file Types.h.


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