account.CheckUsername#

class pyrogram.raw.functions.account.CheckUsername#

Validates a username and checks availability.

Details:
  • Layer: 158

  • ID: 2714D86C

Parameters:

username (str) – usernameAccepted characters: A-z (case-insensitive), 0-9 and underscores.Length: 5-32 characters.

Returns:

bool