Documentation - v0.32.0
    Preparing search index...

    Interface RequestPeerButton

    A button requesting the user to choose a peer (reply keyboards only)

    interface RequestPeerButton {
        buttonId: number;
        count?: number;
        nameRequested?: boolean;
        peerType: TypeRequestPeerType;
        photoRequested?: boolean;
        style?: BotKeyboardButtonStyle;
        text: string;
        type: "request_peer";
        usernameRequested?: boolean;
    }

    Hierarchy

    • BotKeyboardButtonBase
      • RequestPeerButton
    Index

    Properties

    buttonId: number

    ID of the button, later passed to the service message

    count?: number

    Maximum number of peers to be selected

    1
    
    nameRequested?: boolean

    Whether to request the name of the peer

    Peer type, along with filters

    photoRequested?: boolean

    Whether to request the photo of the peer

    Style of the button

    text: string

    Text of the button

    type: "request_peer"
    usernameRequested?: boolean

    Whether to request the username of the peer