toggle_bot_is_added_to_attachment_menu


Description:

public async Ok toggle_bot_is_added_to_attachment_menu (int64 bot_user_id, bool is_added, bool allow_write_access) throws TDLibError

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

Parameters:

bot_user_id

Bot's user identifier

is_added

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

allow_write_access

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