| 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. Period in seconds for which the location will be updated (see Live Locations), should be between 60 and |
||
| 39 | * 86400 |
||
| 40 | * @var int |
||
| 41 | */ |
||
| 42 | public $live_period = 0; |
||
| 43 | |||
| 44 | /** |
||
| 45 | * Optional. Sends the message silently. iOS users will not receive a notification, Android users will receive a |
||
| 46 | * notification with no sound. |
||
| 47 | * @see https://telegram.org/blog/channels-2-0#silent-messages |
||
| 48 | * @var bool |
||
| 49 | */ |
||
| 50 | public $disable_notification = false; |
||
| 51 | |||
| 52 | /** |
||
| 53 | * If the message is a reply, ID of the original message |
||
| 54 | * @var int |
||
| 55 | */ |
||
| 56 | public $reply_to_message_id = 0; |
||
| 57 | |||
| 58 | /** |
||
| 59 | * Optional. Additional interface options. A JSON-serialized object for a custom reply keyboard, instructions to |
||
| 60 | * hide keyboard or to force a reply from the user. |
||
| 61 | * @var KeyboardMethods |
||
| 62 | */ |
||
| 63 | public $reply_markup; |
||
| 64 | |||
| 65 | 1 | public function getMandatoryFields(): array |
|
| 73 | } |
||
| 74 |