Skip to content

KeyboardButtonTypeRequestUsers

Type · TDLib 1.8.67 · d1085f9c

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

KeyboardButtonTypeRequestUsers(
  id: int32,
  restrict_user_is_bot: Bool,
  user_is_bot: Bool,
  restrict_user_is_premium: Bool,
  user_is_premium: Bool,
  max_quantity: int32,
  request_name: Bool,
  request_username: Bool,
  request_photo: Bool
) → KeyboardButtonType

id

int32

Unique button identifier

restrict_user_is_bot

Bool

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

user_is_bot

Bool

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

restrict_user_is_premium

Bool

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

user_is_premium

Bool

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

max_quantity

int32

The maximum number of users to share

request_name

Bool

Pass true to request name of the users; bots only

request_username

Bool

Pass true to request username of the users; bots only

request_photo

Bool

Pass true to request photo of the users; bots only