verify_user()¶
- async Client.verify_user()¶
Verify a user on behalf of the organization represented by the bot.
The bot must have the
can_verify_usersright to use this method.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 badge shown on the user’s profile. If not provided, the default organization description is used. The length limit is given bybot_verification_description_length_limit.
- Returns:
bool– True on success.
Example
# Verify a user with default description await app.verify_user(user_id) # Verify a user with a custom badge description await app.verify_user(user_id, custom_description="Verified partner")