Documentation - v0.32.2
    Preparing search index...
    • Button requesting the user to create a new bot managed by the current bot. Available only in private chats.

      Once the bot is created, it will be sent to the bot in a service message, same as with requestPeer

      Used for reply keyboards, not inline!

      Parameters

      • text: string

        Text of the button

      • buttonId: number

        ID of the button that will later be passed to the service message

      • Optionalparams: ButtonOptions & { suggestedName?: string; suggestedUsername?: string }
        • OptionalsuggestedName?: string

          Suggested name for the bot

        • OptionalsuggestedUsername?: string

          Suggested username for the bot

      Returns RequestPeerButton