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 | 'input_message_content' => true, |
||
28 | 'reply_markup' => false, |
||
29 | 'url' => false, |
||
30 | 'hide_url' => false, |
||
31 | 'description' => false, |
||
32 | 'thumb_url' => false, |
||
33 | 'thumb_width' => false, |
||
34 | 'thumb_height' => false, |
||
35 | ]; |
||
36 | |||
37 | /** |
||
38 | * @return mixed |
||
39 | */ |
||
40 | public function getMessageText() |
||
44 | |||
45 | /** |
||
46 | * @param mixed $message_text |
||
47 | * |
||
48 | * @return $this |
||
49 | */ |
||
50 | public function setMessageText($message_text) |
||
56 | |||
57 | /** |
||
58 | * @return mixed |
||
59 | */ |
||
60 | public function getUrl() |
||
64 | |||
65 | /** |
||
66 | * @param mixed $url |
||
67 | * |
||
68 | * @return $this |
||
69 | */ |
||
70 | public function setUrl($url) |
||
76 | |||
77 | /** |
||
78 | * @return mixed |
||
79 | */ |
||
80 | public function getHideUrl() |
||
84 | |||
85 | /** |
||
86 | * @param mixed $hide_url |
||
87 | * |
||
88 | * @return $this |
||
89 | */ |
||
90 | public function setHideUrl($hide_url) |
||
96 | |||
97 | /** |
||
98 | * @return mixed |
||
99 | */ |
||
100 | public function getDescription() |
||
104 | |||
105 | /** |
||
106 | * @param mixed $description |
||
107 | * |
||
108 | * @return $this |
||
109 | */ |
||
110 | public function setDescription($description) |
||
116 | |||
117 | /** |
||
118 | * @return mixed |
||
119 | */ |
||
120 | public function getThumbWidth() |
||
124 | |||
125 | /** |
||
126 | * @param mixed $thumb_width |
||
127 | * |
||
128 | * @return $this |
||
129 | */ |
||
130 | public function setThumbWidth($thumb_width) |
||
136 | |||
137 | /** |
||
138 | * @return mixed |
||
139 | */ |
||
140 | public function getThumbHeight() |
||
144 | |||
145 | /** |
||
146 | * @param mixed $thumb_height |
||
147 | * |
||
148 | * @return $this |
||
149 | */ |
||
150 | public function setThumbHeight($thumb_height) |
||
156 | } |
||
157 |