CreateNewStickerSetRequest

data class CreateNewStickerSetRequest(userId: Int, name: String, title: String, pngSticker: String?, tgsSticker: String?, emojis: String, containsMasks: Boolean, maskPosition: MaskPosition?)

Request body for createNewStickerSet

Parameters

userId

User identifier of created sticker set owner

name

Short name of sticker set, to be used in t.me/addstickers/ URLs (e.g., animals). Can contain only english letters, digits and underscores. Must begin with a letter, can't contain consecutive underscores and must end in “by<bot username>”. <bot_username> is case insensitive. 1-64 characters.

title

Sticker set title, 1-64 characters

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. Pass a file_id as a String to send a file that already exists on the Telegram servers, pass an HTTP URL as a String for Telegram to get a file from the Internet, or upload a new one using multipart/form-data. More info on Sending Files »

tgsSticker

TGS animation with the sticker, uploaded using multipart/form-data. See https://core.telegram.org/animated_stickers#technical-requirements for technical requirements

emojis

One or more emoji corresponding to the sticker

containsMasks

Pass True, if a set of mask stickers should be created

maskPosition

A JSON-serialized object for position where the mask should be placed on faces

Constructors

CreateNewStickerSetRequest
Link copied to clipboard
common
fun CreateNewStickerSetRequest(userId: Int, name: String, title: String, pngSticker: String? = null, tgsSticker: String? = null, emojis: String, containsMasks: Boolean = false, maskPosition: MaskPosition? = null)
User identifier of created sticker set owner

Functions

component1
Link copied to clipboard
common
operator fun component1(): Int
component2
Link copied to clipboard
common
operator fun component2(): String
component3
Link copied to clipboard
common
operator fun component3(): String
component4
Link copied to clipboard
common
operator fun component4(): String?
component5
Link copied to clipboard
common
operator fun component5(): String?
component6
Link copied to clipboard
common
operator fun component6(): String
component7
Link copied to clipboard
common
operator fun component7(): Boolean
component8
Link copied to clipboard
common
operator fun component8(): MaskPosition?
copy
Link copied to clipboard
common
fun copy(userId: Int, name: String, title: String, pngSticker: String? = null, tgsSticker: String? = null, emojis: String, containsMasks: Boolean = false, maskPosition: MaskPosition? = null): CreateNewStickerSetRequest
equals
Link copied to clipboard
common
open operator override fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
common
open override fun hashCode(): Int
toString
Link copied to clipboard
common
open override fun toString(): String

Properties

containsMasks
Link copied to clipboard
common
val containsMasks: Boolean = false
Pass True, if a set of mask stickers should be created
emojis
Link copied to clipboard
common
val emojis: String
One or more emoji corresponding to the sticker
maskPosition
Link copied to clipboard
common
val maskPosition: MaskPosition? = null
A JSON-serialized object for position where the mask should be placed on faces
name
Link copied to clipboard
common
val name: String
Short name of sticker set, to be used in t.me/addstickers/ URLs (e.g., animals).
pngSticker
Link copied to clipboard
common
val pngSticker: 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.
tgsSticker
Link copied to clipboard
common
val tgsSticker: String? = null
TGS animation with the sticker, uploaded using multipart/form-data.
title
Link copied to clipboard
common
val title: String
Sticker set title, 1-64 characters
userId
Link copied to clipboard
common
val userId: Int
User identifier of created sticker set owner