checkUsername
Check the availability of a username. USER-ONLY
Parameters
username: string
The username to check.
The identifier of a supergroup or a channel. If specified, the username check will be made against it.
Result
boolean
Whether the username is available.
Syntax
// Required parameters only.
await client.checkUsername(username);
// Required parameters + optional parameters.
// Any of the optional parameters can be omitted.
await client.checkUsername(username, { chatId });