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

8 lines
217 B
Kotlin
Raw Normal View History

2023-04-03 17:30:24 +00:00
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()