AddStickerToSetRequest

data class AddStickerToSetRequest(user_id: Long, name: String, png_sticker: String?, tgs_sticker: Any?, emojis: String, mask_position: MaskPosition?) : TelegramRequest

Use this method to add a new sticker to a set created by the bot. You must use exactly one of the fields png_sticker or tgs_sticker. Animated stickers can be added to animated sticker sets and only to them. Animated sticker sets can have up to 50 stickers. Static sticker sets can have up to 120 stickers. Returns True on success.

Constructors

AddStickerToSetRequest
Link copied to clipboard
fun AddStickerToSetRequest(user_id: Long, name: String, png_sticker: String? = null, tgs_sticker: Any? = null, emojis: String, mask_position: MaskPosition? = null)

Properties

emojis
Link copied to clipboard
val emojis: String
One or more emoji corresponding to the sticker
mask_position
Link copied to clipboard
val mask_position: MaskPosition? = null
A JSON-serialized object for position where the mask should be placed on faces
name
Link copied to clipboard
val name: String
Sticker set name
png_sticker
Link copied to clipboard
val png_sticker: String? = null
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.
tgs_sticker
Link copied to clipboard
val tgs_sticker: Any? = null
TGS animation with the sticker, uploaded using multipart/form-data.
user_id
Link copied to clipboard
val user_id: Long
User identifier of sticker set owner