Package dev.inmo.tgbotapi.extensions.api.files

Functions

downloadFile
Link copied to clipboard
suspend fun TelegramBot.downloadFile(fileId: FileId): ByteArray
suspend fun TelegramBot.downloadFile(pathedFile: PathedFile): ByteArray
suspend fun TelegramBot.downloadFile(file: TelegramMediaFile): ByteArray
suspend fun TelegramBot.downloadFile(file: MediaContent): ByteArray
suspend fun TelegramBot.downloadFile(filePath: String): ByteArray
suspend fun TelegramBot.downloadFile(fileId: FileId, destFile: File): File
suspend fun TelegramBot.downloadFile(pathedFile: PathedFile, destFile: File): File
suspend fun TelegramBot.downloadFile(file: TelegramMediaFile, destFile: File): File
suspend fun TelegramBot.downloadFile(file: MediaContent, destFile: File): File
suspend fun TelegramBot.downloadFile(filePath: String, destFile: File): File
downloadFileStream
Link copied to clipboard
common
suspend fun TelegramBot.downloadFileStream(fileId: FileId): ByteReadChannel
suspend fun TelegramBot.downloadFileStream(pathedFile: PathedFile): ByteReadChannel
suspend fun TelegramBot.downloadFileStream(file: TelegramMediaFile): ByteReadChannel
suspend fun TelegramBot.downloadFileStream(file: MediaContent): ByteReadChannel
suspend fun TelegramBot.downloadFileStream(filePath: String): ByteReadChannel
downloadFileStreamAllocator
Link copied to clipboard
common
suspend fun TelegramBot.downloadFileStreamAllocator(fileId: FileId): ByteReadChannelAllocator
suspend fun TelegramBot.downloadFileStreamAllocator(pathedFile: PathedFile): ByteReadChannelAllocator
suspend fun TelegramBot.downloadFileStreamAllocator(file: MediaContent): ByteReadChannelAllocator
suspend fun TelegramBot.downloadFileStreamAllocator(filePath: String): ByteReadChannelAllocator