TDLib v0.0.2 TDLib.Method.SetChatPhoto View Source

Changes the photo of a chat. Supported only for basic groups, supergroups and channels. Requires administrator rights in basic groups and the appropriate administrator rights in supergroups and channels. The photo will not be changed before request to the server has been completed. Returns object_ptr.

NameTypeDescription
chat_idstringChat identifier.
photoInputFileNew chat photo. You can use a zero InputFileId to delete the chat photo. Files that are accessible only by HTTP URL are not acceptable.

More details on telegram’s documentation.