1
0
mirror of https://github.com/InsanusMokrassar/TelegramBotAPI.git synced 2025-09-02 22:59:48 +00:00

add setStickerSetThumb

This commit is contained in:
2020-03-30 22:29:34 +06:00
parent 033ec8f2da
commit 9cd2a6220c
9 changed files with 130 additions and 6 deletions

View File

@@ -0,0 +1,74 @@
package com.github.insanusmokrassar.TelegramBotAPI.extensions.api.stickers
import com.github.insanusmokrassar.TelegramBotAPI.bot.RequestsExecutor
import com.github.insanusmokrassar.TelegramBotAPI.requests.abstracts.FileId
import com.github.insanusmokrassar.TelegramBotAPI.requests.abstracts.MultipartFile
import com.github.insanusmokrassar.TelegramBotAPI.requests.stickers.SetStickerSetThumb
import com.github.insanusmokrassar.TelegramBotAPI.types.CommonUser
import com.github.insanusmokrassar.TelegramBotAPI.types.UserId
import com.github.insanusmokrassar.TelegramBotAPI.types.stickers.StickerSet
suspend fun RequestsExecutor.setStickerSetThumb(
userId: UserId,
stickerSetName: String,
sticker: FileId
) = execute(
SetStickerSetThumb(userId, stickerSetName, sticker)
)
suspend fun RequestsExecutor.setStickerSetThumb(
userId: UserId,
stickerSetName: String,
sticker: MultipartFile
) = execute(
SetStickerSetThumb(userId, stickerSetName, sticker)
)
suspend fun RequestsExecutor.setStickerSetThumb(
user: CommonUser,
stickerSetName: String,
sticker: FileId
) = setStickerSetThumb(
user.id, stickerSetName, sticker
)
suspend fun RequestsExecutor.setStickerSetThumb(
user: CommonUser,
stickerSetName: String,
sticker: MultipartFile
) = setStickerSetThumb(
user.id, stickerSetName, sticker
)
suspend fun RequestsExecutor.setStickerSetThumb(
userId: UserId,
stickerSet: StickerSet,
sticker: FileId
) = setStickerSetThumb(
userId, stickerSet.name, sticker
)
suspend fun RequestsExecutor.setStickerSetThumb(
userId: UserId,
stickerSet: StickerSet,
sticker: MultipartFile
) = setStickerSetThumb(
userId, stickerSet.name, sticker
)
suspend fun RequestsExecutor.setStickerSetThumb(
user: CommonUser,
stickerSet: StickerSet,
sticker: FileId
) = setStickerSetThumb(
user.id, stickerSet.name, sticker
)
suspend fun RequestsExecutor.setStickerSetThumb(
user: CommonUser,
stickerSet: StickerSet,
sticker: MultipartFile
) = setStickerSetThumb(
user.id, stickerSet.name, sticker
)