messages.toggleBotInAttachMenu #

Enable or disable web bot attachment menu »

Layer 223

boolFalse#bc799737 = Bool;
boolTrue#997275b5 = Bool;
---functions---
messages.toggleBotInAttachMenu#69f59d69 flags:# write_allowed:flags.0?true bot:InputUser enabled:Bool = Bool;

Parameters #

NameTypeDescription
flags#Flags, see TL conditional fields
write_allowedflags.0?trueWhether the user authorizes the bot to write messages to them, if requested by attachMenuBot.request_write_access
botInputUserBot ID
enabledBoolToggle

Result #

Bool

Only users can use this method #

Possible errors #

CodeTypeDescription
400BOT_INVALIDThis is not a valid bot.

attachMenuBot #

Represents a bot mini app that can be launched from the attachment/side menu »

At least one of the show_in_attach_menu or the show_in_side_menu flags will always be set.

Bot attachment menu and side menu entries #

Bots can install attachment menu and side menu entries, offering conveniently accessible, versatile web apps.