• Change username of the current user.

    Note that bots usernames must be changed through bot support or re-created from scratch.

    Parameters

    • client: ITelegramClient
    • username: null | string

      New username (5-32 chars, allowed chars: a-zA-Z0-9_), or null to remove

    Returns Promise<User>