1 | <?php |
||
22 | class SendVoice extends TelegramMethods |
||
23 | { |
||
24 | /** |
||
25 | * Unique identifier for the target chat or username of the target channel (in the format @channelusername) |
||
26 | * @var string |
||
27 | */ |
||
28 | public $chat_id = ''; |
||
29 | |||
30 | /** |
||
31 | * Audio file to send. Pass a file_id as String to send a file that exists on the Telegram servers (recommended), |
||
32 | * pass an HTTP URL as a String for Telegram to get a file from the Internet, or upload a new one using the |
||
33 | * InputFile class |
||
34 | * @see InputFile |
||
35 | * @var string|InputFile |
||
36 | */ |
||
37 | public $voice = ''; |
||
38 | |||
39 | /** |
||
40 | * Optional. Audio caption, 0-200 characters |
||
41 | * @var string |
||
42 | */ |
||
43 | public $caption = ''; |
||
44 | |||
45 | /** |
||
46 | * Optional. Send Markdown or HTML, if you want Telegram apps to show bold, italic, fixed-width text or inline URLs |
||
47 | * in the media caption |
||
48 | * @var string |
||
49 | */ |
||
50 | public $parse_mode = ''; |
||
51 | |||
52 | /** |
||
53 | * Optional. Duration of sent voice message in seconds |
||
54 | * @var int |
||
55 | */ |
||
56 | public $duration = 0; |
||
57 | |||
58 | /** |
||
59 | * Optional. Sends the message silently. iOS users will not receive a notification, Android users will receive a |
||
60 | * notification with no sound. |
||
61 | * @see https://telegram.org/blog/channels-2-0#silent-messages |
||
62 | * @var bool |
||
63 | */ |
||
64 | public $disable_notification = false; |
||
65 | |||
66 | /** |
||
67 | * Optional. If the message is a reply, ID of the original message |
||
68 | * @var int |
||
69 | */ |
||
70 | public $reply_to_message_id = 0; |
||
71 | |||
72 | /** |
||
73 | * Optional. Additional interface options. A JSON-serialized object for a custom reply keyboard, instructions to |
||
74 | * hide keyboard or to force a reply from the user |
||
75 | * @var KeyboardMethods |
||
76 | */ |
||
77 | public $reply_markup; |
||
78 | |||
79 | public function getMandatoryFields(): array |
||
86 | |||
87 | public function hasLocalFiles(): bool |
||
91 | |||
92 | public function getLocalFiles(): Generator |
||
96 | } |
||
97 |