bots.checkUsername
Überprüfen Sie, ob beim Erstellen eines verwalteten Bots ein Benutzername verfügbar und gültig ist ».
Überprüfen Sie, ob ein Benutzername verfügbar und gültig ist, wenn Sie [einen verwalteten Bot erstellen »](https://core.telegram.org/api/bots/managed-bots.md#creating-a-managed-bot).
| Name | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
additional | true | Nein | Wert des TL-Typs `true`. |
username | string | Ja | Username to check; only letters, digits and underscores are allowed, must end in `bot`, and the full username must be 5–32 characters long |
Antworten
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.