1 | <?php |
||
5 | class InlineQueryResultGif extends InlineQueryResultAbstract |
||
6 | { |
||
7 | const ENTITY_TYPE = 'InlineQueryResultGif'; |
||
8 | |||
9 | const RESULT_TYPE = 'gif'; |
||
10 | |||
11 | protected $gif_url; |
||
12 | |||
13 | protected $gif_width; |
||
14 | |||
15 | protected $gif_height; |
||
16 | |||
17 | protected $caption; |
||
18 | |||
19 | protected $supportedProperties = [ |
||
20 | 'type' => true, |
||
21 | 'id' => true, |
||
22 | 'gif_url' => true, |
||
23 | 'gif_width' => false, |
||
24 | 'gif_height' => false, |
||
25 | 'thumb_url' => true, |
||
26 | 'title' => false, |
||
27 | 'caption' => false, |
||
28 | 'reply_markup' => false, |
||
29 | 'input_message_content' => true, |
||
30 | ]; |
||
31 | |||
32 | /** |
||
33 | * @return mixed |
||
34 | */ |
||
35 | public function getGifUrl() |
||
39 | |||
40 | /** |
||
41 | * @param string $gif_url |
||
42 | * |
||
43 | * @return $this |
||
44 | */ |
||
45 | public function setGifUrl($gif_url) |
||
51 | |||
52 | /** |
||
53 | * @return int |
||
54 | */ |
||
55 | public function getGifWidth() |
||
59 | |||
60 | /** |
||
61 | * @param int $gif_width |
||
62 | * |
||
63 | * @return $this |
||
64 | */ |
||
65 | public function setGifWidth($gif_width) |
||
71 | |||
72 | /** |
||
73 | * @return mixed |
||
74 | */ |
||
75 | public function getGifHeight() |
||
79 | |||
80 | /** |
||
81 | * @param int $gif_height |
||
82 | * |
||
83 | * @return $this |
||
84 | */ |
||
85 | public function setGifHeight($gif_height) |
||
91 | |||
92 | /** |
||
93 | * @return mixed |
||
94 | */ |
||
95 | public function getCaption() |
||
99 | |||
100 | /** |
||
101 | * @param mixed $caption |
||
102 | * |
||
103 | * @return $this |
||
104 | */ |
||
105 | public function setCaption($caption) |
||
111 | } |
||
112 |