1
0
mirror of https://github.com/InsanusMokrassar/TelegramBotAPI.git synced 2024-11-26 03:58:44 +00:00

add additional mime types

This commit is contained in:
InsanusMokrassar 2021-08-13 18:39:08 +06:00
parent e75c93d626
commit c90bcea42c
2 changed files with 10 additions and 1 deletions

View File

@ -2,6 +2,8 @@
## 0.35.5 ## 0.35.5
**MIME TYPES FOR REQUESTS HAVE BEEN DEPRECATED DUE TO REDUNDANCY OF MIME TYPES IN FILES SENDING**
* `Core`: * `Core`:
* Several new extensions `ByteReadChannel#asStorageFile` and `ByteReadChannelAllocator#asStorageFile` * Several new extensions `ByteReadChannel#asStorageFile` and `ByteReadChannelAllocator#asStorageFile`
* Several new extensions `ByteArray#asMultipartFile`, `ByteReadChannel#asMultipartFile` and * Several new extensions `ByteArray#asMultipartFile`, `ByteReadChannel#asMultipartFile` and

View File

@ -1,6 +1,6 @@
package dev.inmo.tgbotapi.utils package dev.inmo.tgbotapi.utils
object BuiltinMimeTypes { sealed interface BuiltinMimeTypes {
object Image { object Image {
val Jpg = buildMimeType("image/jpeg") val Jpg = buildMimeType("image/jpeg")
val Gif = buildMimeType("image/gif") val Gif = buildMimeType("image/gif")
@ -8,4 +8,11 @@ object BuiltinMimeTypes {
object Video { object Video {
val MP4 = buildMimeType("video/mp4") val MP4 = buildMimeType("video/mp4")
} }
object Text {
val Html = buildMimeType("text/html")
}
object Application {
val Zip = buildMimeType("application/zip")
val Pdf = buildMimeType("application/pdf")
}
} }