check_username()#
- Client.check_username()#
Check if a username is available.
Usable by Users Bots- Parameters:
chat_id (
int
|str
) – Unique identifier (int) or username (str) of the target chat.username (
str
) – Username to check.
- Returns:
bool
– True on success.
Example
await app.check_username("me", "username")