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:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@Nullable StringgetEmoji()@Nullable Integer@Nullable MaskPosition@Nullable StringgetName()@Nullable PhotoSizegetThumb()@NonNull BooleanvoidsetAnimated(@NonNull Boolean animated) voidvoidsetFileSize(@Nullable Integer fileSize) voidsetMaskPosition(@Nullable MaskPosition maskPosition) voidvoidtoString()Methods inherited from class io.micronaut.chatbots.telegram.api.AbstractFileWithDimensions
getHeight, getWidth, setHeight, setWidthMethods 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
-