Widget¶
- class aiogram.types.widget.Widget(*, html: str, id: str | None = None, width: int | None = None, height: int | None = None, public_data: str | None = None, chat_data: str | None = None, **extra_data: Any)[source]¶
This object describes an HTML widget.
Source: https://core.telegram.org/bots/api#widget
- html: str¶
HTML code of the widget
- id: str | None¶
Optional. Unique identifier of the shared widget, which can be used to send the widget again using the method
aiogram.methods.send_shared_widget.SendSharedWidget; omitted if the widget isn’t shared
- width: int | None¶
Optional. Width of the widget in logical pixels; omitted if the widget must occupy the whole width of the message bubble
- height: int | None¶
Optional. Height of the widget in logical pixels; omitted if the height of the widget isn’t fixed
- public_data: str | None¶
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
- chat_data: str | None¶
Optional. Data of the widget, which is specific to the message