Raw.AttachMenuBot

Raw.AttachMenuBot

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

attachMenuBot#d90d8dfe flags:# inactive:flags.0?true has_settings:flags.1?true request_write_access:flags.2?true show_in_attach_menu:flags.3?true show_in_side_menu:flags.4?true side_menu_disclaimer_needed:flags.5?true bot_id:long short_name:string peer_types:flags.3?Vector<AttachMenuPeerType> icons:Vector<AttachMenuBotIcon> = AttachMenuBot;
export namespace Raw {
  export class AttachMenuBot {
    constructor(params: {
      inactive?: boolean;
      hasSettings?: boolean;
      requestWriteAccess?: boolean;
      showInAttachMenu?: boolean;
      showInSideMenu?: boolean;
      sideMenuDisclaimerNeeded?: boolean;
      botId: bigint;
      shortName: string;
      peerTypes?: Array<Raw.TypeAttachMenuPeerType>;
      icons: Array<Raw.TypeAttachMenuBotIcon>;
    }) {}
  }
}
🚫

This is a types constructor, you can’t use it as method when call invoke.

Layer: 185
Constructor ID: 0xd90d8dfe

Property

  • inactive : boolean or undefined

    If set, before launching the mini app the client should ask the user to add the mini app to the attachment/side menu, and only if the user accepts, after invoking messages.togglebotinattachmenu the app should be opened.

  • hasSettings : boolean or undefined

    Deprecated flag, can be ignored.

  • requestWriteAccess : boolean or undefined

    Whether the bot would like to send messages to the user.

  • showInAttachMenu : boolean or undefined

    Whether, when installed, an attachment menu entry should be shown for the mini app.

  • showInSideMenu : boolean or undefined

    Whether, when installed, an entry in the main view side menu should be shown for the mini app.

  • sideMenuDisclaimerNeeded : boolean or undefined

    If inactive if set and the user hasn’t previously accepted the third-party mini apps terms of service for this bot, when showing the mini app installation prompt, an additional mandatory checkbox to accept the mini apps tos and a disclaimer indicating that this mini app is not affiliated to telegram should be shown.

  • botId : bigint

    Bot id

  • shortName : string

    Attachment menu item name

  • peerTypes : Array of Raw.TypeAttachMenuPeerType or undefined

    List of dialog types where this attachment menu entry should be shown

  • icons : Array of Raw.TypeAttachMenuBotIcon

    List of platform-specific static icons and animations to use for the attachment menu button