mirror of
https://github.com/InsanusMokrassar/TelegramBotAPI.git
synced 2024-11-26 12:08:43 +00:00
small improvement of DownloadFileChannelRequestCallFactory
This commit is contained in:
parent
2049fea82a
commit
149ecf175b
@ -23,7 +23,7 @@ object DownloadFileChannelRequestCallFactory : KtorCallFactory {
|
||||
): T? = (request as? DownloadFileStream) ?.let {
|
||||
val fullUrl = urlsKeeper.createFileLinkUrl(it.filePath)
|
||||
|
||||
return ByteReadChannelAllocator {
|
||||
ByteReadChannelAllocator {
|
||||
val scope = CoroutineScope(coroutineContext)
|
||||
val outChannel = ByteChannel()
|
||||
scope.launch {
|
||||
|
Loading…
Reference in New Issue
Block a user