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

Update Sticker.kt

This commit is contained in:
InsanusMokrassar 2023-03-11 01:30:12 +06:00 committed by GitHub
parent 3c4f8787a6
commit 5992fdd456
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -27,7 +27,8 @@ data class StickerSurrogate(
val premium_animation: File? = null,
val mask_position: MaskPosition? = null,
val custom_emoji_id: CustomEmojiId? = null,
val file_size: Long? = null
val file_size: Long? = null,
val needs_repainting: Boolean = false
)
// TODO:: Serializer
@ -132,7 +133,8 @@ object StickerSerializer : KSerializer<Sticker> {
surrogate.thumb,
surrogate.emoji,
surrogate.set_name,
surrogate.file_size
surrogate.file_size,
surrogate.needs_repainting
)
surrogate.is_video == true -> CustomEmojiVideoSticker(
surrogate.file_id,
@ -143,7 +145,8 @@ object StickerSerializer : KSerializer<Sticker> {
surrogate.thumb,
surrogate.emoji,
surrogate.set_name,
surrogate.file_size
surrogate.file_size,
surrogate.needs_repainting
)
else -> CustomEmojiSimpleSticker(
surrogate.file_id,
@ -154,7 +157,8 @@ object StickerSerializer : KSerializer<Sticker> {
surrogate.thumb,
surrogate.emoji,
surrogate.set_name,
surrogate.file_size
surrogate.file_size,
surrogate.needs_repainting
)
}
is StickerType.Unknown -> UnknownSticker(