1
|
|
|
<?php |
2
|
|
|
|
3
|
|
|
namespace BPT\types; |
4
|
|
|
|
5
|
|
|
use stdClass; |
6
|
|
|
|
7
|
|
|
/** |
8
|
|
|
* This object represents an incoming update.At most one of the optional parameters can be present in any given |
9
|
|
|
* update. |
10
|
|
|
*/ |
11
|
|
|
class update extends types { |
|
|
|
|
12
|
|
|
/** Keep all of properties which has sub properties */ |
13
|
|
|
private const subs = [ |
14
|
|
|
'message' => 'BPT\types\message', |
15
|
|
|
'edited_message' => 'BPT\types\message', |
16
|
|
|
'channel_post' => 'BPT\types\message', |
17
|
|
|
'edited_channel_post' => 'BPT\types\message', |
18
|
|
|
'inline_query' => 'BPT\types\inlineQuery', |
19
|
|
|
'chosen_inline_result' => 'BPT\types\chosenInlineResult', |
20
|
|
|
'callback_query' => 'BPT\types\callbackQuery', |
21
|
|
|
'shipping_query' => 'BPT\types\shippingQuery', |
22
|
|
|
'pre_checkout_query' => 'BPT\types\preCheckoutQuery', |
23
|
|
|
'poll' => 'BPT\types\poll', |
24
|
|
|
'poll_answer' => 'BPT\types\pollAnswer', |
25
|
|
|
'my_chat_member' => 'BPT\types\chatMemberUpdated', |
26
|
|
|
'chat_member' => 'BPT\types\chatMemberUpdated', |
27
|
|
|
'chat_join_request' => 'BPT\types\chatJoinRequest', |
28
|
|
|
]; |
29
|
|
|
|
30
|
|
|
/** |
31
|
|
|
* The update's unique identifier. Update identifiers start from a certain positive number and increase |
32
|
|
|
* sequentially. This ID becomes especially handy if you're using Webhooks, since it allows you to ignore |
33
|
|
|
* repeated updates or to restore the correct update sequence, should they get out of order. If there are no new |
34
|
|
|
* updates for at least a week, then identifier of the next update will be chosen randomly instead of |
35
|
|
|
* sequentially. |
36
|
|
|
*/ |
37
|
|
|
public int $update_id; |
38
|
|
|
|
39
|
|
|
/** Optional. New incoming message of any kind — text, photo, sticker, etc. */ |
40
|
|
|
public message $message; |
41
|
|
|
|
42
|
|
|
/** Optional. New version of a message that is known to the bot and was edited */ |
43
|
|
|
public message $edited_message; |
44
|
|
|
|
45
|
|
|
/** Optional. New incoming channel post of any kind — text, photo, sticker, etc. */ |
46
|
|
|
public message $channel_post; |
47
|
|
|
|
48
|
|
|
/** Optional. New version of a channel post that is known to the bot and was edited */ |
49
|
|
|
public message $edited_channel_post; |
50
|
|
|
|
51
|
|
|
/** Optional. New incoming inline query */ |
52
|
|
|
public inlineQuery $inline_query; |
53
|
|
|
|
54
|
|
|
/** |
55
|
|
|
* Optional. The result of an inline query that was chosen by a user and sent to their chat partner. Please see |
56
|
|
|
* our documentation on the feedback collecting for details on how to enable these updates for your bot. |
57
|
|
|
*/ |
58
|
|
|
public chosenInlineResult $chosen_inline_result; |
59
|
|
|
|
60
|
|
|
/** Optional. New incoming callback query */ |
61
|
|
|
public callbackQuery $callback_query; |
62
|
|
|
|
63
|
|
|
/** Optional. New incoming shipping query. Only for invoices with flexible price */ |
64
|
|
|
public shippingQuery $shipping_query; |
65
|
|
|
|
66
|
|
|
/** Optional. New incoming pre-checkout query. Contains full information about checkout */ |
67
|
|
|
public preCheckoutQuery $pre_checkout_query; |
68
|
|
|
|
69
|
|
|
/** Optional. New poll state. Bots receive only updates about stopped polls and polls, which are sent by the bot */ |
70
|
|
|
public poll $poll; |
71
|
|
|
|
72
|
|
|
/** |
73
|
|
|
* Optional. A user changed their answer in a non-anonymous poll. Bots receive new votes only in polls that were |
74
|
|
|
* sent by the bot itself. |
75
|
|
|
*/ |
76
|
|
|
public pollAnswer $poll_answer; |
77
|
|
|
|
78
|
|
|
/** |
79
|
|
|
* Optional. The bot's chat member status was updated in a chat. For private chats, this update is received only |
80
|
|
|
* when the bot is blocked or unblocked by the user. |
81
|
|
|
*/ |
82
|
|
|
public chatMemberUpdated $my_chat_member; |
83
|
|
|
|
84
|
|
|
/** |
85
|
|
|
* Optional. A chat member's status was updated in a chat. The bot must be an administrator in the chat and must |
86
|
|
|
* explicitly specify “chat_member” in the list of allowed_updates to receive these updates. |
87
|
|
|
*/ |
88
|
|
|
public chatMemberUpdated $chat_member; |
89
|
|
|
|
90
|
|
|
/** |
91
|
|
|
* Optional. A request to join the chat has been sent. The bot must have the can_invite_users administrator right |
92
|
|
|
* in the chat to receive these updates. |
93
|
|
|
*/ |
94
|
|
|
public chatJoinRequest $chat_join_request; |
95
|
|
|
|
96
|
|
|
|
97
|
|
|
public function __construct(stdClass $update) { |
98
|
|
|
parent::__construct($update, self::subs); |
99
|
|
|
} |
100
|
|
|
} |
101
|
|
|
|
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