sendDice method

Future<Message> sendDice(
  1. ChatID chatId, {
  2. Emoji? emoji,
  3. bool? disableNotification,
  4. bool? protectContent,
  5. int? replyToMessageId,
  6. bool? allowSendingWithoutReply,
  7. ReplyMarkup? replyMarkup,
})
inherited

Use this method to send an animated emoji that will display a random value.

On success, the sent Message is returned.

Implementation

Future<Message> sendDice(
  ChatID chatId, {
  Emoji? emoji,
  bool? disableNotification,
  bool? protectContent,
  int? replyToMessageId,
  bool? allowSendingWithoutReply,
  ReplyMarkup? replyMarkup,
}) {
  return _client.apiCall(_token, 'sendDice', {
    'chat_id': chatId,
    'emoji': emoji,
    'disable_notification': disableNotification,
    'protect_content': protectContent,
    'reply_to_message_id': replyToMessageId,
    'allow_sending_without_reply': allowSendingWithoutReply,
    'reply_markup': replyMarkup,
  });
}