From 21049b8e849e59e4d0d7f38ee87af6259624843c Mon Sep 17 00:00:00 2001 From: Ilya Laktyushin Date: Sun, 19 Jul 2020 00:44:55 +0300 Subject: [PATCH] API update --- submodules/TelegramApi/Sources/Api3.swift | 28 +++++++++++------------ 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/submodules/TelegramApi/Sources/Api3.swift b/submodules/TelegramApi/Sources/Api3.swift index d4e63b4654..c3c2f25f4a 100644 --- a/submodules/TelegramApi/Sources/Api3.swift +++ b/submodules/TelegramApi/Sources/Api3.swift @@ -6767,20 +6767,6 @@ public extension Api { } } public struct photos { - public static func updateProfilePhoto(id: Api.InputPhoto) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { - let buffer = Buffer() - buffer.appendInt32(-256159406) - id.serialize(buffer, true) - return (FunctionDescription(name: "photos.updateProfilePhoto", parameters: [("id", id)]), buffer, DeserializeFunctionResponse { (buffer: Buffer) -> Api.UserProfilePhoto? in - let reader = BufferReader(buffer) - var result: Api.UserProfilePhoto? - if let signature = reader.readInt32() { - result = Api.parse(reader, signature: signature) as? Api.UserProfilePhoto - } - return result - }) - } - public static func deletePhotos(id: [Api.InputPhoto]) -> (FunctionDescription, Buffer, DeserializeFunctionResponse<[Int64]>) { let buffer = Buffer() buffer.appendInt32(-2016444625) @@ -6832,6 +6818,20 @@ public extension Api { return result }) } + + public static func updateProfilePhoto(id: Api.InputPhoto) -> (FunctionDescription, Buffer, DeserializeFunctionResponse) { + let buffer = Buffer() + buffer.appendInt32(1926525996) + id.serialize(buffer, true) + return (FunctionDescription(name: "photos.updateProfilePhoto", parameters: [("id", id)]), buffer, DeserializeFunctionResponse { (buffer: Buffer) -> Api.photos.Photo? in + let reader = BufferReader(buffer) + var result: Api.photos.Photo? + if let signature = reader.readInt32() { + result = Api.parse(reader, signature: signature) as? Api.photos.Photo + } + return result + }) + } } public struct phone { public static func getCallConfig() -> (FunctionDescription, Buffer, DeserializeFunctionResponse) {