account.UpdateUsername#

class pyrogram.raw.functions.account.UpdateUsername#

Changes username for the current user.

Details:
  • Layer: 158

  • ID: 3E0BDD7C

Parameters:

username (str) – username or empty string if username is to be removedAccepted characters: a-z (case-insensitive), 0-9 and underscores.Length: 5-32 characters.

Returns:

User