Interface ToggleBotIsAddedToAttachmentMenu

Adds a bot to or removes it from the attachment and side menus. The bot can be added to the menus only if userTypeBot.can_be_added_to_attachment_menu == true. Request type for Tdjson#toggleBotIsAddedToAttachmentMenu.

interface ToggleBotIsAddedToAttachmentMenu {
    @type: "toggleBotIsAddedToAttachmentMenu";
    allow_write_access?: boolean;
    bot_user_id: number;
    is_added?: boolean;
}

Properties

@type: "toggleBotIsAddedToAttachmentMenu"
allow_write_access?: boolean

Pass true if the current user allowed the bot to send them messages. Ignored if is_added is false.

bot_user_id: number

Bot's user identifier.

is_added?: boolean

Pass true to add the bot to the attachment menu; pass false to remove the bot from the attachment menu.