Widget
This object describes an HTML widget.
Properties
id
ts
id?: string;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
width
ts
width?: number;Width of the widget in logical pixels; omitted if the widget must occupy the whole width of the message bubble
height
ts
height?: number;Height of the widget in logical pixels; omitted if the height of the widget isn’t fixed
html
ts
html: string;HTML code of the widget
public_data
ts
public_data?: string;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
ts
chat_data?: string;Data of the widget, which is specific to the message