pub async fn toggle_bot_is_added_to_attachment_menu(
bot_user_id: i64,
is_added: bool,
allow_write_access: bool,
client_id: i32,
) -> Result<(), Error>Expand description
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
§Arguments
bot_user_id- Bot’s user identifieris_added- Pass true to add the bot to attachment menu; pass false to remove the bot from attachment menuallow_write_access- Pass true if the current user allowed the bot to send them messages. Ignored if is_added is falseclient_id- The client id to send the request to