class pyrogram.raw.types.AttachMenuBot#

Represents a bot web app that can be launched from the attachment menu.

Constructor of AttachMenuBot.

  • Layer: 158

  • ID: C8AA2CD2

  • bot_id (int 64-bit) – Bot ID.

  • short_name (str) – Attachment menu item name.

  • peer_types (List of AttachMenuPeerType) – List of dialog types where this attachment menu entry should be shown.

  • icons (List of AttachMenuBotIcon) – List of platform-specific static icons and animations to use for the attachment menu button.

  • inactive (bool, optional) – Whether this bot attachment menu entry should be shown in the attachment menu (toggle using messages.toggleBotInAttachMenu).

  • has_settings (bool, optional) – True, if the bot supports the “settings_button_pressed” event.

  • request_write_access (bool, optional) – Whether the bot would like to send messages to the user.