PathedFile

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

Properties

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

Extensions

asBytes
Link copied to clipboard
fun PathedFile.asBytes(telegramAPIUrlsKeeper: TelegramAPIUrlsKeeper): ByteArray
asFile
Link copied to clipboard
fun PathedFile.asFile(telegramAPIUrlsKeeper: TelegramAPIUrlsKeeper, dest: File = File.createTempFile(this.fileUniqueId, this.filename), defaultBufferSize: Int = DEFAULT_BUFFER_SIZE): File
asStream
Link copied to clipboard
fun PathedFile.asStream(telegramAPIUrlsKeeper: TelegramAPIUrlsKeeper): InputStream
download
Link copied to clipboard
common
suspend fun PathedFile.download(telegramAPIUrlsKeeper: TelegramAPIUrlsKeeper, client: HttpClient = HttpClient()): ByteArray
filename
Link copied to clipboard
common
val PathedFile.filename: FileName
fullUrl
Link copied to clipboard
common
fun PathedFile.fullUrl(keeper: TelegramAPIUrlsKeeper): String