Class TdApi.CreateNewStickerSet
java.lang.Object
dev.voroby.springframework.telegram.client.TdApi.Object
dev.voroby.springframework.telegram.client.TdApi.Function<TdApi.StickerSet>
dev.voroby.springframework.telegram.client.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
Identifier uniquely determining type of the object.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.List of stickers to be added to the set; 1-200 stickers for custom emoji sticker sets, and 1-120 stickers otherwise.Type of the stickers in the set.Sticker set title; 1-64 characters.long
Sticker set owner; ignored for regular users. -
Constructor Summary
ConstructorDescriptionDefault constructor for a function, which creates a new sticker set.CreateNewStickerSet
(long userId, String title, String name, TdApi.StickerType stickerType, boolean needsRepainting, TdApi.InputSticker[] stickers, String source) Creates a function, which creates a new sticker set. -
Method Summary
Modifier and TypeMethodDescriptionint
Returns an identifier uniquely determining type of the object.Methods inherited from class dev.voroby.springframework.telegram.client.TdApi.Function
toString
-
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; 0-64 characters. If empty, then the name returned by getSuggestedStickerSetName will be used automatically. -
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; 1-200 stickers for custom emoji sticker sets, and 1-120 stickers otherwise. 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 CONSTRUCTORIdentifier uniquely determining type of the object.- See Also:
-
-
Constructor Details
-
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, TdApi.StickerType stickerType, boolean needsRepainting, 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; 0-64 characters. If empty, then the name returned by getSuggestedStickerSetName will be used automatically.stickerType
- Type of the stickers in the set.needsRepainting
- Pass 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; 1-200 stickers for custom emoji sticker sets, and 1-120 stickers otherwise. For TGS stickers, uploadStickerFile must be used before the sticker is shown.source
- Source of the sticker set; may be empty if unknown.
-
-
Method Details
-
getConstructor
public int getConstructor()Description copied from class:TdApi.Object
Returns an identifier uniquely determining type of the object.- Specified by:
getConstructor
in classTdApi.Object
- Returns:
- this.CONSTRUCTOR
-