1 | <?php |
||
5 | class InlineQueryResultVideo extends InlineQueryResultAbstract |
||
6 | { |
||
7 | const ENTITY_TYPE = 'InlineQueryResultVideo'; |
||
8 | |||
9 | const RESULT_TYPE = 'video'; |
||
10 | |||
11 | const MIME_TYPE_HTML = 'text/html'; |
||
12 | |||
13 | const MIME_TYPE_MP4 = 'video/mp4'; |
||
14 | |||
15 | protected $video_url; |
||
16 | |||
17 | protected $mime_type; |
||
18 | |||
19 | protected $message_text; |
||
20 | |||
21 | protected $video_width; |
||
22 | |||
23 | protected $video_height; |
||
24 | |||
25 | protected $video_duration; |
||
26 | |||
27 | protected $description; |
||
28 | |||
29 | protected $supportedProperties = [ |
||
30 | 'type' => true, |
||
31 | 'id' => true, |
||
32 | 'video_url' => true, |
||
33 | 'mime_type' => true, |
||
34 | 'message_text' => true, |
||
35 | 'title' => true, |
||
36 | 'parse_mode' => false, |
||
37 | 'disable_web_page_preview' => false, |
||
38 | 'video_width' => false, |
||
39 | 'video_height' => false, |
||
40 | 'video_duration' => false, |
||
41 | 'thumb_url' => true, |
||
42 | 'description' => false, |
||
43 | 'reply_markup' => false, |
||
44 | 'input_message_content' => true, |
||
45 | ]; |
||
46 | |||
47 | /** |
||
48 | * @return mixed |
||
49 | */ |
||
50 | public function getVideoUrl() |
||
54 | |||
55 | /** |
||
56 | * @param mixed $video_url |
||
57 | * |
||
58 | * @return $this |
||
59 | */ |
||
60 | public function setVideoUrl($video_url) |
||
66 | |||
67 | /** |
||
68 | * @return mixed |
||
69 | */ |
||
70 | public function getMimeType() |
||
74 | |||
75 | /** |
||
76 | * @param mixed $mime_type |
||
77 | * |
||
78 | * @return $this |
||
79 | */ |
||
80 | public function setMimeType($mime_type) |
||
86 | |||
87 | /** |
||
88 | * @return $this |
||
89 | */ |
||
90 | public function setMimeTypeHTML() |
||
96 | |||
97 | /** |
||
98 | * @return $this |
||
99 | */ |
||
100 | public function setMimeTypeMp4() |
||
106 | |||
107 | /** |
||
108 | * @return mixed |
||
109 | */ |
||
110 | public function getMessageText() |
||
114 | |||
115 | /** |
||
116 | * @param mixed $message_text |
||
117 | * |
||
118 | * @return $this |
||
119 | */ |
||
120 | public function setMessageText($message_text) |
||
126 | |||
127 | /** |
||
128 | * @return mixed |
||
129 | */ |
||
130 | public function getVideoWidth() |
||
134 | |||
135 | /** |
||
136 | * @param mixed $video_width |
||
137 | * |
||
138 | * @return $this |
||
139 | */ |
||
140 | public function setVideoWidth($video_width) |
||
146 | |||
147 | /** |
||
148 | * @return mixed |
||
149 | */ |
||
150 | public function getVideoHeight() |
||
154 | |||
155 | /** |
||
156 | * @param mixed $video_height |
||
157 | * |
||
158 | * @return $this |
||
159 | */ |
||
160 | public function setVideoHeight($video_height) |
||
166 | |||
167 | /** |
||
168 | * @return mixed |
||
169 | */ |
||
170 | public function getVideoDuration() |
||
174 | |||
175 | /** |
||
176 | * @param mixed $video_duration |
||
177 | * |
||
178 | * @return $this |
||
179 | */ |
||
180 | public function setVideoDuration($video_duration) |
||
186 | |||
187 | /** |
||
188 | * @return mixed |
||
189 | */ |
||
190 | public function getDescription() |
||
194 | |||
195 | /** |
||
196 | * @param mixed $description |
||
197 | * |
||
198 | * @return $this |
||
199 | */ |
||
200 | public function setDescription($description) |
||
206 | } |
||
207 |