PathedFile

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

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