Widget¶
- class pyrogram.types.Widget[source]¶
An HTML widget.
- Parameters:
html (
str) – HTML code of the widget.id (
str, optional) – Unique identifier of the shared widget; None if the widget isn’t shared.width (
int, optional) – Width of the widget in logical pixels; None if the widget must occupy the whole width of the message bubble.height (
int, optional) – Height of the widget in logical pixels; None if the height of the widget isn’t fixed.public_data (
str, 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, optional) – Data of the widget, which is specific to the message.is_copy (
bool, optional) – True, if the widget is a copy of a shared widget.can_query (
bool, optional) – True, if the widget can send queries to the bot.