| 1 | <?php |
||
| 17 | class SendLocation 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 | * Latitude of location |
||
| 27 | * @var float |
||
| 28 | */ |
||
| 29 | public $latitude = 0.0; |
||
| 30 | |||
| 31 | /** |
||
| 32 | * Longitude of location |
||
| 33 | * @var float |
||
| 34 | */ |
||
| 35 | public $longitude = 0.0; |
||
| 36 | |||
| 37 | /** |
||
| 38 | * Optional. Sends the message silently. iOS users will not receive a notification, Android users will receive a |
||
| 39 | * notification with no sound. |
||
| 40 | * @see https://telegram.org/blog/channels-2-0#silent-messages |
||
| 41 | * @var bool |
||
| 42 | */ |
||
| 43 | public $disable_notification = false; |
||
| 44 | |||
| 45 | /** |
||
| 46 | * If the message is a reply, ID of the original message |
||
| 47 | * @var int |
||
| 48 | */ |
||
| 49 | public $reply_to_message_id = 0; |
||
| 50 | |||
| 51 | /** |
||
| 52 | * Optional. Additional interface options. A JSON-serialized object for a custom reply keyboard, instructions to |
||
| 53 | * hide keyboard or to force a reply from the user. |
||
| 54 | * @var KeyboardMethods |
||
| 55 | */ |
||
| 56 | public $reply_markup; |
||
| 57 | |||
| 58 | 1 | public function getMandatoryFields(): array |
|
| 66 | } |
||
| 67 |