KeyboardButtonRequestUser#
- class aiogram.types.keyboard_button_request_user.KeyboardButtonRequestUser(*, request_id: int, user_is_bot: Optional[bool] = None, user_is_premium: Optional[bool] = None, **extra_data: Any)[source]#
This object defines the criteria used to request a suitable user. The identifier of the selected user will be shared with the bot when the corresponding button is pressed. More about requesting users ยป
Source: https://core.telegram.org/bots/api#keyboardbuttonrequestuser
- request_id: int#
Signed 32-bit identifier of the request, which will be received back in the
aiogram.types.user_shared.UserShared
object. Must be unique within the message
- user_is_bot: Optional[bool]#
Optional. Pass
True
to request a bot, passFalse
to request a regular user. If not specified, no additional restrictions are applied.
- user_is_premium: Optional[bool]#
Optional. Pass
True
to request a premium user, passFalse
to request a non-premium user. If not specified, no additional restrictions are applied.