• Button to request a peer from the user

    Parameters

    • text: string

      Text of the button

    • buttonId: number

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

    • params: { count?: number; peerType: TypeRequestPeerType }
      • Optionalcount?: number

        Maximum number of peers to be selected

        1
        
      • peerType: TypeRequestPeerType

        Peer type, along with filters

    Returns tl.RawKeyboardButtonRequestPeer