Class CreateNewStickerSet
java.lang.Object
org.telegram.telegrambots.meta.api.methods.PartialBotApiMethod<Boolean>
org.telegram.telegrambots.meta.api.methods.stickers.CreateNewStickerSet
- All Implemented Interfaces:
Validable
- Version:
- 1.0 Use this method to create a new sticker set owned by a user. The bot will be able to edit the sticker set thus created. You must use exactly one of the fields png_sticker, tgs_sticker, or webm_sticker. Returns True on success.
- Author:
- Ruben Bermudez
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
Deprecated.static final String
Deprecated.static final String
Deprecated.static final String
static final String
static final String
static final String
Deprecated.static final String
static final String
static final String
static final String
Deprecated.static final String
static final String
static final String
Deprecated.Fields inherited from class org.telegram.telegrambots.meta.api.methods.PartialBotApiMethod
OBJECT_MAPPER
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondeserializeResponse
(String answer) Deserialize a json answer to the response type to a methodDeprecated.Getter for method path (that is the same as method name)boolean
isMask()
Deprecated.boolean
Deprecated.void
setContainsMasks
(boolean containsMasks) Deprecated.Use#setStickerType(String)
void
validate()
Validates that mandatory fields are filled and optional objectsMethods inherited from class org.telegram.telegrambots.meta.api.methods.PartialBotApiMethod
deserializeResponse, deserializeResponseArray, deserializeResponseSerializable
-
Field Details
-
PATH
- See Also:
-
USERID_FIELD
- See Also:
-
STICKERS_FIELD
- See Also:
-
NAME_FIELD
- See Also:
-
TITLE_FIELD
- See Also:
-
STICKER_FORMAT_FIELD
- See Also:
-
STICKERTYPE_FIELD
- See Also:
-
NEEDS_REPAINTING_FIELD
- See Also:
-
PNGSTICKER_FIELD
Deprecated.- See Also:
-
TGSSTICKER_FIELD
Deprecated.- See Also:
-
WEBMSTICKER_FIELD
Deprecated.- See Also:
-
EMOJIS_FIELD
Deprecated.- See Also:
-
CONTAINSMASKS_FIELD
Deprecated.- See Also:
-
MASKPOSITION_FIELD
Deprecated.- See Also:
-
-
Constructor Details
-
CreateNewStickerSet
public CreateNewStickerSet()
-
-
Method Details
-
setContainsMasks
Deprecated.Use#setStickerType(String)
-
getContainsMasks
Deprecated.Use#getStickerType()
orisMask()
-
isRegularSticker
Deprecated. -
isMask
Deprecated. -
getMethod
Description copied from class:PartialBotApiMethod
Getter for method path (that is the same as method name)- Specified by:
getMethod
in classPartialBotApiMethod<Boolean>
- Returns:
- Method path
-
deserializeResponse
Description copied from class:PartialBotApiMethod
Deserialize a json answer to the response type to a method- Specified by:
deserializeResponse
in classPartialBotApiMethod<Boolean>
- Parameters:
answer
- Json answer received- Returns:
- Answer for the method
- Throws:
TelegramApiRequestException
-
validate
Description copied from interface:Validable
Validates that mandatory fields are filled and optional objects- Throws:
TelegramApiValidationException
- If any mandatory field is empty
-
#getStickerType()
orisMask()