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