mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-01 12:17:53 +00:00
API update
This commit is contained in:
parent
fd212e8c22
commit
21049b8e84
@ -6767,20 +6767,6 @@ public extension Api {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
public struct photos {
|
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]>) {
|
public static func deletePhotos(id: [Api.InputPhoto]) -> (FunctionDescription, Buffer, DeserializeFunctionResponse<[Int64]>) {
|
||||||
let buffer = Buffer()
|
let buffer = Buffer()
|
||||||
buffer.appendInt32(-2016444625)
|
buffer.appendInt32(-2016444625)
|
||||||
@ -6832,6 +6818,20 @@ public extension Api {
|
|||||||
return result
|
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 struct phone {
|
||||||
public static func getCallConfig() -> (FunctionDescription, Buffer, DeserializeFunctionResponse<Api.DataJSON>) {
|
public static func getCallConfig() -> (FunctionDescription, Buffer, DeserializeFunctionResponse<Api.DataJSON>) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user