diff --git a/tgbotapi.api/src/commonMain/kotlin/dev/inmo/tgbotapi/extensions/api/stickers/AddStickerToSet.kt b/tgbotapi.api/src/commonMain/kotlin/dev/inmo/tgbotapi/extensions/api/stickers/AddStickerToSet.kt index 275d372f8a..18cb4d47af 100644 --- a/tgbotapi.api/src/commonMain/kotlin/dev/inmo/tgbotapi/extensions/api/stickers/AddStickerToSet.kt +++ b/tgbotapi.api/src/commonMain/kotlin/dev/inmo/tgbotapi/extensions/api/stickers/AddStickerToSet.kt @@ -18,6 +18,16 @@ suspend fun TelegramBot.addStickerToSet( AddStickerToSet(userId, stickerSetName, inputSticker) ) +suspend fun TelegramBot.addStickerToSet( + userId: UserId, + stickerSet: StickerSet, + sticker: InputSticker +) = addStickerToSet( + userId, + stickerSet.name, + sticker +) + suspend fun TelegramBot.addStickerToSet( userId: UserId, stickerSet: StickerSet, @@ -26,7 +36,7 @@ suspend fun TelegramBot.addStickerToSet( keywords: List = emptyList() ) = addStickerToSet( userId, - stickerSet.name, + stickerSet, when (stickerSet.stickerType) { StickerType.CustomEmoji -> InputSticker.WithKeywords.CustomEmoji( sticker, @@ -75,6 +85,16 @@ suspend fun TelegramBot.addStickerToSet( } ) +suspend fun TelegramBot.addStickerToSet( + user: CommonUser, + stickerSet: StickerSet, + sticker: InputSticker +) = addStickerToSet( + user.id, + stickerSet.name, + sticker +) + suspend fun TelegramBot.addStickerToSet( user: CommonUser, stickerSet: StickerSet,