Interface ToggleBotIsAddedToAttachmentMenu

Adds or removes a bot to attachment and side menu. Bot can be added to the menu, 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 attachment menu; pass false to remove the bot from attachment menu.