26 lines
649 B
Kotlin
26 lines
649 B
Kotlin
package dev.inmo.tgbotapi.extensions.api.stickers
|
|
|
|
import dev.inmo.tgbotapi.bot.TelegramBot
|
|
import dev.inmo.tgbotapi.requests.abstracts.FileId
|
|
import dev.inmo.tgbotapi.requests.stickers.SetStickerEmojiList
|
|
import dev.inmo.tgbotapi.requests.stickers.SetStickerPositionInSet
|
|
import dev.inmo.tgbotapi.types.files.Sticker
|
|
|
|
suspend fun TelegramBot.setStickerEmojiList(
|
|
sticker: FileId,
|
|
emojis: List<String>
|
|
) = execute(
|
|
SetStickerEmojiList(
|
|
sticker,
|
|
emojis
|
|
)
|
|
)
|
|
|
|
suspend fun TelegramBot.setStickerEmojiList(
|
|
sticker: Sticker,
|
|
vararg emojis: String
|
|
) = setStickerEmojiList(
|
|
sticker.fileId,
|
|
emojis.toList()
|
|
)
|