Package org.drinkless.tdlib
Class TdApi.CreateNewStickerSet
- java.lang.Object
-
- org.drinkless.tdlib.TdApi.Object
-
- org.drinkless.tdlib.TdApi.Function
-
- org.drinkless.tdlib.TdApi.CreateNewStickerSet
-
- Enclosing class:
- TdApi
public static class TdApi.CreateNewStickerSet extends TdApi.Function
Creates a new sticker set. Returns the newly created sticker set.Returns
StickerSet
-
-
Field Summary
Fields Modifier and Type Field Description static intCONSTRUCTORIdentifier uniquely determining type of the object.booleanisMasksTrue, if stickers are masks.StringnameSticker set name.StringsourceSource of the sticker set; may be empty if unknown.TdApi.InputSticker[]stickersList of stickers to be added to the set; must be non-empty.StringtitleSticker set title; 1-64 characters.longuserIdSticker set owner; ignored for regular users.
-
Constructor Summary
Constructors Constructor Description CreateNewStickerSet()Default constructor for a function, which creates a new sticker set.CreateNewStickerSet(long userId, String title, String name, boolean isMasks, TdApi.InputSticker[] stickers, String source)Creates a function, which creates a new sticker set.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetConstructor()-
Methods inherited from class org.drinkless.tdlib.TdApi.Function
toString
-
-
-
-
Field Detail
-
userId
public long userId
Sticker set owner; ignored for regular users.
-
title
public String title
Sticker set title; 1-64 characters.
-
name
public String 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 isMasks
True, if stickers are masks. Animated stickers can't be masks.
-
stickers
public TdApi.InputSticker[] 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
public String source
Source of the sticker set; may be empty if unknown.
-
CONSTRUCTOR
public static final int CONSTRUCTOR
Identifier uniquely determining type of the object.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
CreateNewStickerSet
public CreateNewStickerSet()
Default constructor for a function, which 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 function, which creates a new sticker set. Returns the newly created sticker set.Returns
StickerSet- Parameters:
userId- Sticker 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- True, 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.
-
-
Method Detail
-
getConstructor
public int getConstructor()
- Specified by:
getConstructorin classTdApi.Object- Returns:
- this.CONSTRUCTOR
-
-