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

Functions

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
Link copied to clipboard
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
Link copied to clipboard
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
Link copied to clipboard
suspend fun TelegramBot.downloadFileToTemp(fileId: FileId): File
suspend fun TelegramBot.downloadFileToTemp(pathedFile: PathedFile): File
suspend fun TelegramBot.downloadFileToTemp(file: TelegramMediaFile): File
suspend fun TelegramBot.downloadFileToTemp(file: MediaContent): File
suspend fun TelegramBot.downloadFileToTemp(filePath: String): File