bots.checkUsername

Check whether a username is available and valid for use when creating a managed bot ».

 اسکیمای روش از لایه 224 در دسترس است. تغییر »

Parameters

Name Type Description
username string Username to check; only letters, digits and underscores are allowed, must end in bot, and the full username must be 5–32 characters long

Result

Bool

Only users can use this method

Possible errors

Code Type Description
400 USERNAME_INVALID The provided username is not valid.

Related pages

Managed bots

Users can create managed bots (which are controlled by a specific manager bot) directly through the MTProto API, without interacting with @BotFather.