telegram api method · layer 229 · #35ddd674
messages.editChatPhoto
Changes chat photo and sends a service message on it
definition
messages.editChatPhoto#35ddd674 chat_id:long photo:InputChatPhoto = Updates;
parameters
| name | type | description |
|---|---|---|
chat_id | long | Chat ID |
photo | InputChatPhoto | Photo to be set |
returns
errors (9)
| code | error | description |
|---|---|---|
| 400 | BUSINESS_CONNECTION_NOT_ALLOWED | This method was invoked over a business connection using invokeWithBusinessConnection, but either (1) we're a user, and users cannot invoke methods over a business connection; (2) we're a bot, but business mode was disabled in @botfather or (3); we're a bot, but this method cannot be invoked over a business connection. |
| 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. |
| 401 | AUTH_KEY_UNREGISTERED | The specified authorization key is not registered in the system (for example, a PFS temporary key has expired). |
history
present in layers 2–229 · constructor id changed 2×
| id | layers |
|---|---|
| #d881821d | 2–23 |
| #ca4c79d8 | 46–132 |
| #35ddd674 | 133–229 |