cancelUploadFile - libtd-ktx

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


libtd-ktx / kotlinx.telegram.coroutines / cancelUploadFile

cancelUploadFile

suspend fun TelegramFlow.cancelUploadFile(fileId: Int): Unit

Suspend function, which stops the uploading of a file. Supported only for files uploaded by using uploadFile. For other files the behavior is undefined.

Parameters

fileId - Identifier of the file to stop uploading.