Total Complexity | 2 |
Total Lines | 54 |
Duplicated Lines | 0 % |
Coverage | 0% |
Changes | 0 |
1 | <?php |
||
15 | class InputMediaAnimationType extends InputMediaType |
||
16 | { |
||
17 | use FillFromArrayTrait; |
||
18 | /** |
||
19 | * Optional. Thumbnail of the file sent. The thumbnail should be in JPEG format and less than 200 kB in size. |
||
20 | * A thumbnail‘s width and height should not exceed 90. |
||
21 | * Ignored if the file is not uploaded using multipart/form-data. |
||
22 | * Thumbnails can’t be reused and can be only uploaded as a new file, |
||
23 | * so you can pass “attach://<file_attach_name>” if the thumbnail was uploaded using |
||
24 | * multipart/form-data under <file_attach_name>. |
||
25 | * |
||
26 | * @var InputFileType|string|null |
||
27 | */ |
||
28 | public $thumb; |
||
29 | |||
30 | /** |
||
31 | * Optional. Animation width. |
||
32 | * |
||
33 | * @var int|null |
||
34 | */ |
||
35 | public $width; |
||
36 | |||
37 | /** |
||
38 | * Optional. Animation height. |
||
39 | * |
||
40 | * @var int|null |
||
41 | */ |
||
42 | public $height; |
||
43 | |||
44 | /** |
||
45 | * Optional. Animation duration. |
||
46 | * |
||
47 | * @var int|null |
||
48 | */ |
||
49 | public $duration; |
||
50 | |||
51 | /** |
||
52 | * @param string|\SplFileInfo $media |
||
53 | * @param array|null $data |
||
54 | * |
||
55 | * @throws \TgBotApi\BotApiBase\Exception\BadArgumentException |
||
56 | * |
||
57 | * @return InputMediaAnimationType |
||
58 | */ |
||
59 | public static function create($media, array $data = null): InputMediaAnimationType |
||
71 |