|
1
|
|
|
<?php |
|
2
|
|
|
|
|
3
|
|
|
namespace BPT\types; |
|
4
|
|
|
|
|
5
|
|
|
use stdClass; |
|
6
|
|
|
|
|
7
|
|
|
/** |
|
8
|
|
|
* Describes actions that a non-administrator user is allowed to take in a chat. |
|
9
|
|
|
*/ |
|
10
|
|
|
class chatPermissions extends types { |
|
|
|
|
|
|
11
|
|
|
/** Keep all of properties which has sub properties */ |
|
12
|
|
|
private const subs = []; |
|
13
|
|
|
|
|
14
|
|
|
/** Optional. True, if the user is allowed to send text messages, contacts, locations and venues */ |
|
15
|
|
|
public bool $can_send_messages; |
|
16
|
|
|
|
|
17
|
|
|
/** |
|
18
|
|
|
* Optional. True, if the user is allowed to send audios, documents, photos, videos, video notes and voice notes, |
|
19
|
|
|
* implies can_send_messages |
|
20
|
|
|
*/ |
|
21
|
|
|
public bool $can_send_media_messages; |
|
22
|
|
|
|
|
23
|
|
|
/** Optional. True, if the user is allowed to send polls, implies can_send_messages */ |
|
24
|
|
|
public bool $can_send_polls; |
|
25
|
|
|
|
|
26
|
|
|
/** |
|
27
|
|
|
* Optional. True, if the user is allowed to send animations, games, stickers and use inline bots, implies |
|
28
|
|
|
* can_send_media_messages |
|
29
|
|
|
*/ |
|
30
|
|
|
public bool $can_send_other_messages; |
|
31
|
|
|
|
|
32
|
|
|
/** |
|
33
|
|
|
* Optional. True, if the user is allowed to add web page previews to their messages, implies |
|
34
|
|
|
* can_send_media_messages |
|
35
|
|
|
*/ |
|
36
|
|
|
public bool $can_add_web_page_previews; |
|
37
|
|
|
|
|
38
|
|
|
/** |
|
39
|
|
|
* Optional. True, if the user is allowed to change the chat title, photo and other settings. Ignored in public |
|
40
|
|
|
* supergroups |
|
41
|
|
|
*/ |
|
42
|
|
|
public bool $can_change_info; |
|
43
|
|
|
|
|
44
|
|
|
/** Optional. True, if the user is allowed to invite new users to the chat */ |
|
45
|
|
|
public bool $can_invite_users; |
|
46
|
|
|
|
|
47
|
|
|
/** Optional. True, if the user is allowed to pin messages. Ignored in public supergroups */ |
|
48
|
|
|
public bool $can_pin_messages; |
|
49
|
|
|
|
|
50
|
|
|
|
|
51
|
|
|
public function __construct(stdClass $update) { |
|
52
|
|
|
parent::__construct($update, self::subs); |
|
53
|
|
|
} |
|
54
|
|
|
} |
|
55
|
|
|
|
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