<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>(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><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>(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>(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></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>(filePath: <ahref="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html">String</a>, 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="../dev.inmo.tgbotap