Username

class pyrogram.types.Username

Describes usernames assigned to a user, a supergroup, or a channel.

Parameters:
  • username (``str``) – User’s or chat’s username.

  • is_editable (``bool``, *optional*) – True, if the username is editable.

  • is_active (``bool``, *optional*) – True, if the username is active.