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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"chat_id": "<chat_id>",
"photo": "<photo>"
},
"name": "setChatPhoto"
}
}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) |