2022-02-01 17:25:22 +00:00
|
|
|
package dev.inmo.tgbotapi.extensions.utils.extensions.raw
|
|
|
|
|
2022-08-13 06:20:28 +00:00
|
|
|
import dev.inmo.tgbotapi.extensions.utils.*
|
2022-02-01 17:25:22 +00:00
|
|
|
import dev.inmo.tgbotapi.requests.abstracts.FileId
|
2022-08-13 06:20:28 +00:00
|
|
|
import dev.inmo.tgbotapi.types.*
|
2022-04-17 12:15:24 +00:00
|
|
|
import dev.inmo.tgbotapi.types.files.*
|
2022-02-01 17:25:22 +00:00
|
|
|
import dev.inmo.tgbotapi.types.stickers.MaskPosition
|
|
|
|
|
|
|
|
inline val Sticker.file_id: FileId
|
|
|
|
get() = fileId
|
2024-03-16 14:21:29 +00:00
|
|
|
inline val Sticker.file_unique_id: TgFileUniqueId
|
2022-02-01 17:25:22 +00:00
|
|
|
get() = fileUniqueId
|
|
|
|
inline val Sticker.is_animated: Boolean
|
|
|
|
get() = this is AnimatedSticker
|
|
|
|
inline val Sticker.is_video: Boolean
|
|
|
|
get() = this is VideoSticker
|
|
|
|
inline val Sticker.set_name: StickerSetName?
|
|
|
|
get() = stickerSetName
|
|
|
|
inline val Sticker.mask_position: MaskPosition?
|
2022-08-13 06:20:28 +00:00
|
|
|
get() = maskStickerOrNull() ?.maskPosition
|
2022-02-01 17:25:22 +00:00
|
|
|
inline val Sticker.file_size: Long?
|
|
|
|
get() = fileSize
|
2022-06-21 12:30:31 +00:00
|
|
|
inline val Sticker.premium_animation: File?
|
2022-08-13 06:20:28 +00:00
|
|
|
get() = regularStickerOrNull() ?.premiumAnimationFile
|
|
|
|
inline val Sticker.custom_emoji_id: CustomEmojiId?
|
|
|
|
get() = customEmojiStickerOrNull() ?.customEmojiId
|