mirror of
https://github.com/InsanusMokrassar/TelegramBotAPI.git
synced 2024-06-03 00:15:27 +00:00
10 lines
275 B
Kotlin
10 lines
275 B
Kotlin
package dev.inmo.tgbotapi.types.files
|
|
|
|
import dev.inmo.tgbotapi.utils.TelegramAPIUrlsKeeper
|
|
import java.io.*
|
|
import java.net.URL
|
|
|
|
fun PathedFile.asStream(
|
|
telegramAPIUrlsKeeper: TelegramAPIUrlsKeeper
|
|
): InputStream = URL(this.fullUrl(telegramAPIUrlsKeeper)).openStream()
|