mirror of
https://github.com/InsanusMokrassar/TelegramBotAPI.git
synced 2024-06-29 04:47:48 +00:00
33 lines
1.1 KiB
Kotlin
33 lines
1.1 KiB
Kotlin
|
package com.github.insanusmokrassar.TelegramBotAPI.types.files
|
||
|
|
||
|
import com.github.insanusmokrassar.TelegramBotAPI.types.*
|
||
|
import com.github.insanusmokrassar.TelegramBotAPI.types.files.abstracts.*
|
||
|
import com.github.insanusmokrassar.TelegramBotAPI.requests.abstracts.FileId
|
||
|
import com.github.insanusmokrassar.TelegramBotAPI.types.stickers.MaskPosition
|
||
|
import kotlinx.serialization.*
|
||
|
|
||
|
@Serializable
|
||
|
data class Sticker(
|
||
|
@SerialName(fileIdField)
|
||
|
override val fileId: FileId,
|
||
|
@SerialName(widthField)
|
||
|
override val width: Int,
|
||
|
@SerialName(heightField)
|
||
|
override val height: Int,
|
||
|
@SerialName(thumbField)
|
||
|
@Optional
|
||
|
override val thumb: PhotoSize? = null,
|
||
|
@SerialName(emojiField)
|
||
|
@Optional
|
||
|
val emoji: String? = null,
|
||
|
@SerialName(stickerSetNameField)
|
||
|
@Optional
|
||
|
val stickerSetName: String? = null,
|
||
|
@SerialName(maskPositionField)
|
||
|
@Optional
|
||
|
val maskPosition: MaskPosition? = null,
|
||
|
@SerialName(fileSizeField)
|
||
|
@Optional
|
||
|
override val fileSize: Long? = null
|
||
|
) : TelegramMediaFile, SizedMediaFile, ThumbedMediaFile
|