Class Sticker
java.lang.Object
io.micronaut.chatbots.telegram.api.AbstractFile
io.micronaut.chatbots.telegram.api.AbstractFileWithDimensions
io.micronaut.chatbots.telegram.api.Sticker
- See Also:
-
- Sticker This object represents a sticker.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription@Nullable String
getEmoji()
@Nullable Integer
@Nullable MaskPosition
@Nullable String
getName()
@Nullable PhotoSize
getThumb()
@NonNull Boolean
void
setAnimated
(@NonNull Boolean animated) void
void
setFileSize
(@Nullable Integer fileSize) void
setMaskPosition
(@Nullable MaskPosition maskPosition) void
void
toString()
Methods inherited from class io.micronaut.chatbots.telegram.api.AbstractFileWithDimensions
getHeight, getWidth, setHeight, setWidth
Methods inherited from class io.micronaut.chatbots.telegram.api.AbstractFile
getFileId, getFileUniqueId, setFileId, setFileUniqueId
-
Constructor Details
-
Sticker
public Sticker()
-
-
Method Details
-
isAnimated
- Returns:
- True, if the sticker is animated.
-
setAnimated
- Parameters:
animated
- True, if the sticker is animated.
-
getThumb
- Returns:
- Sticker thumbnail in the .webp or .jpg format.
-
setThumb
- Parameters:
thumb
- Sticker thumbnail in the .webp or .jpg format.
-
getEmoji
- Returns:
- Emoji associated with the sticker.
-
setEmoji
- Parameters:
emoji
- Emoji associated with the sticker.
-
getName
- Returns:
- Name of the sticker set to which the sticker belongs.
-
setName
- Parameters:
name
- setName of the sticker set to which the sticker belongs.
-
getMaskPosition
- Returns:
- For mask stickers, the position where the mask should be placed.
-
setMaskPosition
- Parameters:
maskPosition
- For mask stickers, the position where the mask should be placed.
-
getFileSize
- Returns:
- File size.
-
setFileSize
- Parameters:
fileSize
- File size.
-
toString
-