1 | <?php |
||
21 | class Audio extends AbstractInlineQueryResult |
||
22 | { |
||
23 | /** |
||
24 | * {@inheritdoc} |
||
25 | * |
||
26 | * @var array |
||
27 | */ |
||
28 | static protected $requiredParams = ['type', 'id', 'audio_url', 'title']; |
||
29 | |||
30 | /** |
||
31 | * {@inheritdoc} |
||
32 | * |
||
33 | * @var array |
||
34 | */ |
||
35 | static protected $map = [ |
||
36 | 'type' => true, |
||
37 | 'id' => true, |
||
38 | 'audio_url' => true, |
||
39 | 'title' => true, |
||
40 | 'performer' => true, |
||
41 | 'audio_duration' => true, |
||
42 | 'reply_markup' => InlineKeyboardMarkup::class, |
||
43 | 'input_message_content' => InputMessageContent::class, |
||
44 | ]; |
||
45 | |||
46 | /** |
||
47 | * {@inheritdoc} |
||
48 | * |
||
49 | * @var string |
||
50 | */ |
||
51 | protected $type = 'audio'; |
||
52 | |||
53 | /** |
||
54 | * A valid URL for the audio file |
||
55 | * |
||
56 | * @var string |
||
57 | */ |
||
58 | protected $audioUrl; |
||
59 | |||
60 | /** |
||
61 | * Optional. Performer |
||
62 | * |
||
63 | * @var string |
||
64 | */ |
||
65 | protected $performer; |
||
66 | |||
67 | /** |
||
68 | * Optional. Audio duration in seconds |
||
69 | * |
||
70 | * @var int |
||
71 | */ |
||
72 | protected $audioDuration; |
||
73 | |||
74 | /** |
||
75 | * Optional. Inline keyboard attached to the message |
||
76 | * |
||
77 | * @var InlineKeyboardMarkup |
||
78 | */ |
||
79 | protected $replyMarkup; |
||
80 | |||
81 | /** |
||
82 | * Optional. Content of the message to be sent instead of the audio |
||
83 | * |
||
84 | * @var InputMessageContent |
||
85 | */ |
||
86 | protected $inputMessageContent; |
||
87 | |||
88 | /** |
||
89 | * Audio constructor. |
||
90 | * |
||
91 | * @param string $id |
||
92 | * @param string $audioUrl |
||
93 | * @param string $title |
||
94 | * @param string $performer |
||
95 | * @param int $audioDuration |
||
96 | * @param InlineKeyboardMarkup $replyMarkup |
||
97 | * @param InputMessageContent $inputMessageContent |
||
98 | */ |
||
99 | public function __construct( |
||
116 | |||
117 | |||
118 | } |
||
119 |