Package it.tdlight.jni
Class TdApi.CreateNewStickerSet
- Enclosing class:
- TdApi
Creates a new sticker set. Returns
the newly created sticker set.
Returns StickerSet
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
boolean
True, if stickers are masks.Sticker set name.Source of the sticker set; may be empty if unknown.List of stickers to be added to the set; must be non-empty.Sticker set title; 1-64 characters.long
Sticker set owner; ignored for regular users. -
Constructor Summary
ConstructorDescriptionCreates a new sticker set.CreateNewStickerSet
(long userId, String title, String name, boolean isMasks, TdApi.InputSticker[] stickers, String source) Creates a new sticker set.CreateNewStickerSet
(DataInput input) -
Method Summary
Methods inherited from class it.tdlight.jni.TdApi.Function
toString
Methods inherited from class it.tdlight.jni.TdApi.Object
serialize
-
Field Details
-
userId
public long userIdSticker set owner; ignored for regular users. -
title
Sticker set title; 1-64 characters. -
name
Sticker set name. Can contain only English letters, digits and underscores. Must end with *"_by_<bot username>"* (*<botUsername>* is case insensitive) for bots; 1-64 characters. -
isMasks
public boolean isMasksTrue, if stickers are masks. Animated stickers can't be masks. -
stickers
List of stickers to be added to the set; must be non-empty. All stickers must be of the same type. For animated stickers, uploadStickerFile must be used before the sticker is shown. -
source
Source of the sticker set; may be empty if unknown. -
CONSTRUCTOR
public static final int CONSTRUCTOR- See Also:
-
-
Constructor Details
-
CreateNewStickerSet
public CreateNewStickerSet()Creates a new sticker set. Returns the newly created sticker set.Returns
StickerSet
-
CreateNewStickerSet
public CreateNewStickerSet(long userId, String title, String name, boolean isMasks, TdApi.InputSticker[] stickers, String source) Creates a new sticker set. Returns the newly created sticker set.Returns
StickerSet
- Parameters:
userId
- long Sticker set owner; ignored for regular users.title
- String Sticker set title; 1-64 characters.name
- String Sticker set name. Can contain only English letters, digits and underscores. Must end with *"_by_<bot username>"* (*<botUsername>* is case insensitive) for bots; 1-64 characters.isMasks
- boolean True, if stickers are masks. Animated stickers can't be masks.stickers
- InputSticker[] List of stickers to be added to the set; must be non-empty. All stickers must be of the same type. For animated stickers, uploadStickerFile must be used before the sticker is shown.source
- String Source of the sticker set; may be empty if unknown.
-
CreateNewStickerSet
- Throws:
IOException
-
-
Method Details
-
getConstructor
public int getConstructor()- Specified by:
getConstructor
in classTdApi.Object
-
serialize
- Specified by:
serialize
in classTdApi.Object
- Throws:
IOException
-
equals
-
hashCode
public int hashCode()
-