1 | <?php |
||
19 | class SendVideoNote 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 | * Video note to send. Pass a file_id as String to send a video note that exists on the Telegram servers |
||
29 | * (recommended) or upload a new video using multipart/form-data. Sending video notes by a URL is currently |
||
30 | * unsupported |
||
31 | * @see InputFile |
||
32 | * @see https://core.telegram.org/bots/api#sending-files |
||
33 | * @var string|InputFile |
||
34 | */ |
||
35 | public $video_note = ''; |
||
36 | |||
37 | /** |
||
38 | * Optional. Duration of sent video in seconds |
||
39 | * @var int |
||
40 | */ |
||
41 | public $duration = 0; |
||
42 | |||
43 | /** |
||
44 | * Video width and height |
||
45 | * @var int |
||
46 | */ |
||
47 | public $length = 0; |
||
48 | |||
49 | /** |
||
50 | * Optional. Sends the message silently. iOS users will not receive a notification, Android users will receive a |
||
51 | * notification with no sound. |
||
52 | * @see https://telegram.org/blog/channels-2-0#silent-messages |
||
53 | * @var bool |
||
54 | */ |
||
55 | public $disable_notification = false; |
||
56 | |||
57 | /** |
||
58 | * Optional. If the message is a reply, ID of the original message |
||
59 | * @var int |
||
60 | */ |
||
61 | public $reply_to_message_id = 0; |
||
62 | |||
63 | /** |
||
64 | * Optional. Additional interface options. A JSON-serialized object for a custom reply keyboard, instructions to |
||
65 | * hide keyboard or to force a reply from the user |
||
66 | * @var KeyboardMethods |
||
67 | */ |
||
68 | public $reply_markup; |
||
69 | |||
70 | public function getMandatoryFields(): array |
||
77 | } |
||
78 |