writeGeneratedFilePart - libtd-ktx

Kotlin Coroutines extensions for Telegram API TDLib (Telegram Database library)


libtd-ktx / kotlinx.telegram.coroutines / writeGeneratedFilePart

writeGeneratedFilePart

suspend fun TelegramFlow.writeGeneratedFilePart(generationId: Long, offset: Int, data: ByteArray?): Unit

Suspend function, which writes a part of a generated file. This method is intended to be used only if the client has no direct access to TDLib’s file system, because it is usually slower than a direct write to the destination file.

Parameters

generationId - The identifier of the generation process.

offset - The offset from which to write the data to the file.

data - The data to write.