bots.checkUsername
Check whether a username is available and valid for use when creating a managed bot ».
Check whether a username is available and valid for use when [creating a managed bot »](https://core.telegram.org/api/bots/managed-bots.md#creating-a-managed-bot).
| 名前 | 型 | 必須 | 説明 |
|---|---|---|---|
additional | true | いいえ | TL 型 `true` の値。 |
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 |
レスポンス
Bool
MTProto RPC
- 400 · USERNAME_INVALID — The provided username is not valid.
- 400 · USERNAME_OCCUPIED — The provided username is already occupied.
- 400 · USERNAME_SUFFIX_MISSING — The required bot suffix is missing from the passed username.