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

This object describes an HTML widget. More...

#include <Types.h>

Public Types

using Ptr = std::shared_ptr<Widget>

Public Attributes

std::optional< std::string > id { }
 Optional. Unique identifier of the shared widget, which can be used to send the widget again using the method sendSharedWidget; omitted if the widget isn't shared.
std::optional< std::uint32_t > width { }
 Optional. Width of the widget in logical pixels; omitted if the widget must occupy the whole width of the message bubble.
std::optional< std::uint32_t > height { }
 Optional. Height of the widget in logical pixels; omitted if the height of the widget isn't fixed.
std::string html { }
 HTML code of the widget.
std::optional< std::string > publicData { }
 Optional. Public data of the widget, which is available wherever the widget is shown. All messages with a shared widget have the same public data.
std::optional< std::string > chatData { }
 Optional. Data of the widget, which is specific to the message.

Detailed Description

This object describes an HTML widget.

Definition at line 14955 of file Types.h.

Member Typedef Documentation

◆ Ptr

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

Definition at line 14956 of file Types.h.

Member Data Documentation

◆ chatData

std::optional<std::string> TgBot::Widget::chatData { }

Optional. Data of the widget, which is specific to the message.

Definition at line 14985 of file Types.h.

◆ height

std::optional<std::uint32_t> TgBot::Widget::height { }

Optional. Height of the widget in logical pixels; omitted if the height of the widget isn't fixed.

Definition at line 14972 of file Types.h.

◆ html

std::string TgBot::Widget::html { }

HTML code of the widget.

Definition at line 14976 of file Types.h.

◆ id

std::optional<std::string> TgBot::Widget::id { }

Optional. Unique identifier of the shared widget, which can be used to send the widget again using the method sendSharedWidget; omitted if the widget isn't shared.

Definition at line 14962 of file Types.h.

◆ publicData

std::optional<std::string> TgBot::Widget::publicData { }

Optional. Public data of the widget, which is available wherever the widget is shown. All messages with a shared widget have the same public data.

Definition at line 14981 of file Types.h.

◆ width

std::optional<std::uint32_t> TgBot::Widget::width { }

Optional. Width of the widget in logical pixels; omitted if the widget must occupy the whole width of the message bubble.

Definition at line 14967 of file Types.h.


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