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
**MIME TYPES FOR REQUESTS HAVE BEEN DEPRECATED DUE TO REDUNDANCY OF MIME TYPES IN FILES SENDING**
* `Core`:
* Several new extensions `ByteReadChannel#asStorageFile` and `ByteReadChannelAllocator#asStorageFile`
* Several new extensions `ByteArray#asMultipartFile`, `ByteReadChannel#asMultipartFile` and

View File

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