UpdateUsername

class pyrogram.raw.functions.account.UpdateUsername

Changes username for the current user.

Details
  • Layer: 126

  • ID: 0x3e0bdd7c

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 – Object defines a user.