Expose draft updates to iOS bridge

This commit is contained in:
Mikhail Kilin
2026-05-21 00:33:05 +03:00
parent 892582df67
commit 3e67e0d1b8
6 changed files with 48 additions and 0 deletions

View File

@@ -105,6 +105,10 @@ public actor UniFfiSessionBridge: SessionBridge {
try handle.copyPayload(chatId: chatId, messageId: messageId)
}
public func setDraft(chatId: Int64, text: String) async throws {
try handle.setDraft(chatId: chatId, text: text)
}
public func downloadPhoto(fileId: Int32) async throws -> DownloadedFile {
try Self.mapDownloadedFile(handle.downloadPhoto(fileId: fileId))
}