messages.toggleBotInAttachMenu
Enable or disable web bot attachment menu »
Enable or disable [web bot attachment menu »](https://core.telegram.org/api/bots/attach.md)
| Name | Type | Required | Description |
|---|---|---|---|
write_allowed | true | No | Whether the user authorizes the bot to write messages to them, if requested by [attachMenuBot](https://core.telegram.org/constructor/attachMenuBot.md).`request_write_access` |
bot | InputUser | Yes | Bot ID |
enabled | Bool | Yes | Toggle |
Responses
Bool
MTProto RPC
- 400 · BOT_INVALID — This is not a valid bot.