verify_user()

Client.verify_user(user_id: int | str, custom_description: str | None = None) bool

Verifies a user on behalf of the organization which is represented by the bot.

Usable by Users Bots
Parameters:
  • user_id (int | str) – Unique identifier (int) or username (str) of the target user.

  • custom_description (str, optional) – Custom description for the verification; 0-70 characters. Must be empty if the organization isn’t allowed to provide a custom verification description.

Returns:

bool – True on success.

Example

await app.verify_user(user_id=123456789)
await app.verify_user(user_id=123456789, custom_description="Verified developer")