messages.editChatPhoto
Changes chat photo and sends a service message on it
Example
TL schema
Parameters
Name | Type | Description |
chat_id | Chat ID | |
photo | Photo to be set |
Result
Returns a messages.StatedMessage object containing a service message sent during an action.
Possible errors
Code | Type | Description |
400 | CHAT_ID_INVALID | The provided chat id is invalid |
400 | CHAT_NOT_MODIFIED | The pinned message wasn't modified |
400 | INPUT_CONSTRUCTOR_INVALID | The provided constructor is invalid |
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 |
Can bots use this methd ?
yes
Related pages
Last updated