PathedFile

data class PathedFile(    val fileId: FileId,     val fileUniqueId: FileUniqueId,     val filePath: String,     val fileSize: Long? = null) : TelegramMediaFile

Constructors

Link copied to clipboard
fun PathedFile(    fileId: FileId,     fileUniqueId: FileUniqueId,     filePath: String,     fileSize: Long? = null)

Properties

Link copied to clipboard
open override val fileId: FileId
Link copied to clipboard
val fileName: FileName
Link copied to clipboard
val filePath: String
Link copied to clipboard
open override val fileSize: Long? = null
Link copied to clipboard
open override val fileUniqueId: FileUniqueId

Extensions

Link copied to clipboard
fun PathedFile.asStream(telegramAPIUrlsKeeper: TelegramAPIUrlsKeeper): InputStream
Link copied to clipboard
suspend fun PathedFile.download(telegramAPIUrlsKeeper: TelegramAPIUrlsKeeper, client: HttpClient = HttpClient()): ByteArray
Link copied to clipboard
fun PathedFile.fullUrl(keeper: TelegramAPIUrlsKeeper): String