bots.CheckUsername#
- class pyrogram.raw.functions.bots.CheckUsername#
Check whether a username is available and valid for use when creating a managed bot.
Usable by ✅ Users ❌ Bots- Details:
Layer:
227ID:
87F2219B
- Parameters:
username (
str) – Username to check; only letters, digits and underscores are allowed, must end in bot, and the full username must be 5–32 characters long- Returns:
bool