|
1
|
|
|
<?php |
|
2
|
|
|
|
|
3
|
|
|
namespace BPT\types; |
|
4
|
|
|
|
|
5
|
|
|
use stdClass; |
|
6
|
|
|
|
|
7
|
|
|
/** |
|
8
|
|
|
* This object represents one button of the reply keyboard. At most one of the optional fields must be used to |
|
9
|
|
|
* specify type of the button. For simple text buttons, String can be used instead of this object to specify the |
|
10
|
|
|
* button text. |
|
11
|
|
|
* @method self setText(string $value) |
|
12
|
|
|
* @method self setRequest_users(keyboardButtonRequestUsers $value) |
|
13
|
|
|
* @method self setRequest_user(keyboardButtonRequestUser $value) This method is deprecated. use setRequest_users instead |
|
14
|
|
|
* @method self setRequest_chat(keyboardButtonRequestChat $value) |
|
15
|
|
|
* @method self setRequest_contact(bool $value) |
|
16
|
|
|
* @method self setRequest_location(bool $value) |
|
17
|
|
|
* @method self setRequest_poll(keyboardButtonPollType $value) |
|
18
|
|
|
* @method self setWeb_app(webAppInfo $value) |
|
19
|
|
|
*/ |
|
20
|
|
|
class keyboardButton extends types { |
|
|
|
|
|
|
21
|
|
|
/** Keep all properties which has sub properties */ |
|
22
|
|
|
private const subs = [ |
|
23
|
|
|
'request_users' => 'BPT\types\keyboardButtonRequestUsers', |
|
24
|
|
|
'request_user' => 'BPT\types\keyboardButtonRequestUser', |
|
25
|
|
|
'request_chat' => 'BPT\types\keyboardButtonRequestChat', |
|
26
|
|
|
'request_poll' => 'BPT\types\keyboardButtonPollType', |
|
27
|
|
|
'web_app' => 'BPT\types\webAppInfo' |
|
28
|
|
|
]; |
|
29
|
|
|
|
|
30
|
|
|
/** |
|
31
|
|
|
* Text of the button. If none of the optional fields are used, it will be sent as a message when the button is |
|
32
|
|
|
* pressed |
|
33
|
|
|
*/ |
|
34
|
|
|
public string $text; |
|
35
|
|
|
|
|
36
|
|
|
/** |
|
37
|
|
|
* Optional. If specified, pressing the button will open a list of suitable users. Identifiers of selected users |
|
38
|
|
|
* will be sent to the bot in a “users_shared” service message. Available in private chats only. |
|
39
|
|
|
*/ |
|
40
|
|
|
public keyboardButtonRequestUsers $request_users; |
|
41
|
|
|
|
|
42
|
|
|
/** |
|
43
|
|
|
* Optional. If specified, pressing the button will open a list of suitable users. Tapping on any user will send |
|
44
|
|
|
* their identifier to the bot in a “user_shared” service message. Available in private chats only. |
|
45
|
|
|
* |
|
46
|
|
|
* @deprecated use keyboardButtonRequestUsers instead |
|
47
|
|
|
*/ |
|
48
|
|
|
public keyboardButtonRequestUser $request_user; |
|
49
|
|
|
|
|
50
|
|
|
/** |
|
51
|
|
|
* Optional. If specified, pressing the button will open a list of suitable chats. Tapping on a chat will send |
|
52
|
|
|
* its identifier to the bot in a “chat_shared” service message. Available in private chats only. |
|
53
|
|
|
*/ |
|
54
|
|
|
public keyboardButtonRequestChat $request_chat; |
|
55
|
|
|
|
|
56
|
|
|
/** |
|
57
|
|
|
* Optional. If True, the user's phone number will be sent as a contact when the button is pressed. Available in |
|
58
|
|
|
* private chats only. |
|
59
|
|
|
*/ |
|
60
|
|
|
public bool $request_contact; |
|
61
|
|
|
|
|
62
|
|
|
/** |
|
63
|
|
|
* Optional. If True, the user's current location will be sent when the button is pressed. Available in private |
|
64
|
|
|
* chats only. |
|
65
|
|
|
*/ |
|
66
|
|
|
public bool $request_location; |
|
67
|
|
|
|
|
68
|
|
|
/** |
|
69
|
|
|
* Optional. If specified, the user will be asked to create a poll and send it to the bot when the button is |
|
70
|
|
|
* pressed. Available in private chats only. |
|
71
|
|
|
*/ |
|
72
|
|
|
public keyboardButtonPollType $request_poll; |
|
73
|
|
|
|
|
74
|
|
|
/** |
|
75
|
|
|
* Optional. If specified, the described Web App will be launched when the button is pressed. The Web App will be |
|
76
|
|
|
* able to send a “web_app_data” service message. Available in private chats only. |
|
77
|
|
|
*/ |
|
78
|
|
|
public webAppInfo $web_app; |
|
79
|
|
|
|
|
80
|
|
|
|
|
81
|
|
|
public function __construct(stdClass|null $object = null) { |
|
82
|
|
|
if ($object != null) { |
|
83
|
|
|
parent::__construct($object, self::subs); |
|
84
|
|
|
} |
|
85
|
|
|
} |
|
86
|
|
|
} |
|
87
|
|
|
|
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