2020-10-04 10:57:39 +00:00
|
|
|
package dev.inmo.tgbotapi.extensions.api.stickers
|
2020-02-15 09:33:04 +00:00
|
|
|
|
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.abstracts.MultipartFile
|
|
|
|
import com.github.insanusmokrassar.TelegramBotAPI.requests.stickers.UploadStickerFile
|
|
|
|
import com.github.insanusmokrassar.TelegramBotAPI.types.CommonUser
|
|
|
|
import com.github.insanusmokrassar.TelegramBotAPI.types.UserId
|
|
|
|
|
2020-10-04 07:18:24 +00:00
|
|
|
suspend fun TelegramBot.uploadStickerFile(
|
2020-02-15 09:33:04 +00:00
|
|
|
userId: UserId,
|
|
|
|
sticker: MultipartFile
|
|
|
|
) = execute(
|
|
|
|
UploadStickerFile(userId, sticker)
|
|
|
|
)
|
|
|
|
|
2020-10-04 07:18:24 +00:00
|
|
|
suspend fun TelegramBot.uploadStickerFile(
|
2020-02-15 09:33:04 +00:00
|
|
|
user: CommonUser,
|
|
|
|
sticker: MultipartFile
|
|
|
|
) = execute(
|
|
|
|
UploadStickerFile(user.id, sticker)
|
|
|
|
)
|