Passed
Push — main ( 8c6c55...1af2d8 )
by Miaad
12:23 queued 14s
created
src/types/messageReactionCountUpdated.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@
 block discarded – undo
27 27
     public array $reactions;
28 28
 
29 29
 
30
-    public function __construct(stdClass|null $object = null) {
30
+    public function __construct(stdClass | null $object = null) {
31 31
         if ($object != null) {
32 32
             parent::__construct($object, self::subs);
33 33
         }
Please login to merge, or discard this patch.
src/types/chatBoostUpdated.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@
 block discarded – undo
18 18
     public chatBoost $boost;
19 19
 
20 20
 
21
-    public function __construct(stdClass|null $object = null) {
21
+    public function __construct(stdClass | null $object = null) {
22 22
         if ($object != null) {
23 23
             parent::__construct($object, self::subs);
24 24
         }
Please login to merge, or discard this patch.
src/types/message.php 1 patch
Spacing   +89 added lines, -89 removed lines patch added patch discarded remove patch
@@ -77,13 +77,13 @@  discard block
 block discarded – undo
77 77
     public int $message_id;
78 78
 
79 79
     /** Optional. Unique identifier of a message thread to which the message belongs; for supergroups only */
80
-    public null|int $message_thread_id = null;
80
+    public null | int $message_thread_id = null;
81 81
 
82 82
     /**
83 83
      * Optional. Sender of the message; empty for messages sent to channels. For backward compatibility, the field
84 84
      * contains a fake sender user in non-channel chats, if the message was sent on behalf of a chat.
85 85
      */
86
-    public null|user $from = null;
86
+    public null | user $from = null;
87 87
 
88 88
     /**
89 89
      * Optional. Sender of the message, sent on behalf of a chat. For example, the channel itself for channel posts,
@@ -91,7 +91,7 @@  discard block
 block discarded – undo
91 91
      * automatically forwarded to the discussion group. For backward compatibility, the field from contains a fake
92 92
      * sender user in non-channel chats, if the message was sent on behalf of a chat.
93 93
      */
94
-    public null|chat $sender_chat = null;
94
+    public null | chat $sender_chat = null;
95 95
 
96 96
     /** Date the message was sent in Unix time. It is always a positive number, representing a valid date. */
97 97
     public int $date;
@@ -100,182 +100,182 @@  discard block
 block discarded – undo
100 100
     public chat $chat;
101 101
 
102 102
     /** Optional. Information about the original message for forwarded messages */
103
-    public null|messageOrigin $forward_origin = null;
103
+    public null | messageOrigin $forward_origin = null;
104 104
 
105 105
     /** Optional. True, if the message is sent to a forum topic */
106
-    public null|bool $is_topic_message = null;
106
+    public null | bool $is_topic_message = null;
107 107
 
108 108
     /**
109 109
      * Optional. True, if the message is a channel post that was automatically forwarded to the connected discussion
110 110
      * group
111 111
      */
112
-    public null|bool $is_automatic_forward = null;
112
+    public null | bool $is_automatic_forward = null;
113 113
 
114 114
     /**
115 115
      * Optional. For replies in the same chat and message thread, the original message. Note that the Message object
116 116
      * in this field will not contain further reply_to_message fields even if it itself is a reply.
117 117
      */
118
-    public null|message $reply_to_message = null;
118
+    public null | message $reply_to_message = null;
119 119
 
120 120
     /**
121 121
      * Optional. Information about the message that is being replied to, which may come from another chat or forum
122 122
      * topic
123 123
      */
124
-    public null|externalReplyInfo $external_reply;
124
+    public null | externalReplyInfo $external_reply;
125 125
 
126 126
     /** Optional. For replies that quote part of the original message, the quoted part of the message */
127
-    public null|textQuote $quote;
127
+    public null | textQuote $quote;
128 128
 
129 129
     /** Optional. Bot through which the message was sent */
130
-    public null|user $via_bot = null;
130
+    public null | user $via_bot = null;
131 131
 
132 132
     /** Optional. Date the message was last edited in Unix time */
133
-    public null|int $edit_date = null;
133
+    public null | int $edit_date = null;
134 134
 
135 135
     /** Optional. True, if the message can't be forwarded */
136
-    public null|bool $has_protected_content = null;
136
+    public null | bool $has_protected_content = null;
137 137
 
138 138
     /** Optional. The unique identifier of a media message group this message belongs to */
139
-    public null|string $media_group_id = null;
139
+    public null | string $media_group_id = null;
140 140
 
141 141
     /**
142 142
      * Optional. Signature of the post author for messages in channels, or the custom title of an anonymous group
143 143
      * administrator
144 144
      */
145
-    public null|string $author_signature = null;
145
+    public null | string $author_signature = null;
146 146
 
147 147
     /** Optional. For text messages, the actual UTF-8 text of the message */
148
-    public null|string $text = null;
148
+    public null | string $text = null;
149 149
 
150 150
     /** Optional. If user message was a command , this parameter will be the command */
151
-    public string|null $command = null;
151
+    public string | null $command = null;
152 152
 
153 153
     /** Optional. If user message was a command , this parameter will be the command username(if exist) */
154
-    public string|null $command_username = null;
154
+    public string | null $command_username = null;
155 155
 
156 156
     /** Optional. If user message was a command , this parameter will be the command payload(if exist) */
157
-    public string|null $command_payload = null;
157
+    public string | null $command_payload = null;
158 158
 
159 159
     /**
160 160
      * Optional. For text messages, special entities like usernames, URLs, bot commands, etc. that appear in the text
161 161
      * @var messageEntity[]
162 162
      */
163
-    public null|array $entities = null;
163
+    public null | array $entities = null;
164 164
 
165 165
     /**
166 166
      * Optional. Options used for link preview generation for the message, if it is a text message and link preview
167 167
      * options were changed
168 168
      */
169
-    public null|linkPreviewOptions $link_preview_options;
169
+    public null | linkPreviewOptions $link_preview_options;
170 170
 
171 171
     /**
172 172
      * Optional. Message is an animation, information about the animation. For backward compatibility, when this
173 173
      * field is set, the document field will also be set
174 174
      */
175
-    public null|animation $animation = null;
175
+    public null | animation $animation = null;
176 176
 
177 177
     /** Optional. Message is an audio file, information about the file */
178
-    public null|audio $audio = null;
178
+    public null | audio $audio = null;
179 179
 
180 180
     /** Optional. Message is a general file, information about the file */
181
-    public null|document $document = null;
181
+    public null | document $document = null;
182 182
 
183 183
     /**
184 184
      * Optional. Message is a photo, available sizes of the photo
185 185
      * @var photoSize[]
186 186
      */
187
-    public null|array $photo = null;
187
+    public null | array $photo = null;
188 188
 
189 189
     /** Optional. Message is a sticker, information about the sticker */
190
-    public null|sticker $sticker = null;
190
+    public null | sticker $sticker = null;
191 191
 
192 192
     /** Optional. Message is a forwarded story */
193
-    public null|story $story;
193
+    public null | story $story;
194 194
 
195 195
     /** Optional. Message is a video, information about the video */
196
-    public null|video $video = null;
196
+    public null | video $video = null;
197 197
 
198 198
     /** Optional. Message is a video note, information about the video message */
199
-    public null|videoNote $video_note = null;
199
+    public null | videoNote $video_note = null;
200 200
 
201 201
     /** Optional. Message is a voice message, information about the file */
202
-    public null|voice $voice = null;
202
+    public null | voice $voice = null;
203 203
 
204 204
     /** Optional. Caption for the animation, audio, document, photo, video or voice */
205
-    public null|string $caption = null;
205
+    public null | string $caption = null;
206 206
 
207 207
     /**
208 208
      * Optional. For messages with a caption, special entities like usernames, URLs, bot commands, etc. that appear
209 209
      * in the caption
210 210
      * @var messageEntity[]
211 211
      */
212
-    public null|array $caption_entities = null;
212
+    public null | array $caption_entities = null;
213 213
 
214 214
     /** Optional. True, if the message media is covered by a spoiler animation */
215
-    public null|bool $has_media_spoiler = null;
215
+    public null | bool $has_media_spoiler = null;
216 216
 
217 217
     /** Optional. Message is a shared contact, information about the contact */
218
-    public null|contact $contact = null;
218
+    public null | contact $contact = null;
219 219
 
220 220
     /** Optional. Message is a dice with random value */
221
-    public null|dice $dice = null;
221
+    public null | dice $dice = null;
222 222
 
223 223
     /** Optional. Message is a game, information about the game. More about games » */
224
-    public null|game $game = null;
224
+    public null | game $game = null;
225 225
 
226 226
     /** Optional. Message is a native poll, information about the poll */
227
-    public null|poll $poll = null;
227
+    public null | poll $poll = null;
228 228
 
229 229
     /**
230 230
      * Optional. Message is a venue, information about the venue. For backward compatibility, when this field is set,
231 231
      * the location field will also be set
232 232
      */
233
-    public null|venue $venue = null;
233
+    public null | venue $venue = null;
234 234
 
235 235
     /** Optional. Message is a shared location, information about the location */
236
-    public null|location $location = null;
236
+    public null | location $location = null;
237 237
 
238 238
     /**
239 239
      * Optional. New members that were added to the group or supergroup and information about them (the bot itself
240 240
      * may be one of these members)
241 241
      * @var user[]
242 242
      */
243
-    public null|array $new_chat_members = null;
243
+    public null | array $new_chat_members = null;
244 244
 
245 245
     /** Optional. A member was removed from the group, information about them (this member may be the bot itself) */
246
-    public null|user $left_chat_member = null;
246
+    public null | user $left_chat_member = null;
247 247
 
248 248
     /** Optional. A chat title was changed to this value */
249
-    public null|string $new_chat_title = null;
249
+    public null | string $new_chat_title = null;
250 250
 
251 251
     /**
252 252
      * Optional. A chat photo was change to this value
253 253
      * @var photoSize[]
254 254
      */
255
-    public null|array $new_chat_photo = null;
255
+    public null | array $new_chat_photo = null;
256 256
 
257 257
     /** Optional. Service message: the chat photo was deleted */
258
-    public null|bool $delete_chat_photo = null;
258
+    public null | bool $delete_chat_photo = null;
259 259
 
260 260
     /** Optional. Service message: the group has been created */
261
-    public null|bool $group_chat_created = null;
261
+    public null | bool $group_chat_created = null;
262 262
 
263 263
     /**
264 264
      * Optional. Service message: the supergroup has been created. This field can't be received in a message coming
265 265
      * through updates, because bot can't be a member of a supergroup when it is created. It can only be found in
266 266
      * reply_to_message if someone replies to a very first message in a directly created supergroup.
267 267
      */
268
-    public null|bool $supergroup_chat_created = null;
268
+    public null | bool $supergroup_chat_created = null;
269 269
 
270 270
     /**
271 271
      * Optional. Service message: the channel has been created. This field can't be received in a message coming
272 272
      * through updates, because bot can't be a member of a channel when it is created. It can only be found in
273 273
      * reply_to_message if someone replies to a very first message in a channel.
274 274
      */
275
-    public null|bool $channel_chat_created = null;
275
+    public null | bool $channel_chat_created = null;
276 276
 
277 277
     /** Optional. Service message: auto-delete timer settings changed in the chat */
278
-    public null|messageAutoDeleteTimerChanged $message_auto_delete_timer_changed = null;
278
+    public null | messageAutoDeleteTimerChanged $message_auto_delete_timer_changed = null;
279 279
 
280 280
     /**
281 281
      * Optional. The group has been migrated to a supergroup with the specified identifier. This number may have more
@@ -283,7 +283,7 @@  discard block
 block discarded – undo
283 283
      * But it has at most 52 significant bits, so a signed 64-bit integer or double-precision float type are safe for
284 284
      * storing this identifier.
285 285
      */
286
-    public null|int $migrate_to_chat_id = null;
286
+    public null | int $migrate_to_chat_id = null;
287 287
 
288 288
     /**
289 289
      * Optional. The supergroup has been migrated from a group with the specified identifier. This number may have
@@ -291,98 +291,98 @@  discard block
 block discarded – undo
291 291
      * interpreting it. But it has at most 52 significant bits, so a signed 64-bit integer or double-precision float
292 292
      * type are safe for storing this identifier.
293 293
      */
294
-    public null|int $migrate_from_chat_id = null;
294
+    public null | int $migrate_from_chat_id = null;
295 295
 
296 296
     /**
297 297
      * Optional. Specified message was pinned. Note that the Message object in this field will not contain further
298 298
      * reply_to_message fields even if it is itself a reply.
299 299
      */
300
-    public null|maybeInaccessibleMessage $pinned_message = null;
300
+    public null | maybeInaccessibleMessage $pinned_message = null;
301 301
 
302 302
     /** Optional. Message is an invoice for a payment, information about the invoice. More about payments » */
303
-    public null|invoice $invoice = null;
303
+    public null | invoice $invoice = null;
304 304
 
305 305
     /**
306 306
      * Optional. Message is a service message about a successful payment, information about the payment. More about
307 307
      * payments »
308 308
      */
309
-    public null|successfulPayment $successful_payment = null;
309
+    public null | successfulPayment $successful_payment = null;
310 310
 
311 311
     /** Optional. Service message: a user was shared with the bot */
312
-    public null|usersShared $user_shared = null;
312
+    public null | usersShared $user_shared = null;
313 313
 
314 314
     /** Optional. Service message: a chat was shared with the bot */
315
-    public null|chatShared $chat_shared = null;
315
+    public null | chatShared $chat_shared = null;
316 316
 
317 317
     /** Optional. The domain name of the website on which the user has logged in. More about Telegram Login » */
318
-    public null|string $connected_website = null;
318
+    public null | string $connected_website = null;
319 319
 
320 320
     /**
321 321
      * Optional. Service message: the user allowed the bot to write messages after adding it to the attachment or
322 322
      * side menu, launching a Web App from a link, or accepting an explicit request from a Web App sent by the method
323 323
      * requestWriteAccess
324 324
      */
325
-    public null|writeAccessAllowed $write_access_allowed = null;
325
+    public null | writeAccessAllowed $write_access_allowed = null;
326 326
 
327 327
     /** Optional. Telegram Passport data */
328
-    public null|passportData $passport_data = null;
328
+    public null | passportData $passport_data = null;
329 329
 
330 330
     /**
331 331
      * Optional. Service message. A user in the chat triggered another user's proximity alert while sharing Live
332 332
      * Location.
333 333
      */
334
-    public null|proximityAlertTriggered $proximity_alert_triggered = null;
334
+    public null | proximityAlertTriggered $proximity_alert_triggered = null;
335 335
 
336 336
     /** Optional. Service message: forum topic created */
337
-    public null|forumTopicCreated $forum_topic_created = null;
337
+    public null | forumTopicCreated $forum_topic_created = null;
338 338
 
339 339
     /** Optional. Service message: forum topic edited */
340
-    public null|forumTopicEdited $forum_topic_edited = null;
340
+    public null | forumTopicEdited $forum_topic_edited = null;
341 341
 
342 342
     /** Optional. Service message: forum topic closed */
343
-    public null|forumTopicClosed $forum_topic_closed = null;
343
+    public null | forumTopicClosed $forum_topic_closed = null;
344 344
 
345 345
     /** Optional. Service message: forum topic reopened */
346
-    public null|forumTopicReopened $forum_topic_reopened = null;
346
+    public null | forumTopicReopened $forum_topic_reopened = null;
347 347
 
348 348
     /** Optional. Service message: the 'General' forum topic hidden */
349
-    public null|generalForumTopicHidden $general_forum_topic_hidden = null;
349
+    public null | generalForumTopicHidden $general_forum_topic_hidden = null;
350 350
 
351 351
     /** Optional. Service message: the 'General' forum topic unhidden */
352
-    public null|generalForumTopicUnhidden $general_forum_topic_unhidden = null;
352
+    public null | generalForumTopicUnhidden $general_forum_topic_unhidden = null;
353 353
 
354 354
     /** Optional. Service message: a scheduled giveaway was created */
355
-    public null|giveawayCreated $giveaway_created;
355
+    public null | giveawayCreated $giveaway_created;
356 356
 
357 357
     /** Optional. The message is a scheduled giveaway message */
358
-    public null|giveaway $giveaway;
358
+    public null | giveaway $giveaway;
359 359
 
360 360
     /** Optional. A giveaway with public winners was completed */
361
-    public null|giveawayWinners $giveaway_winners;
361
+    public null | giveawayWinners $giveaway_winners;
362 362
 
363 363
     /** Optional. Service message: a giveaway without public winners was completed */
364
-    public null|giveawayCompleted $giveaway_completed;
364
+    public null | giveawayCompleted $giveaway_completed;
365 365
 
366 366
     /** Optional. Service message: video chat scheduled */
367
-    public null|videoChatScheduled $video_chat_scheduled = null;
367
+    public null | videoChatScheduled $video_chat_scheduled = null;
368 368
 
369 369
     /** Optional. Service message: video chat started */
370
-    public null|videoChatStarted $video_chat_started = null;
370
+    public null | videoChatStarted $video_chat_started = null;
371 371
 
372 372
     /** Optional. Service message: video chat ended */
373
-    public null|videoChatEnded $video_chat_ended = null;
373
+    public null | videoChatEnded $video_chat_ended = null;
374 374
 
375 375
     /** Optional. Service message: new participants invited to a video chat */
376
-    public null|videoChatParticipantsInvited $video_chat_participants_invited = null;
376
+    public null | videoChatParticipantsInvited $video_chat_participants_invited = null;
377 377
 
378 378
     /** Optional. Service message: data sent by a Web App */
379
-    public null|webAppData $web_app_data = null;
379
+    public null | webAppData $web_app_data = null;
380 380
 
381 381
     /** Optional. Inline keyboard attached to the message. login_url buttons are represented as ordinary url buttons. */
382
-    public null|inlineKeyboardMarkup $reply_markup = null;
382
+    public null | inlineKeyboardMarkup $reply_markup = null;
383 383
 
384 384
 
385
-    public function __construct(stdClass|null $object = null) {
385
+    public function __construct(stdClass | null $object = null) {
386 386
         if ($object != null) {
387 387
             parent::__construct($object, self::subs);
388 388
         }
@@ -393,7 +393,7 @@  discard block
 block discarded – undo
393 393
      *
394 394
      * @return bool
395 395
      */
396
-    public function isCommand (): bool {
396
+    public function isCommand(): bool {
397 397
         return !empty($this->command);
398 398
     }
399 399
 
@@ -402,7 +402,7 @@  discard block
 block discarded – undo
402 402
      *
403 403
      * @return bool
404 404
      */
405
-    public function isForwarded (): bool {
405
+    public function isForwarded(): bool {
406 406
         return $this->forward_origin !== null;
407 407
     }
408 408
 
@@ -413,7 +413,7 @@  discard block
 block discarded – undo
413 413
      *
414 414
      * @return bool
415 415
      */
416
-    public function isAdmin (): bool {
416
+    public function isAdmin(): bool {
417 417
         return $this->chat->getMember($this->from->id)->status === chatMemberStatus::ADMINISTRATOR;
418 418
     }
419 419
 
@@ -424,7 +424,7 @@  discard block
 block discarded – undo
424 424
      *
425 425
      * @return bool
426 426
      */
427
-    public function isOwner (): bool {
427
+    public function isOwner(): bool {
428 428
         return $this->chat->getMember($this->from->id)->status === chatMemberStatus::CREATOR;
429 429
     }
430 430
 
@@ -437,7 +437,7 @@  discard block
 block discarded – undo
437 437
      *
438 438
      * @return responseError|bool
439 439
      */
440
-    public function banMember(bool $answer = null): responseError|bool {
440
+    public function banMember(bool $answer = null): responseError | bool {
441 441
         if ($this->chat->isPrivate()) {
442 442
             return false;
443 443
         }
@@ -453,7 +453,7 @@  discard block
 block discarded – undo
453 453
      *
454 454
      * @return responseError|bool
455 455
      */
456
-    public function kickMember(bool $answer = null): responseError|bool {
456
+    public function kickMember(bool $answer = null): responseError | bool {
457 457
         if ($this->chat->isPrivate()) {
458 458
             return false;
459 459
         }
@@ -467,8 +467,8 @@  discard block
 block discarded – undo
467 467
      *
468 468
      * @return responseError|bool
469 469
      */
470
-    public function delete (bool $answer = null): responseError|bool {
471
-        return telegram::deleteMessage($this->chat->id,$this->id, answer: $answer);
470
+    public function delete(bool $answer = null): responseError | bool {
471
+        return telegram::deleteMessage($this->chat->id, $this->id, answer: $answer);
472 472
     }
473 473
 
474 474
     /**
@@ -478,8 +478,8 @@  discard block
 block discarded – undo
478 478
      *
479 479
      * @return responseError|bool
480 480
      */
481
-    public function pinChatMessage (bool $answer = null): responseError|bool {
482
-        return telegram::deleteMessage($this->chat->id,$this->id, answer: $answer);
481
+    public function pinChatMessage(bool $answer = null): responseError | bool {
482
+        return telegram::deleteMessage($this->chat->id, $this->id, answer: $answer);
483 483
     }
484 484
 
485 485
     /**
@@ -490,8 +490,8 @@  discard block
 block discarded – undo
490 490
      *
491 491
      * @return message|responseError|bool
492 492
      */
493
-    public function editText (string $text, bool $answer = null): message|responseError|bool {
494
-        return telegram::editMessageText($text,  $this->chat->id, $this->message_id, answer: $answer);
493
+    public function editText(string $text, bool $answer = null): message | responseError | bool {
494
+        return telegram::editMessageText($text, $this->chat->id, $this->message_id, answer: $answer);
495 495
     }
496 496
 
497 497
     /**
@@ -502,7 +502,7 @@  discard block
 block discarded – undo
502 502
      *
503 503
      * @return messageId|responseError
504 504
      */
505
-    public function copy (int|string $chat_id, bool $answer = null): messageId|responseError {
505
+    public function copy(int | string $chat_id, bool $answer = null): messageId | responseError {
506 506
         return telegram::copyMessage($chat_id, answer: $answer);
507 507
     }
508 508
 
@@ -514,7 +514,7 @@  discard block
 block discarded – undo
514 514
      *
515 515
      * @return message|responseError
516 516
      */
517
-    public function forward (int|string $chat_id, bool $answer = null): message|responseError {
517
+    public function forward(int | string $chat_id, bool $answer = null): message | responseError {
518 518
         return telegram::forwardMessage($chat_id, answer: $answer);
519 519
     }
520 520
 }
Please login to merge, or discard this patch.
src/types/userChatBoosts.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@
 block discarded – undo
18 18
     public array $boosts;
19 19
 
20 20
 
21
-    public function __construct(stdClass|null $object = null) {
21
+    public function __construct(stdClass | null $object = null) {
22 22
         if ($object != null) {
23 23
             parent::__construct($object, self::subs);
24 24
         }
Please login to merge, or discard this patch.
src/types/chatBoost.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@
 block discarded – undo
27 27
     public chatBoostSource $source;
28 28
 
29 29
 
30
-    public function __construct(stdClass|null $object = null) {
30
+    public function __construct(stdClass | null $object = null) {
31 31
         if ($object != null) {
32 32
             parent::__construct($object, self::subs);
33 33
         }
Please login to merge, or discard this patch.
src/types/externalReplyInfo.php 1 patch
Spacing   +23 added lines, -23 removed lines patch added patch discarded remove patch
@@ -38,79 +38,79 @@
 block discarded – undo
38 38
     public messageOrigin $origin;
39 39
 
40 40
     /** Optional. Chat the original message belongs to. Available only if the chat is a supergroup or a channel. */
41
-    public null|chat $chat = null;
41
+    public null | chat $chat = null;
42 42
 
43 43
     /**
44 44
      * Optional. Unique message identifier inside the original chat. Available only if the original chat is a
45 45
      * supergroup or a channel.
46 46
      */
47
-    public null|int $message_id = null;
47
+    public null | int $message_id = null;
48 48
 
49 49
     /** Optional. Options used for link preview generation for the original message, if it is a text message */
50
-    public null|linkPreviewOptions $link_preview_options = null;
50
+    public null | linkPreviewOptions $link_preview_options = null;
51 51
 
52 52
     /** Optional. Message is an animation, information about the animation */
53
-    public null|animation $animation = null;
53
+    public null | animation $animation = null;
54 54
 
55 55
     /** Optional. Message is an audio file, information about the file */
56
-    public null|audio $audio = null;
56
+    public null | audio $audio = null;
57 57
 
58 58
     /** Optional. Message is a general file, information about the file */
59
-    public null|document $document = null;
59
+    public null | document $document = null;
60 60
 
61 61
     /**
62 62
      * Optional. Message is a photo, available sizes of the photo
63 63
      * @var photoSize[]
64 64
      */
65
-    public null|array $photo = null;
65
+    public null | array $photo = null;
66 66
 
67 67
     /** Optional. Message is a sticker, information about the sticker */
68
-    public null|sticker $sticker = null;
68
+    public null | sticker $sticker = null;
69 69
 
70 70
     /** Optional. Message is a forwarded story */
71
-    public null|story $story = null;
71
+    public null | story $story = null;
72 72
 
73 73
     /** Optional. Message is a video, information about the video */
74
-    public null|video $video = null;
74
+    public null | video $video = null;
75 75
 
76 76
     /** Optional. Message is a video note, information about the video message */
77
-    public null|videoNote $video_note = null;
77
+    public null | videoNote $video_note = null;
78 78
 
79 79
     /** Optional. Message is a voice message, information about the file */
80
-    public null|voice $voice = null;
80
+    public null | voice $voice = null;
81 81
 
82 82
     /** Optional. True, if the message media is covered by a spoiler animation */
83
-    public null|bool $has_media_spoiler = null;
83
+    public null | bool $has_media_spoiler = null;
84 84
 
85 85
     /** Optional. Message is a shared contact, information about the contact */
86
-    public null|contact $contact = null;
86
+    public null | contact $contact = null;
87 87
 
88 88
     /** Optional. Message is a dice with random value */
89
-    public null|dice $dice = null;
89
+    public null | dice $dice = null;
90 90
 
91 91
     /** Optional. Message is a game, information about the game. More about games » */
92
-    public null|game $game = null;
92
+    public null | game $game = null;
93 93
 
94 94
     /** Optional. Message is a scheduled giveaway, information about the giveaway */
95
-    public null|giveaway $giveaway = null;
95
+    public null | giveaway $giveaway = null;
96 96
 
97 97
     /** Optional. A giveaway with public winners was completed */
98
-    public null|giveawayWinners $giveaway_winners = null;
98
+    public null | giveawayWinners $giveaway_winners = null;
99 99
 
100 100
     /** Optional. Message is an invoice for a payment, information about the invoice. More about payments » */
101
-    public null|invoice $invoice = null;
101
+    public null | invoice $invoice = null;
102 102
 
103 103
     /** Optional. Message is a shared location, information about the location */
104
-    public null|location $location = null;
104
+    public null | location $location = null;
105 105
 
106 106
     /** Optional. Message is a native poll, information about the poll */
107
-    public null|poll $poll = null;
107
+    public null | poll $poll = null;
108 108
 
109 109
     /** Optional. Message is a venue, information about the venue */
110
-    public null|venue $venue = null;
110
+    public null | venue $venue = null;
111 111
 
112 112
 
113
-    public function __construct(stdClass|null $object = null) {
113
+    public function __construct(stdClass | null $object = null) {
114 114
         if ($object != null) {
115 115
             parent::__construct($object, self::subs);
116 116
         }
Please login to merge, or discard this patch.
src/types/chatBoostRemoved.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 chatBoostSource $source;
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/linkPreviewOptions.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -12,31 +12,31 @@
 block discarded – undo
12 12
     private const subs = [];
13 13
 
14 14
     /** Optional. True, if the link preview is disabled */
15
-    public null|bool $is_disabled = null;
15
+    public null | bool $is_disabled = null;
16 16
 
17 17
     /** Optional. URL to use for the link preview. If empty, then the first URL found in the message text will be used */
18
-    public null|string $url = null;
18
+    public null | string $url = null;
19 19
 
20 20
     /**
21 21
      * Optional. True, if the media in the link preview is suppposed to be shrunk; ignored if the URL isn't
22 22
      * explicitly specified or media size change isn't supported for the preview
23 23
      */
24
-    public null|bool $prefer_small_media = null;
24
+    public null | bool $prefer_small_media = null;
25 25
 
26 26
     /**
27 27
      * Optional. True, if the media in the link preview is suppposed to be enlarged; ignored if the URL isn't
28 28
      * explicitly specified or media size change isn't supported for the preview
29 29
      */
30
-    public null|bool $prefer_large_media = null;
30
+    public null | bool $prefer_large_media = null;
31 31
 
32 32
     /**
33 33
      * Optional. True, if the link preview must be shown above the message text; otherwise, the link preview will be
34 34
      * shown below the message text
35 35
      */
36
-    public null|bool $show_above_text = null;
36
+    public null | bool $show_above_text = null;
37 37
 
38 38
 
39
-    public function __construct(stdClass|null $object = null) {
39
+    public function __construct(stdClass | null $object = null) {
40 40
         if ($object != null) {
41 41
             parent::__construct($object, self::subs);
42 42
         }
Please login to merge, or discard this patch.
src/types/reactionType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
28 28
     public string $custom_emoji;
29 29
 
30 30
 
31
-    public function __construct(stdClass|null $object = null) {
31
+    public function __construct(stdClass | null $object = null) {
32 32
         if ($object != null) {
33 33
             parent::__construct($object, self::subs);
34 34
         }
Please login to merge, or discard this patch.