setChatPhoto
Update a chat's profile photo by providing chat ID and image file. Requires admin can_change_info rights; returns True on success. Not applicable to private chats.
Instructions
Set a new profile photo for the chat. Photos can't be changed for private chats. The bot must be an administrator with can_change_info rights. Returns True on success.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| photo | Yes | New chat photo, uploaded using multipart/form-data (InputFile) | |
| chat_id | Yes | Unique identifier for the target chat or username of the target channel (in the format @channelusername) |