@@ -23,10 +23,10 @@ discard block |
||
23 | 23 | public int $message_id; |
24 | 24 | |
25 | 25 | /** Optional. The user that changed the reaction, if the user isn't anonymous */ |
26 | - public null|user $user = null; |
|
26 | + public null | user $user = null; |
|
27 | 27 | |
28 | 28 | /** Optional. The chat on behalf of which the reaction was changed, if the user is anonymous */ |
29 | - public null|chat $actor_chat = null; |
|
29 | + public null | chat $actor_chat = null; |
|
30 | 30 | |
31 | 31 | /** Date of the change in Unix time */ |
32 | 32 | public int $date; |
@@ -44,7 +44,7 @@ discard block |
||
44 | 44 | public array $new_reaction; |
45 | 45 | |
46 | 46 | |
47 | - public function __construct(stdClass|null $object = null) { |
|
47 | + public function __construct(stdClass | null $object = null) { |
|
48 | 48 | if ($object != null) { |
49 | 49 | parent::__construct($object, self::subs); |
50 | 50 | } |
@@ -15,13 +15,13 @@ |
||
15 | 15 | public int $winner_count; |
16 | 16 | |
17 | 17 | /** Optional. Number of undistributed prizes */ |
18 | - public null|int $unclaimed_prize_count = null; |
|
18 | + public null | int $unclaimed_prize_count = null; |
|
19 | 19 | |
20 | 20 | /** Optional. Message with the giveaway that was completed, if it wasn't deleted */ |
21 | - public null|message $giveaway_message = null; |
|
21 | + public null | message $giveaway_message = null; |
|
22 | 22 | |
23 | 23 | |
24 | - public function __construct(stdClass|null $object = null) { |
|
24 | + public function __construct(stdClass | null $object = null) { |
|
25 | 25 | if ($object != null) { |
26 | 26 | parent::__construct($object, self::subs); |
27 | 27 | } |
@@ -30,25 +30,25 @@ |
||
30 | 30 | public array $winners; |
31 | 31 | |
32 | 32 | /** Optional. The number of other chats the user had to join in order to be eligible for the giveaway */ |
33 | - public null|int $additional_chat_count = null; |
|
33 | + public null | int $additional_chat_count = null; |
|
34 | 34 | |
35 | 35 | /** Optional. The number of months the Telegram Premium subscription won from the giveaway will be active for */ |
36 | - public null|int $premium_subscription_month_count = null; |
|
36 | + public null | int $premium_subscription_month_count = null; |
|
37 | 37 | |
38 | 38 | /** Optional. Number of undistributed prizes */ |
39 | - public null|int $unclaimed_prize_count = null; |
|
39 | + public null | int $unclaimed_prize_count = null; |
|
40 | 40 | |
41 | 41 | /** Optional. True, if only users who had joined the chats after the giveaway started were eligible to win */ |
42 | - public null|bool $only_new_members = null; |
|
42 | + public null | bool $only_new_members = null; |
|
43 | 43 | |
44 | 44 | /** Optional. True, if the giveaway was canceled because the payment for it was refunded */ |
45 | - public null|bool $was_refunded = null; |
|
45 | + public null | bool $was_refunded = null; |
|
46 | 46 | |
47 | 47 | /** Optional. Description of additional giveaway prize */ |
48 | - public null|string $prize_description = null; |
|
48 | + public null | string $prize_description = 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 | } |
@@ -11,7 +11,7 @@ |
||
11 | 11 | /** Keep all properties which has sub properties */ |
12 | 12 | private const subs = []; |
13 | 13 | |
14 | - public function __construct(stdClass|null $object = null) { |
|
14 | + public function __construct(stdClass | null $object = null) { |
|
15 | 15 | if ($object != null) { |
16 | 16 | parent::__construct($object, self::subs); |
17 | 17 | } |
@@ -26,7 +26,7 @@ |
||
26 | 26 | public bool $from_attachment_menu; |
27 | 27 | |
28 | 28 | |
29 | - public function __construct(stdClass|null $object = null) { |
|
29 | + public function __construct(stdClass | null $object = null) { |
|
30 | 30 | if ($object != null) { |
31 | 31 | parent::__construct($object, self::subs); |
32 | 32 | } |
@@ -16,7 +16,7 @@ |
||
16 | 16 | public int $date; |
17 | 17 | |
18 | 18 | |
19 | - public function __construct(stdClass|null $object = null) { |
|
19 | + public function __construct(stdClass | null $object = null) { |
|
20 | 20 | if ($object != null) { |
21 | 21 | parent::__construct($object); |
22 | 22 | } |
@@ -27,7 +27,7 @@ |
||
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 | } |
@@ -18,7 +18,7 @@ |
||
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 | } |
@@ -18,7 +18,7 @@ |
||
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 | } |