commonMain.dev.inmo.tgbotapi.extensions.api.stickers.CreateNewStickerSet.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of tgbotapi.api Show documentation
Show all versions of tgbotapi.api Show documentation
API extensions with "Telegram Bot API"-like extensions for TelegramBot and RequestsExecutor
package dev.inmo.tgbotapi.extensions.api.stickers
import dev.inmo.tgbotapi.bot.TelegramBot
import dev.inmo.tgbotapi.requests.stickers.CreateNewStickerSet
import dev.inmo.tgbotapi.requests.stickers.InputSticker
import dev.inmo.tgbotapi.types.StickerFormat
import dev.inmo.tgbotapi.types.chat.CommonUser
import dev.inmo.tgbotapi.types.UserId
public suspend fun TelegramBot.createNewStickerSet(
userId: UserId,
name: String,
title: String,
stickers: List,
needsRepainting: Boolean = false
): Boolean = execute(
CreateNewStickerSet(userId, name, title, stickers, needsRepainting)
)
public suspend fun TelegramBot.createNewStickerSet(
user: CommonUser,
name: String,
title: String,
stickers: List,
needsRepainting: Boolean = false,
): Boolean = createNewStickerSet(
user.id, name, title, stickers, needsRepainting
)