mirror of
https://github.com/InsanusMokrassar/TelegramBotAPI.git
synced 2026-11-02 01:42:56 +00:00
fixes in serialization
This commit is contained in:
1 parent
069d9c29a2
commit
2974a33e51
12 files changed
+108
-10
No files matched your search
+1
-1
@@ -33,7 +33,7 @@ class MultipartRequestCallFactory : KtorCallFactory {
|
||||
when (value) {
|
||||
is MultipartFile -> append(
|
||||
key,
|
||||
value.file.inputStream().asInput(),
|
||||
value.file.asInput(),
|
||||
Headers.build {
|
||||
append(HttpHeaders.ContentType, value.mimeType)
|
||||
append(HttpHeaders.ContentDisposition, "filename=${value.fileId}")
|
||||
|
||||
Reference in new issue
Block a user