verify_chat()¶
- async Client.verify_chat()¶
Verify a chat on behalf of the organization represented by the bot.
The bot must have the
can_verify_chatsright to use this method.Usable by Users Bots- Parameters:
chat_id (
int|str) – Unique identifier (int) or username (str) of the target supergroup or channel.custom_description (
str, optional) – Custom description for the verification badge shown on the chat’s info page. 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 chat with default description await app.verify_chat(chat_id) # Verify a chat with a custom badge description await app.verify_chat(chat_id, custom_description="Official community")