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