|
1
|
|
|
<?php |
|
2
|
|
|
|
|
3
|
|
|
namespace BPT\types; |
|
4
|
|
|
|
|
5
|
|
|
use stdClass; |
|
6
|
|
|
|
|
7
|
|
|
/** |
|
8
|
|
|
* This object represents one result of an inline query. |
|
9
|
|
|
* @method self setType(string $value) |
|
10
|
|
|
* @method self setId(string $value) |
|
11
|
|
|
* @method self setTitle(string $value) |
|
12
|
|
|
* @method self setInput_message_content(inputMessageContent $value) |
|
13
|
|
|
* @method self setReply_markup(inlineKeyboardMarkup $value) |
|
14
|
|
|
* @method self setUrl(string $value) |
|
15
|
|
|
* @method self setHide_url(bool $value) |
|
16
|
|
|
* @method self setDescription(string $value) |
|
17
|
|
|
* @method self setThumb_url(string $value) |
|
18
|
|
|
* @method self setThumb_width(int $value) |
|
19
|
|
|
* @method self setThumb_height(int $value) |
|
20
|
|
|
* @method self setPhoto_url(string $value) |
|
21
|
|
|
* @method self setPhoto_width(int $value) |
|
22
|
|
|
* @method self setPhoto_height(int $value) |
|
23
|
|
|
* @method self setCaption(string $value) |
|
24
|
|
|
* @method self setParse_mode(string $value) |
|
25
|
|
|
* @method self setCaption_entities(array $value) |
|
26
|
|
|
* @method self setGif_url(string $value) |
|
27
|
|
|
* @method self setGif_width(int $value) |
|
28
|
|
|
* @method self setGif_height(int $value) |
|
29
|
|
|
* @method self setGif_duration(int $value) |
|
30
|
|
|
* @method self setThumb_mime_type(string $value) |
|
31
|
|
|
* @method self setMpeg4_url(string $value) |
|
32
|
|
|
* @method self setMpeg4_width(int $value) |
|
33
|
|
|
* @method self setMpeg4_height(int $value) |
|
34
|
|
|
* @method self setMpeg4_duration(int $value) |
|
35
|
|
|
* @method self setVideo_url(string $value) |
|
36
|
|
|
* @method self setMime_type(string $value) |
|
37
|
|
|
* @method self setVideo_width(int $value) |
|
38
|
|
|
* @method self setVideo_height(int $value) |
|
39
|
|
|
* @method self setVideo_duration(int $value) |
|
40
|
|
|
* @method self setAudio_url(string $value) |
|
41
|
|
|
* @method self setPerformer(string $value) |
|
42
|
|
|
* @method self setAudio_duration(int $value) |
|
43
|
|
|
* @method self setVoice_url(string $value) |
|
44
|
|
|
* @method self setVoice_duration(int $value) |
|
45
|
|
|
* @method self setDocument_url(string $value) |
|
46
|
|
|
* @method self setLatitude(float $value) |
|
47
|
|
|
* @method self setLongitude(float $value) |
|
48
|
|
|
* @method self setHorizontal_accuracy(float $value) |
|
49
|
|
|
* @method self setLive_period(int $value) |
|
50
|
|
|
* @method self setHeading(int $value) |
|
51
|
|
|
* @method self setProximity_alert_radius(int $value) |
|
52
|
|
|
* @method self setAddress(string $value) |
|
53
|
|
|
* @method self setFoursquare_id(string $value) |
|
54
|
|
|
* @method self setFoursquare_type(string $value) |
|
55
|
|
|
* @method self setGoogle_place_id(string $value) |
|
56
|
|
|
* @method self setGoogle_place_type(string $value) |
|
57
|
|
|
* @method self setPhone_number(string $value) |
|
58
|
|
|
* @method self setFirst_name(string $value) |
|
59
|
|
|
* @method self setLast_name(string $value) |
|
60
|
|
|
* @method self setVcard(string $value) |
|
61
|
|
|
* @method self setGame_short_name(string $value) |
|
62
|
|
|
* @method self setPhoto_file_id(string $value) |
|
63
|
|
|
* @method self setGif_file_id(string $value) |
|
64
|
|
|
* @method self setMpeg4_file_id(string $value) |
|
65
|
|
|
* @method self setSticker_file_id(string $value) |
|
66
|
|
|
* @method self setDocument_file_id(string $value) |
|
67
|
|
|
* @method self setVideo_file_id(string $value) |
|
68
|
|
|
* @method self setVoice_file_id(string $value) |
|
69
|
|
|
* @method self setAudio_file_id(string $value) |
|
70
|
|
|
*/ |
|
71
|
|
|
class inlineQueryResult extends types { |
|
|
|
|
|
|
72
|
|
|
/** Keep all of properties which has sub properties */ |
|
73
|
|
|
private const subs = [ |
|
74
|
|
|
'input_message_content' => 'BPT\types\inputMessageContent', |
|
75
|
|
|
'reply_markup' => 'BPT\types\inlineKeyboardMarkup', |
|
76
|
|
|
'array' => ['caption_entities' => 'BPT\types\messageEntity'], |
|
77
|
|
|
]; |
|
78
|
|
|
|
|
79
|
|
|
/** |
|
80
|
|
|
* Type of the result, could be `article`, `sticker`, `location`, `venue`, `contact`, `game`, |
|
81
|
|
|
* |
|
82
|
|
|
* `photo`(photo and cashedPhoto), |
|
83
|
|
|
* |
|
84
|
|
|
* `gif`(gif and cashedGif), |
|
85
|
|
|
* |
|
86
|
|
|
* `mpeg4_gif`(mpeg4Gif and cachedMpeg4Gif), |
|
87
|
|
|
* |
|
88
|
|
|
* `video`(video and cashedVideo), |
|
89
|
|
|
* |
|
90
|
|
|
* `audio`(audio and cashedAudio), |
|
91
|
|
|
* |
|
92
|
|
|
* `voice`(voice and cashedVoice), |
|
93
|
|
|
* |
|
94
|
|
|
* `document`(document and cashedDocument) |
|
95
|
|
|
*/ |
|
96
|
|
|
public string $type; |
|
97
|
|
|
|
|
98
|
|
|
/** Unique identifier for this result, 1-64 Bytes */ |
|
99
|
|
|
public string $id; |
|
100
|
|
|
|
|
101
|
|
|
/** all types except `contact` and `sticker` and `game` and `cashedAudio`. Title */ |
|
102
|
|
|
public string $title; |
|
103
|
|
|
|
|
104
|
|
|
/** all types except `contact`. Content of the message to be sent */ |
|
105
|
|
|
public inputMessageContent $input_message_content; |
|
106
|
|
|
|
|
107
|
|
|
/** Optional. Inline keyboard attached to the message */ |
|
108
|
|
|
public inlineKeyboardMarkup $reply_markup; |
|
109
|
|
|
|
|
110
|
|
|
/** `article` only. Optional. URL of the result */ |
|
111
|
|
|
public string $url; |
|
112
|
|
|
|
|
113
|
|
|
/** `article` only. Optional. Pass True, if you don't want the URL to be shown in the message */ |
|
114
|
|
|
public bool $hide_url; |
|
115
|
|
|
|
|
116
|
|
|
/** |
|
117
|
|
|
* `article` and `photo` and `video` and `document` and `cachedPhoto` and `cachedDocument` and `cachedVideo` only. |
|
118
|
|
|
* Short description of the result |
|
119
|
|
|
*/ |
|
120
|
|
|
public string $description; |
|
121
|
|
|
|
|
122
|
|
|
/** |
|
123
|
|
|
* `article` and `photo` and `gif` and `mpeg4Gif` and `video` and `document` and `location` and `venue` and `contact` only. |
|
124
|
|
|
* Optional. Url of the thumbnail |
|
125
|
|
|
* |
|
126
|
|
|
* `gif` and `mpeg4Gif` could be jpeg or gif(fixed) or mpeg4(animate) |
|
127
|
|
|
* |
|
128
|
|
|
* `video` and `document` could be jpeg only |
|
129
|
|
|
*/ |
|
130
|
|
|
public string $thumbnail_url; |
|
131
|
|
|
|
|
132
|
|
|
/** `article` and `document` and `location` and `venue` and `contact` only. Optional. Thumbnail width */ |
|
133
|
|
|
public int $thumbnail_width; |
|
134
|
|
|
|
|
135
|
|
|
/** `article` and `document` and `location` and `venue` and `contact` only. Optional. Thumbnail height */ |
|
136
|
|
|
public int $thumbnail_height; |
|
137
|
|
|
|
|
138
|
|
|
/** `photo` only. A valid URL of the photo. Photo must be in JPEG format. Photo size must not exceed 5MB */ |
|
139
|
|
|
public string $photo_url; |
|
140
|
|
|
|
|
141
|
|
|
/** `photo` only. Optional. Width of the photo */ |
|
142
|
|
|
public int $photo_width; |
|
143
|
|
|
|
|
144
|
|
|
/** `photo` only. Optional. Height of the photo */ |
|
145
|
|
|
public int $photo_height; |
|
146
|
|
|
|
|
147
|
|
|
/** |
|
148
|
|
|
* `photo` and `gif` and `mpeg4Gif` and `video` and `audio` and `voice` and `document` and `cachedPhoto` and |
|
149
|
|
|
* `cachedGif` and `cachedMpeg4Gif` and `cachedDocument` and `cachedVideo` and `cachedVoice` and `cachedAudio` only. |
|
150
|
|
|
* Optional. Caption, 0-1024 characters after entities parsing |
|
151
|
|
|
*/ |
|
152
|
|
|
public string $caption; |
|
153
|
|
|
|
|
154
|
|
|
/** |
|
155
|
|
|
* `photo` and `gif` and `mpeg4Gif` and `video` and `audio` and `voice` and `document` and `cachedPhoto` and |
|
156
|
|
|
* `cachedGif` and `cachedMpeg4Gif` and `cachedDocument` and `cachedVideo` and `cachedVoice` and `cachedAudio` only. |
|
157
|
|
|
* Optional. Mode for parsing entities in the caption. See formatting options for more details. |
|
158
|
|
|
*/ |
|
159
|
|
|
public string $parse_mode; |
|
160
|
|
|
|
|
161
|
|
|
/** |
|
162
|
|
|
* `photo` and `gif` and `mpeg4Gif` and `video` and `audio` and `voice` and `document` and `cachedPhoto` and |
|
163
|
|
|
* `cachedGif` and `cachedMpeg4Gif` and `cachedDocument` and `cachedVideo` and `cachedVoice` and `cachedAudio` only. |
|
164
|
|
|
* Optional. List of special entities that appear in the caption, which can be specified instead of parse_mode |
|
165
|
|
|
* @var messageEntity[] |
|
166
|
|
|
*/ |
|
167
|
|
|
public array $caption_entities; |
|
168
|
|
|
|
|
169
|
|
|
/** |
|
170
|
|
|
* `photo` and `gif` and `mpeg4Gif` and `video` and `cachedPhoto` and `cachedGif` and `cachedMpeg4Gif` and |
|
171
|
|
|
* `cachedVideo` only. Optional. Pass True, if the caption must be shown above the message media |
|
172
|
|
|
*/ |
|
173
|
|
|
public bool $show_caption_above_media; |
|
174
|
|
|
|
|
175
|
|
|
/** `gif` only. A valid URL for the GIF file. File size must not exceed 1MB */ |
|
176
|
|
|
public string $gif_url; |
|
177
|
|
|
|
|
178
|
|
|
/** `gif` only. Optional. Width of the GIF */ |
|
179
|
|
|
public int $gif_width; |
|
180
|
|
|
|
|
181
|
|
|
/** `gif` only. Optional. Height of the GIF */ |
|
182
|
|
|
public int $gif_height; |
|
183
|
|
|
|
|
184
|
|
|
/** `gif` only. Optional. Duration of the GIF in seconds */ |
|
185
|
|
|
public int $gif_duration; |
|
186
|
|
|
|
|
187
|
|
|
/** `gif` and `mpeg4Gif` only. could be `application/pdf` or `application/zip` or `video/mp4`. default : `image/jpeg` */ |
|
188
|
|
|
public string $thumbnail_mime_type; |
|
189
|
|
|
|
|
190
|
|
|
/** `mpeg4Gif` only. A valid URL for the MPEG4 file. File size must not exceed 1MB */ |
|
191
|
|
|
public string $mpeg4_url; |
|
192
|
|
|
|
|
193
|
|
|
/** `mpeg4Gif` only. Optional. Video width */ |
|
194
|
|
|
public int $mpeg4_width; |
|
195
|
|
|
|
|
196
|
|
|
/** `mpeg4Gif` only. Optional. Video height */ |
|
197
|
|
|
public int $mpeg4_height; |
|
198
|
|
|
|
|
199
|
|
|
/** `mpeg4Gif` only. Optional. Video duration in seconds */ |
|
200
|
|
|
public int $mpeg4_duration; |
|
201
|
|
|
|
|
202
|
|
|
/** `video` only. A valid URL for the embedded video player or video file */ |
|
203
|
|
|
public string $video_url; |
|
204
|
|
|
|
|
205
|
|
|
/** |
|
206
|
|
|
* `video` or `document` only. MIME type of the content |
|
207
|
|
|
* |
|
208
|
|
|
* `video` could be `text/html` or `video/mp4` |
|
209
|
|
|
* |
|
210
|
|
|
* `document` could be `application/pdf` or `application/zip` |
|
211
|
|
|
*/ |
|
212
|
|
|
public string $mime_type; |
|
213
|
|
|
|
|
214
|
|
|
/** `video` only. Optional. Video width */ |
|
215
|
|
|
public int $video_width; |
|
216
|
|
|
|
|
217
|
|
|
/** `video` only. Optional. Video height */ |
|
218
|
|
|
public int $video_height; |
|
219
|
|
|
|
|
220
|
|
|
/** `video` only. Optional. Video duration in seconds */ |
|
221
|
|
|
public int $video_duration; |
|
222
|
|
|
|
|
223
|
|
|
/** `audio` only. A valid URL for the audio file */ |
|
224
|
|
|
public string $audio_url; |
|
225
|
|
|
|
|
226
|
|
|
/** `audio` only. Optional. Performer */ |
|
227
|
|
|
public string $performer; |
|
228
|
|
|
|
|
229
|
|
|
/** `audio` only. Optional. Audio duration in seconds */ |
|
230
|
|
|
public int $audio_duration; |
|
231
|
|
|
|
|
232
|
|
|
/** `voice` only. A valid URL for the voice recording */ |
|
233
|
|
|
public string $voice_url; |
|
234
|
|
|
|
|
235
|
|
|
/** `voice` only. Optional. Recording duration in seconds */ |
|
236
|
|
|
public int $voice_duration; |
|
237
|
|
|
|
|
238
|
|
|
/** `document` only. A valid URL for the file */ |
|
239
|
|
|
public string $document_url; |
|
240
|
|
|
|
|
241
|
|
|
/** `location` and `venue` only. latitude in degrees */ |
|
242
|
|
|
public float $latitude; |
|
243
|
|
|
|
|
244
|
|
|
/** `location` and `venue` only. longitude in degrees */ |
|
245
|
|
|
public float $longitude; |
|
246
|
|
|
|
|
247
|
|
|
/** `location` only. Optional. The radius of uncertainty for the location, measured in meters; 0-1500 */ |
|
248
|
|
|
public float $horizontal_accuracy; |
|
249
|
|
|
|
|
250
|
|
|
/** |
|
251
|
|
|
* `location` only. Optional. Period in seconds during which the location can be updated, should be between 60 and 86400, or |
|
252
|
|
|
* 0x7FFFFFFF for live locations that can be edited indefinitely. |
|
253
|
|
|
*/ |
|
254
|
|
|
public int $live_period; |
|
255
|
|
|
|
|
256
|
|
|
/** |
|
257
|
|
|
* `location` only. Optional. For live locations, a direction in which the user is moving, in degrees. Must be between 1 and 360 |
|
258
|
|
|
* if specified. |
|
259
|
|
|
*/ |
|
260
|
|
|
public int $heading; |
|
261
|
|
|
|
|
262
|
|
|
/** |
|
263
|
|
|
* `location` only. Optional. For live locations, a maximum distance for proximity alerts about approaching another chat member, |
|
264
|
|
|
* in meters. Must be between 1 and 100000 if specified. |
|
265
|
|
|
*/ |
|
266
|
|
|
public int $proximity_alert_radius; |
|
267
|
|
|
|
|
268
|
|
|
/** `venue` only. Address of the venue */ |
|
269
|
|
|
public string $address; |
|
270
|
|
|
|
|
271
|
|
|
/** `venue` only. Optional. Foursquare identifier of the venue if known */ |
|
272
|
|
|
public string $foursquare_id; |
|
273
|
|
|
|
|
274
|
|
|
/** |
|
275
|
|
|
* `venue` only. Optional. Foursquare type of the venue, if known. (For example, “arts_entertainment/default”, |
|
276
|
|
|
* “arts_entertainment/aquarium” or “food/icecream”.) |
|
277
|
|
|
*/ |
|
278
|
|
|
public string $foursquare_type; |
|
279
|
|
|
|
|
280
|
|
|
/** `venue` only. Optional. Google Places identifier of the venue */ |
|
281
|
|
|
public string $google_place_id; |
|
282
|
|
|
|
|
283
|
|
|
/** `venue` only. Optional. Google Places type of the venue. (See supported types.) */ |
|
284
|
|
|
public string $google_place_type; |
|
285
|
|
|
|
|
286
|
|
|
/** `contact` only. Contact's phone number */ |
|
287
|
|
|
public string $phone_number; |
|
288
|
|
|
|
|
289
|
|
|
/** `contact` only. Contact's first name */ |
|
290
|
|
|
public string $first_name; |
|
291
|
|
|
|
|
292
|
|
|
/** `contact` only. Optional. Contact's last name */ |
|
293
|
|
|
public string $last_name; |
|
294
|
|
|
|
|
295
|
|
|
/** `contact` only. Optional. Additional data about the contact in the form of a vCard, 0-2048 bytes */ |
|
296
|
|
|
public string $vcard; |
|
297
|
|
|
|
|
298
|
|
|
/** `game` only. Short name of the game */ |
|
299
|
|
|
public string $game_short_name; |
|
300
|
|
|
|
|
301
|
|
|
/** `cachedPhoto` only. A valid file identifier of the photo */ |
|
302
|
|
|
public string $photo_file_id; |
|
303
|
|
|
|
|
304
|
|
|
/** `cachedGif` only. A valid file identifier for the GIF file */ |
|
305
|
|
|
public string $gif_file_id; |
|
306
|
|
|
|
|
307
|
|
|
/** `cachedMpeg4Gif` only. A valid file identifier for the MPEG4 file */ |
|
308
|
|
|
public string $mpeg4_file_id; |
|
309
|
|
|
|
|
310
|
|
|
/** `cachedSticker` only. A valid file identifier of the sticker */ |
|
311
|
|
|
public string $sticker_file_id; |
|
312
|
|
|
|
|
313
|
|
|
/** `cachedDocument` only. A valid file identifier for the file */ |
|
314
|
|
|
public string $document_file_id; |
|
315
|
|
|
|
|
316
|
|
|
/** `cachedVideo` only. A valid file identifier for the video file */ |
|
317
|
|
|
public string $video_file_id; |
|
318
|
|
|
|
|
319
|
|
|
/** `cachedVoice` only. A valid file identifier for the voice message */ |
|
320
|
|
|
public string $voice_file_id; |
|
321
|
|
|
|
|
322
|
|
|
/** `cachedAudio` only. A valid file identifier for the audio file */ |
|
323
|
|
|
public string $audio_file_id; |
|
324
|
|
|
|
|
325
|
|
|
|
|
326
|
|
|
public function __construct(stdClass|null $object = null) { |
|
327
|
|
|
if ($object != null) { |
|
328
|
|
|
parent::__construct($object, self::subs); |
|
329
|
|
|
} |
|
330
|
|
|
} |
|
331
|
|
|
} |
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths