setChatPhoto
Sets a new profile photo for a group or channel chat, requiring the bot to be an administrator with the appropriate rights; private chats cannot be changed.
Instructions
Use this method to set a new profile photo for the chat. Photos can't be changed for private chats. The bot must be an administrator in the chat for this to work and must have the appropriate administrator 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 | |
| chat_id | Yes | Unique identifier for the target chat or username of the target channel in the format `@username` |