- Enclosing class:
- TdApi
Creates a new sticker set. Returns
the newly created sticker set.
Returns
StickerSet
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
Sticker set name.boolean
Pass true if stickers in the sticker set must be repainted; for custom emoji sticker sets only.Source of the sticker set; may be empty if unknown.Format of the stickers in the set.List of stickers to be added to the set; must be non-empty.Type of the stickers in the set.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, TdApi.StickerFormat stickerFormat, TdApi.StickerType stickerType, boolean needsRepainting, TdApi.InputSticker[] stickers, String source) Creates a new sticker set.CreateNewStickerSet
(DataInput input) Creates a new sticker set. -
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. -
stickerFormat
Format of the stickers in the set. -
stickerType
Type of the stickers in the set. -
needsRepainting
public boolean needsRepaintingPass true if stickers in the sticker set must be repainted; for custom emoji sticker sets only. -
stickers
List of stickers to be added to the set; must be non-empty. All stickers must have the same format. For TGS 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. ReturnsStickerSet
-
CreateNewStickerSet
public CreateNewStickerSet(long userId, String title, String name, TdApi.StickerFormat stickerFormat, TdApi.StickerType stickerType, boolean needsRepainting, TdApi.InputSticker[] stickers, String source) Creates a new sticker set. Returns the newly created sticker set. ReturnsStickerSet
- 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.stickerFormat
- StickerFormat Format of the stickers in the set.stickerType
- StickerType Type of the stickers in the set.needsRepainting
- boolean Pass true if stickers in the sticker set must be repainted; for custom emoji sticker sets only.stickers
- InputSticker[] List of stickers to be added to the set; must be non-empty. All stickers must have the same format. For TGS stickers, uploadStickerFile must be used before the sticker is shown.source
- String Source of the sticker set; may be empty if unknown.
-
CreateNewStickerSet
Creates a new sticker set. Returns the newly created sticker set. ReturnsStickerSet
- 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()
-