for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace unreal4u\TelegramAPI\Telegram\Methods;
use unreal4u\TelegramAPI\Abstracts\KeyboardMethods;
use unreal4u\TelegramAPI\Abstracts\TelegramMethods;
/**
* Use this method to send an animated emoji that will display a random value. On success, the sent Message is returned.
*
* Objects defined as-is June 2020, Bot API v4.9
* @see https://core.telegram.org/bots/api#senddice
*/
class SendDice extends TelegramMethods
{
* Unique identifier for the target chat or username of the target channel (in the format @channelusername)
* @var string
public $chat_id = '';
* Optional. Emoji on which the dice throw animation is based. Currently, must be one of “🎲”, “🎯”, or “🏀”. Dice can
* have values 1-6 for “🎲” and “🎯”, and values 1-5 for “🏀”. Defaults to “🎲”
public $emoji = '🎲';
* Optional. Sends the message silently. iOS users will not receive a notification, Android users will receive a
* notification with no sound.
* @see https://telegram.org/blog/channels-2-0#silent-messages
* @var bool
public $disable_notification = false;
* If the message is a reply, ID of the original message
* @var int
public $reply_to_message_id = 0;
* Optional. Additional interface options. A JSON-serialized object for a custom reply keyboard, instructions to
* hide keyboard or to force a reply from the user.
* @var KeyboardMethods
public $reply_markup;
public function getMandatoryFields(): array
return [
'chat_id',
];
}