Layer 220
MessagesEditChatPhoto
Changes chat photo and sends a service message on it
method
Users
Bots
messages.editChatPhoto#35ddd674 chat_id:long photo:InputChatPhoto = Updates;
Parameters
| Name | Type | Description |
|---|---|---|
| ChatId | long | Chat ID |
| Photo | InputChatPhoto | Photo to be set |
Returns
UpdatesPossible Errors
| Code | Type | Description |
|---|---|---|
| 400 | CHAT_ID_INVALID | The provided chat id is invalid. |
| 400 | CHAT_NOT_MODIFIED | No changes were made to chat information because the new information you passed is identical to the current information. |
| 400 | IMAGE_PROCESS_FAILED | Failure while processing image. |
| 400 | PEER_ID_INVALID | The provided peer id is invalid. |
| 400 | PHOTO_CROP_SIZE_SMALL | Photo is too small. |
| 400 | PHOTO_EXT_INVALID | The extension of the photo is invalid. |
| 400 | PHOTO_INVALID | Photo invalid. |
Gogram Example
// MessagesEditChatPhoto - positional arguments result, err := client.MessagesEditChatPhoto(int64(0), &tg.InputChatUploadedPhoto{}) if err != nil { // handle error } // result is *tg.Updates