telegram api method · layer 229 · #9021ab67

stickers.createStickerSet

usable by users and bots

Create a stickerset.

definition

stickers.createStickerSet#9021ab67 flags:# masks:flags.0?true emojis:flags.5?true text_color:flags.6?true user_id:InputUser title:string short_name:string thumb:flags.2?InputDocument stickers:Vector<InputStickerSetItem> software:flags.3?string = messages.StickerSet;

parameters

nametypedescription
flags#Flags, see TL conditional fields
masksflags.0?trueWhether this is a mask stickerset
emojisflags.5?trueWhether this is a custom emoji stickerset.
text_colorflags.6?trueWhether the color of TGS custom emojis contained in this set should be changed to the text color when used in messages, the accent color if used as emoji status, white on chat photos, or another appropriate color based on context. For custom emoji stickersets only.
user_idInputUserStickerset owner
titlestringStickerset name, 1-64 chars
short_namestringShort name of sticker set, to be used in sticker deep links ». Can contain only english letters, digits and underscores. Must begin with a letter, can't contain consecutive underscores and, if called by a bot, must end in "_by_<bot_username>". <bot_username> is case insensitive. 1-64 characters.
thumbflags.2?InputDocumentThumbnail
stickersVector<InputStickerSetItem>Stickers
softwareflags.3?stringUsed when importing stickers using the sticker import SDKs, specifies the name of the software that created the stickers

returns

messages.StickerSet

errors (21)

codeerrordescription
400BUSINESS_CONNECTION_NOT_ALLOWEDThis method was invoked over a business connection using invokeWithBusinessConnection, but either (1) we're a user, and users cannot invoke methods over a business connection; (2) we're a bot, but business mode was disabled in @botfather or (3); we're a bot, but this method cannot be invoked over a business connection.
400PACK_SHORT_NAME_INVALIDShort pack name invalid.
400PACK_SHORT_NAME_OCCUPIEDA stickerpack with this name already exists.
400PACK_TITLE_INVALIDThe stickerpack title is invalid.
400PACK_TYPE_INVALIDThe masks and emojis flags are mutually exclusive.
400PEER_ID_INVALIDThe provided peer id is invalid.
400STICKER_EMOJI_INVALIDSticker emoji invalid.
400STICKER_FILE_INVALIDSticker file invalid.
400STICKER_GIF_DIMENSIONSThe specified video sticker has invalid dimensions.
400STICKER_PNG_DIMENSIONSSticker png dimensions invalid.
400STICKER_PNG_NOPNGOne of the specified stickers is not a valid PNG file.
400STICKER_TGS_NODOCYou must send the animated sticker as a document.
400STICKER_TGS_NOTGSInvalid TGS sticker provided.
400STICKER_THUMB_PNG_NOPNGIncorrect stickerset thumb file provided, PNG / WEBP expected.
400STICKER_THUMB_TGS_NOTGSIncorrect stickerset TGS thumb file provided.
400STICKER_VIDEO_BIGThe specified video sticker is too big.
400STICKER_VIDEO_NODOCYou must send the video sticker as a document.
400STICKER_VIDEO_NOWEBMThe specified video sticker is not in webm format.
400STICKERS_EMPTYNo sticker provided.
400USER_ID_INVALIDThe provided user ID is invalid.
401AUTH_KEY_UNREGISTEREDThe specified authorization key is not registered in the system (for example, a PFS temporary key has expired).

history

present in layers 67–229 · constructor id changed 3×

idlayers
#4da2730c67
#9bd86e6a68–111
#f1036780112–129
#9021ab67130–229