@@ -23,23 +23,23 @@ discard block |
||
| 23 | 23 | public string $file_unique_id; |
| 24 | 24 | |
| 25 | 25 | /** Optional. Document thumbnail as defined by sender */ |
| 26 | - public null|photoSize $thumbnail = null; |
|
| 26 | + public null | photoSize $thumbnail = null; |
|
| 27 | 27 | |
| 28 | 28 | /** Optional. Original filename as defined by sender */ |
| 29 | - public null|string $file_name = null; |
|
| 29 | + public null | string $file_name = null; |
|
| 30 | 30 | |
| 31 | 31 | /** Optional. MIME type of the file as defined by sender */ |
| 32 | - public null|string $mime_type = null; |
|
| 32 | + public null | string $mime_type = null; |
|
| 33 | 33 | |
| 34 | 34 | /** |
| 35 | 35 | * Optional. File size in bytes. It can be bigger than 2^31 and some programming languages may have |
| 36 | 36 | * difficulty/silent defects in interpreting it. But it has at most 52 significant bits, so a signed 64-bit |
| 37 | 37 | * integer or double-precision float type are safe for storing this value. |
| 38 | 38 | */ |
| 39 | - public null|int $file_size = null; |
|
| 39 | + public null | int $file_size = null; |
|
| 40 | 40 | |
| 41 | 41 | |
| 42 | - public function __construct(stdClass|null $object = null) { |
|
| 42 | + public function __construct(stdClass | null $object = null) { |
|
| 43 | 43 | if ($object != null) { |
| 44 | 44 | parent::__construct($object, self::subs); |
| 45 | 45 | } |
@@ -60,8 +60,8 @@ discard block |
||
| 60 | 60 | * |
| 61 | 61 | * @return bool|string string will be returned when destination doesn't set |
| 62 | 62 | */ |
| 63 | - public function download(string|null $destination = null): bool|string { |
|
| 64 | - return telegram::downloadFile($destination ?? $this->file_name ?? 'unknown.txt',$this->file_id); |
|
| 63 | + public function download(string | null $destination = null): bool | string { |
|
| 64 | + return telegram::downloadFile($destination ?? $this->file_name ?? 'unknown.txt', $this->file_id); |
|
| 65 | 65 | } |
| 66 | 66 | |
| 67 | 67 | /** |
@@ -75,7 +75,7 @@ discard block |
||
| 75 | 75 | return telegram::fileLink($this->file_id); |
| 76 | 76 | } |
| 77 | 77 | |
| 78 | - public function typedSize (int $precision = 2, bool $space_between = true): string { |
|
| 78 | + public function typedSize(int $precision = 2, bool $space_between = true): string { |
|
| 79 | 79 | return tools::byteFormat($this->file_id, $precision, $space_between); |
| 80 | 80 | } |
| 81 | 81 | } |
@@ -14,7 +14,7 @@ |
||
| 14 | 14 | /** Number of boosts added by the user */ |
| 15 | 15 | public int $boost_count; |
| 16 | 16 | |
| 17 | - public function __construct(stdClass|null $object = null) { |
|
| 17 | + public function __construct(stdClass | null $object = null) { |
|
| 18 | 18 | if ($object != null) { |
| 19 | 19 | parent::__construct($object, self::subs); |
| 20 | 20 | } |
@@ -12,31 +12,31 @@ |
||
| 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 supposed to be shrunk; ignored if the URL isn't explicitly |
| 22 | 22 | * 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 supposed 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 | } |
@@ -15,21 +15,21 @@ discard block |
||
| 15 | 15 | * Identifier of the message that will be replied to in the current chat, or in the chat chat_id if it is |
| 16 | 16 | * specified |
| 17 | 17 | */ |
| 18 | - public null|int $message_id; |
|
| 18 | + public null | int $message_id; |
|
| 19 | 19 | |
| 20 | 20 | /** |
| 21 | 21 | * Optional. If the message to be replied to is from a different chat, unique identifier for the chat or username |
| 22 | 22 | * of the channel (in the format channelusername). Not supported for messages sent on behalf of a business |
| 23 | 23 | * account. |
| 24 | 24 | */ |
| 25 | - public null|int $chat_id = null; |
|
| 25 | + public null | int $chat_id = null; |
|
| 26 | 26 | |
| 27 | 27 | /** |
| 28 | 28 | * Optional. Pass True if the message should be sent even if the specified message to be replied to is not found. |
| 29 | 29 | * Always False for replies in another chat or forum topic. Always True for messages sent on behalf of a business |
| 30 | 30 | * account. |
| 31 | 31 | */ |
| 32 | - public null|bool $allow_sending_without_reply = null; |
|
| 32 | + public null | bool $allow_sending_without_reply = null; |
|
| 33 | 33 | |
| 34 | 34 | /** |
| 35 | 35 | * Optional. Quoted part of the message to be replied to; 0-1024 characters after entities parsing. The quote |
@@ -37,23 +37,23 @@ discard block |
||
| 37 | 37 | * spoiler, and custom_emoji entities. The message will fail to send if the quote isn't found in the original |
| 38 | 38 | * message. |
| 39 | 39 | */ |
| 40 | - public null|string $quote = null; |
|
| 40 | + public null | string $quote = null; |
|
| 41 | 41 | |
| 42 | 42 | /** Optional. Mode for parsing entities in the quote. See formatting options for more details. */ |
| 43 | - public null|string $quote_parse_mode = null; |
|
| 43 | + public null | string $quote_parse_mode = null; |
|
| 44 | 44 | |
| 45 | 45 | /** |
| 46 | 46 | * Optional. A JSON-serialized list of special entities that appear in the quote. It can be specified instead of |
| 47 | 47 | * quote_parse_mode. |
| 48 | 48 | * @var messageEntity[] |
| 49 | 49 | */ |
| 50 | - public null|array $quote_entities = null; |
|
| 50 | + public null | array $quote_entities = null; |
|
| 51 | 51 | |
| 52 | 52 | /** Optional. Position of the quote in the original message in UTF-16 code units */ |
| 53 | - public null|int $quote_position = null; |
|
| 53 | + public null | int $quote_position = null; |
|
| 54 | 54 | |
| 55 | 55 | |
| 56 | - public function __construct(stdClass|null $object = null) { |
|
| 56 | + public function __construct(stdClass | null $object = null) { |
|
| 57 | 57 | if ($object != null) { |
| 58 | 58 | parent::__construct($object, self::subs); |
| 59 | 59 | } |
@@ -17,7 +17,7 @@ |
||
| 17 | 17 | /** Unique identifier for the story in the chat */ |
| 18 | 18 | public int $id; |
| 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 | } |
@@ -25,21 +25,21 @@ discard block |
||
| 25 | 25 | public string $type; |
| 26 | 26 | |
| 27 | 27 | /** Optional. Title, for supergroups, channels and group chats */ |
| 28 | - public null|string $title = null; |
|
| 28 | + public null | string $title = null; |
|
| 29 | 29 | |
| 30 | 30 | /** Optional. Username, for private chats, supergroups and channels if available */ |
| 31 | - public null|string $username = null; |
|
| 31 | + public null | string $username = null; |
|
| 32 | 32 | |
| 33 | 33 | /** Optional. First name of the other party in a private chat */ |
| 34 | - public null|string $first_name = null; |
|
| 34 | + public null | string $first_name = null; |
|
| 35 | 35 | |
| 36 | 36 | /** Optional. Last name of the other party in a private chat */ |
| 37 | - public null|string $last_name = null; |
|
| 37 | + public null | string $last_name = null; |
|
| 38 | 38 | |
| 39 | 39 | /** Optional. True, if the supergroup chat is a forum (has topics enabled) */ |
| 40 | - public null|bool $is_forum = null; |
|
| 40 | + public null | bool $is_forum = null; |
|
| 41 | 41 | |
| 42 | - public function __construct(stdClass|null $object = null) { |
|
| 42 | + public function __construct(stdClass | null $object = null) { |
|
| 43 | 43 | if ($object != null) { |
| 44 | 44 | parent::__construct($object, self::subs); |
| 45 | 45 | } |
@@ -50,7 +50,7 @@ discard block |
||
| 50 | 50 | * |
| 51 | 51 | * @return bool |
| 52 | 52 | */ |
| 53 | - public function isPrivate (): bool { |
|
| 53 | + public function isPrivate(): bool { |
|
| 54 | 54 | return $this->type === chatType::PRIVATE; |
| 55 | 55 | } |
| 56 | 56 | |
@@ -59,7 +59,7 @@ discard block |
||
| 59 | 59 | * |
| 60 | 60 | * @return bool |
| 61 | 61 | */ |
| 62 | - public function isGroup (): bool { |
|
| 62 | + public function isGroup(): bool { |
|
| 63 | 63 | return $this->type === chatType::GROUP; |
| 64 | 64 | } |
| 65 | 65 | |
@@ -68,7 +68,7 @@ discard block |
||
| 68 | 68 | * |
| 69 | 69 | * @return bool |
| 70 | 70 | */ |
| 71 | - public function isSuperGroup (): bool { |
|
| 71 | + public function isSuperGroup(): bool { |
|
| 72 | 72 | return $this->type === chatType::SUPERGROUP; |
| 73 | 73 | } |
| 74 | 74 | |
@@ -77,7 +77,7 @@ discard block |
||
| 77 | 77 | * |
| 78 | 78 | * @return bool |
| 79 | 79 | */ |
| 80 | - public function isChannel (): bool { |
|
| 80 | + public function isChannel(): bool { |
|
| 81 | 81 | return $this->type === chatType::CHANNEL; |
| 82 | 82 | } |
| 83 | 83 | |
@@ -86,7 +86,7 @@ discard block |
||
| 86 | 86 | * |
| 87 | 87 | * @return responseError|bool |
| 88 | 88 | */ |
| 89 | - public function leave(): responseError|bool { |
|
| 89 | + public function leave(): responseError | bool { |
|
| 90 | 90 | if ($this->isPrivate()) { |
| 91 | 91 | return false; |
| 92 | 92 | } |
@@ -101,7 +101,7 @@ discard block |
||
| 101 | 101 | * |
| 102 | 102 | * @return responseError|bool |
| 103 | 103 | */ |
| 104 | - public function setPhoto(CURLFile|array $photo, bool $answer = null): responseError|bool { |
|
| 104 | + public function setPhoto(CURLFile | array $photo, bool $answer = null): responseError | bool { |
|
| 105 | 105 | if ($this->isPrivate()) { |
| 106 | 106 | return false; |
| 107 | 107 | } |
@@ -115,7 +115,7 @@ discard block |
||
| 115 | 115 | * |
| 116 | 116 | * @return responseError|bool |
| 117 | 117 | */ |
| 118 | - public function delPhoto(bool $answer = null): responseError|bool { |
|
| 118 | + public function delPhoto(bool $answer = null): responseError | bool { |
|
| 119 | 119 | if ($this->isPrivate()) { |
| 120 | 120 | return false; |
| 121 | 121 | } |
@@ -130,7 +130,7 @@ discard block |
||
| 130 | 130 | * |
| 131 | 131 | * @return responseError|bool |
| 132 | 132 | */ |
| 133 | - public function setTitle(string|array $title, bool $answer = null): responseError|bool { |
|
| 133 | + public function setTitle(string | array $title, bool $answer = null): responseError | bool { |
|
| 134 | 134 | if ($this->isPrivate()) { |
| 135 | 135 | return false; |
| 136 | 136 | } |
@@ -145,7 +145,7 @@ discard block |
||
| 145 | 145 | * |
| 146 | 146 | * @return responseError|bool |
| 147 | 147 | */ |
| 148 | - public function setDescription(string|null $description = null, bool $answer = null): responseError|bool { |
|
| 148 | + public function setDescription(string | null $description = null, bool $answer = null): responseError | bool { |
|
| 149 | 149 | if ($this->isPrivate()) { |
| 150 | 150 | return false; |
| 151 | 151 | } |
@@ -159,7 +159,7 @@ discard block |
||
| 159 | 159 | * |
| 160 | 160 | * @return bool|responseError|array |
| 161 | 161 | */ |
| 162 | - public function getAdmins(bool $answer = null): bool|responseError|array { |
|
| 162 | + public function getAdmins(bool $answer = null): bool | responseError | array { |
|
| 163 | 163 | if ($this->isPrivate()) { |
| 164 | 164 | return false; |
| 165 | 165 | } |
@@ -173,7 +173,7 @@ discard block |
||
| 173 | 173 | * |
| 174 | 174 | * @return bool|responseError|int |
| 175 | 175 | */ |
| 176 | - public function getMembersCount(bool $answer = null): bool|responseError|int { |
|
| 176 | + public function getMembersCount(bool $answer = null): bool | responseError | int { |
|
| 177 | 177 | if ($this->isPrivate()) { |
| 178 | 178 | return false; |
| 179 | 179 | } |
@@ -188,7 +188,7 @@ discard block |
||
| 188 | 188 | * |
| 189 | 189 | * @return chatMember|bool|responseError |
| 190 | 190 | */ |
| 191 | - public function getMember(int|null $user_id = null, bool $answer = null): chatMember|bool|responseError { |
|
| 191 | + public function getMember(int | null $user_id = null, bool $answer = null): chatMember | bool | responseError { |
|
| 192 | 192 | if ($this->isPrivate()) { |
| 193 | 193 | return false; |
| 194 | 194 | } |
@@ -55,28 +55,28 @@ |
||
| 55 | 55 | * Optional. 0-based identifier of the correct answer option. Available only for polls in the quiz mode, which |
| 56 | 56 | * are closed, or was sent (not forwarded) by the bot or to the private chat with the bot. |
| 57 | 57 | */ |
| 58 | - public null|int $correct_option_id = null; |
|
| 58 | + public null | int $correct_option_id = null; |
|
| 59 | 59 | |
| 60 | 60 | /** |
| 61 | 61 | * Optional. Text that is shown when a user chooses an incorrect answer or taps on the lamp icon in a quiz-style |
| 62 | 62 | * poll, 0-200 characters |
| 63 | 63 | */ |
| 64 | - public null|string $explanation = null; |
|
| 64 | + public null | string $explanation = null; |
|
| 65 | 65 | |
| 66 | 66 | /** |
| 67 | 67 | * Optional. Special entities like usernames, URLs, bot commands, etc. that appear in the explanation |
| 68 | 68 | * @var messageEntity[] |
| 69 | 69 | */ |
| 70 | - public null|array $explanation_entities = null; |
|
| 70 | + public null | array $explanation_entities = null; |
|
| 71 | 71 | |
| 72 | 72 | /** Optional. Amount of time in seconds the poll will be active after creation */ |
| 73 | - public null|int $open_period = null; |
|
| 73 | + public null | int $open_period = null; |
|
| 74 | 74 | |
| 75 | 75 | /** Optional. Point in time (Unix timestamp) when the poll will be automatically closed */ |
| 76 | - public null|int $close_date = null; |
|
| 76 | + public null | int $close_date = null; |
|
| 77 | 77 | |
| 78 | 78 | |
| 79 | - public function __construct(stdClass|null $object = null) { |
|
| 79 | + public function __construct(stdClass | null $object = null) { |
|
| 80 | 80 | if ($object != null) { |
| 81 | 81 | parent::__construct($object, self::subs); |
| 82 | 82 | } |
@@ -54,114 +54,114 @@ |
||
| 54 | 54 | public int $update_id; |
| 55 | 55 | |
| 56 | 56 | /** Optional. New incoming message of any kind - text, photo, sticker, etc. */ |
| 57 | - public null|message $message = null; |
|
| 57 | + public null | message $message = null; |
|
| 58 | 58 | |
| 59 | 59 | /** |
| 60 | 60 | * Optional. New version of a message that is known to the bot and was edited. This update may at times be |
| 61 | 61 | * triggered by changes to message fields that are either unavailable or not actively used by your bot. |
| 62 | 62 | */ |
| 63 | - public null|message $edited_message = null; |
|
| 63 | + public null | message $edited_message = null; |
|
| 64 | 64 | |
| 65 | 65 | /** Optional. New incoming channel post of any kind - text, photo, sticker, etc. */ |
| 66 | - public null|message $channel_post = null; |
|
| 66 | + public null | message $channel_post = null; |
|
| 67 | 67 | |
| 68 | 68 | /** |
| 69 | 69 | * Optional. New version of a channel post that is known to the bot and was edited. This update may at times be |
| 70 | 70 | * triggered by changes to message fields that are either unavailable or not actively used by your bot. |
| 71 | 71 | */ |
| 72 | - public null|message $edited_channel_post = null; |
|
| 72 | + public null | message $edited_channel_post = null; |
|
| 73 | 73 | |
| 74 | 74 | /** |
| 75 | 75 | * Optional. The bot was connected to or disconnected from a business account, or a user edited an existing |
| 76 | 76 | * connection with the bot |
| 77 | 77 | */ |
| 78 | - public null|businessConnection $business_connection = null; |
|
| 78 | + public null | businessConnection $business_connection = null; |
|
| 79 | 79 | |
| 80 | 80 | /** Optional. New message from a connected business account */ |
| 81 | - public null|message $business_message = null; |
|
| 81 | + public null | message $business_message = null; |
|
| 82 | 82 | |
| 83 | 83 | /** Optional. New version of a message from a connected business account */ |
| 84 | - public null|message $edited_business_message = null; |
|
| 84 | + public null | message $edited_business_message = null; |
|
| 85 | 85 | |
| 86 | 86 | /** Optional. Messages were deleted from a connected business account */ |
| 87 | - public null|businessMessagesDeleted $deleted_business_messages = null; |
|
| 87 | + public null | businessMessagesDeleted $deleted_business_messages = null; |
|
| 88 | 88 | |
| 89 | 89 | /** |
| 90 | 90 | * Optional. A reaction to a message was changed by a user. The bot must be an administrator in the chat and must |
| 91 | 91 | * explicitly specify "message_reaction" in the list of allowed_updates to receive these updates. The update |
| 92 | 92 | * isn't received for reactions set by bots. |
| 93 | 93 | */ |
| 94 | - public null|messageReactionUpdated $message_reaction = null; |
|
| 94 | + public null | messageReactionUpdated $message_reaction = null; |
|
| 95 | 95 | |
| 96 | 96 | /** |
| 97 | 97 | * Optional. Reactions to a message with anonymous reactions were changed. The bot must be an administrator in |
| 98 | 98 | * the chat and must explicitly specify "message_reaction_count" in the list of allowed_updates to receive these |
| 99 | 99 | * updates. The updates are grouped and can be sent with delay up to a few minutes. |
| 100 | 100 | */ |
| 101 | - public null|messageReactionCountUpdated $message_reaction_count = null; |
|
| 101 | + public null | messageReactionCountUpdated $message_reaction_count = null; |
|
| 102 | 102 | |
| 103 | 103 | /** Optional. New incoming inline query */ |
| 104 | - public null|inlineQuery $inline_query = null; |
|
| 104 | + public null | inlineQuery $inline_query = null; |
|
| 105 | 105 | |
| 106 | 106 | /** |
| 107 | 107 | * Optional. The result of an inline query that was chosen by a user and sent to their chat partner. Please see |
| 108 | 108 | * our documentation on the feedback collecting for details on how to enable these updates for your bot. |
| 109 | 109 | */ |
| 110 | - public null|chosenInlineResult $chosen_inline_result = null; |
|
| 110 | + public null | chosenInlineResult $chosen_inline_result = null; |
|
| 111 | 111 | |
| 112 | 112 | /** Optional. New incoming callback query */ |
| 113 | - public null|callbackQuery $callback_query = null; |
|
| 113 | + public null | callbackQuery $callback_query = null; |
|
| 114 | 114 | |
| 115 | 115 | /** Optional. New incoming shipping query. Only for invoices with flexible price */ |
| 116 | - public null|shippingQuery $shipping_query = null; |
|
| 116 | + public null | shippingQuery $shipping_query = null; |
|
| 117 | 117 | |
| 118 | 118 | /** Optional. New incoming pre-checkout query. Contains full information about checkout */ |
| 119 | - public null|preCheckoutQuery $pre_checkout_query = null; |
|
| 119 | + public null | preCheckoutQuery $pre_checkout_query = null; |
|
| 120 | 120 | |
| 121 | 121 | /** |
| 122 | 122 | * Optional. New poll state. Bots receive only updates about manually stopped polls and polls, which are sent by |
| 123 | 123 | * the bot |
| 124 | 124 | */ |
| 125 | - public null|poll $poll = null; |
|
| 125 | + public null | poll $poll = null; |
|
| 126 | 126 | |
| 127 | 127 | /** |
| 128 | 128 | * Optional. A user changed their answer in a non-anonymous poll. Bots receive new votes only in polls that were |
| 129 | 129 | * sent by the bot itself. |
| 130 | 130 | */ |
| 131 | - public null|pollAnswer $poll_answer = null; |
|
| 131 | + public null | pollAnswer $poll_answer = null; |
|
| 132 | 132 | |
| 133 | 133 | /** |
| 134 | 134 | * Optional. The bot's chat member status was updated in a chat. For private chats, this update is received only |
| 135 | 135 | * when the bot is blocked or unblocked by the user. |
| 136 | 136 | */ |
| 137 | - public null|chatMemberUpdated $my_chat_member = null; |
|
| 137 | + public null | chatMemberUpdated $my_chat_member = null; |
|
| 138 | 138 | |
| 139 | 139 | /** |
| 140 | 140 | * Optional. A chat member's status was updated in a chat. The bot must be an administrator in the chat and must |
| 141 | 141 | * explicitly specify "chat_member" in the list of allowed_updates to receive these updates. |
| 142 | 142 | */ |
| 143 | - public null|chatMemberUpdated $chat_member = null; |
|
| 143 | + public null | chatMemberUpdated $chat_member = null; |
|
| 144 | 144 | |
| 145 | 145 | /** |
| 146 | 146 | * Optional. A request to join the chat has been sent. The bot must have the can_invite_users administrator right |
| 147 | 147 | * in the chat to receive these updates. |
| 148 | 148 | */ |
| 149 | - public null|chatJoinRequest $chat_join_request = null; |
|
| 149 | + public null | chatJoinRequest $chat_join_request = null; |
|
| 150 | 150 | |
| 151 | 151 | /** |
| 152 | 152 | * Optional. A chat boost was added or changed. The bot must be an administrator in the chat to receive these |
| 153 | 153 | * updates. |
| 154 | 154 | */ |
| 155 | - public null|chatBoostUpdated $chat_boost = null; |
|
| 155 | + public null | chatBoostUpdated $chat_boost = null; |
|
| 156 | 156 | |
| 157 | 157 | /** |
| 158 | 158 | * Optional. A boost was removed from a chat. The bot must be an administrator in the chat to receive these |
| 159 | 159 | * updates. |
| 160 | 160 | */ |
| 161 | - public null|chatBoostRemoved $removed_chat_boost = null; |
|
| 161 | + public null | chatBoostRemoved $removed_chat_boost = null; |
|
| 162 | 162 | |
| 163 | 163 | |
| 164 | - public function __construct(stdClass|null $object = null) { |
|
| 164 | + public function __construct(stdClass | null $object = null) { |
|
| 165 | 165 | if ($object != null) { |
| 166 | 166 | parent::__construct($object, self::subs); |
| 167 | 167 | } |
@@ -27,166 +27,166 @@ discard block |
||
| 27 | 27 | * languages may have difficulty/silent defects in interpreting it. But it has at most 52 significant bits, so a |
| 28 | 28 | * signed 64-bit integer or double-precision float type are safe for storing this identifier. |
| 29 | 29 | */ |
| 30 | - public null|int $id; |
|
| 30 | + public null | int $id; |
|
| 31 | 31 | |
| 32 | 32 | /** Type of the chat, can be either “private”, “group”, “supergroup” or “channel” */ |
| 33 | - public null|string $type; |
|
| 33 | + public null | string $type; |
|
| 34 | 34 | |
| 35 | 35 | /** Optional. Title, for supergroups, channels and group chats */ |
| 36 | - public null|string $title = null; |
|
| 36 | + public null | string $title = null; |
|
| 37 | 37 | |
| 38 | 38 | /** Optional. Username, for private chats, supergroups and channels if available */ |
| 39 | - public null|string $username = null; |
|
| 39 | + public null | string $username = null; |
|
| 40 | 40 | |
| 41 | 41 | /** Optional. First name of the other party in a private chat */ |
| 42 | - public null|string $first_name = null; |
|
| 42 | + public null | string $first_name = null; |
|
| 43 | 43 | |
| 44 | 44 | /** Optional. Last name of the other party in a private chat */ |
| 45 | - public null|string $last_name = null; |
|
| 45 | + public null | string $last_name = null; |
|
| 46 | 46 | |
| 47 | 47 | /** Optional. True, if the supergroup chat is a forum (has topics enabled) */ |
| 48 | - public null|bool $is_forum = null; |
|
| 48 | + public null | bool $is_forum = null; |
|
| 49 | 49 | |
| 50 | 50 | /** |
| 51 | 51 | * Identifier of the accent color for the chat name and backgrounds of the chat photo, reply header, and link |
| 52 | 52 | * preview. See accent colors for more details. |
| 53 | 53 | */ |
| 54 | - public null|int $accent_color_id; |
|
| 54 | + public null | int $accent_color_id; |
|
| 55 | 55 | |
| 56 | 56 | /** The maximum number of reactions that can be set on a message in the chat */ |
| 57 | - public null|int $max_reaction_count; |
|
| 57 | + public null | int $max_reaction_count; |
|
| 58 | 58 | |
| 59 | 59 | /** Optional. Chat photo */ |
| 60 | - public null|chatPhoto $photo = null; |
|
| 60 | + public null | chatPhoto $photo = null; |
|
| 61 | 61 | |
| 62 | 62 | /** |
| 63 | 63 | * Optional. If non-empty, the list of all active chat usernames; for private chats, supergroups and channels |
| 64 | 64 | * @var string[] |
| 65 | 65 | */ |
| 66 | - public null|array $active_usernames = null; |
|
| 66 | + public null | array $active_usernames = null; |
|
| 67 | 67 | |
| 68 | 68 | /** Optional. For private chats, the date of birth of the user */ |
| 69 | - public null|birthdate $birthdate = null; |
|
| 69 | + public null | birthdate $birthdate = null; |
|
| 70 | 70 | |
| 71 | 71 | /** Optional. For private chats with business accounts, the intro of the business */ |
| 72 | - public null|businessIntro $business_intro = null; |
|
| 72 | + public null | businessIntro $business_intro = null; |
|
| 73 | 73 | |
| 74 | 74 | /** Optional. For private chats with business accounts, the location of the business */ |
| 75 | - public null|businessLocation $business_location = null; |
|
| 75 | + public null | businessLocation $business_location = null; |
|
| 76 | 76 | |
| 77 | 77 | /** Optional. For private chats with business accounts, the opening hours of the business */ |
| 78 | - public null|businessOpeningHours $business_opening_hours = null; |
|
| 78 | + public null | businessOpeningHours $business_opening_hours = null; |
|
| 79 | 79 | |
| 80 | 80 | /** Optional. For private chats, the personal channel of the user */ |
| 81 | - public null|chat $personal_chat = null; |
|
| 81 | + public null | chat $personal_chat = null; |
|
| 82 | 82 | |
| 83 | 83 | /** |
| 84 | 84 | * Optional. List of available reactions allowed in the chat. If omitted, then all emoji reactions are allowed. |
| 85 | 85 | * @var reactionType[] |
| 86 | 86 | */ |
| 87 | - public null|array $available_reactions = null; |
|
| 87 | + public null | array $available_reactions = null; |
|
| 88 | 88 | |
| 89 | 89 | /** |
| 90 | 90 | * Optional. Custom emoji identifier of the emoji chosen by the chat for the reply header and link preview |
| 91 | 91 | * background |
| 92 | 92 | */ |
| 93 | - public null|string $background_custom_emoji_id = null; |
|
| 93 | + public null | string $background_custom_emoji_id = null; |
|
| 94 | 94 | |
| 95 | 95 | /** |
| 96 | 96 | * Optional. Identifier of the accent color for the chat's profile background. See profile accent colors for more |
| 97 | 97 | * details. |
| 98 | 98 | */ |
| 99 | - public null|int $profile_accent_color_id = null; |
|
| 99 | + public null | int $profile_accent_color_id = null; |
|
| 100 | 100 | |
| 101 | 101 | /** Optional. Custom emoji identifier of the emoji chosen by the chat for its profile background */ |
| 102 | - public null|string $profile_background_custom_emoji_id = null; |
|
| 102 | + public null | string $profile_background_custom_emoji_id = null; |
|
| 103 | 103 | |
| 104 | 104 | /** Optional. Custom emoji identifier of the emoji status of the chat or the other party in a private chat */ |
| 105 | - public null|string $emoji_status_custom_emoji_id = null; |
|
| 105 | + public null | string $emoji_status_custom_emoji_id = null; |
|
| 106 | 106 | |
| 107 | 107 | /** |
| 108 | 108 | * Optional. Expiration date of the emoji status of the chat or the other party in a private chat, in Unix time, |
| 109 | 109 | * if any |
| 110 | 110 | */ |
| 111 | - public null|int $emoji_status_expiration_date = null; |
|
| 111 | + public null | int $emoji_status_expiration_date = null; |
|
| 112 | 112 | |
| 113 | 113 | /** Optional. Bio of the other party in a private chat */ |
| 114 | - public null|string $bio = null; |
|
| 114 | + public null | string $bio = null; |
|
| 115 | 115 | |
| 116 | 116 | /** |
| 117 | 117 | * Optional. True, if privacy settings of the other party in the private chat allows to use |
| 118 | 118 | * tg://user?id=<user_id> links only in chats with the user |
| 119 | 119 | */ |
| 120 | - public null|bool $has_private_forwards = null; |
|
| 120 | + public null | bool $has_private_forwards = null; |
|
| 121 | 121 | |
| 122 | 122 | /** |
| 123 | 123 | * Optional. True, if the privacy settings of the other party restrict sending voice and video note messages in |
| 124 | 124 | * the private chat |
| 125 | 125 | */ |
| 126 | - public null|bool $has_restricted_voice_and_video_messages = null; |
|
| 126 | + public null | bool $has_restricted_voice_and_video_messages = null; |
|
| 127 | 127 | |
| 128 | 128 | /** Optional. True, if users need to join the supergroup before they can send messages */ |
| 129 | - public null|bool $join_to_send_messages = null; |
|
| 129 | + public null | bool $join_to_send_messages = null; |
|
| 130 | 130 | |
| 131 | 131 | /** |
| 132 | 132 | * Optional. True, if all users directly joining the supergroup without using an invite link need to be approved |
| 133 | 133 | * by supergroup administrators |
| 134 | 134 | */ |
| 135 | - public null|bool $join_by_request = null; |
|
| 135 | + public null | bool $join_by_request = null; |
|
| 136 | 136 | |
| 137 | 137 | /** Optional. Description, for groups, supergroups and channel chats */ |
| 138 | - public null|string $description = null; |
|
| 138 | + public null | string $description = null; |
|
| 139 | 139 | |
| 140 | 140 | /** Optional. Primary invite link, for groups, supergroups and channel chats */ |
| 141 | - public null|string $invite_link = null; |
|
| 141 | + public null | string $invite_link = null; |
|
| 142 | 142 | |
| 143 | 143 | /** Optional. The most recent pinned message (by sending date) */ |
| 144 | - public null|message $pinned_message = null; |
|
| 144 | + public null | message $pinned_message = null; |
|
| 145 | 145 | |
| 146 | 146 | /** Optional. Default chat member permissions, for groups and supergroups */ |
| 147 | - public null|chatPermissions $permissions = null; |
|
| 147 | + public null | chatPermissions $permissions = null; |
|
| 148 | 148 | |
| 149 | 149 | /** |
| 150 | 150 | * Optional. For supergroups, the minimum allowed delay between consecutive messages sent by each unprivileged |
| 151 | 151 | * user; in seconds |
| 152 | 152 | */ |
| 153 | - public null|int $slow_mode_delay = null; |
|
| 153 | + public null | int $slow_mode_delay = null; |
|
| 154 | 154 | |
| 155 | 155 | /** |
| 156 | 156 | * Optional. For supergroups, the minimum number of boosts that a non-administrator user needs to add in order to |
| 157 | 157 | * ignore slow mode and chat permissions |
| 158 | 158 | */ |
| 159 | - public null|int $unrestrict_boost_count = null; |
|
| 159 | + public null | int $unrestrict_boost_count = null; |
|
| 160 | 160 | |
| 161 | 161 | /** Optional. The time after which all messages sent to the chat will be automatically deleted; in seconds */ |
| 162 | - public null|int $message_auto_delete_time = null; |
|
| 162 | + public null | int $message_auto_delete_time = null; |
|
| 163 | 163 | |
| 164 | 164 | /** |
| 165 | 165 | * Optional. True, if aggressive anti-spam checks are enabled in the supergroup. The field is only available to |
| 166 | 166 | * chat administrators. |
| 167 | 167 | */ |
| 168 | - public null|bool $has_aggressive_anti_spam_enabled = null; |
|
| 168 | + public null | bool $has_aggressive_anti_spam_enabled = null; |
|
| 169 | 169 | |
| 170 | 170 | /** Optional. True, if non-administrators can only get the list of bots and administrators in the chat */ |
| 171 | - public null|bool $has_hidden_members = null; |
|
| 171 | + public null | bool $has_hidden_members = null; |
|
| 172 | 172 | |
| 173 | 173 | /** Optional. True, if messages from the chat can't be forwarded to other chats */ |
| 174 | - public null|bool $has_protected_content = null; |
|
| 174 | + public null | bool $has_protected_content = null; |
|
| 175 | 175 | |
| 176 | 176 | /** Optional. True, if new chat members will have access to old messages = null; available only to chat administrators */ |
| 177 | - public null|bool $has_visible_history = null; |
|
| 177 | + public null | bool $has_visible_history = null; |
|
| 178 | 178 | |
| 179 | 179 | /** Optional. For supergroups, name of the group sticker set */ |
| 180 | - public null|string $sticker_set_name = null; |
|
| 180 | + public null | string $sticker_set_name = null; |
|
| 181 | 181 | |
| 182 | 182 | /** Optional. True, if the bot can change the group sticker set */ |
| 183 | - public null|bool $can_set_sticker_set = null; |
|
| 183 | + public null | bool $can_set_sticker_set = null; |
|
| 184 | 184 | |
| 185 | 185 | /** |
| 186 | 186 | * Optional. For supergroups, the name of the group's custom emoji sticker set. Custom emoji from this set can be |
| 187 | 187 | * used by all users and bots in the group. |
| 188 | 188 | */ |
| 189 | - public null|string $custom_emoji_sticker_set_name = null; |
|
| 189 | + public null | string $custom_emoji_sticker_set_name = null; |
|
| 190 | 190 | |
| 191 | 191 | /** |
| 192 | 192 | * Optional. Unique identifier for the linked chat, i.e. the discussion group identifier for a channel and vice |
@@ -194,13 +194,13 @@ discard block |
||
| 194 | 194 | * languages may have difficulty/silent defects in interpreting it. But it is smaller than 52 bits, so a signed |
| 195 | 195 | * 64 bit integer or double-precision float type are safe for storing this identifier. |
| 196 | 196 | */ |
| 197 | - public null|int $linked_chat_id = null; |
|
| 197 | + public null | int $linked_chat_id = null; |
|
| 198 | 198 | |
| 199 | 199 | /** Optional. For supergroups, the location to which the supergroup is connected */ |
| 200 | - public null|chatLocation $location = null; |
|
| 200 | + public null | chatLocation $location = null; |
|
| 201 | 201 | |
| 202 | 202 | |
| 203 | - public function __construct(stdClass|null $object = null) { |
|
| 203 | + public function __construct(stdClass | null $object = null) { |
|
| 204 | 204 | if ($object != null) { |
| 205 | 205 | parent::__construct($object, self::subs); |
| 206 | 206 | } |