1
0
mirror of https://github.com/InsanusMokrassar/TelegramBotAPI.git synced 2024-11-22 08:13:47 +00:00

remove arguments

This commit is contained in:
InsanusMokrassar 2020-08-24 00:27:37 +06:00
parent 4c36750431
commit 6420737a82
4 changed files with 1 additions and 7 deletions

View File

@ -27,6 +27,7 @@
* All included `KtorCallFactory` realizations (except of abstract) now are objects: * All included `KtorCallFactory` realizations (except of abstract) now are objects:
* `MultipartRequestCallFactory` * `MultipartRequestCallFactory`
* `SimpleRequestCallFactory` * `SimpleRequestCallFactory`
* `MediaGroupMemberInputMedia` members now will not have `arguments` property due to redundancy and buggy of that
* `TelegramBotAPI-extensions-api`: * `TelegramBotAPI-extensions-api`:
* Extensions `TelegramBot#downloadFile` were added * Extensions `TelegramBot#downloadFile` were added
* `TelegramBotAPI-extensions-utils`: * `TelegramBotAPI-extensions-utils`:

View File

@ -27,9 +27,6 @@ data class InputMediaPhoto(
is FileId -> file.fileId is FileId -> file.fileId
is MultipartFile -> file.fileId.toInputMediaFileAttachmentName() is MultipartFile -> file.fileId.toInputMediaFileAttachmentName()
} }
@Transient
override val arguments: JsonElement = buildArguments(serializer())
} }
fun PhotoSize.toInputMediaPhoto( fun PhotoSize.toInputMediaPhoto(

View File

@ -29,7 +29,4 @@ data class InputMediaVideo(
is FileId -> file.fileId is FileId -> file.fileId
is MultipartFile -> file.fileId.toInputMediaFileAttachmentName() is MultipartFile -> file.fileId.toInputMediaFileAttachmentName()
} }
@Transient
override val arguments: JsonElement = buildArguments(serializer())
} }

View File

@ -17,5 +17,4 @@ internal fun <T> T.buildArguments(withSerializer: SerializationStrategy<T>) = ar
@Serializable(MediaGroupMemberInputMediaSerializer::class) @Serializable(MediaGroupMemberInputMediaSerializer::class)
interface MediaGroupMemberInputMedia : InputMedia, CaptionedOutput { interface MediaGroupMemberInputMedia : InputMedia, CaptionedOutput {
fun serialize(format: StringFormat): String fun serialize(format: StringFormat): String
val arguments: JsonElement
} }