1 | <?php |
||
5 | class InlineQueryResultArticle extends InlineQueryResultAbstract |
||
6 | { |
||
7 | const ENTITY_TYPE = 'InlineQueryResultArticle'; |
||
8 | |||
9 | const RESULT_TYPE = 'article'; |
||
10 | |||
11 | protected $message_text; |
||
12 | |||
13 | protected $url; |
||
14 | |||
15 | protected $hide_url; |
||
16 | |||
17 | protected $description; |
||
18 | |||
19 | protected $thumb_width; |
||
20 | |||
21 | protected $thumb_height; |
||
22 | |||
23 | protected $supportedProperties = [ |
||
24 | 'type' => true, |
||
25 | 'id' => true, |
||
26 | 'title' => true, |
||
27 | 'message_text' => true, |
||
28 | 'parse_mode' => false, |
||
29 | 'disable_web_page_preview' => false, |
||
30 | 'url' => false, |
||
31 | 'hide_url' => false, |
||
32 | 'description' => false, |
||
33 | 'thumb_url' => false, |
||
34 | 'thumb_width' => false, |
||
35 | 'thumb_height' => false, |
||
36 | ]; |
||
37 | |||
38 | /** |
||
39 | * @return mixed |
||
40 | */ |
||
41 | public function getMessageText() |
||
45 | |||
46 | /** |
||
47 | * @param mixed $message_text |
||
48 | * |
||
49 | * @return $this |
||
50 | */ |
||
51 | public function setMessageText($message_text) |
||
57 | |||
58 | /** |
||
59 | * @return mixed |
||
60 | */ |
||
61 | public function getUrl() |
||
65 | |||
66 | /** |
||
67 | * @param mixed $url |
||
68 | * |
||
69 | * @return $this |
||
70 | */ |
||
71 | public function setUrl($url) |
||
77 | |||
78 | /** |
||
79 | * @return mixed |
||
80 | */ |
||
81 | public function getHideUrl() |
||
85 | |||
86 | /** |
||
87 | * @param mixed $hide_url |
||
88 | * |
||
89 | * @return $this |
||
90 | */ |
||
91 | public function setHideUrl($hide_url) |
||
97 | |||
98 | /** |
||
99 | * @return mixed |
||
100 | */ |
||
101 | public function getDescription() |
||
105 | |||
106 | /** |
||
107 | * @param mixed $description |
||
108 | * |
||
109 | * @return $this |
||
110 | */ |
||
111 | public function setDescription($description) |
||
117 | |||
118 | /** |
||
119 | * @return mixed |
||
120 | */ |
||
121 | public function getThumbWidth() |
||
125 | |||
126 | /** |
||
127 | * @param mixed $thumb_width |
||
128 | * |
||
129 | * @return $this |
||
130 | */ |
||
131 | public function setThumbWidth($thumb_width) |
||
137 | |||
138 | /** |
||
139 | * @return mixed |
||
140 | */ |
||
141 | public function getThumbHeight() |
||
145 | |||
146 | /** |
||
147 | * @param mixed $thumb_height |
||
148 | * |
||
149 | * @return $this |
||
150 | */ |
||
151 | public function setThumbHeight($thumb_height) |
||
157 | } |
||
158 |