channels.editPhoto
Change the photo of a channel/supergroup
Example
TL schema
Parameters
Name
Type
Description
Result
Possible errors
Code
Type
Description
400
CHANNEL_INVALID
The provided channel is invalid
400
CHAT_ADMIN_REQUIRED
You must be an admin in this chat to do this
400
CHAT_NOT_MODIFIED
The pinned message wasn't modified
403
CHAT_WRITE_FORBIDDEN
You can't write in this chat
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
How to handle channels, supergroups, groups, and what's the difference between them.
Last updated