1
0
mirror of https://github.com/InsanusMokrassar/TelegramBotAPI.git synced 2024-09-30 06:26:08 +00:00
tgbotapi/tgbotapi.core/src/mingwX64Main/kotlin/utils/ActualByteReadChannelAsInput.kt

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