View Source ExTDLib.Method.ToggleBotIsAddedToAttachmentMenu (ExTDLib v0.0.4)

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. Returns object_ptr<Ok>.

NameTypeDescription
bot_user_idstringBot's user identifier.
is_addedboolPass true to add the bot to attachment menu; pass false to remove the bot from attachment menu.
allow_write_accessboolPass true if the current user allowed the bot to send them messages. Ignored if is_added is false.

More details on telegram's documentation.