public class SendDice extends SendBuilder<SendDice,Message>
SendDice class. Returns Message on success.
Since:
3 March 2025
See Also:
  • Constructor Details

    • SendDice

      public SendDice(Object chatId, Api api)
      Required
      Parameters:
      chatId - chat id
      api - api
  • Method Details

    • emoji

      public SendDice emoji(String emoji)
      Optional
      Parameters:
      emoji - Emoji on which the dice throw animation is based. Currently, must be one of “🎲”, “🎯”, “🏀”, “⚽”, “🎳”, or “🎰”. Dice can have values 1-6 for “🎲”, “🎯” and “🎳”, values 1-5 for “🏀” and “⚽”, and values 1-64 for “🎰”. Defaults to “🎲”
      Returns:
      SendDice