libtd-ktx / kotlinx.telegram.coroutines / finishFileGeneration
finishFileGeneration
suspend fun TelegramFlow.finishFileGeneration(generationId: Long, error: Error?): Unit
Suspend function, which finishes the file generation.
Parameters
generationId - The identifier of the generation process.
error - If set, means that file generation has failed and should be terminated.