| 1 | <?php |
||
| 17 | class SendDice extends TelegramMethods |
||
| 18 | { |
||
| 19 | /** |
||
| 20 | * Unique identifier for the target chat or username of the target channel (in the format @channelusername) |
||
| 21 | * @var string |
||
| 22 | */ |
||
| 23 | public $chat_id = ''; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * Optional. Emoji on which the dice throw animation is based. Currently, must be one of “🎲”, “🎯”, or “🏀”. Dice can |
||
| 27 | * have values 1-6 for “🎲” and “🎯”, and values 1-5 for “🏀”. Defaults to “🎲” |
||
| 28 | * |
||
| 29 | * @var string |
||
| 30 | */ |
||
| 31 | public $emoji = '🎲'; |
||
| 32 | |||
| 33 | /** |
||
| 34 | * Optional. Sends the message silently. iOS users will not receive a notification, Android users will receive a |
||
| 35 | * notification with no sound. |
||
| 36 | * @see https://telegram.org/blog/channels-2-0#silent-messages |
||
| 37 | * @var bool |
||
| 38 | */ |
||
| 39 | public $disable_notification = false; |
||
| 40 | |||
| 41 | /** |
||
| 42 | * If the message is a reply, ID of the original message |
||
| 43 | * @var int |
||
| 44 | */ |
||
| 45 | public $reply_to_message_id = 0; |
||
| 46 | |||
| 47 | /** |
||
| 48 | * Optional. Additional interface options. A JSON-serialized object for a custom reply keyboard, instructions to |
||
| 49 | * hide keyboard or to force a reply from the user. |
||
| 50 | * @var KeyboardMethods |
||
| 51 | */ |
||
| 52 | public $reply_markup; |
||
| 53 | |||
| 54 | public function getMandatoryFields(): array |
||
| 60 | } |
||
| 61 |