java.lang.Object
io.micronaut.chatbots.telegram.api.Dice

public class Dice extends Object
This object represents an animated emoji that displays a random value. Dice
Since:
1.0.0
Author:
Sergio del Amo
  • Constructor Details

    • Dice

      public Dice()
  • Method Details

    • getEmoji

      @NonNull public @NonNull String getEmoji()
      Returns:
      Emoji on which the dice throw animation is based.
    • setEmoji

      public void setEmoji(@NonNull @NonNull String emoji)
      Parameters:
      emoji - Emoji on which the dice throw animation is based.
    • getValue

      @NonNull public @NonNull Integer getValue()
      Returns:
      Value of the dice, 1-6 for “🎲”, “🎯” and “🎳” base emoji, 1-5 for “🏀” and “⚽” base emoji, 1-64 for “🎰” base emoji.
    • setValue

      public void setValue(@NonNull @NonNull Integer value)
      Parameters:
      value - Value of the dice, 1-6 for “🎲”, “🎯” and “🎳” base emoji, 1-5 for “🏀” and “⚽” base emoji, 1-64 for “🎰” base emoji.