PathedFile

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

Properties

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

Extensions

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