telebot-ts API Documentation - v1.8.0
    Preparing search index...

    Interface SendWidgetOptions

    Options for Bot.sendWidget.

    interface SendWidgetOptions {
        allow_paid_broadcast?: boolean;
        allow_queries?: boolean;
        caption?: string;
        caption_entities?: MessageEntity[];
        chat_data?: string;
        chat_id: string | number;
        disable_notification?: boolean;
        height?: number;
        html: string;
        is_shared?: boolean;
        message_effect_id?: string;
        message_thread_id?: number;
        parse_mode?: string;
        protect_content?: boolean;
        public_data?: string;
        reply_markup?: ReplyMarkup;
        reply_parameters?: ReplyParameters;
        show_caption_above_media?: boolean;
        width?: number;
    }
    Index
    allow_paid_broadcast?: boolean

    Pass True to allow up to 1000 messages per second.

    allow_queries?: boolean

    Pass True to allow the widget to send queries to the bot.

    caption?: string

    Caption of the widget message.

    caption_entities?: MessageEntity[]

    List of special entities that appear in the caption.

    chat_data?: string

    Chat-specific data of the widget.

    chat_id: string | number

    Unique identifier for the target chat or username of the target channel.

    disable_notification?: boolean

    Sends the message silently.

    height?: number

    Height of the widget in pixels.

    html: string

    HTML content of the widget.

    is_shared?: boolean

    Pass True if the widget is shared.

    message_effect_id?: string

    Unique identifier of the message effect to be added to the message.

    message_thread_id?: number

    Unique identifier for the target message thread (topic) of a forum supergroup.

    parse_mode?: string

    Mode for parsing entities in the caption.

    protect_content?: boolean

    Protects the contents of the sent message from forwarding and saving.

    public_data?: string

    Public data of the widget.

    reply_markup?: ReplyMarkup

    Additional interface options.

    reply_parameters?: ReplyParameters

    Description of the message to reply to.

    show_caption_above_media?: boolean

    Pass True if the caption must be shown above the widget.

    width?: number

    Width of the widget in pixels.