1 | <?php |
||
24 | class SendAudio extends TelegramMethods |
||
25 | { |
||
26 | /** |
||
27 | * Unique identifier for the target chat or username of the target channel (in the format @channelusername) |
||
28 | * @var string |
||
29 | */ |
||
30 | public $chat_id = ''; |
||
31 | |||
32 | /** |
||
33 | * Audio file to send. Associate an InputFile with it |
||
34 | * |
||
35 | * @see unreal4u\TelegramAPI\Telegram\Types\Custom\InputFile |
||
36 | * @var InputFile |
||
37 | */ |
||
38 | public $audio = null; |
||
39 | |||
40 | /** |
||
41 | * Optional. Duration of the audio in seconds |
||
42 | * @var int |
||
43 | */ |
||
44 | public $duration = 0; |
||
45 | |||
46 | /** |
||
47 | * Optional. Performer |
||
48 | * @var string |
||
49 | */ |
||
50 | public $performer = ''; |
||
51 | |||
52 | /** |
||
53 | * Optional. Track name |
||
54 | * @var string |
||
55 | */ |
||
56 | public $title = ''; |
||
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 null |
||
76 | */ |
||
77 | public $reply_markup = null; |
||
78 | |||
79 | public function getMandatoryFields(): array |
||
86 | } |
||
87 |