Change chat / channel avatar
edit_photoUpload a new avatar photo for a Telegram account from a local path or URL. Specify the target peer and optionally the account ID to apply the change.
Instructions
Upload a new avatar photo from a local path or URL.
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": {
"peer": "<peer>",
"path": "<path>"
},
"name": "edit_photo"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| peer | Yes | ||
| accountId | No |