tgbotapi/tgbotapi.core/src/mingwX64Main/kotlin/utils/ActualByteReadChannelAsInpu...

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()