RequestUserInfo#

class pyrogram.types.RequestUserInfo#

Contains information about a user peer type.

Parameters:
  • button_id (int) – Identifier of button.

  • is_bot (bool, optional) – If True, returns bots. If False to returns regular users. If not specified, no additional restrictions are applied. Defaults to None.

  • is_premium (bool, optional) – If True, returns premium users. If False to request non-premium users. If not specified, no additional restrictions are applied. Defaults to None.

  • max_quantity (int, optional) – The maximum number of users to be selected; 1-10. Defaults to 1. Defaults to None (One peer only).