mirror of
https://github.com/InsanusMokrassar/TelegramBotAPI-examples.git
synced 2024-11-22 08:13:53 +00:00
improve sticker info bot
This commit is contained in:
parent
fcedbf30da
commit
f152ede9b5
@ -6,9 +6,21 @@ import dev.inmo.tgbotapi.extensions.api.get.*
|
|||||||
import dev.inmo.tgbotapi.extensions.api.send.*
|
import dev.inmo.tgbotapi.extensions.api.send.*
|
||||||
import dev.inmo.tgbotapi.extensions.behaviour_builder.*
|
import dev.inmo.tgbotapi.extensions.behaviour_builder.*
|
||||||
import dev.inmo.tgbotapi.extensions.behaviour_builder.triggers_handling.*
|
import dev.inmo.tgbotapi.extensions.behaviour_builder.triggers_handling.*
|
||||||
|
import dev.inmo.tgbotapi.types.StickerFormat
|
||||||
import dev.inmo.tgbotapi.types.StickerType
|
import dev.inmo.tgbotapi.types.StickerType
|
||||||
import dev.inmo.tgbotapi.types.message.textsources.*
|
import dev.inmo.tgbotapi.types.message.textsources.*
|
||||||
|
import dev.inmo.tgbotapi.types.stickers.AnimatedStickerSet
|
||||||
|
import dev.inmo.tgbotapi.types.stickers.CustomEmojiSimpleStickerSet
|
||||||
|
import dev.inmo.tgbotapi.types.stickers.CustomEmojiStickerSet
|
||||||
|
import dev.inmo.tgbotapi.types.stickers.CustomEmojiVideoStickerSet
|
||||||
|
import dev.inmo.tgbotapi.types.stickers.MaskSimpleStickerSet
|
||||||
|
import dev.inmo.tgbotapi.types.stickers.MaskStickerSet
|
||||||
|
import dev.inmo.tgbotapi.types.stickers.MaskVideoStickerSet
|
||||||
|
import dev.inmo.tgbotapi.types.stickers.RegularSimpleStickerSet
|
||||||
|
import dev.inmo.tgbotapi.types.stickers.RegularStickerSet
|
||||||
|
import dev.inmo.tgbotapi.types.stickers.RegularVideoStickerSet
|
||||||
import dev.inmo.tgbotapi.types.stickers.StickerSet
|
import dev.inmo.tgbotapi.types.stickers.StickerSet
|
||||||
|
import dev.inmo.tgbotapi.types.stickers.UnknownStickerSet
|
||||||
import dev.inmo.tgbotapi.utils.bold
|
import dev.inmo.tgbotapi.utils.bold
|
||||||
import dev.inmo.tgbotapi.utils.buildEntities
|
import dev.inmo.tgbotapi.utils.buildEntities
|
||||||
import kotlinx.coroutines.*
|
import kotlinx.coroutines.*
|
||||||
@ -19,6 +31,12 @@ fun StickerSet?.buildInfo() = buildEntities {
|
|||||||
} else {
|
} else {
|
||||||
bold("StickerSet name: ") + "${name}\n"
|
bold("StickerSet name: ") + "${name}\n"
|
||||||
bold("StickerSet title: ") + "${title}\n"
|
bold("StickerSet title: ") + "${title}\n"
|
||||||
|
bold("Sticker format: ") + when (stickerFormat) {
|
||||||
|
StickerFormat.Animated -> "Animated"
|
||||||
|
StickerFormat.Static -> "Static"
|
||||||
|
is StickerFormat.Unknown -> stickerFormat.type
|
||||||
|
StickerFormat.Video -> "Video"
|
||||||
|
} + "\n"
|
||||||
bold(
|
bold(
|
||||||
when (stickerType) {
|
when (stickerType) {
|
||||||
StickerType.CustomEmoji -> "Custom emoji"
|
StickerType.CustomEmoji -> "Custom emoji"
|
||||||
|
@ -5,7 +5,7 @@ org.gradle.jvmargs=-Xmx1g
|
|||||||
|
|
||||||
|
|
||||||
kotlin_version=1.8.10
|
kotlin_version=1.8.10
|
||||||
telegram_bot_api_version=6.0.3
|
telegram_bot_api_version=7.0.0
|
||||||
micro_utils_version=0.17.3
|
micro_utils_version=0.17.5
|
||||||
serialization_version=1.5.0
|
serialization_version=1.5.0
|
||||||
ktor_version=2.2.4
|
ktor_version=2.2.4
|
||||||
|
Loading…
Reference in New Issue
Block a user