channels.checkUsername
Check if a username is free and can be assigned to a channel/supergroup
Example
TL schema
Parameters
Name
Type
Description
Result
Possible errors
Code
Type
Description
400
CHANNELS_ADMIN_PUBLIC_TOO_MUCH
You're admin of too many public channels, make some channels private to change the username of this channel
400
CHANNEL_INVALID
The provided channel is invalid
400
CHAT_ID_INVALID
The provided chat id is invalid
400
USERNAME_INVALID
The provided username is not valid
Can bots use this methd ?
yes
Related pages
How to handle channels, supergroups, groups, and what's the difference between them.
Last updated