Class AddStickerToSet
java.lang.Object
org.telegram.telegrambots.meta.api.methods.PartialBotApiMethod<Boolean>
org.telegram.telegrambots.meta.api.methods.stickers.AddStickerToSet
- All Implemented Interfaces:
Validable
- Version:
- 1.0 Use this method to add a new sticker to a set created by the bot. The format of the added sticker must match the format of the other stickers in the set. Emoji sticker sets can have up to 200 stickers. Animated and video sticker sets can have up to 50 stickers. Static sticker sets can have up to 120 stickers. Returns True on success.
- Author:
- Ruben Bermudez
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
Deprecated.static final String
Deprecated.static final String
static final String
static final String
Deprecated.static final String
static final String
Deprecated.static final String
static final String
Deprecated.Fields inherited from class org.telegram.telegrambots.meta.api.methods.PartialBotApiMethod
OBJECT_MAPPER
-
Constructor Summary
-
Method Summary
Methods inherited from class org.telegram.telegrambots.meta.api.methods.PartialBotApiMethod
deserializeResponse, deserializeResponseArray, deserializeResponseSerializable
-
Field Details
-
PATH
- See Also:
-
USERID_FIELD
- See Also:
-
NAME_FIELD
- See Also:
-
STICKER_FIELD
- See Also:
-
PNGSTICKER_FIELD
Deprecated.- See Also:
-
TGSSTICKER_FIELD
Deprecated.- See Also:
-
WEBMSTICKER_FIELD
Deprecated.- See Also:
-
EMOJIS_FIELD
Deprecated.- See Also:
-
MASKPOSITION_FIELD
Deprecated.- See Also:
-
-
Constructor Details
-
AddStickerToSet
public AddStickerToSet()
-
-
Method Details
-
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
-
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
-
validate
Description copied from interface:Validable
Validates that mandatory fields are filled and optional objects- Throws:
TelegramApiValidationException
- If any mandatory field is empty
-