|
1
|
|
|
<?php |
|
2
|
|
|
|
|
3
|
|
|
namespace BPT\types; |
|
4
|
|
|
|
|
5
|
|
|
use stdClass; |
|
6
|
|
|
|
|
7
|
|
|
/** |
|
8
|
|
|
* This object represents the content of a message to be sent as a result of an inline query. |
|
9
|
|
|
* @method self setMessage_text(string $value) |
|
10
|
|
|
* @method self setParse_mode(string $value) |
|
11
|
|
|
* @method self setEntities(array $value) |
|
12
|
|
|
* @method self setDisable_web_page_preview(bool $value) |
|
13
|
|
|
* @method self setLatitude(float $value) |
|
14
|
|
|
* @method self setLongitude(float $value) |
|
15
|
|
|
* @method self setHorizontal_accuracy(float $value) |
|
16
|
|
|
* @method self setLive_period(int $value) |
|
17
|
|
|
* @method self setHeading(int $value) |
|
18
|
|
|
* @method self setProximity_alert_radius(int $value) |
|
19
|
|
|
* @method self setTitle(string $value) |
|
20
|
|
|
* @method self setAddress(string $value) |
|
21
|
|
|
* @method self setFoursquare_id(string $value) |
|
22
|
|
|
* @method self setFoursquare_type(string $value) |
|
23
|
|
|
* @method self setGoogle_place_id(string $value) |
|
24
|
|
|
* @method self setGoogle_place_type(string $value) |
|
25
|
|
|
* @method self setPhone_number(string $value) |
|
26
|
|
|
* @method self setFirst_name(string $value) |
|
27
|
|
|
* @method self setLast_name(string $value) |
|
28
|
|
|
* @method self setVcard(string $value) |
|
29
|
|
|
* @method self setDescription(string $value) |
|
30
|
|
|
* @method self setPayload(string $value) |
|
31
|
|
|
* @method self setProvider_token(string $value) |
|
32
|
|
|
* @method self setCurrency(string $value) |
|
33
|
|
|
* @method self setPrices(array $value) |
|
34
|
|
|
* @method self setMax_tip_amount(int $value) |
|
35
|
|
|
* @method self setSuggested_tip_amounts(array $value) |
|
36
|
|
|
* @method self setProvider_data(string $value) |
|
37
|
|
|
* @method self setPhoto_url(string $value) |
|
38
|
|
|
* @method self setPhoto_size(int $value) |
|
39
|
|
|
* @method self setPhoto_width(int $value) |
|
40
|
|
|
* @method self setPhoto_height(int $value) |
|
41
|
|
|
* @method self setNeed_name(bool $value) |
|
42
|
|
|
* @method self setNeed_phone_number(bool $value) |
|
43
|
|
|
* @method self setNeed_email(bool $value) |
|
44
|
|
|
* @method self setNeed_shipping_address(bool $value) |
|
45
|
|
|
* @method self setSend_phone_number_to_provider(bool $value) |
|
46
|
|
|
* @method self setSend_email_to_provider(bool $value) |
|
47
|
|
|
* @method self setIs_flexible(bool $value) |
|
48
|
|
|
*/ |
|
49
|
|
|
class inputMessageContent extends types { |
|
|
|
|
|
|
50
|
|
|
/** Keep all of properties which has sub properties */ |
|
51
|
|
|
private const subs = ['array' => ['entities' => 'BPT\types\messageEntity', 'prices' => 'BPT\types\labeledPrice']]; |
|
52
|
|
|
|
|
53
|
|
|
/** `text` only. Text of the message to be sent, 1-4096 characters */ |
|
54
|
|
|
public string $message_text; |
|
55
|
|
|
|
|
56
|
|
|
/** `text` only. Optional. Mode for parsing entities in the message text. See formatting options for more details. */ |
|
57
|
|
|
public string $parse_mode; |
|
58
|
|
|
|
|
59
|
|
|
/** |
|
60
|
|
|
* `text` only. Optional. List of special entities that appear in message text, which can be specified instead of parse_mode |
|
61
|
|
|
* @var messageEntity[] |
|
62
|
|
|
*/ |
|
63
|
|
|
public array $entities; |
|
64
|
|
|
|
|
65
|
|
|
/** `text` only. Optional. Disables link previews for links in the sent message */ |
|
66
|
|
|
public bool $disable_web_page_preview; |
|
67
|
|
|
|
|
68
|
|
|
/** `location` and `venue` only. Latitude in degrees */ |
|
69
|
|
|
public float $latitude; |
|
70
|
|
|
|
|
71
|
|
|
/** `location` and `venue` only. Longitude in degrees */ |
|
72
|
|
|
public float $longitude; |
|
73
|
|
|
|
|
74
|
|
|
/** `location` only. Optional. The radius of uncertainty for the location, measured in meters; 0-1500 */ |
|
75
|
|
|
public float $horizontal_accuracy; |
|
76
|
|
|
|
|
77
|
|
|
/** |
|
78
|
|
|
* `location` only. Optional. Period in seconds during which the location can be updated, should be between 60 and |
|
79
|
|
|
* 86400, or 0x7FFFFFFF for live locations that can be edited indefinitely. |
|
80
|
|
|
*/ |
|
81
|
|
|
public int $live_period; |
|
82
|
|
|
|
|
83
|
|
|
/** `location` only. Optional. For live locations, a direction in which the user is moving, in degrees. Must be between 1 and 360 if specified. */ |
|
84
|
|
|
public int $heading; |
|
85
|
|
|
|
|
86
|
|
|
/** |
|
87
|
|
|
* `location` only. Optional. For live locations, a maximum distance for proximity alerts about approaching another chat member, |
|
88
|
|
|
* in meters. Must be between 1 and 100000 if specified. |
|
89
|
|
|
*/ |
|
90
|
|
|
public int $proximity_alert_radius; |
|
91
|
|
|
|
|
92
|
|
|
/** `venue` and `invoice` only. name of the venue or product */ |
|
93
|
|
|
public string $title; |
|
94
|
|
|
|
|
95
|
|
|
/** `venue` only. Address of the venue */ |
|
96
|
|
|
public string $address; |
|
97
|
|
|
|
|
98
|
|
|
/** `venue` only. Optional. Foursquare identifier of the venue, if known */ |
|
99
|
|
|
public string $foursquare_id; |
|
100
|
|
|
|
|
101
|
|
|
/** |
|
102
|
|
|
* `venue` only. Optional. Foursquare type of the venue, if known. (For example, “arts_entertainment/default”, |
|
103
|
|
|
* “arts_entertainment/aquarium” or “food/icecream”.) |
|
104
|
|
|
*/ |
|
105
|
|
|
public string $foursquare_type; |
|
106
|
|
|
|
|
107
|
|
|
/** `venue` only. Optional. Google Places identifier of the venue */ |
|
108
|
|
|
public string $google_place_id; |
|
109
|
|
|
|
|
110
|
|
|
/** `venue` only. Optional. Google Places type of the venue. (See supported types.) */ |
|
111
|
|
|
public string $google_place_type; |
|
112
|
|
|
|
|
113
|
|
|
/** `contact` only. Contact's phone number */ |
|
114
|
|
|
public string $phone_number; |
|
115
|
|
|
|
|
116
|
|
|
/** `contact` only. Contact's first name */ |
|
117
|
|
|
public string $first_name; |
|
118
|
|
|
|
|
119
|
|
|
/** `contact` only. Optional. Contact's last name */ |
|
120
|
|
|
public string $last_name; |
|
121
|
|
|
|
|
122
|
|
|
/** `contact` only. Optional. Additional data about the contact in the form of a vCard, 0-2048 bytes */ |
|
123
|
|
|
public string $vcard; |
|
124
|
|
|
|
|
125
|
|
|
/** `invoice` only. Product description, 1-255 characters */ |
|
126
|
|
|
public string $description; |
|
127
|
|
|
|
|
128
|
|
|
/** |
|
129
|
|
|
* `invoice` only. Bot-defined invoice payload, 1-128 bytes. This will not be displayed to the user, use for your internal |
|
130
|
|
|
* processes. |
|
131
|
|
|
*/ |
|
132
|
|
|
public string $payload; |
|
133
|
|
|
|
|
134
|
|
|
/** `invoice` only. Optional. Payment provider token, obtained via BotFather */ |
|
135
|
|
|
public string $provider_token; |
|
136
|
|
|
|
|
137
|
|
|
/** `invoice` only. Three-letter ISO 4217 currency code, see more on currencies */ |
|
138
|
|
|
public string $currency; |
|
139
|
|
|
|
|
140
|
|
|
/** |
|
141
|
|
|
* `invoice` only. Price breakdown, a JSON-serialized list of components (e.g. product price, tax, discount, delivery cost, |
|
142
|
|
|
* delivery tax, bonus, etc.) |
|
143
|
|
|
* @var labeledPrice[] |
|
144
|
|
|
*/ |
|
145
|
|
|
public array $prices; |
|
146
|
|
|
|
|
147
|
|
|
/** |
|
148
|
|
|
* `invoice` only. Optional. The maximum accepted amount for tips in the smallest units of the currency (integer, not |
|
149
|
|
|
* float/double). For example, for a maximum tip of US$ 1.45 pass max_tip_amount = 145. See the exp parameter in |
|
150
|
|
|
* currencies.json, it shows the number of digits past the decimal point for each currency (2 for the majority of |
|
151
|
|
|
* currencies). Defaults to 0 |
|
152
|
|
|
*/ |
|
153
|
|
|
public int $max_tip_amount; |
|
154
|
|
|
|
|
155
|
|
|
/** |
|
156
|
|
|
* `invoice` only. Optional. A JSON-serialized array of suggested amounts of tip in the smallest units of the currency (integer, |
|
157
|
|
|
* not float/double). At most 4 suggested tip amounts can be specified. The suggested tip amounts must be |
|
158
|
|
|
* positive, passed in a strictly increased order and must not exceed max_tip_amount. |
|
159
|
|
|
* @var int[] |
|
160
|
|
|
*/ |
|
161
|
|
|
public array $suggested_tip_amounts; |
|
162
|
|
|
|
|
163
|
|
|
/** |
|
164
|
|
|
* `invoice` only. Optional. A JSON-serialized object for data about the invoice, which will be shared with the payment provider. |
|
165
|
|
|
* A detailed description of the required fields should be provided by the payment provider. |
|
166
|
|
|
*/ |
|
167
|
|
|
public string $provider_data; |
|
168
|
|
|
|
|
169
|
|
|
/** |
|
170
|
|
|
* `invoice` only. Optional. URL of the product photo for the invoice. Can be a photo of the goods or a marketing image for a |
|
171
|
|
|
* service. |
|
172
|
|
|
*/ |
|
173
|
|
|
public string $photo_url; |
|
174
|
|
|
|
|
175
|
|
|
/** `invoice` only. Optional. Photo size in bytes */ |
|
176
|
|
|
public int $photo_size; |
|
177
|
|
|
|
|
178
|
|
|
/** `invoice` only. Optional. Photo width */ |
|
179
|
|
|
public int $photo_width; |
|
180
|
|
|
|
|
181
|
|
|
/** `invoice` only. Optional. Photo height */ |
|
182
|
|
|
public int $photo_height; |
|
183
|
|
|
|
|
184
|
|
|
/** `invoice` only. Optional. Pass True, if you require the user's full name to complete the order */ |
|
185
|
|
|
public bool $need_name; |
|
186
|
|
|
|
|
187
|
|
|
/** `invoice` only. Optional. Pass True, if you require the user's phone number to complete the order */ |
|
188
|
|
|
public bool $need_phone_number; |
|
189
|
|
|
|
|
190
|
|
|
/** `invoice` only. Optional. Pass True, if you require the user's email address to complete the order */ |
|
191
|
|
|
public bool $need_email; |
|
192
|
|
|
|
|
193
|
|
|
/** `invoice` only. Optional. Pass True, if you require the user's shipping address to complete the order */ |
|
194
|
|
|
public bool $need_shipping_address; |
|
195
|
|
|
|
|
196
|
|
|
/** `invoice` only. Optional. Pass True, if the user's phone number should be sent to provider */ |
|
197
|
|
|
public bool $send_phone_number_to_provider; |
|
198
|
|
|
|
|
199
|
|
|
/** `invoice` only. Optional. Pass True, if the user's email address should be sent to provider */ |
|
200
|
|
|
public bool $send_email_to_provider; |
|
201
|
|
|
|
|
202
|
|
|
/** `invoice` only. Optional. Pass True, if the final price depends on the shipping method */ |
|
203
|
|
|
public bool $is_flexible; |
|
204
|
|
|
|
|
205
|
|
|
|
|
206
|
|
|
public function __construct(stdClass|null $object = null) { |
|
207
|
|
|
if ($object != null) { |
|
208
|
|
|
parent::__construct($object, self::subs); |
|
209
|
|
|
} |
|
210
|
|
|
} |
|
211
|
|
|
} |
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