25 lines
682 B
Kotlin
25 lines
682 B
Kotlin
package dev.inmo.tgbotapi.extensions.api.stickers
|
|
|
|
import com.github.insanusmokrassar.TelegramBotAPI.bot.TelegramBot
|
|
import com.github.insanusmokrassar.TelegramBotAPI.requests.abstracts.FileId
|
|
import com.github.insanusmokrassar.TelegramBotAPI.requests.stickers.SetStickerPositionInSet
|
|
import com.github.insanusmokrassar.TelegramBotAPI.types.files.Sticker
|
|
|
|
suspend fun TelegramBot.setStickerPositionInSet(
|
|
sticker: FileId,
|
|
position: Int
|
|
) = execute(
|
|
SetStickerPositionInSet(
|
|
sticker,
|
|
position
|
|
)
|
|
)
|
|
|
|
suspend fun TelegramBot.setStickerPositionInSet(
|
|
sticker: Sticker,
|
|
position: Int
|
|
) = setStickerPositionInSet(
|
|
sticker.fileId,
|
|
position
|
|
)
|