Various improvements

This commit is contained in:
Ilya Laktyushin 2026-02-24 21:44:29 +04:00
parent 69c8e2634b
commit 654ff9e7e0
8 changed files with 216 additions and 60 deletions

View file

@ -5322,6 +5322,22 @@ public extension Api.functions.messages {
})
}
}
public extension Api.functions.messages {
static func checkUrlAuthMatchCode(url: String, matchCode: String) -> (FunctionDescription, Buffer, DeserializeFunctionResponse<Api.Bool>) {
let buffer = Buffer()
buffer.appendInt32(-911967477)
serializeString(url, buffer: buffer, boxed: false)
serializeString(matchCode, buffer: buffer, boxed: false)
return (FunctionDescription(name: "messages.checkUrlAuthMatchCode", parameters: [("url", String(describing: url)), ("matchCode", String(describing: matchCode))]), buffer, DeserializeFunctionResponse { (buffer: Buffer) -> Api.Bool? in
let reader = BufferReader(buffer)
var result: Api.Bool?
if let signature = reader.readInt32() {
result = Api.parse(reader, signature: signature) as? Api.Bool
}
return result
})
}
}
public extension Api.functions.messages {
static func clearAllDrafts() -> (FunctionDescription, Buffer, DeserializeFunctionResponse<Api.Bool>) {
let buffer = Buffer()