InputSharedWidgetMessageContent¶
- class pyrogram.types.InputSharedWidgetMessageContent[source]¶
Content of a message with a shared widget to be sent as the result of an inline query. Currently, widgets can’t be sent in response to inline queries in the production environment.
- Parameters:
widget_id (
str) – Unique identifier of the shared widget created by the bot.chat_data (
str, optional) – Data of the widget, which is specific to the message, 0-1024 bytes.caption (
str, optional) – Widget caption, 0-1024 characters after entities parsing.parse_mode (
ParseMode, optional) – By default, texts are parsed using both Markdown and HTML styles. You can combine both syntaxes together.caption_entities (List of
MessageEntity, optional) – List of special entities that appear in the caption, which can be specified instead of parse_mode.show_caption_above_media (
bool, optional) – Pass True if the caption must be shown above the widget.