@@ -19,7 +19,7 @@ discard block |
||
19 | 19 | * spoiler, and custom_emoji entities are kept in quotes. |
20 | 20 | * @var messageEntity[] |
21 | 21 | */ |
22 | - public null|array $entities = null; |
|
22 | + public null | array $entities = null; |
|
23 | 23 | |
24 | 24 | /** Approximate quote position in the original message in UTF-16 code units as specified by the sender */ |
25 | 25 | public int $position; |
@@ -28,10 +28,10 @@ discard block |
||
28 | 28 | * Optional. True, if the quote was chosen manually by the message sender. Otherwise, the quote was added |
29 | 29 | * automatically by the server. |
30 | 30 | */ |
31 | - public null|bool $is_manual = null; |
|
31 | + public null | bool $is_manual = null; |
|
32 | 32 | |
33 | 33 | |
34 | - public function __construct(stdClass|null $object = null) { |
|
34 | + public function __construct(stdClass | null $object = null) { |
|
35 | 35 | if ($object != null) { |
36 | 36 | parent::__construct($object, self::subs); |
37 | 37 | } |
@@ -18,19 +18,19 @@ |
||
18 | 18 | public string $message_text; |
19 | 19 | |
20 | 20 | /** Optional. Mode for parsing entities in the message text. See formatting options for more details. */ |
21 | - public null|string $parse_mode = null; |
|
21 | + public null | string $parse_mode = null; |
|
22 | 22 | |
23 | 23 | /** |
24 | 24 | * Optional. List of special entities that appear in message text, which can be specified instead of parse_mode |
25 | 25 | * @var messageEntity[] |
26 | 26 | */ |
27 | - public null|array $entities = null; |
|
27 | + public null | array $entities = null; |
|
28 | 28 | |
29 | 29 | /** Optional. Link preview generation options for the message */ |
30 | - public null|linkPreviewOptions $link_preview_options = null; |
|
30 | + public null | linkPreviewOptions $link_preview_options = 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 | } |
@@ -24,13 +24,13 @@ discard block |
||
24 | 24 | public int $winner_count; |
25 | 25 | |
26 | 26 | /** Optional. True, if only users who join the chats after the giveaway started should be eligible to win */ |
27 | - public null|bool $only_new_members = null; |
|
27 | + public null | bool $only_new_members = null; |
|
28 | 28 | |
29 | 29 | /** Optional. True, if the list of giveaway winners will be visible to everyone */ |
30 | - public null|bool $has_public_winners = null; |
|
30 | + public null | bool $has_public_winners = null; |
|
31 | 31 | |
32 | 32 | /** Optional. Description of additional giveaway prize */ |
33 | - public null|string $prize_description = null; |
|
33 | + public null | string $prize_description = null; |
|
34 | 34 | |
35 | 35 | /** |
36 | 36 | * Optional. A list of two-letter ISO 3166-1 alpha-2 country codes indicating the countries from which eligible |
@@ -38,13 +38,13 @@ discard block |
||
38 | 38 | * number that was bought on Fragment can always participate in giveaways. |
39 | 39 | * @var string[] |
40 | 40 | */ |
41 | - public null|array $country_codes = null; |
|
41 | + public null | array $country_codes = null; |
|
42 | 42 | |
43 | 43 | /** Optional. The number of months the Telegram Premium subscription won from the giveaway will be active for */ |
44 | - public null|int $premium_subscription_month_count = null; |
|
44 | + public null | int $premium_subscription_month_count = null; |
|
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 | } |
@@ -19,19 +19,19 @@ |
||
19 | 19 | * Or User(gift_code) for which the gift code was created |
20 | 20 | * Or User(giveaway) that won the prize in the giveaway if any |
21 | 21 | */ |
22 | - public null|user $user = null; |
|
22 | + public null | user $user = null; |
|
23 | 23 | |
24 | 24 | /** |
25 | 25 | * `giveaway` only. Identifier of a message in the chat with the giveaway; the message could have been deleted |
26 | 26 | * already. May be 0 if the message isn't sent yet. |
27 | 27 | */ |
28 | - public null|int $giveaway_message_id = null; |
|
28 | + public null | int $giveaway_message_id = null; |
|
29 | 29 | |
30 | 30 | /** `giveaway` only. Optional. True, if the giveaway was completed, but there was no user to win the prize */ |
31 | - public null|bool $is_unclaimed = null; |
|
31 | + public null | bool $is_unclaimed = null; |
|
32 | 32 | |
33 | 33 | |
34 | - public function __construct(stdClass|null $object = null) { |
|
34 | + public function __construct(stdClass | null $object = null) { |
|
35 | 35 | if ($object != null) { |
36 | 36 | parent::__construct($object, self::subs); |
37 | 37 | } |
@@ -25,28 +25,28 @@ discard block |
||
25 | 25 | * Optional. Message with the callback button that originated the query. Note that message content and message |
26 | 26 | * date will not be available if the message is too old |
27 | 27 | */ |
28 | - public null|maybeInaccessibleMessage $message = null; |
|
28 | + public null | maybeInaccessibleMessage $message = null; |
|
29 | 29 | |
30 | 30 | /** Optional. Identifier of the message sent via the bot in inline mode, that originated the query. */ |
31 | - public null|string $inline_message_id = null; |
|
31 | + public null | string $inline_message_id = null; |
|
32 | 32 | |
33 | 33 | /** |
34 | 34 | * Global identifier, uniquely corresponding to the chat to which the message with the callback button was sent. |
35 | 35 | * Useful for high scores in games. |
36 | 36 | */ |
37 | - public null|string $chat_instance = null; |
|
37 | + public null | string $chat_instance = null; |
|
38 | 38 | |
39 | 39 | /** |
40 | 40 | * Optional. Data associated with the callback button. Be aware that the message originated the query can contain |
41 | 41 | * no callback buttons with this data. |
42 | 42 | */ |
43 | - public null|string $data = null; |
|
43 | + public null | string $data = null; |
|
44 | 44 | |
45 | 45 | /** Optional. Short name of a Game to be returned, serves as the unique identifier for the game */ |
46 | - public null|string $game_short_name = null; |
|
46 | + public null | string $game_short_name = null; |
|
47 | 47 | |
48 | 48 | |
49 | - public function __construct(stdClass|null $object = null) { |
|
49 | + public function __construct(stdClass | null $object = null) { |
|
50 | 50 | if ($object != null) { |
51 | 51 | parent::__construct($object, self::subs); |
52 | 52 | } |
@@ -65,7 +65,7 @@ discard block |
||
65 | 65 | * |
66 | 66 | * @return responseError|bool |
67 | 67 | */ |
68 | - public function answer (string|null $text = null, bool|null $show_alert = null, string|null $url = null, int|null $cache_time = null, bool $answer = null): responseError|bool { |
|
68 | + public function answer(string | null $text = null, bool | null $show_alert = null, string | null $url = null, int | null $cache_time = null, bool $answer = null): responseError | bool { |
|
69 | 69 | return telegram::answerCallbackQuery($this->id, $text, $show_alert, $url, $cache_time, answer: $answer); |
70 | 70 | } |
71 | 71 | |
@@ -77,7 +77,7 @@ discard block |
||
77 | 77 | * |
78 | 78 | * @return message|responseError|bool |
79 | 79 | */ |
80 | - public function editText (string $text, bool $answer = null): message|responseError|bool { |
|
80 | + public function editText(string $text, bool $answer = null): message | responseError | bool { |
|
81 | 81 | return telegram::editMessageText($text, answer: $answer); |
82 | 82 | } |
83 | 83 | |
@@ -89,7 +89,7 @@ discard block |
||
89 | 89 | * |
90 | 90 | * @return message|responseError|bool |
91 | 91 | */ |
92 | - public function editCaption (string $text = '', bool $answer = null): message|responseError|bool { |
|
92 | + public function editCaption(string $text = '', bool $answer = null): message | responseError | bool { |
|
93 | 93 | return telegram::editMessageCaption(caption: $text, answer: $answer); |
94 | 94 | } |
95 | 95 | |
@@ -101,7 +101,7 @@ discard block |
||
101 | 101 | * |
102 | 102 | * @return message|responseError|bool |
103 | 103 | */ |
104 | - public function editKeyboard (inlineKeyboardMarkup|stdClass|array $reply_markup = null, bool $answer = null): message|responseError|bool { |
|
104 | + public function editKeyboard(inlineKeyboardMarkup | stdClass | array $reply_markup = null, bool $answer = null): message | responseError | bool { |
|
105 | 105 | return telegram::editMessageReplyMarkup(reply_markup: $reply_markup, answer: $answer); |
106 | 106 | } |
107 | 107 | |
@@ -113,7 +113,7 @@ discard block |
||
113 | 113 | * |
114 | 114 | * @return message|responseError|bool |
115 | 115 | */ |
116 | - public function editMedia (inputMedia|array|stdClass $media, bool $answer = null): message|responseError|bool { |
|
116 | + public function editMedia(inputMedia | array | stdClass $media, bool $answer = null): message | responseError | bool { |
|
117 | 117 | return telegram::editMessageMedia($media, answer: $answer); |
118 | 118 | } |
119 | 119 | } |
@@ -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 | } |