messages.ToggleBotInAttachMenu#

class pyrogram.raw.functions.messages.ToggleBotInAttachMenu#

Enable or disable web bot attachment menu.

Details:
  • Layer: 158

  • ID: 69F59D69

Parameters:
  • bot (InputUser) – Bot ID.

  • enabled (bool) – Toggle.

  • write_allowed (bool, optional) – Whether the user authorizes the bot to write messages to them, if requested by attachMenuBot.request_write_access.

Returns:

bool