1
0
mirror of https://github.com/InsanusMokrassar/TelegramBotAPI.git synced 2024-06-03 00:15:27 +00:00
tgbotapi/tgbotapi.extensions.utils/src/jvmMain/kotlin/dev/inmo/tgbotapi/types/files/PathedFile.kt

10 lines
275 B
Kotlin
Raw Normal View History

package dev.inmo.tgbotapi.types.files
2020-10-04 11:06:30 +00:00
import dev.inmo.tgbotapi.utils.TelegramAPIUrlsKeeper
2021-04-28 13:59:30 +00:00
import java.io.*
import java.net.URL
fun PathedFile.asStream(
2021-10-01 10:40:04 +00:00
telegramAPIUrlsKeeper: TelegramAPIUrlsKeeper
): InputStream = URL(this.fullUrl(telegramAPIUrlsKeeper)).openStream()