Interface KeyboardButtonTypeRequestUsers

A button that requests users to be shared by the current user; available only in private chats. Use the method shareUsersWithBot to complete the request. Subtype of KeyboardButtonType.

interface KeyboardButtonTypeRequestUsers {
    @type: "keyboardButtonTypeRequestUsers";
    id: number;
    max_quantity: number;
    request_name?: boolean;
    request_photo?: boolean;
    request_username?: boolean;
    restrict_user_is_bot?: boolean;
    restrict_user_is_premium?: boolean;
    user_is_bot?: boolean;
    user_is_premium?: boolean;
}

Properties

@type: "keyboardButtonTypeRequestUsers"
id: number

Unique button identifier.

max_quantity: number

The maximum number of users to share.

request_name?: boolean

Pass true to request name of the users; bots only.

request_photo?: boolean

Pass true to request photo of the users; bots only.

request_username?: boolean

Pass true to request username of the users; bots only.

restrict_user_is_bot?: boolean

True, if the shared users must or must not be bots.

restrict_user_is_premium?: boolean

True, if the shared users must or must not be Telegram Premium users.

user_is_bot?: boolean

True, if the shared users must be bots; otherwise, the shared users must not be bots. Ignored if restrict_user_is_bot is false.

user_is_premium?: boolean

True, if the shared users must be Telegram Premium users; otherwise, the shared users must not be Telegram Premium users. Ignored if restrict_user_is_premium is false.