docs
5.0.1
common
jvm
docs
/
dev.inmo.tgbotapi.extensions.api.files
/
downloadFile
download
File
common
jvm
suspend
fun
TelegramBot
.
downloadFile
(
filePath
:
String
)
:
ByteArray
suspend
fun
TelegramBot
.
downloadFile
(
pathedFile
:
PathedFile
)
:
ByteArray
suspend
fun
TelegramBot
.
downloadFile
(
fileId
:
FileId
)
:
ByteArray
suspend
fun
TelegramBot
.
downloadFile
(
file
:
TelegramMediaFile
)
:
ByteArray
suspend
fun
TelegramBot
.
downloadFile
(
file
:
MediaContent
)
:
ByteArray
suspend
fun
TelegramBot
.
downloadFile
(
filePath
:
String
,
destFile
:
File
)
:
File
suspend
fun
TelegramBot
.
downloadFile
(
pathedFile
:
PathedFile
,
destFile
:
File
)
:
File
suspend
fun
TelegramBot
.
downloadFile
(
fileId
:
FileId
,
destFile
:
File
)
:
File
suspend
fun
TelegramBot
.
downloadFile
(
file
:
TelegramMediaFile
,
destFile
:
File
)
:
File
suspend
fun
TelegramBot
.
downloadFile
(
file
:
MediaContent
,
destFile
:
File
)
:
File