upload Sticker File
suspend fun TelegramBotApiClient.uploadStickerFile(requestBody: UploadStickerFileRequest): TelegramResponse<File>
Content copied to clipboard
Use this method to upload a .PNG file with a sticker for later use in createNewStickerSet and addStickerToSet methods (can be used multiple times). Returns the uploaded File on success.
suspend fun TelegramBotApiClient.uploadStickerFile(userId: Int, pngSticker: String): TelegramResponse<File>
Content copied to clipboard
Use this method to upload a .PNG file with a sticker for later use in createNewStickerSet and addStickerToSet methods (can be used multiple times). Returns the uploaded File on success.
Parameters
userId
User identifier of sticker file owner
pngSticker
PNG image with the sticker, must be up to 512 kilobytes in size, dimensions must not exceed 512px, and either width or height must be exactly 512px. More info on Sending Files »