All Downloads are FREE. Search and download functionalities are using the official Maven repository.

jvmMain.dev.inmo.tgbotapi.utils.asInput.kt Maven / Gradle / Ivy

Go to download

Core part of tgbotapi with all (and only) required functionality for working with Telegram Bot API

There is a newer version: 22.0.0
Show newest version
package dev.inmo.tgbotapi.utils

import io.ktor.utils.io.ByteReadChannel
import io.ktor.utils.io.core.Input
import io.ktor.utils.io.jvm.javaio.toInputStream
import io.ktor.utils.io.streams.asInput
import kotlinx.coroutines.job
import kotlin.coroutines.coroutineContext

actual suspend fun ByteReadChannel.asInput(): Input = toInputStream(coroutineContext.job).asInput()




© 2015 - 2025 Weber Informatics LLC | Privacy Policy