mirror of
https://github.com/InsanusMokrassar/TelegramBotAPI.git
synced 2025-09-05 08:09:21 +00:00
update uploadStickerFile
This commit is contained in:
@@ -3,19 +3,22 @@ package dev.inmo.tgbotapi.extensions.api.stickers
|
||||
import dev.inmo.tgbotapi.bot.TelegramBot
|
||||
import dev.inmo.tgbotapi.requests.abstracts.MultipartFile
|
||||
import dev.inmo.tgbotapi.requests.stickers.UploadStickerFile
|
||||
import dev.inmo.tgbotapi.types.StickerFormat
|
||||
import dev.inmo.tgbotapi.types.chat.CommonUser
|
||||
import dev.inmo.tgbotapi.types.UserId
|
||||
|
||||
suspend fun TelegramBot.uploadStickerFile(
|
||||
userId: UserId,
|
||||
sticker: MultipartFile
|
||||
sticker: MultipartFile,
|
||||
stickerFormat: StickerFormat
|
||||
) = execute(
|
||||
UploadStickerFile(userId, sticker)
|
||||
UploadStickerFile(userId, sticker, stickerFormat)
|
||||
)
|
||||
|
||||
suspend fun TelegramBot.uploadStickerFile(
|
||||
user: CommonUser,
|
||||
sticker: MultipartFile
|
||||
sticker: MultipartFile,
|
||||
stickerFormat: StickerFormat
|
||||
) = execute(
|
||||
UploadStickerFile(user.id, sticker)
|
||||
UploadStickerFile(user.id, sticker, stickerFormat)
|
||||
)
|
||||
|
Reference in New Issue
Block a user