1
|
|
|
<?php |
2
|
|
|
|
3
|
|
|
namespace BPT\types; |
4
|
|
|
|
5
|
|
|
use stdClass; |
6
|
|
|
|
7
|
|
|
/** |
8
|
|
|
* Represents a chat member that is under certain restrictions in the chat. Supergroups only. |
9
|
|
|
*/ |
10
|
|
|
class chatMemberRestricted extends types { |
|
|
|
|
11
|
|
|
/** Keep all of properties which has sub properties */ |
12
|
|
|
private const subs = ['user' => 'BPT\types\user']; |
13
|
|
|
|
14
|
|
|
/** The member's status in the chat, always “restricted” */ |
15
|
|
|
public string $status; |
16
|
|
|
|
17
|
|
|
/** Information about the user */ |
18
|
|
|
public user $user; |
|
|
|
|
19
|
|
|
|
20
|
|
|
/** True, if the user is a member of the chat at the moment of the request */ |
21
|
|
|
public bool $is_member; |
22
|
|
|
|
23
|
|
|
/** True, if the user is allowed to change the chat title, photo and other settings */ |
24
|
|
|
public bool $can_change_info; |
25
|
|
|
|
26
|
|
|
/** True, if the user is allowed to invite new users to the chat */ |
27
|
|
|
public bool $can_invite_users; |
28
|
|
|
|
29
|
|
|
/** True, if the user is allowed to pin messages */ |
30
|
|
|
public bool $can_pin_messages; |
31
|
|
|
|
32
|
|
|
/** True, if the user is allowed to send text messages, contacts, locations and venues */ |
33
|
|
|
public bool $can_send_messages; |
34
|
|
|
|
35
|
|
|
/** True, if the user is allowed to send audios, documents, photos, videos, video notes and voice notes */ |
36
|
|
|
public bool $can_send_media_messages; |
37
|
|
|
|
38
|
|
|
/** True, if the user is allowed to send polls */ |
39
|
|
|
public bool $can_send_polls; |
40
|
|
|
|
41
|
|
|
/** True, if the user is allowed to send animations, games, stickers and use inline bots */ |
42
|
|
|
public bool $can_send_other_messages; |
43
|
|
|
|
44
|
|
|
/** True, if the user is allowed to add web page previews to their messages */ |
45
|
|
|
public bool $can_add_web_page_previews; |
46
|
|
|
|
47
|
|
|
/** Date when restrictions will be lifted for this user; unix time. If 0, then the user is restricted forever */ |
48
|
|
|
public int $until_date; |
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