mirror of
https://github.com/InsanusMokrassar/TelegramBotAPI.git
synced 2024-11-22 08:13:47 +00:00
add additional mime types
This commit is contained in:
parent
e75c93d626
commit
c90bcea42c
@ -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
|
||||
|
@ -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")
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user