Package it.tdlight.jni
Class TdApi.CreateNewStickerSet
java.lang.Object
it.tdlight.jni.TdApi.Object
it.tdlight.jni.TdApi.Function
it.tdlight.jni.TdApi.CreateNewStickerSet
- Enclosing class:
- TdApi
public static class TdApi.CreateNewStickerSet extends TdApi.Function
Creates a new sticker set; for bots
only. Returns the newly created sticker set.
Returns StickerSet
-
Field Summary
Fields Modifier and Type Field Description static int
CONSTRUCTOR
boolean
isMasks
True, if stickers are masks.String
name
Sticker set name.TdApi.InputSticker[]
stickers
List of stickers to be added to the set; must be non-empty.String
title
Sticker set title; 1-64 characters.int
userId
Sticker set owner. -
Constructor Summary
Constructors Constructor Description CreateNewStickerSet()
Creates a new sticker set; for bots only.CreateNewStickerSet(int userId, String title, String name, boolean isMasks, TdApi.InputSticker[] stickers)
Creates a new sticker set; for bots only.CreateNewStickerSet(DataInput input)
-
Method Summary
Modifier and Type Method Description boolean
equals(Object o)
int
getConstructor()
int
hashCode()
void
serialize(DataOutputStream output)
Methods inherited from class it.tdlight.jni.TdApi.Function
toString
Methods inherited from class it.tdlight.jni.TdApi.Object
serialize
-
Field Details
-
userId
public int userIdSticker set owner. -
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); 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. -
CONSTRUCTOR
public static final int CONSTRUCTOR- See Also:
- Constant Field Values
-
-
Constructor Details
-
CreateNewStickerSet
public CreateNewStickerSet()Creates a new sticker set; for bots only. Returns the newly created sticker set.Returns
StickerSet
-
CreateNewStickerSet
public CreateNewStickerSet(int userId, String title, String name, boolean isMasks, TdApi.InputSticker[] stickers)Creates a new sticker set; for bots only. Returns the newly created sticker set.Returns
StickerSet
- Parameters:
userId
- int Sticker set owner.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); 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.
-
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()
-