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>.
| Name | Type | Description |
|---|---|---|
| bot_user_id | string | Bot's user identifier. |
| is_added | bool | Pass true to add the bot to attachment menu; pass false to remove the bot from attachment menu. |
| allow_write_access | bool | Pass true if the current user allowed the bot to send them messages. Ignored if is_added is false. |
More details on telegram's documentation.