Change Username API Documentation
Introduction
The Change Username API allows clients to update their username on Telegram.
Endpoint
Method: POST
URL: /profile-username-change
Request Body
change_username
(Boolean, required): want to change name or not.specific_username
(String, optional): specific username which u want to setremove_username
(Boolean, optional): Determines whether to remove the existing username.random_username
(Boolean, optional): if Random true then assign any random username else if not specified then assign username based on existing namefolder
(String, required): The folder containing the accounts to be checked for spambots.phones
(List, required): The list of phones to be checked
Example Request Body
{
"change_username": true|false,
"remove_username": true|false,
"random_username": true|false,
"specific_username": "BoB_The_Dev",
"folder": "active",
"phones": ["123456789", "123456780"],
}