Class Sticker


public class Sticker extends AbstractFileWithDimensions
See Also:
  • Sticker This object represents a sticker.
  • Constructor Details

    • Sticker

      public Sticker()
  • Method Details

    • isAnimated

      @NonNull public @NonNull Boolean isAnimated()
      Returns:
      True, if the sticker is animated.
    • setAnimated

      public void setAnimated(@NonNull @NonNull Boolean animated)
      Parameters:
      animated - True, if the sticker is animated.
    • getThumb

      @Nullable public @Nullable PhotoSize getThumb()
      Returns:
      Sticker thumbnail in the .webp or .jpg format.
    • setThumb

      public void setThumb(@Nullable @Nullable PhotoSize thumb)
      Parameters:
      thumb - Sticker thumbnail in the .webp or .jpg format.
    • getEmoji

      @Nullable public @Nullable String getEmoji()
      Returns:
      Emoji associated with the sticker.
    • setEmoji

      public void setEmoji(@Nullable @Nullable String emoji)
      Parameters:
      emoji - Emoji associated with the sticker.
    • getName

      @Nullable public @Nullable String getName()
      Returns:
      Name of the sticker set to which the sticker belongs.
    • setName

      public void setName(@Nullable @Nullable String name)
      Parameters:
      name - setName of the sticker set to which the sticker belongs.
    • getMaskPosition

      @Nullable public @Nullable MaskPosition getMaskPosition()
      Returns:
      For mask stickers, the position where the mask should be placed.
    • setMaskPosition

      public void setMaskPosition(@Nullable @Nullable MaskPosition maskPosition)
      Parameters:
      maskPosition - For mask stickers, the position where the mask should be placed.
    • getFileSize

      @Nullable public @Nullable Integer getFileSize()
      Returns:
      File size.
    • setFileSize

      public void setFileSize(@Nullable @Nullable Integer fileSize)
      Parameters:
      fileSize - File size.
    • toString

      public String toString()
      Overrides:
      toString in class Object