1
0
mirror of https://github.com/InsanusMokrassar/TelegramBotAPI.git synced 2025-09-15 13:19:30 +00:00

StorageFile#asMultipartFile

This commit is contained in:
2021-08-13 11:45:21 +06:00
parent 17806cde25
commit 58dcbe8751
2 changed files with 3 additions and 0 deletions

View File

@@ -54,6 +54,8 @@ data class MultipartFile (
override val fileId: String = file.storageFileInfo.generateCustomName()
}
@Suppress("NOTHING_TO_INLINE", "unused")
inline fun StorageFile.asMultipartFile() = MultipartFile(this)
@Suppress("NOTHING_TO_INLINE", "unused")
inline fun ByteArray.asMultipartFile(