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

Sticker and StickerSet now with isAnimated field

This commit is contained in:
InsanusMokrassar 2019-08-12 13:25:55 +06:00
parent 84ad751792
commit cb94a3a389
4 changed files with 9 additions and 0 deletions

View File

@ -12,6 +12,10 @@
* `TelegramAPIUrlsKeeper` was added to provide more comfortable work with file urls and other things
like this
Changes according to [July 29, 2019 Telegram Bot API update](https://core.telegram.org/bots/api#july-29-2019):
* `Sticker` and `StickerSet` now have field `isAnimated`
## 0.16.0 Bot API 4.3
* `LoginURL` and `LoginURLInlineKeyboardButton` has been added

View File

@ -89,6 +89,7 @@ const val forwardTextField = "forward_text"
const val botUsernameField = "bot_username"
const val switchInlineQueryCurrentChatField = "switch_inline_query_current_chat"
const val switchInlineQueryField = "switch_inline_query"
const val isAnimatedField = "is_animated"
const val requestWriteAccessField = "request_write_access"

View File

@ -21,6 +21,8 @@ data class Sticker(
val emoji: String? = null,
@SerialName(stickerSetNameField)
val stickerSetName: String? = null,
@SerialName(isAnimatedField)
val isAnimated: Boolean = false,
@SerialName(maskPositionField)
val maskPosition: MaskPosition? = null,
@SerialName(fileSizeField)

View File

@ -13,6 +13,8 @@ data class StickerSet(
val title: String,
@SerialName(stickersField)
val stickers: List<Sticker>,
@SerialName(isAnimatedField)
val isAnimated: Boolean = false,
@SerialName(containsMasksField)
val containsMasks: Boolean = false
)