OptionalallowWhether the widget can send queries to the bot
OptionalcaptionCaption of the media
OptionalchatInitial chat-specific state of the widget (up to 1024 bytes)
OptionalheightHeight of the widget in CSS pixels
HTML source of the widget (up to 32 KB, and up to 4 KB after zlib compression).
Must be a single self-contained document without external resources
OptionalpublicInitial shared state of the widget (up to 1024 bytes)
OptionalsharedWhether to create a shared widget object, which can later be re-sent by its ID and whose publicData is shared between all messages containing it
OptionalwidthWidth of the widget in CSS pixels
An HTML widget to be sent (bots only)