uploadStickerFile - libtd-ktx

Kotlin Coroutines extensions for Telegram API TDLib (Telegram Database library)


libtd-ktx / kotlinx.telegram.coroutines / uploadStickerFile

uploadStickerFile

suspend fun TelegramFlow.uploadStickerFile(userId: Int, pngSticker: InputFile?): File

Suspend function, which uploads a PNG image with a sticker; for bots only; returns the uploaded file.

Parameters

userId - Sticker file owner.

pngSticker - PNG image with the sticker; must be up to 512 kB in size and fit in 512x512 square.

Return File Represents a file.