2020-02-15 09:33:04 +00:00
|
|
|
package com.github.insanusmokrassar.TelegramBotAPI.extensions.api.get
|
|
|
|
|
2020-10-04 07:18:24 +00:00
|
|
|
import com.github.insanusmokrassar.TelegramBotAPI.bot.TelegramBot
|
2020-02-15 09:33:04 +00:00
|
|
|
import com.github.insanusmokrassar.TelegramBotAPI.requests.get.GetStickerSet
|
|
|
|
import com.github.insanusmokrassar.TelegramBotAPI.types.files.Sticker
|
|
|
|
|
2020-10-04 07:18:24 +00:00
|
|
|
suspend fun TelegramBot.getStickerSet(
|
2020-02-15 09:33:04 +00:00
|
|
|
name: String
|
|
|
|
) = execute(
|
|
|
|
GetStickerSet(name)
|
|
|
|
)
|
|
|
|
|
2020-10-04 07:18:24 +00:00
|
|
|
suspend fun TelegramBot.getStickerSet(
|
2020-02-15 09:33:04 +00:00
|
|
|
sticker: Sticker
|
|
|
|
) = getStickerSet(
|
|
|
|
sticker.stickerSetName ?: error("Sticker must contains stickerSetName to be correctly used in getStickerSet method")
|
|
|
|
)
|