|
1
|
|
|
<?php |
|
2
|
|
|
|
|
3
|
|
|
namespace BPT\types; |
|
4
|
|
|
|
|
5
|
|
|
use CURLFile; |
|
6
|
|
|
use stdClass; |
|
7
|
|
|
|
|
8
|
|
|
/** |
|
9
|
|
|
* This object represents the content of a media message to be sent. |
|
10
|
|
|
* @method self setType(string $value) |
|
11
|
|
|
* @method self setMedia(string $value) |
|
12
|
|
|
* @method self setCaption(string $value) |
|
13
|
|
|
* @method self setParse_mode(string $value) |
|
14
|
|
|
* @method self setCaption_entities(messageEntity[] $value) |
|
15
|
|
|
* @method self setHas_spoiler(bool $value) |
|
16
|
|
|
* @method self setThumbnail(CURLFile|string $value) |
|
17
|
|
|
* @method self setWidth(int $value) |
|
18
|
|
|
* @method self setHeight(int $value) |
|
19
|
|
|
* @method self setDuration(int $value) |
|
20
|
|
|
* @method self setSupports_streaming(bool $value) |
|
21
|
|
|
* @method self setPerformer(string $value) |
|
22
|
|
|
* @method self setTitle(string $value) |
|
23
|
|
|
* @method self setDisable_content_type_detection(bool $value) |
|
24
|
|
|
*/ |
|
25
|
|
|
class inputMedia extends types { |
|
|
|
|
|
|
26
|
|
|
/** Keep all properties which has sub properties */ |
|
27
|
|
|
private const subs = [ |
|
28
|
|
|
'thumbnail' => 'CURLFile', |
|
29
|
|
|
'array' => ['caption_entities' => 'BPT\types\messageEntity'] |
|
30
|
|
|
]; |
|
31
|
|
|
|
|
32
|
|
|
/** Type of the result could be `photo`, `video`, `animation`, `audio`, `document` */ |
|
33
|
|
|
public string $type; |
|
34
|
|
|
/** |
|
35
|
|
|
* File to send. Pass a file_id to send a file that exists on the Telegram servers (recommended), pass an HTTP |
|
36
|
|
|
* URL for Telegram to get a file from the Internet, or pass “attach://<file_attach_name>” to upload a new |
|
37
|
|
|
*/ |
|
38
|
|
|
public string $media; |
|
39
|
|
|
|
|
40
|
|
|
/** Optional. Caption of the photo to be sent, 0-1024 characters after entities parsing */ |
|
41
|
|
|
public string $caption; |
|
42
|
|
|
|
|
43
|
|
|
/** Optional. Mode for parsing entities in the photo caption. See formatting options for more details. */ |
|
44
|
|
|
public string $parse_mode; |
|
45
|
|
|
|
|
46
|
|
|
/** |
|
47
|
|
|
* Optional. List of special entities that appear in the caption, which can be specified instead of parse_mode |
|
48
|
|
|
* @var messageEntity[] |
|
49
|
|
|
*/ |
|
50
|
|
|
public array $caption_entities; |
|
51
|
|
|
|
|
52
|
|
|
/** `video` and `animation` and `photo` only. Optional. Pass True, if the caption must be shown above the message media */ |
|
53
|
|
|
public bool $show_caption_above_media; |
|
54
|
|
|
|
|
55
|
|
|
/** `video` and `animation` and `photo` only. Optional. Pass True if the photo needs to be covered with a spoiler animation */ |
|
56
|
|
|
public bool $has_spoiler; |
|
57
|
|
|
|
|
58
|
|
|
/** |
|
59
|
|
|
* all types except `photo`. Thumbnail of the file sent; can be ignored if thumbnail generation for the file is supported |
|
60
|
|
|
* server-side. The thumbnail should be in JPEG format and less than 200 kB in size. A thumbnail's width and |
|
61
|
|
|
* height should not exceed 320. Ignored if the file is not uploaded using multipart/form-data. Thumbnails can't |
|
62
|
|
|
* be reused and can be only uploaded as a new file, so you can pass “attach://<file_attach_name>” if the |
|
63
|
|
|
* thumbnail was uploaded using multipart/form-data under <file_attach_name>. |
|
64
|
|
|
*/ |
|
65
|
|
|
public CURLFile|string $thumbnail; |
|
66
|
|
|
|
|
67
|
|
|
/** `video` and `animation` only. width */ |
|
68
|
|
|
public int $width; |
|
69
|
|
|
|
|
70
|
|
|
/** `video` and `animation` only. Optional. height */ |
|
71
|
|
|
public int $height; |
|
72
|
|
|
|
|
73
|
|
|
/** `video` and `animation` and `audio` only. Optional. duration in seconds*/ |
|
74
|
|
|
public int $duration; |
|
75
|
|
|
|
|
76
|
|
|
/** `video` only. Optional. Pass True, if the uploaded video is suitable for streaming */ |
|
77
|
|
|
public bool $supports_streaming; |
|
78
|
|
|
|
|
79
|
|
|
/** `audio` only. Optional. Performer of the audio */ |
|
80
|
|
|
public string $performer; |
|
81
|
|
|
|
|
82
|
|
|
/** `audio` only. Optional. Title of the audio */ |
|
83
|
|
|
public string $title; |
|
84
|
|
|
|
|
85
|
|
|
/** |
|
86
|
|
|
* `document` only. Optional. Disables automatic server-side content type detection for files uploaded using multipart/form-data. |
|
87
|
|
|
* Always True, if the document is sent as part of an album. |
|
88
|
|
|
*/ |
|
89
|
|
|
public bool $disable_content_type_detection; |
|
90
|
|
|
|
|
91
|
|
|
|
|
92
|
|
|
public function __construct(stdClass|null $object = null) { |
|
93
|
|
|
if ($object != null) { |
|
94
|
|
|
parent::__construct($object, self::subs); |
|
95
|
|
|
} |
|
96
|
|
|
} |
|
97
|
|
|
} |
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