mirror of
https://github.com/InsanusMokrassar/TelegramBotAPI.git
synced 2024-09-30 06:26:08 +00:00
8 lines
217 B
Kotlin
8 lines
217 B
Kotlin
|
package dev.inmo.tgbotapi.utils
|
||
|
|
||
|
import io.ktor.utils.io.ByteReadChannel
|
||
|
import io.ktor.utils.io.core.Input
|
||
|
import io.ktor.utils.io.readRemaining
|
||
|
|
||
|
actual suspend fun ByteReadChannel.asInput(): Input = readRemaining()
|