| 1 | <?php |
||
| 18 | class AnswerShippingQuery extends TelegramMethods |
||
| 19 | { |
||
| 20 | /** |
||
| 21 | * Unique identifier for the query to be answered |
||
| 22 | * @var string |
||
| 23 | */ |
||
| 24 | public $shipping_query_id = ''; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * Specify True if delivery to the specified address is possible and False if there are any problems (for example, |
||
| 28 | * if delivery to the specified address is not possible) |
||
| 29 | * @var bool |
||
| 30 | */ |
||
| 31 | public $ok; |
||
| 32 | |||
| 33 | /** |
||
| 34 | * Required if ok is True. A JSON-serialized array of available shipping options |
||
| 35 | * @var ShippingOption[] |
||
| 36 | */ |
||
| 37 | public $shipping_options = []; |
||
| 38 | |||
| 39 | /** |
||
| 40 | * Required if ok is False. Error message in human readable form that explains why it is impossible to complete the |
||
| 41 | * order (e.g. "Sorry, delivery to your desired address is unavailable'). Telegram will display this message to the |
||
| 42 | * user |
||
| 43 | * @var string |
||
| 44 | */ |
||
| 45 | public $error_message = ''; |
||
| 46 | |||
| 47 | public function getMandatoryFields(): array |
||
| 63 | } |
||
| 64 |