Passed
Push — main ( 36dc31...e0778d )
by Miaad
10:46
created
src/types/businessConnection.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@
 block discarded – undo
35 35
     public bool $is_enabled;
36 36
 
37 37
 
38
-    public function __construct(stdClass|null $object = null) {
38
+    public function __construct(stdClass | null $object = null) {
39 39
         if ($object != null) {
40 40
             parent::__construct($object, self::subs);
41 41
         }
Please login to merge, or discard this patch.
src/types/video.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -32,23 +32,23 @@  discard block
 block discarded – undo
32 32
     public int $duration;
33 33
 
34 34
     /** Optional. Video thumbnail */
35
-    public null|photoSize $thumbnail = null;
35
+    public null | photoSize $thumbnail = null;
36 36
 
37 37
     /** Optional. Original filename as defined by sender */
38
-    public null|string $file_name = null;
38
+    public null | string $file_name = null;
39 39
 
40 40
     /** Optional. MIME type of the file as defined by sender */
41
-    public null|string $mime_type = null;
41
+    public null | string $mime_type = null;
42 42
 
43 43
     /**
44 44
      * Optional. File size in bytes. It can be bigger than 2^31 and some programming languages may have
45 45
      * difficulty/silent defects in interpreting it. But it has at most 52 significant bits, so a signed 64-bit
46 46
      * integer or double-precision float type are safe for storing this value.
47 47
      */
48
-    public null|int $file_size = null;
48
+    public null | int $file_size = null;
49 49
 
50 50
 
51
-    public function __construct(stdClass|null $object = null) {
51
+    public function __construct(stdClass | null $object = null) {
52 52
         if ($object != null) {
53 53
             parent::__construct($object, self::subs);
54 54
         }
@@ -69,8 +69,8 @@  discard block
 block discarded – undo
69 69
      *
70 70
      * @return bool|string string will be returned when destination doesn't set
71 71
      */
72
-    public function download(string|null $destination = null): bool|string {
73
-        return telegram::downloadFile($destination ?? $this->file_name ?? 'unknown.mp4',$this->file_id);
72
+    public function download(string | null $destination = null): bool | string {
73
+        return telegram::downloadFile($destination ?? $this->file_name ?? 'unknown.mp4', $this->file_id);
74 74
     }
75 75
 
76 76
     /**
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
         return telegram::fileLink($this->file_id);
85 85
     }
86 86
 
87
-    public function typedSize (int $precision = 2, bool $space_between = true): string {
87
+    public function typedSize(int $precision = 2, bool $space_between = true): string {
88 88
         return tools::byteFormat($this->file_id, $precision, $space_between);
89 89
     }
90 90
 }
Please login to merge, or discard this patch.
src/types/encryptedPassportElement.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -28,13 +28,13 @@  discard block
 block discarded – undo
28 28
      * “personal_details”, “passport”, “driver_license”, “identity_card”, “internal_passport” and
29 29
      * “address” types. Can be decrypted and verified using the accompanying EncryptedCredentials.
30 30
      */
31
-    public null|string $data = null;
31
+    public null | string $data = null;
32 32
 
33 33
     /** Optional. User's verified phone number, available only for “phone_number” type */
34
-    public null|string $phone_number = null;
34
+    public null | string $phone_number = null;
35 35
 
36 36
     /** Optional. User's verified email address, available only for “email” type */
37
-    public null|string $email = null;
37
+    public null | string $email = null;
38 38
 
39 39
     /**
40 40
      * Optional. Array of encrypted files with documents provided by the user; available only for “utility_bill”,
@@ -42,28 +42,28 @@  discard block
 block discarded – undo
42 42
      * types. Files can be decrypted and verified using the accompanying EncryptedCredentials.
43 43
      * @var passportFile[]
44 44
      */
45
-    public null|array $files = null;
45
+    public null | array $files = null;
46 46
 
47 47
     /**
48 48
      * Optional. Encrypted file with the front side of the document, provided by the user; available only for
49 49
      * “passport”, “driver_license”, “identity_card” and “internal_passport”. The file can be
50 50
      * decrypted and verified using the accompanying EncryptedCredentials.
51 51
      */
52
-    public null|passportFile $front_side = null;
52
+    public null | passportFile $front_side = null;
53 53
 
54 54
     /**
55 55
      * Optional. Encrypted file with the reverse side of the document, provided by the user; available only for
56 56
      * “driver_license” and “identity_card”. The file can be decrypted and verified using the accompanying
57 57
      * EncryptedCredentials.
58 58
      */
59
-    public null|passportFile $reverse_side = null;
59
+    public null | passportFile $reverse_side = null;
60 60
 
61 61
     /**
62 62
      * Optional. Encrypted file with the selfie of the user holding a document, provided by the user; available if
63 63
      * requested for “passport”, “driver_license”, “identity_card” and “internal_passport”. The file
64 64
      * can be decrypted and verified using the accompanying EncryptedCredentials.
65 65
      */
66
-    public null|passportFile $selfie = null;
66
+    public null | passportFile $selfie = null;
67 67
 
68 68
     /**
69 69
      * Optional. Array of encrypted files with translated versions of documents provided by the user; available if
@@ -73,13 +73,13 @@  discard block
 block discarded – undo
73 73
      * EncryptedCredentials.
74 74
      * @var passportFile[]
75 75
      */
76
-    public null|array $translation = null;
76
+    public null | array $translation = null;
77 77
 
78 78
     /** Base64-encoded element hash for using in PassportElementErrorUnspecified */
79 79
     public string $hash;
80 80
 
81 81
 
82
-    public function __construct(stdClass|null $object = null) {
82
+    public function __construct(stdClass | null $object = null) {
83 83
         if ($object != null) {
84 84
             parent::__construct($object, self::subs);
85 85
         }
Please login to merge, or discard this patch.
src/types/chatBackground.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@
 block discarded – undo
17 17
     public backgroundType $type;
18 18
 
19 19
 
20
-    public function __construct(stdClass|null $object = null) {
20
+    public function __construct(stdClass | null $object = null) {
21 21
         if ($object != null) {
22 22
             parent::__construct($object, self::subs);
23 23
         }
Please login to merge, or discard this patch.
src/types/businessOpeningHoursInterval.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
24 24
     public int $closing_minute;
25 25
 
26 26
 
27
-    public function __construct(stdClass|null $object = null) {
27
+    public function __construct(stdClass | null $object = null) {
28 28
         if ($object != null) {
29 29
             parent::__construct($object, self::subs);
30 30
         }
Please login to merge, or discard this patch.
src/types/inlineQuery.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -31,13 +31,13 @@  discard block
 block discarded – undo
31 31
      * should be always known for requests sent from official clients and most third-party clients, unless the
32 32
      * request was sent from a secret chat
33 33
      */
34
-    public null|string $chat_type = null;
34
+    public null | string $chat_type = null;
35 35
 
36 36
     /** Optional. Sender location, only for bots that request user location */
37
-    public null|location $location = null;
37
+    public null | location $location = null;
38 38
 
39 39
 
40
-    public function __construct(stdClass|null $object = null) {
40
+    public function __construct(stdClass | null $object = null) {
41 41
         if ($object != null) {
42 42
             parent::__construct($object, self::subs);
43 43
         }
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
      *
57 57
      * @return responseError|bool
58 58
      */
59
-    public function answer(array $results, int|null $cache_time = null, bool|null $is_personal = null, string|null $next_offset = null, object|array|null $button = null, bool $answer = null): responseError|bool {
59
+    public function answer(array $results, int | null $cache_time = null, bool | null $is_personal = null, string | null $next_offset = null, object | array | null $button = null, bool $answer = null): responseError | bool {
60 60
         return telegram::answerInlineQuery(results: $results, inline_query_id: $this->id, cache_time: $cache_time, is_personal: $is_personal, next_offset: $next_offset, button: $button, answer: $answer);
61 61
     }
62 62
 }
Please login to merge, or discard this patch.
src/types/message.php 1 patch
Spacing   +104 added lines, -104 removed lines patch added patch discarded remove patch
@@ -84,13 +84,13 @@  discard block
 block discarded – undo
84 84
     public int $message_id;
85 85
 
86 86
     /** Optional. Unique identifier of a message thread to which the message belongs; for supergroups only */
87
-    public null|int $message_thread_id = null;
87
+    public null | int $message_thread_id = null;
88 88
 
89 89
     /**
90 90
      * Optional. Sender of the message; empty for messages sent to channels. For backward compatibility, the field
91 91
      * contains a fake sender user in non-channel chats, if the message was sent on behalf of a chat.
92 92
      */
93
-    public null|user $from = null;
93
+    public null | user $from = null;
94 94
 
95 95
     /**
96 96
      * Optional. Sender of the message, sent on behalf of a chat. For example, the channel itself for channel posts,
@@ -98,16 +98,16 @@  discard block
 block discarded – undo
98 98
      * automatically forwarded to the discussion group. For backward compatibility, the field from contains a fake
99 99
      * sender user in non-channel chats, if the message was sent on behalf of a chat.
100 100
      */
101
-    public null|chat $sender_chat = null;
101
+    public null | chat $sender_chat = null;
102 102
 
103 103
     /** Optional. If the sender of the message boosted the chat, the number of boosts added by the user */
104
-    public null|int $sender_boost_count = null;
104
+    public null | int $sender_boost_count = null;
105 105
 
106 106
     /**
107 107
      * Optional. The bot that actually sent the message on behalf of the business account. Available only for
108 108
      * outgoing messages sent on behalf of the connected business account.
109 109
      */
110
-    public null|user $sender_business_bot = null;
110
+    public null | user $sender_business_bot = null;
111 111
 
112 112
     /** Date the message was sent in Unix time. It is always a positive number, representing a valid date. */
113 113
     public int $date;
@@ -117,7 +117,7 @@  discard block
 block discarded – undo
117 117
      * message belongs to a chat of the corresponding business account that is independent from any potential bot
118 118
      * chat which might share the same identifier.
119 119
      */
120
-    public null|string $business_connection_id = null;
120
+    public null | string $business_connection_id = null;
121 121
 
122 122
     /** Chat the message belongs to */
123 123
     public chat $chat;
@@ -127,7 +127,7 @@  discard block
 block discarded – undo
127 127
      *
128 128
      * @deprecated used forward_origin instead
129 129
      */
130
-    public null|user $forward_from = null;
130
+    public null | user $forward_from = null;
131 131
 
132 132
     /**
133 133
      * Optional. For messages forwarded from channels or from anonymous administrators, information about the
@@ -135,14 +135,14 @@  discard block
 block discarded – undo
135 135
      *
136 136
      * @deprecated used forward_origin instead
137 137
      */
138
-    public null|chat $forward_from_chat = null;
138
+    public null | chat $forward_from_chat = null;
139 139
 
140 140
     /**
141 141
      * Optional. For messages forwarded from channels, identifier of the original message in the channel
142 142
      *
143 143
      * @deprecated used forward_origin instead
144 144
      */
145
-    public null|int $forward_from_message_id = null;
145
+    public null | int $forward_from_message_id = null;
146 146
 
147 147
     /**
148 148
      * Optional. For forwarded messages that were originally sent in channels or by an anonymous chat administrator,
@@ -150,7 +150,7 @@  discard block
 block discarded – undo
150 150
      *
151 151
      * @deprecated used forward_origin instead
152 152
      */
153
-    public null|string $forward_signature = null;
153
+    public null | string $forward_signature = null;
154 154
 
155 155
     /**
156 156
      * Optional. Sender's name for messages forwarded from users who disallow adding a link to their account in
@@ -158,200 +158,200 @@  discard block
 block discarded – undo
158 158
      *
159 159
      * @deprecated used forward_origin instead
160 160
      */
161
-    public null|string $forward_sender_name = null;
161
+    public null | string $forward_sender_name = null;
162 162
 
163 163
     /**
164 164
      * Optional. For forwarded messages, date the original message was sent in Unix time
165 165
      * @deprecated used forward_origin instead
166 166
      */
167
-    public null|int $forward_date = null;
167
+    public null | int $forward_date = null;
168 168
 
169 169
     /** Optional. Information about the original message for forwarded messages */
170
-    public null|messageOrigin $forward_origin = null;
170
+    public null | messageOrigin $forward_origin = null;
171 171
 
172 172
     /** Optional. True, if the message is sent to a forum topic */
173
-    public null|bool $is_topic_message = null;
173
+    public null | bool $is_topic_message = null;
174 174
 
175 175
     /**
176 176
      * Optional. True, if the message is a channel post that was automatically forwarded to the connected discussion
177 177
      * group
178 178
      */
179
-    public null|bool $is_automatic_forward = null;
179
+    public null | bool $is_automatic_forward = null;
180 180
 
181 181
     /**
182 182
      * Optional. For replies in the same chat and message thread, the original message. Note that the Message object
183 183
      * in this field will not contain further reply_to_message fields even if it itself is a reply.
184 184
      */
185
-    public null|message $reply_to_message = null;
185
+    public null | message $reply_to_message = null;
186 186
 
187 187
     /**
188 188
      * Optional. Information about the message that is being replied to, which may come from another chat or forum
189 189
      * topic
190 190
      */
191
-    public null|externalReplyInfo $external_reply = null;
191
+    public null | externalReplyInfo $external_reply = null;
192 192
 
193 193
     /** Optional. For replies that quote part of the original message, the quoted part of the message */
194
-    public null|textQuote $quote = null;
194
+    public null | textQuote $quote = null;
195 195
 
196 196
     /** Optional. For replies to a story, the original story */
197
-    public null|story $reply_to_story = null;
197
+    public null | story $reply_to_story = null;
198 198
 
199 199
     /** Optional. Bot through which the message was sent */
200
-    public null|user $via_bot = null;
200
+    public null | user $via_bot = null;
201 201
 
202 202
     /** Optional. Date the message was last edited in Unix time */
203
-    public null|int $edit_date = null;
203
+    public null | int $edit_date = null;
204 204
 
205 205
     /** Optional. True, if the message can't be forwarded */
206
-    public null|bool $has_protected_content = null;
206
+    public null | bool $has_protected_content = null;
207 207
 
208 208
     /**
209 209
      * Optional. True, if the message was sent by an implicit action, for example, as an away or a greeting business
210 210
      * message, or as a scheduled message
211 211
      */
212
-    public null|bool $is_from_offline = null;
212
+    public null | bool $is_from_offline = null;
213 213
 
214 214
     /** Optional. The unique identifier of a media message group this message belongs to */
215
-    public null|string $media_group_id = null;
215
+    public null | string $media_group_id = null;
216 216
 
217 217
     /**
218 218
      * Optional. Signature of the post author for messages in channels, or the custom title of an anonymous group
219 219
      * administrator
220 220
      */
221
-    public null|string $author_signature = null;
221
+    public null | string $author_signature = null;
222 222
 
223 223
     /** Optional. For text messages, the actual UTF-8 text of the message */
224
-    public null|string $text = null;
224
+    public null | string $text = null;
225 225
 
226 226
     /** Optional. If user message was a command , this parameter will be the command */
227
-    public string|null $command = null;
227
+    public string | null $command = null;
228 228
 
229 229
     /** Optional. If user message was a command , this parameter will be the command username(if exist) */
230
-    public string|null $command_username = null;
230
+    public string | null $command_username = null;
231 231
 
232 232
     /** Optional. If user message was a command , this parameter will be the command payload(if exist) */
233
-    public string|null $command_payload = null;
233
+    public string | null $command_payload = null;
234 234
 
235 235
     /**
236 236
      * Optional. For text messages, special entities like usernames, URLs, bot commands, etc. that appear in the text
237 237
      * @var messageEntity[]
238 238
      */
239
-    public null|array $entities = null;
239
+    public null | array $entities = null;
240 240
 
241 241
     /**
242 242
      * Optional. Options used for link preview generation for the message, if it is a text message and link preview
243 243
      * options were changed
244 244
      */
245
-    public null|linkPreviewOptions $link_preview_options = null;
245
+    public null | linkPreviewOptions $link_preview_options = null;
246 246
 
247 247
     /**
248 248
      * Optional. Message is an animation, information about the animation. For backward compatibility, when this
249 249
      * field is set, the document field will also be set
250 250
      */
251
-    public null|animation $animation = null;
251
+    public null | animation $animation = null;
252 252
 
253 253
     /** Optional. Message is an audio file, information about the file */
254
-    public null|audio $audio = null;
254
+    public null | audio $audio = null;
255 255
 
256 256
     /** Optional. Message is a general file, information about the file */
257
-    public null|document $document = null;
257
+    public null | document $document = null;
258 258
 
259 259
     /**
260 260
      * Optional. Message is a photo, available sizes of the photo
261 261
      * @var photoSize[]
262 262
      */
263
-    public null|array $photo = null;
263
+    public null | array $photo = null;
264 264
 
265 265
     /** Optional. Message is a sticker, information about the sticker */
266
-    public null|sticker $sticker = null;
266
+    public null | sticker $sticker = null;
267 267
 
268 268
     /** Optional. Message is a forwarded story */
269
-    public null|story $story = null;
269
+    public null | story $story = null;
270 270
 
271 271
     /** Optional. Message is a video, information about the video */
272
-    public null|video $video = null;
272
+    public null | video $video = null;
273 273
 
274 274
     /** Optional. Message is a video note, information about the video message */
275
-    public null|videoNote $video_note = null;
275
+    public null | videoNote $video_note = null;
276 276
 
277 277
     /** Optional. Message is a voice message, information about the file */
278
-    public null|voice $voice = null;
278
+    public null | voice $voice = null;
279 279
 
280 280
     /** Optional. Caption for the animation, audio, document, photo, video or voice */
281
-    public null|string $caption = null;
281
+    public null | string $caption = null;
282 282
 
283 283
     /**
284 284
      * Optional. For messages with a caption, special entities like usernames, URLs, bot commands, etc. that appear
285 285
      * in the caption
286 286
      * @var messageEntity[]
287 287
      */
288
-    public null|array $caption_entities = null;
288
+    public null | array $caption_entities = null;
289 289
 
290 290
     /** Optional. True, if the message media is covered by a spoiler animation */
291
-    public null|bool $has_media_spoiler = null;
291
+    public null | bool $has_media_spoiler = null;
292 292
 
293 293
     /** Optional. Message is a shared contact, information about the contact */
294
-    public null|contact $contact = null;
294
+    public null | contact $contact = null;
295 295
 
296 296
     /** Optional. Message is a dice with random value */
297
-    public null|dice $dice = null;
297
+    public null | dice $dice = null;
298 298
 
299 299
     /** Optional. Message is a game, information about the game. More about games » */
300
-    public null|game $game = null;
300
+    public null | game $game = null;
301 301
 
302 302
     /** Optional. Message is a native poll, information about the poll */
303
-    public null|poll $poll = null;
303
+    public null | poll $poll = null;
304 304
 
305 305
     /**
306 306
      * Optional. Message is a venue, information about the venue. For backward compatibility, when this field is set,
307 307
      * the location field will also be set
308 308
      */
309
-    public null|venue $venue = null;
309
+    public null | venue $venue = null;
310 310
 
311 311
     /** Optional. Message is a shared location, information about the location */
312
-    public null|location $location = null;
312
+    public null | location $location = null;
313 313
 
314 314
     /**
315 315
      * Optional. New members that were added to the group or supergroup and information about them (the bot itself
316 316
      * may be one of these members)
317 317
      * @var user[]
318 318
      */
319
-    public null|array $new_chat_members = null;
319
+    public null | array $new_chat_members = null;
320 320
 
321 321
     /** Optional. A member was removed from the group, information about them (this member may be the bot itself) */
322
-    public null|user $left_chat_member = null;
322
+    public null | user $left_chat_member = null;
323 323
 
324 324
     /** Optional. A chat title was changed to this value */
325
-    public null|string $new_chat_title = null;
325
+    public null | string $new_chat_title = null;
326 326
 
327 327
     /**
328 328
      * Optional. A chat photo was change to this value
329 329
      * @var photoSize[]
330 330
      */
331
-    public null|array $new_chat_photo = null;
331
+    public null | array $new_chat_photo = null;
332 332
 
333 333
     /** Optional. Service message: the chat photo was deleted */
334
-    public null|bool $delete_chat_photo = null;
334
+    public null | bool $delete_chat_photo = null;
335 335
 
336 336
     /** Optional. Service message: the group has been created */
337
-    public null|bool $group_chat_created = null;
337
+    public null | bool $group_chat_created = null;
338 338
 
339 339
     /**
340 340
      * Optional. Service message: the supergroup has been created. This field can't be received in a message coming
341 341
      * through updates, because bot can't be a member of a supergroup when it is created. It can only be found in
342 342
      * reply_to_message if someone replies to a very first message in a directly created supergroup.
343 343
      */
344
-    public null|bool $supergroup_chat_created = null;
344
+    public null | bool $supergroup_chat_created = null;
345 345
 
346 346
     /**
347 347
      * Optional. Service message: the channel has been created. This field can't be received in a message coming
348 348
      * through updates, because bot can't be a member of a channel when it is created. It can only be found in
349 349
      * reply_to_message if someone replies to a very first message in a channel.
350 350
      */
351
-    public null|bool $channel_chat_created = null;
351
+    public null | bool $channel_chat_created = null;
352 352
 
353 353
     /** Optional. Service message: auto-delete timer settings changed in the chat */
354
-    public null|messageAutoDeleteTimerChanged $message_auto_delete_timer_changed = null;
354
+    public null | messageAutoDeleteTimerChanged $message_auto_delete_timer_changed = null;
355 355
 
356 356
     /**
357 357
      * Optional. The group has been migrated to a supergroup with the specified identifier. This number may have more
@@ -359,7 +359,7 @@  discard block
 block discarded – undo
359 359
      * But it has at most 52 significant bits, so a signed 64-bit integer or double-precision float type are safe for
360 360
      * storing this identifier.
361 361
      */
362
-    public null|int $migrate_to_chat_id = null;
362
+    public null | int $migrate_to_chat_id = null;
363 363
 
364 364
     /**
365 365
      * Optional. The supergroup has been migrated from a group with the specified identifier. This number may have
@@ -367,25 +367,25 @@  discard block
 block discarded – undo
367 367
      * interpreting it. But it has at most 52 significant bits, so a signed 64-bit integer or double-precision float
368 368
      * type are safe for storing this identifier.
369 369
      */
370
-    public null|int $migrate_from_chat_id = null;
370
+    public null | int $migrate_from_chat_id = null;
371 371
 
372 372
     /**
373 373
      * Optional. Specified message was pinned. Note that the Message object in this field will not contain further
374 374
      * reply_to_message fields even if it is itself a reply.
375 375
      */
376
-    public null|maybeInaccessibleMessage $pinned_message = null;
376
+    public null | maybeInaccessibleMessage $pinned_message = null;
377 377
 
378 378
     /** Optional. Message is an invoice for a payment, information about the invoice. More about payments » */
379
-    public null|invoice $invoice = null;
379
+    public null | invoice $invoice = null;
380 380
 
381 381
     /**
382 382
      * Optional. Message is a service message about a successful payment, information about the payment. More about
383 383
      * payments »
384 384
      */
385
-    public null|successfulPayment $successful_payment = null;
385
+    public null | successfulPayment $successful_payment = null;
386 386
 
387 387
     /** Optional. Service message: users were shared with the bot */
388
-    public null|usersShared $users_shared = null;
388
+    public null | usersShared $users_shared = null;
389 389
 
390 390
     /**
391 391
      * Optional. Service message: a user was shared with the bot
@@ -394,86 +394,86 @@  discard block
 block discarded – undo
394 394
      *
395 395
      * @deprecated use users_shared instead
396 396
      */
397
-    public null|userShared $user_shared = null;
397
+    public null | userShared $user_shared = null;
398 398
 
399 399
     /** Optional. Service message: a chat was shared with the bot */
400
-    public null|chatShared $chat_shared = null;
400
+    public null | chatShared $chat_shared = null;
401 401
 
402 402
     /** Optional. The domain name of the website on which the user has logged in. More about Telegram Login » */
403
-    public null|string $connected_website = null;
403
+    public null | string $connected_website = null;
404 404
 
405 405
     /**
406 406
      * Optional. Service message: the user allowed the bot to write messages after adding it to the attachment or
407 407
      * side menu, launching a Web App from a link, or accepting an explicit request from a Web App sent by the method
408 408
      * requestWriteAccess
409 409
      */
410
-    public null|writeAccessAllowed $write_access_allowed = null;
410
+    public null | writeAccessAllowed $write_access_allowed = null;
411 411
 
412 412
     /** Optional. Telegram Passport data */
413
-    public null|passportData $passport_data = null;
413
+    public null | passportData $passport_data = null;
414 414
 
415 415
     /**
416 416
      * Optional. Service message. A user in the chat triggered another user's proximity alert while sharing Live
417 417
      * Location.
418 418
      */
419
-    public null|proximityAlertTriggered $proximity_alert_triggered = null;
419
+    public null | proximityAlertTriggered $proximity_alert_triggered = null;
420 420
 
421 421
     /** Optional. Service message: user boosted the chat */
422
-    public null|chatBoostAdded $boost_added = null;
422
+    public null | chatBoostAdded $boost_added = null;
423 423
 
424 424
     /** Optional. Service message: chat background set */
425
-    public null|chatBackground $chat_background_set = null;
425
+    public null | chatBackground $chat_background_set = null;
426 426
 
427 427
     /** Optional. Service message: forum topic created */
428
-    public null|forumTopicCreated $forum_topic_created = null;
428
+    public null | forumTopicCreated $forum_topic_created = null;
429 429
 
430 430
     /** Optional. Service message: forum topic edited */
431
-    public null|forumTopicEdited $forum_topic_edited = null;
431
+    public null | forumTopicEdited $forum_topic_edited = null;
432 432
 
433 433
     /** Optional. Service message: forum topic closed */
434
-    public null|forumTopicClosed $forum_topic_closed = null;
434
+    public null | forumTopicClosed $forum_topic_closed = null;
435 435
 
436 436
     /** Optional. Service message: forum topic reopened */
437
-    public null|forumTopicReopened $forum_topic_reopened = null;
437
+    public null | forumTopicReopened $forum_topic_reopened = null;
438 438
 
439 439
     /** Optional. Service message: the 'General' forum topic hidden */
440
-    public null|generalForumTopicHidden $general_forum_topic_hidden = null;
440
+    public null | generalForumTopicHidden $general_forum_topic_hidden = null;
441 441
 
442 442
     /** Optional. Service message: the 'General' forum topic unhidden */
443
-    public null|generalForumTopicUnhidden $general_forum_topic_unhidden = null;
443
+    public null | generalForumTopicUnhidden $general_forum_topic_unhidden = null;
444 444
 
445 445
     /** Optional. Service message: a scheduled giveaway was created */
446
-    public null|giveawayCreated $giveaway_created = null;
446
+    public null | giveawayCreated $giveaway_created = null;
447 447
 
448 448
     /** Optional. The message is a scheduled giveaway message */
449
-    public null|giveaway $giveaway = null;
449
+    public null | giveaway $giveaway = null;
450 450
 
451 451
     /** Optional. A giveaway with public winners was completed */
452
-    public null|giveawayWinners $giveaway_winners = null;
452
+    public null | giveawayWinners $giveaway_winners = null;
453 453
 
454 454
     /** Optional. Service message: a giveaway without public winners was completed */
455
-    public null|giveawayCompleted $giveaway_completed = null;
455
+    public null | giveawayCompleted $giveaway_completed = null;
456 456
 
457 457
     /** Optional. Service message: video chat scheduled */
458
-    public null|videoChatScheduled $video_chat_scheduled = null;
458
+    public null | videoChatScheduled $video_chat_scheduled = null;
459 459
 
460 460
     /** Optional. Service message: video chat started */
461
-    public null|videoChatStarted $video_chat_started = null;
461
+    public null | videoChatStarted $video_chat_started = null;
462 462
 
463 463
     /** Optional. Service message: video chat ended */
464
-    public null|videoChatEnded $video_chat_ended = null;
464
+    public null | videoChatEnded $video_chat_ended = null;
465 465
 
466 466
     /** Optional. Service message: new participants invited to a video chat */
467
-    public null|videoChatParticipantsInvited $video_chat_participants_invited = null;
467
+    public null | videoChatParticipantsInvited $video_chat_participants_invited = null;
468 468
 
469 469
     /** Optional. Service message: data sent by a Web App */
470
-    public null|webAppData $web_app_data = null;
470
+    public null | webAppData $web_app_data = null;
471 471
 
472 472
     /** Optional. Inline keyboard attached to the message. login_url buttons are represented as ordinary url buttons. */
473
-    public null|inlineKeyboardMarkup $reply_markup = null;
473
+    public null | inlineKeyboardMarkup $reply_markup = null;
474 474
 
475 475
 
476
-    public function __construct(stdClass|null $object = null) {
476
+    public function __construct(stdClass | null $object = null) {
477 477
         if ($object != null) {
478 478
             parent::__construct($object, self::subs);
479 479
         }
@@ -484,7 +484,7 @@  discard block
 block discarded – undo
484 484
      *
485 485
      * @return bool
486 486
      */
487
-    public function isCommand (): bool {
487
+    public function isCommand(): bool {
488 488
         return !empty($this->command);
489 489
     }
490 490
 
@@ -493,7 +493,7 @@  discard block
 block discarded – undo
493 493
      *
494 494
      * @return bool
495 495
      */
496
-    public function isForwarded (): bool {
496
+    public function isForwarded(): bool {
497 497
         return $this->forward_origin !== null;
498 498
     }
499 499
 
@@ -502,7 +502,7 @@  discard block
 block discarded – undo
502 502
      *
503 503
      * @return bool
504 504
      */
505
-    public function isReplied (): bool {
505
+    public function isReplied(): bool {
506 506
         return !empty($this->reply_to_message);
507 507
     }
508 508
 
@@ -513,7 +513,7 @@  discard block
 block discarded – undo
513 513
      *
514 514
      * @return bool
515 515
      */
516
-    public function isAdmin (): bool {
516
+    public function isAdmin(): bool {
517 517
         return $this->chat->getMember($this->from->id)->status === chatMemberStatus::ADMINISTRATOR;
518 518
     }
519 519
 
@@ -524,7 +524,7 @@  discard block
 block discarded – undo
524 524
      *
525 525
      * @return bool
526 526
      */
527
-    public function isOwner (): bool {
527
+    public function isOwner(): bool {
528 528
         return $this->chat->getMember($this->from->id)->status === chatMemberStatus::CREATOR;
529 529
     }
530 530
 
@@ -537,7 +537,7 @@  discard block
 block discarded – undo
537 537
      *
538 538
      * @return responseError|bool
539 539
      */
540
-    public function banMember(bool $answer = null): responseError|bool {
540
+    public function banMember(bool $answer = null): responseError | bool {
541 541
         if ($this->chat->isPrivate()) {
542 542
             return false;
543 543
         }
@@ -553,7 +553,7 @@  discard block
 block discarded – undo
553 553
      *
554 554
      * @return responseError|bool
555 555
      */
556
-    public function kickMember(bool $answer = null): responseError|bool {
556
+    public function kickMember(bool $answer = null): responseError | bool {
557 557
         if ($this->chat->isPrivate()) {
558 558
             return false;
559 559
         }
@@ -567,8 +567,8 @@  discard block
 block discarded – undo
567 567
      *
568 568
      * @return responseError|bool
569 569
      */
570
-    public function delete (bool $answer = null): responseError|bool {
571
-        return telegram::deleteMessage($this->chat->id,$this->id, answer: $answer);
570
+    public function delete(bool $answer = null): responseError | bool {
571
+        return telegram::deleteMessage($this->chat->id, $this->id, answer: $answer);
572 572
     }
573 573
 
574 574
     /**
@@ -578,8 +578,8 @@  discard block
 block discarded – undo
578 578
      *
579 579
      * @return responseError|bool
580 580
      */
581
-    public function pinChatMessage (bool $answer = null): responseError|bool {
582
-        return telegram::deleteMessage($this->chat->id,$this->id, answer: $answer);
581
+    public function pinChatMessage(bool $answer = null): responseError | bool {
582
+        return telegram::deleteMessage($this->chat->id, $this->id, answer: $answer);
583 583
     }
584 584
 
585 585
     /**
@@ -590,8 +590,8 @@  discard block
 block discarded – undo
590 590
      *
591 591
      * @return message|responseError|bool
592 592
      */
593
-    public function editText (string $text, bool $answer = null): message|responseError|bool {
594
-        return telegram::editMessageText($text,  $this->chat->id, $this->message_id, answer: $answer);
593
+    public function editText(string $text, bool $answer = null): message | responseError | bool {
594
+        return telegram::editMessageText($text, $this->chat->id, $this->message_id, answer: $answer);
595 595
     }
596 596
 
597 597
     /**
@@ -602,7 +602,7 @@  discard block
 block discarded – undo
602 602
      *
603 603
      * @return messageId|responseError
604 604
      */
605
-    public function copy (int|string $chat_id, bool $answer = null): messageId|responseError {
605
+    public function copy(int | string $chat_id, bool $answer = null): messageId | responseError {
606 606
         return telegram::copyMessage($chat_id, answer: $answer);
607 607
     }
608 608
 
@@ -614,7 +614,7 @@  discard block
 block discarded – undo
614 614
      *
615 615
      * @return message|responseError
616 616
      */
617
-    public function forward (int|string $chat_id, bool $answer = null): message|responseError {
617
+    public function forward(int | string $chat_id, bool $answer = null): message | responseError {
618 618
         return telegram::forwardMessage($chat_id, answer: $answer);
619 619
     }
620 620
 }
Please login to merge, or discard this patch.
src/types/backgroundFill.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@
 block discarded – undo
33 33
     public array $colors;
34 34
 
35 35
 
36
-    public function __construct(stdClass|null $object = null) {
36
+    public function __construct(stdClass | null $object = null) {
37 37
         if ($object != null) {
38 38
             parent::__construct($object, self::subs);
39 39
         }
Please login to merge, or discard this patch.
src/types/stickerSet.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -27,10 +27,10 @@
 block discarded – undo
27 27
     public array $stickers;
28 28
 
29 29
     /** Optional. Sticker set thumbnail in the .WEBP, .TGS, or .WEBM format */
30
-    public null|photoSize $thumbnail = null;
30
+    public null | photoSize $thumbnail = null;
31 31
 
32 32
 
33
-    public function __construct(stdClass|null $object = null) {
33
+    public function __construct(stdClass | null $object = null) {
34 34
         if ($object != null) {
35 35
             parent::__construct($object, self::subs);
36 36
         }
Please login to merge, or discard this patch.