2020-03-30 16:52:57 +00:00
|
|
|
package com.github.insanusmokrassar.TelegramBotAPI.extensions.api.thumbs
|
2020-03-30 16:29:34 +00:00
|
|
|
|
|
|
|
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,
|
2020-03-30 16:52:57 +00:00
|
|
|
thumbSetName: String,
|
|
|
|
thumb: FileId
|
2020-03-30 16:29:34 +00:00
|
|
|
) = execute(
|
2020-03-30 16:52:57 +00:00
|
|
|
SetStickerSetThumb(userId, thumbSetName, thumb)
|
2020-03-30 16:29:34 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
suspend fun RequestsExecutor.setStickerSetThumb(
|
|
|
|
userId: UserId,
|
2020-03-30 16:52:57 +00:00
|
|
|
thumbSetName: String,
|
|
|
|
thumb: MultipartFile
|
2020-03-30 16:29:34 +00:00
|
|
|
) = execute(
|
2020-03-30 16:52:57 +00:00
|
|
|
SetStickerSetThumb(userId, thumbSetName, thumb)
|
2020-03-30 16:29:34 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
suspend fun RequestsExecutor.setStickerSetThumb(
|
|
|
|
user: CommonUser,
|
2020-03-30 16:52:57 +00:00
|
|
|
thumbSetName: String,
|
|
|
|
thumb: FileId
|
2020-03-30 16:29:34 +00:00
|
|
|
) = setStickerSetThumb(
|
2020-03-30 16:52:57 +00:00
|
|
|
user.id, thumbSetName, thumb
|
2020-03-30 16:29:34 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
suspend fun RequestsExecutor.setStickerSetThumb(
|
|
|
|
user: CommonUser,
|
2020-03-30 16:52:57 +00:00
|
|
|
thumbSetName: String,
|
|
|
|
thumb: MultipartFile
|
2020-03-30 16:29:34 +00:00
|
|
|
) = setStickerSetThumb(
|
2020-03-30 16:52:57 +00:00
|
|
|
user.id, thumbSetName, thumb
|
2020-03-30 16:29:34 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
suspend fun RequestsExecutor.setStickerSetThumb(
|
|
|
|
userId: UserId,
|
2020-03-30 16:52:57 +00:00
|
|
|
thumbSet: StickerSet,
|
|
|
|
thumb: FileId
|
2020-03-30 16:29:34 +00:00
|
|
|
) = setStickerSetThumb(
|
2020-03-30 16:52:57 +00:00
|
|
|
userId, thumbSet.name, thumb
|
2020-03-30 16:29:34 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
suspend fun RequestsExecutor.setStickerSetThumb(
|
|
|
|
userId: UserId,
|
2020-03-30 16:52:57 +00:00
|
|
|
thumbSet: StickerSet,
|
|
|
|
thumb: MultipartFile
|
2020-03-30 16:29:34 +00:00
|
|
|
) = setStickerSetThumb(
|
2020-03-30 16:52:57 +00:00
|
|
|
userId, thumbSet.name, thumb
|
2020-03-30 16:29:34 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
suspend fun RequestsExecutor.setStickerSetThumb(
|
|
|
|
user: CommonUser,
|
2020-03-30 16:52:57 +00:00
|
|
|
thumbSet: StickerSet,
|
|
|
|
thumb: FileId
|
2020-03-30 16:29:34 +00:00
|
|
|
) = setStickerSetThumb(
|
2020-03-30 16:52:57 +00:00
|
|
|
user.id, thumbSet.name, thumb
|
2020-03-30 16:29:34 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
suspend fun RequestsExecutor.setStickerSetThumb(
|
|
|
|
user: CommonUser,
|
2020-03-30 16:52:57 +00:00
|
|
|
thumbSet: StickerSet,
|
|
|
|
thumb: MultipartFile
|
2020-03-30 16:29:34 +00:00
|
|
|
) = setStickerSetThumb(
|
2020-03-30 16:52:57 +00:00
|
|
|
user.id, thumbSet.name, thumb
|
2020-03-30 16:29:34 +00:00
|
|
|
)
|
|
|
|
|