1 | <?php |
||
11 | class InputMediaVideo extends InputMedia |
||
12 | { |
||
13 | /** |
||
14 | * {@inheritdoc} |
||
15 | * |
||
16 | * @var array |
||
17 | */ |
||
18 | static protected $map = [ |
||
19 | 'type' => true, |
||
20 | 'media' => true, |
||
21 | 'caption' => true, |
||
22 | 'parse_mode' => true, |
||
23 | 'width' => true, |
||
24 | 'height' => true, |
||
25 | 'duration' => true, |
||
26 | 'supports_streaming' => true |
||
27 | ]; |
||
28 | |||
29 | /** |
||
30 | * Optional. Video width. |
||
31 | * |
||
32 | * @var string |
||
33 | */ |
||
34 | protected $width; |
||
35 | |||
36 | /** |
||
37 | * Optional. Video height. |
||
38 | * |
||
39 | * @var string |
||
40 | */ |
||
41 | protected $height; |
||
42 | |||
43 | /** |
||
44 | * Optional. Video duration. |
||
45 | * |
||
46 | * @var string |
||
47 | */ |
||
48 | protected $duration; |
||
49 | |||
50 | /** |
||
51 | * Optional. Pass True, if the uploaded video is suitable for streaming. |
||
52 | * |
||
53 | * @var bool |
||
54 | */ |
||
55 | protected $supportsStreaming; |
||
56 | |||
57 | /** |
||
58 | * InputMediaVideo constructor. |
||
59 | * |
||
60 | * @param string $media |
||
61 | * @param null $caption |
||
62 | * @param null $parseMode |
||
63 | * @param null $width |
||
64 | * @param null $height |
||
65 | * @param null $duration |
||
66 | * @param bool $supportsStreaming |
||
67 | */ |
||
68 | public function __construct( |
||
86 | |||
87 | /** |
||
88 | * @return string |
||
89 | */ |
||
90 | public function getWidth() |
||
94 | |||
95 | /** |
||
96 | * @param string $width |
||
97 | */ |
||
98 | public function setWidth($width) |
||
102 | |||
103 | /** |
||
104 | * @return string |
||
105 | */ |
||
106 | public function getHeight() |
||
110 | |||
111 | /** |
||
112 | * @param string $height |
||
113 | */ |
||
114 | public function setHeight($height) |
||
118 | |||
119 | /** |
||
120 | * @return string |
||
121 | */ |
||
122 | public function getDuration() |
||
126 | |||
127 | /** |
||
128 | * @param string $duration |
||
129 | */ |
||
130 | public function setDuration($duration) |
||
134 | |||
135 | /** |
||
136 | * @return bool |
||
137 | */ |
||
138 | public function getSupportsStreaming() |
||
142 | |||
143 | /** |
||
144 | * @param bool $supportsStreaming |
||
145 | */ |
||
146 | public function setSupportsStreaming($supportsStreaming) |
||
150 | } |
||
151 |