SetChatPhoto
public struct SetChatPhoto : Codable, Equatable, TDFunction
Changes the photo of a chat. Supported only for basic groups, supergroups and channels. Requires can_change_info rights. The photo will not be changed before request to the server has been completed
-
Undocumented
Declaration
Swift
public typealias Result = Ok
-
Chat identifier
Declaration
Swift
public let chatId: Int53
-
New chat photo. You can use a zero InputFileId to delete the chat photo. Files that are accessible only by HTTP URL are not acceptable
Declaration
Swift
public let photo: InputFile
-
Changes the photo of a chat. Supported only for basic groups, supergroups and channels. Requires can_change_info rights. The photo will not be changed before request to the server has been completed
Parameters
chatId
Chat identifier
photo
New chat photo. You can use a zero InputFileId to delete the chat photo. Files that are accessible only by HTTP URL are not acceptable