1 | <?php |
||
19 | class SendDocument extends TelegramMethods |
||
20 | { |
||
21 | /** |
||
22 | * Unique identifier for the target chat or username of the target channel (in the format @channelusername) |
||
23 | * @var string |
||
24 | */ |
||
25 | public $chat_id = ''; |
||
26 | |||
27 | /** |
||
28 | * File to send. Pass a file_id as String to send a file that exists on the Telegram servers (recommended), pass an |
||
29 | * HTTP URL as a String for Telegram to get a file from the Internet, or upload a new one using the InputFile class |
||
30 | * |
||
31 | * @see InputFile |
||
32 | * @var string|InputFile |
||
33 | */ |
||
34 | public $document = ''; |
||
35 | |||
36 | /** |
||
37 | * Optional. Document caption (may also be used when resending documents by file_id), 0-200 characters |
||
38 | * @var string |
||
39 | */ |
||
40 | public $caption = ''; |
||
41 | |||
42 | /** |
||
43 | * Optional. Sends the message silently. iOS users will not receive a notification, Android users will receive a |
||
44 | * notification with no sound. |
||
45 | * @see https://telegram.org/blog/channels-2-0#silent-messages |
||
46 | * @var bool |
||
47 | */ |
||
48 | public $disable_notification = false; |
||
49 | |||
50 | /** |
||
51 | * Optional. If the message is a reply, ID of the original message |
||
52 | * @var int |
||
53 | */ |
||
54 | public $reply_to_message_id = 0; |
||
55 | |||
56 | /** |
||
57 | * Optional. Additional interface options. A JSON-serialized object for a custom reply keyboard, instructions to |
||
58 | * hide keyboard or to force a reply from the user |
||
59 | * @var KeyboardMethods |
||
60 | */ |
||
61 | public $reply_markup; |
||
62 | |||
63 | 1 | public function getMandatoryFields(): array |
|
70 | } |
||
71 |