<divclass="content sourceset-depenent-content"data-active=""data-togglable=":docs:dokkaHtml/commonMain"><divclass="symbol monospace">suspend fun <ahref="../dev.inmo.tgbotapi.bot/index.html#-1167693203%2FClasslikes%2F-1982836883">TelegramBot</a>.<ahref="download-file.html">downloadFile</a>(fileId: <ahref="../dev.inmo.tgbotapi.requests.abstracts/-file-id/index.html">FileId</a>): <ahref="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte-array/index.html">ByteArray</a><spanclass="top-right-position"><spanclass="copy-icon"></span><divclass="copy-popup-wrapper popup-to-left"><spanclass="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div><divclass="symbol monospace">suspend fun <ahref="../dev.inmo.tgbotapi.bot/index.html#-1167693203%2FClasslikes%2F-1982836883">TelegramBot</a>.<ahref="download-file.html">downloadFile</a>(pathedFile: <ahref="../dev.inmo.tgbotapi.types.files/-pathed-file/index.html">PathedFile</a>): <ahref="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte-array/index.html">ByteArray</a><spanclass="top-right-position"><spanclass="copy-icon"></span><divclass="copy-popup-wrapper popup-to-left"><spanclass="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div><divclass="symbol monospace">suspend fun <ahref="../dev.inmo.tgbotapi.bot/index.html#-1167693203%2FClasslikes%2F-1982836883">TelegramBot</a>.<ahref="download-file.html">downloadFile</a>(file: <ahref="../dev.inmo.tgbotapi.types.files.abstracts/-telegram-media-file/index.html">TelegramMediaFile</a>): <ahref="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte-array/index.html">ByteArray</a><spanclass="top-right-position"><spanclass="copy-icon"></span><divclass="copy-popup-wrapper popup-to-left"><spanclass="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div><divclass="symbol monospace">suspend fun <ahref="../dev.inmo.tgbotapi.bot/index.html#-1167693203%2FClasslikes%2F-1982836883">TelegramBot</a>.<ahref="download-file.html">downloadFile</a>(file: <ahref="../dev.inmo.tgbotapi.types.message.content.abstracts/-media-content/index.html">MediaContent</a>): <ahref="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte-array/index.html">ByteArray</a><spanclass="top-right-position"><spanclass="copy-icon"></span><divclass="copy-popup-wrapper popup-to-left"><spanclass="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div><divclass="symbol monospace">suspend fun <ahref="../dev.inmo.tgbotapi.bot/index.html#-1167693203%2FClasslikes%2F-1982836883">TelegramBot</a>.<ahref="download-file.html">downloadFile</a>(filePath: <ahref="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html">String</a>): <ahref="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte-array/index.html">ByteArray</a><spanclass="top-right-position"><spanclass="copy-icon"></span><divclass="copy-popup-wrapper popup-to-left"><spanclass="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div></div><divclass="content sourceset-depenent-content"data-togglable=":docs:dokkaHtml/jvmMain"><divclass="symbol monospace">suspend fun <spandata-unresolved-link="dev.inmo.tgbotapi.bot/TelegramBot///PointingToDeclaration/">TelegramBot</span>.<ahref="download-file.html">downloadFile</a>(fileId: <spandata-unresolved-link="dev.inmo.tgbotapi.requests.abstracts/FileId///PointingToDeclaration/">FileId</span>, destFile: <ahref="https://docs.oracle.com/javase/8/docs/api/java/io/File.html">File</a>): <ahref="https://docs.oracle.com/javase/8/docs/api/java/io/File.html">File</a><spanclass="top-right-position"><spanclass="copy-icon"></span><divclass="copy-popup-wrapper popup-to-left"><spanclass="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div><divclass="symbol monospace">suspend fun <spandata-unresolved-link="dev.inmo.tgbotapi.bot/TelegramBot///PointingToDeclaration/">TelegramBot</span>.<ahref="download-file.html">downloadFile</a>(pathedFile: <ahref=".
<divclass="platform-hinted "data-platform-hinted="data-platform-hinted"><divclass="content sourceset-depenent-content"data-active=""data-togglable=":docs:dokkaHtml/commonMain"><divclass="symbol monospace">suspend fun <ahref="../dev.inmo.tgbotapi.bot/index.html#-1167693203%2FClasslikes%2F-1982836883">TelegramBot</a>.<ahref="download-file-stream.html">downloadFileStream</a>(fileId: <ahref="../dev.inmo.tgbotapi.requests.abstracts/-file-id/index.html">FileId</a>): <spandata-unresolved-link="io.ktor.utils.io/ByteReadChannel///PointingToDeclaration/">ByteReadChannel</span><spanclass="top-right-position"><spanclass="copy-icon"></span><divclass="copy-popup-wrapper popup-to-left"><spanclass="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div><divclass="symbol monospace">suspend fun <ahref="../dev.inmo.tgbotapi.bot/index.html#-1167693203%2FClasslikes%2F-1982836883">TelegramBot</a>.<ahref="download-file-stream.html">downloadFileStream</a>(pathedFile: <ahref="../dev.inmo.tgbotapi.types.files/-pathed-file/index.html">PathedFile</a>): <spandata-unresolved-link="io.ktor.utils.io/ByteReadChannel///PointingToDeclaration/">ByteReadChannel</span><spanclass="top-right-position"><spanclass="copy-icon"></span><divclass="copy-popup-wrapper popup-to-left"><spanclass="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div><divclass="symbol monospace">suspend fun <ahref="../dev.inmo.tgbotapi.bot/index.html#-1167693203%2FClasslikes%2F-1982836883">TelegramBot</a>.<ahref="download-file-stream.html">downloadFileStream</a>(file: <ahref="../dev.inmo.tgbotapi.types.files.abstracts/-telegram-media-file/index.html">TelegramMediaFile</a>): <spandata-unresolved-link="io.ktor.utils.io/ByteReadChannel///PointingToDeclaration/">ByteReadChannel</span><spanclass="top-right-position"><spanclass="copy-icon"></span><divclass="copy-popup-wrapper popup-to-left"><spanclass="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div><divclass="symbol monospace">suspend fun <ahref="../dev.inmo.tgbotapi.bot/index.html#-1167693203%2FClasslikes%2F-1982836883">TelegramBot</a>.<ahref="download-file-stream.html">downloadFileStream</a>(file: <ahref="../dev.inmo.tgbotapi.types.message.content.abstracts/-media-content/index.html">MediaContent</a>): <spandata-unresolved-link="io.ktor.utils.io/ByteReadChannel///PointingToDeclaration/">ByteReadChannel</span><spanclass="top-right-position"><spanclass="copy-icon"></span><divclass="copy-popup-wrapper popup-to-left"><spanclass="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div><divclass="symbol monospace">suspend fun <ahref="../dev.inmo.tgbotapi.bot/index.html#-1167693203%2FClasslikes%2F-1982836883">TelegramBot</a>.<ahref="download-file-stream.html">downloadFileStream</a>(filePath: <ahref="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html">String</a>): <spandata-unresolved-link="io.ktor.utils.io/ByteReadChannel///PointingToDeclaration/">ByteReadChannel</span><spanclass="top-right-position"><spanclass="copy-icon"></span><divclass="copy-popup-wrapper popup-to-left"><spanclass="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div></div></div>
<divclass="platform-hinted "data-platform-hinted="data-platform-hinted"><divclass="content sourceset-depenent-content"data-active=""data-togglable=":docs:dokkaHtml/commonMain"><divclass="symbol monospace">suspend fun <ahref="../dev.inmo.tgbotapi.bot/index.html#-1167693203%2FClasslikes%2F-1982836883">TelegramBot</a>.<ahref="download-file-stream-allocator.html">downloadFileStreamAllocator</a>(fileId: <ahref="../dev.inmo.tgbotapi.requests.abstracts/-file-id/index.html">FileId</a>): <ahref="../dev.inmo.tgbotapi.utils/-byte-read-channel-allocator/index.html">ByteReadChannelAllocator</a><spanclass="top-right-position"><spanclass="copy-icon"></span><divclass="copy-popup-wrapper popup-to-left"><spanclass="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div><divclass="symbol monospace">suspend fun <ahref="../dev.inmo.tgbotapi.bot/index.html#-1167693203%2FClasslikes%2F-1982836883">TelegramBot</a>.<ahref="download-file-stream-allocator.html">downloadFileStreamAllocator</a>(pathedFile: <ahref="../dev.inmo.tgbotapi.types.files/-pathed-file/index.html">PathedFile</a>): <ahref="../dev.inmo.tgbotapi.utils/-byte-read-channel-allocator/index.html">ByteReadChannelAllocator</a><spanclass="top-right-position"><spanclass="copy-icon"></span><divclass="copy-popup-wrapper popup-to-left"><spanclass="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div><divclass="symbol monospace">suspend fun <ahref="../dev.inmo.tgbotapi.bot/index.html#-1167693203%2FClasslikes%2F-1982836883">TelegramBot</a>.<ahref="download-file-stream-allocator.html">downloadFileStreamAllocator</a>(file: <ahref="../dev.inmo.tgbotapi.types.files.abstracts/-telegram-media-file/index.html">TelegramMediaFile</a>): <ahref="../dev.inmo.tgbotapi.utils/-byte-read-channel-allocator/index.html">ByteReadChannelAllocator</a><spanclass="top-right-position"><spanclass="copy-icon"></span><divclass="copy-popup-wrapper popup-to-left"><spanclass="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div><divclass="symbol monospace">suspend fun <ahref="../dev.inmo.tgbotapi.bot/index.html#-1167693203%2FClasslikes%2F-1982836883">TelegramBot</a>.<ahref="download-file-stream-allocator.html">downloadFileStreamAllocator</a>(file: <ahref="../dev.inmo.tgbotapi.types.message.content.abstracts/-media-content/index.html">MediaContent</a>): <ahref="../dev.inmo.tgbotapi.utils/-byte-read-channel-allocator/index.html">ByteReadChannelAllocator</a><spanclass="top-right-position"><spanclass="copy-icon"></span><divclass="copy-popup-wrapper popup-to-left"><spanclass="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div><divclass="symbol monospace">suspend fun <ahref="../dev.inmo.tgbotapi.bot/index.html#-1167693203%2FClasslikes%2F-1982836883">TelegramBot</a>.<ahref="download-file-stream-allocator.html">downloadFileStreamAllocator</a>(filePath: <ahref="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html">String</a>): <ahref="../dev.inmo.tgbotapi.utils/-byte-read-channel-allocator/index.html">ByteReadChannelAllocator</a><spanclass="top-right-position"><spanclass="copy-icon"></span><divclass="copy-popup-wrapper popup-to-left"><spanclass="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div></div></div>