API update

This commit is contained in:
Ilya Laktyushin 2020-07-19 00:44:55 +03:00
parent fd212e8c22
commit 21049b8e84

View File

@ -6767,20 +6767,6 @@ public extension Api {
}
}
public struct photos {
public static func updateProfilePhoto(id: Api.InputPhoto) -> (FunctionDescription, Buffer, DeserializeFunctionResponse<Api.UserProfilePhoto>) {
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<Api.photos.Photo>) {
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<Api.DataJSON>) {