2020-10-04 11:06:30 +00:00
|
|
|
package dev.inmo.tgbotapi.extensions.api.thumbs
|
2020-03-30 16:29:34 +00:00
|
|
|
|
2020-10-04 11:06:30 +00:00
|
|
|
import dev.inmo.tgbotapi.bot.TelegramBot
|
|
|
|
import dev.inmo.tgbotapi.requests.abstracts.FileId
|
|
|
|
import dev.inmo.tgbotapi.requests.abstracts.MultipartFile
|
2023-03-10 06:11:17 +00:00
|
|
|
import dev.inmo.tgbotapi.requests.stickers.SetStickerSetThumbnail
|
|
|
|
import dev.inmo.tgbotapi.types.StickerSetName
|
2022-04-21 18:16:41 +00:00
|
|
|
import dev.inmo.tgbotapi.types.chat.CommonUser
|
2020-10-04 11:06:30 +00:00
|
|
|
import dev.inmo.tgbotapi.types.UserId
|
|
|
|
import dev.inmo.tgbotapi.types.stickers.StickerSet
|
2020-03-30 16:29:34 +00:00
|
|
|
|
2023-03-10 06:11:17 +00:00
|
|
|
suspend fun TelegramBot.setStickerSetThumbnail(
|
|
|
|
userId: UserId,
|
|
|
|
stickerSetName: StickerSetName,
|
|
|
|
thumbnail: FileId
|
|
|
|
) = execute(
|
|
|
|
SetStickerSetThumbnail(userId, stickerSetName, thumbnail)
|
|
|
|
)
|
|
|
|
|
|
|
|
suspend fun TelegramBot.setStickerSetThumbnail(
|
|
|
|
userId: UserId,
|
|
|
|
stickerSetName: StickerSetName,
|
|
|
|
thumbnail: MultipartFile
|
|
|
|
) = execute(
|
|
|
|
SetStickerSetThumbnail(userId, stickerSetName, thumbnail)
|
|
|
|
)
|
|
|
|
|
|
|
|
suspend fun TelegramBot.setStickerSetThumbnail(
|
|
|
|
user: CommonUser,
|
|
|
|
stickerSetName: StickerSetName,
|
|
|
|
thumbnail: FileId
|
|
|
|
) = setStickerSetThumbnail(
|
|
|
|
user.id, stickerSetName, thumbnail
|
|
|
|
)
|
|
|
|
|
|
|
|
suspend fun TelegramBot.setStickerSetThumbnail(
|
|
|
|
user: CommonUser,
|
|
|
|
stickerSetName: StickerSetName,
|
|
|
|
thumbnail: MultipartFile
|
|
|
|
) = setStickerSetThumbnail(
|
|
|
|
user.id, stickerSetName, thumbnail
|
|
|
|
)
|
|
|
|
|
|
|
|
suspend fun TelegramBot.setStickerSetThumbnail(
|
|
|
|
userId: UserId,
|
|
|
|
stickerSet: StickerSet,
|
|
|
|
thumbnail: FileId
|
|
|
|
) = setStickerSetThumbnail(
|
|
|
|
userId, stickerSet.name, thumbnail
|
|
|
|
)
|
|
|
|
|
|
|
|
suspend fun TelegramBot.setStickerSetThumbnail(
|
|
|
|
userId: UserId,
|
|
|
|
stickerSet: StickerSet,
|
|
|
|
thumbnail: MultipartFile
|
|
|
|
) = setStickerSetThumbnail(
|
|
|
|
userId, stickerSet.name, thumbnail
|
|
|
|
)
|
|
|
|
|
|
|
|
suspend fun TelegramBot.setStickerSetThumbnail(
|
|
|
|
user: CommonUser,
|
|
|
|
stickerSet: StickerSet,
|
|
|
|
thumbnail: FileId
|
|
|
|
) = setStickerSetThumbnail(
|
|
|
|
user.id, stickerSet.name, thumbnail
|
|
|
|
)
|
|
|
|
|
|
|
|
suspend fun TelegramBot.setStickerSetThumbnail(
|
|
|
|
user: CommonUser,
|
|
|
|
stickerSet: StickerSet,
|
|
|
|
thumbnail: MultipartFile
|
|
|
|
) = setStickerSetThumbnail(
|
|
|
|
user.id, stickerSet.name, thumbnail
|
|
|
|
)
|