@@ -21,22 +21,22 @@ |
||
| 21 | 21 | public string $address; |
| 22 | 22 | |
| 23 | 23 | /** Optional. Foursquare identifier of the venue */ |
| 24 | - public null|string $foursquare_id = null; |
|
| 24 | + public null | string $foursquare_id = null; |
|
| 25 | 25 | |
| 26 | 26 | /** |
| 27 | 27 | * Optional. Foursquare type of the venue. (For example, “arts_entertainment/default”, |
| 28 | 28 | * “arts_entertainment/aquarium” or “food/icecream”.) |
| 29 | 29 | */ |
| 30 | - public null|string $foursquare_type = null; |
|
| 30 | + public null | string $foursquare_type = null; |
|
| 31 | 31 | |
| 32 | 32 | /** Optional. Google Places identifier of the venue */ |
| 33 | - public null|string $google_place_id = null; |
|
| 33 | + public null | string $google_place_id = null; |
|
| 34 | 34 | |
| 35 | 35 | /** Optional. Google Places type of the venue. (See supported types.) */ |
| 36 | - public null|string $google_place_type = null; |
|
| 36 | + public null | string $google_place_type = 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 | } |
@@ -25,10 +25,10 @@ discard block |
||
| 25 | 25 | public string $invoice_payload; |
| 26 | 26 | |
| 27 | 27 | /** Optional. Identifier of the shipping option chosen by the user */ |
| 28 | - public null|string $shipping_option_id = null; |
|
| 28 | + public null | string $shipping_option_id = null; |
|
| 29 | 29 | |
| 30 | 30 | /** Optional. Order information provided by the user */ |
| 31 | - public null|orderInfo $order_info = null; |
|
| 31 | + public null | orderInfo $order_info = null; |
|
| 32 | 32 | |
| 33 | 33 | /** Telegram payment identifier */ |
| 34 | 34 | public string $telegram_payment_charge_id; |
@@ -37,7 +37,7 @@ discard block |
||
| 37 | 37 | public string $provider_payment_charge_id; |
| 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 | } |
@@ -18,19 +18,19 @@ |
||
| 18 | 18 | public user $from; |
| 19 | 19 | |
| 20 | 20 | /** Optional. Sender location, only for bots that require user location */ |
| 21 | - public null|location $location = null; |
|
| 21 | + public null | location $location = null; |
|
| 22 | 22 | |
| 23 | 23 | /** |
| 24 | 24 | * Optional. Identifier of the sent inline message. Available only if there is an inline keyboard attached to the |
| 25 | 25 | * message. Will be also received in callback queries and can be used to edit the message. |
| 26 | 26 | */ |
| 27 | - public null|string $inline_message_id = null; |
|
| 27 | + public null | string $inline_message_id = null; |
|
| 28 | 28 | |
| 29 | 29 | /** The query that was used to obtain the result */ |
| 30 | 30 | public string $query; |
| 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 | } |
@@ -31,23 +31,23 @@ discard block |
||
| 31 | 31 | public int $duration; |
| 32 | 32 | |
| 33 | 33 | /** Optional. Video thumbnail */ |
| 34 | - public null|photoSize $thumb = null; |
|
| 34 | + public null | photoSize $thumb = null; |
|
| 35 | 35 | |
| 36 | 36 | /** Optional. Original filename as defined by sender */ |
| 37 | - public null|string $file_name = null; |
|
| 37 | + public null | string $file_name = null; |
|
| 38 | 38 | |
| 39 | 39 | /** Optional. MIME type of the file as defined by sender */ |
| 40 | - public null|string $mime_type = null; |
|
| 40 | + public null | string $mime_type = null; |
|
| 41 | 41 | |
| 42 | 42 | /** |
| 43 | 43 | * Optional. File size in bytes. It can be bigger than 2^31 and some programming languages may have |
| 44 | 44 | * difficulty/silent defects in interpreting it. But it has at most 52 significant bits, so a signed 64-bit |
| 45 | 45 | * integer or double-precision float type are safe for storing this value. |
| 46 | 46 | */ |
| 47 | - public null|int $file_size = null; |
|
| 47 | + public null | int $file_size = null; |
|
| 48 | 48 | |
| 49 | 49 | |
| 50 | - public function __construct(stdClass|null $object = null) { |
|
| 50 | + public function __construct(stdClass | null $object = null) { |
|
| 51 | 51 | if ($object != null) { |
| 52 | 52 | parent::__construct($object, self::subs); |
| 53 | 53 | } |
@@ -68,7 +68,7 @@ discard block |
||
| 68 | 68 | * |
| 69 | 69 | * @return bool|string string will be returned when destination doesn't set |
| 70 | 70 | */ |
| 71 | - public function download(string|null $destination = null): bool|string { |
|
| 72 | - return telegram::downloadFile($destination ?? $this->file_name ?? 'unknown.mp4',$this->file_id); |
|
| 71 | + public function download(string | null $destination = null): bool | string { |
|
| 72 | + return telegram::downloadFile($destination ?? $this->file_name ?? 'unknown.mp4', $this->file_id); |
|
| 73 | 73 | } |
| 74 | 74 | } |
@@ -28,13 +28,13 @@ discard block |
||
| 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 for “utility_bill”, |
@@ -42,28 +42,28 @@ discard block |
||
| 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 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 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 for |
| 63 | 63 | * “passport”, “driver_license”, “identity_card” and “internal_passport”. The file can be |
| 64 | 64 | * 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 |
||
| 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 | } |
@@ -31,13 +31,13 @@ |
||
| 31 | 31 | public string $invoice_payload; |
| 32 | 32 | |
| 33 | 33 | /** Optional. Identifier of the shipping option chosen by the user */ |
| 34 | - public null|string $shipping_option_id = null; |
|
| 34 | + public null | string $shipping_option_id = null; |
|
| 35 | 35 | |
| 36 | 36 | /** Optional. Order information provided by the user */ |
| 37 | - public null|orderInfo $order_info = null; |
|
| 37 | + public null | orderInfo $order_info = 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 | } |
@@ -30,13 +30,13 @@ |
||
| 30 | 30 | * should be always known for requests sent from official clients and most third-party clients, unless the |
| 31 | 31 | * request was sent from a secret chat |
| 32 | 32 | */ |
| 33 | - public null|string $chat_type = null; |
|
| 33 | + public null | string $chat_type = null; |
|
| 34 | 34 | |
| 35 | 35 | /** Optional. Sender location, only for bots that request user location */ |
| 36 | - public null|location $location = null; |
|
| 36 | + public null | location $location = 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 | } |
@@ -62,13 +62,13 @@ discard block |
||
| 62 | 62 | public int $message_id; |
| 63 | 63 | |
| 64 | 64 | /** Optional. Unique identifier of a message thread to which the message belongs; for supergroups only */ |
| 65 | - public null|int $message_thread_id = null; |
|
| 65 | + public null | int $message_thread_id = null; |
|
| 66 | 66 | |
| 67 | 67 | /** |
| 68 | 68 | * Optional. Sender of the message; empty for messages sent to channels. For backward compatibility, the field |
| 69 | 69 | * contains a fake sender user in non-channel chats, if the message was sent on behalf of a chat. |
| 70 | 70 | */ |
| 71 | - public null|user $from = null; |
|
| 71 | + public null | user $from = null; |
|
| 72 | 72 | |
| 73 | 73 | /** |
| 74 | 74 | * Optional. Sender of the message, sent on behalf of a chat. For example, the channel itself for channel posts, |
@@ -76,7 +76,7 @@ discard block |
||
| 76 | 76 | * automatically forwarded to the discussion group. For backward compatibility, the field from contains a fake |
| 77 | 77 | * sender user in non-channel chats, if the message was sent on behalf of a chat. |
| 78 | 78 | */ |
| 79 | - public null|chat $sender_chat = null; |
|
| 79 | + public null | chat $sender_chat = null; |
|
| 80 | 80 | |
| 81 | 81 | /** Date the message was sent in Unix time */ |
| 82 | 82 | public int $date; |
@@ -85,185 +85,185 @@ discard block |
||
| 85 | 85 | public chat $chat; |
| 86 | 86 | |
| 87 | 87 | /** Optional. For forwarded messages, sender of the original message */ |
| 88 | - public null|user $forward_from = null; |
|
| 88 | + public null | user $forward_from = null; |
|
| 89 | 89 | |
| 90 | 90 | /** |
| 91 | 91 | * Optional. For messages forwarded from channels or from anonymous administrators, information about the |
| 92 | 92 | * original sender chat |
| 93 | 93 | */ |
| 94 | - public null|chat $forward_from_chat = null; |
|
| 94 | + public null | chat $forward_from_chat = null; |
|
| 95 | 95 | |
| 96 | 96 | /** Optional. For messages forwarded from channels, identifier of the original message in the channel */ |
| 97 | - public null|int $forward_from_message_id = null; |
|
| 97 | + public null | int $forward_from_message_id = null; |
|
| 98 | 98 | |
| 99 | 99 | /** |
| 100 | 100 | * Optional. For forwarded messages that were originally sent in channels or by an anonymous chat administrator, |
| 101 | 101 | * signature of the message sender if present |
| 102 | 102 | */ |
| 103 | - public null|string $forward_signature = null; |
|
| 103 | + public null | string $forward_signature = null; |
|
| 104 | 104 | |
| 105 | 105 | /** |
| 106 | 106 | * Optional. Sender's name for messages forwarded from users who disallow adding a link to their account in |
| 107 | 107 | * forwarded messages |
| 108 | 108 | */ |
| 109 | - public null|string $forward_sender_name = null; |
|
| 109 | + public null | string $forward_sender_name = null; |
|
| 110 | 110 | |
| 111 | 111 | /** Optional. For forwarded messages, date the original message was sent in Unix time */ |
| 112 | - public null|int $forward_date = null; |
|
| 112 | + public null | int $forward_date = null; |
|
| 113 | 113 | |
| 114 | 114 | /** Optional. True, if the message is sent to a forum topic */ |
| 115 | - public null|bool $is_topic_message = null; |
|
| 115 | + public null | bool $is_topic_message = null; |
|
| 116 | 116 | |
| 117 | 117 | /** |
| 118 | 118 | * Optional. True, if the message is a channel post that was automatically forwarded to the connected discussion |
| 119 | 119 | * group |
| 120 | 120 | */ |
| 121 | - public null|bool $is_automatic_forward = null; |
|
| 121 | + public null | bool $is_automatic_forward = null; |
|
| 122 | 122 | |
| 123 | 123 | /** |
| 124 | 124 | * Optional. For replies, the original message. Note that the Message object in this field will not contain |
| 125 | 125 | * further reply_to_message fields even if it itself is a reply. |
| 126 | 126 | */ |
| 127 | - public null|message $reply_to_message = null; |
|
| 127 | + public null | message $reply_to_message = null; |
|
| 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 commend , this parameter will be the commend */ |
| 151 | - public string|null $commend = null; |
|
| 151 | + public string | null $commend = null; |
|
| 152 | 152 | |
| 153 | 153 | /** Optional. If user message was a commend , this parameter will be the commend username(if exist) */ |
| 154 | - public string|null $commend_username = null; |
|
| 154 | + public string | null $commend_username = null; |
|
| 155 | 155 | |
| 156 | 156 | /** Optional. If user message was a commend , this parameter will be the commend payload(if exist) */ |
| 157 | - public string|null $commend_payload = null; |
|
| 157 | + public string | null $commend_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. Message is an animation, information about the animation. For backward compatibility, when this |
| 167 | 167 | * field is set, the document field will also be set |
| 168 | 168 | */ |
| 169 | - public null|animation $animation = null; |
|
| 169 | + public null | animation $animation = null; |
|
| 170 | 170 | |
| 171 | 171 | /** Optional. Message is an audio file, information about the file */ |
| 172 | - public null|audio $audio = null; |
|
| 172 | + public null | audio $audio = null; |
|
| 173 | 173 | |
| 174 | 174 | /** Optional. Message is a general file, information about the file */ |
| 175 | - public null|document $document = null; |
|
| 175 | + public null | document $document = null; |
|
| 176 | 176 | |
| 177 | 177 | /** |
| 178 | 178 | * Optional. Message is a photo, available sizes of the photo |
| 179 | 179 | * @var photoSize[] |
| 180 | 180 | */ |
| 181 | - public null|array $photo = null; |
|
| 181 | + public null | array $photo = null; |
|
| 182 | 182 | |
| 183 | 183 | /** Optional. Message is a sticker, information about the sticker */ |
| 184 | - public null|sticker $sticker = null; |
|
| 184 | + public null | sticker $sticker = null; |
|
| 185 | 185 | |
| 186 | 186 | /** Optional. Message is a video, information about the video */ |
| 187 | - public null|video $video = null; |
|
| 187 | + public null | video $video = null; |
|
| 188 | 188 | |
| 189 | 189 | /** Optional. Message is a video note, information about the video message */ |
| 190 | - public null|videoNote $video_note = null; |
|
| 190 | + public null | videoNote $video_note = null; |
|
| 191 | 191 | |
| 192 | 192 | /** Optional. Message is a voice message, information about the file */ |
| 193 | - public null|voice $voice = null; |
|
| 193 | + public null | voice $voice = null; |
|
| 194 | 194 | |
| 195 | 195 | /** Optional. Caption for the animation, audio, document, photo, video or voice */ |
| 196 | - public null|string $caption = null; |
|
| 196 | + public null | string $caption = null; |
|
| 197 | 197 | |
| 198 | 198 | /** |
| 199 | 199 | * Optional. For messages with a caption, special entities like usernames, URLs, bot commands, etc. that appear |
| 200 | 200 | * in the caption |
| 201 | 201 | * @var messageEntity[] |
| 202 | 202 | */ |
| 203 | - public null|array $caption_entities = null; |
|
| 203 | + public null | array $caption_entities = null; |
|
| 204 | 204 | |
| 205 | 205 | /** Optional. Message is a shared contact, information about the contact */ |
| 206 | - public null|contact $contact = null; |
|
| 206 | + public null | contact $contact = null; |
|
| 207 | 207 | |
| 208 | 208 | /** Optional. Message is a dice with random value */ |
| 209 | - public null|dice $dice = null; |
|
| 209 | + public null | dice $dice = null; |
|
| 210 | 210 | |
| 211 | 211 | /** Optional. Message is a game, information about the game. More about games » */ |
| 212 | - public null|game $game = null; |
|
| 212 | + public null | game $game = null; |
|
| 213 | 213 | |
| 214 | 214 | /** Optional. Message is a native poll, information about the poll */ |
| 215 | - public null|poll $poll = null; |
|
| 215 | + public null | poll $poll = null; |
|
| 216 | 216 | |
| 217 | 217 | /** |
| 218 | 218 | * Optional. Message is a venue, information about the venue. For backward compatibility, when this field is set, |
| 219 | 219 | * the location field will also be set |
| 220 | 220 | */ |
| 221 | - public null|venue $venue = null; |
|
| 221 | + public null | venue $venue = null; |
|
| 222 | 222 | |
| 223 | 223 | /** Optional. Message is a shared location, information about the location */ |
| 224 | - public null|location $location = null; |
|
| 224 | + public null | location $location = null; |
|
| 225 | 225 | |
| 226 | 226 | /** |
| 227 | 227 | * Optional. New members that were added to the group or supergroup and information about them (the bot itself |
| 228 | 228 | * may be one of these members) |
| 229 | 229 | * @var user[] |
| 230 | 230 | */ |
| 231 | - public null|array $new_chat_members = null; |
|
| 231 | + public null | array $new_chat_members = null; |
|
| 232 | 232 | |
| 233 | 233 | /** Optional. A member was removed from the group, information about them (this member may be the bot itself) */ |
| 234 | - public null|user $left_chat_member = null; |
|
| 234 | + public null | user $left_chat_member = null; |
|
| 235 | 235 | |
| 236 | 236 | /** Optional. A chat title was changed to this value */ |
| 237 | - public null|string $new_chat_title = null; |
|
| 237 | + public null | string $new_chat_title = null; |
|
| 238 | 238 | |
| 239 | 239 | /** |
| 240 | 240 | * Optional. A chat photo was change to this value |
| 241 | 241 | * @var photoSize[] |
| 242 | 242 | */ |
| 243 | - public null|array $new_chat_photo = null; |
|
| 243 | + public null | array $new_chat_photo = null; |
|
| 244 | 244 | |
| 245 | 245 | /** Optional. Service message: the chat photo was deleted */ |
| 246 | - public null|bool $delete_chat_photo = null; |
|
| 246 | + public null | bool $delete_chat_photo = null; |
|
| 247 | 247 | |
| 248 | 248 | /** Optional. Service message: the group has been created */ |
| 249 | - public null|bool $group_chat_created = null; |
|
| 249 | + public null | bool $group_chat_created = null; |
|
| 250 | 250 | |
| 251 | 251 | /** |
| 252 | 252 | * Optional. Service message: the supergroup has been created. This field can't be received in a message coming |
| 253 | 253 | * through updates, because bot can't be a member of a supergroup when it is created. It can only be found in |
| 254 | 254 | * reply_to_message if someone replies to a very first message in a directly created supergroup. |
| 255 | 255 | */ |
| 256 | - public null|bool $supergroup_chat_created = null; |
|
| 256 | + public null | bool $supergroup_chat_created = null; |
|
| 257 | 257 | |
| 258 | 258 | /** |
| 259 | 259 | * Optional. Service message: the channel has been created. This field can't be received in a message coming |
| 260 | 260 | * through updates, because bot can't be a member of a channel when it is created. It can only be found in |
| 261 | 261 | * reply_to_message if someone replies to a very first message in a channel. |
| 262 | 262 | */ |
| 263 | - public null|bool $channel_chat_created = null; |
|
| 263 | + public null | bool $channel_chat_created = null; |
|
| 264 | 264 | |
| 265 | 265 | /** Optional. Service message: auto-delete timer settings changed in the chat */ |
| 266 | - public null|messageAutoDeleteTimerChanged $message_auto_delete_timer_changed = null; |
|
| 266 | + public null | messageAutoDeleteTimerChanged $message_auto_delete_timer_changed = null; |
|
| 267 | 267 | |
| 268 | 268 | /** |
| 269 | 269 | * Optional. The group has been migrated to a supergroup with the specified identifier. This number may have more |
@@ -271,7 +271,7 @@ discard block |
||
| 271 | 271 | * But it has at most 52 significant bits, so a signed 64-bit integer or double-precision float type are safe for |
| 272 | 272 | * storing this identifier. |
| 273 | 273 | */ |
| 274 | - public null|int $migrate_to_chat_id = null; |
|
| 274 | + public null | int $migrate_to_chat_id = null; |
|
| 275 | 275 | |
| 276 | 276 | /** |
| 277 | 277 | * Optional. The supergroup has been migrated from a group with the specified identifier. This number may have |
@@ -279,64 +279,64 @@ discard block |
||
| 279 | 279 | * interpreting it. But it has at most 52 significant bits, so a signed 64-bit integer or double-precision float |
| 280 | 280 | * type are safe for storing this identifier. |
| 281 | 281 | */ |
| 282 | - public null|int $migrate_from_chat_id = null; |
|
| 282 | + public null | int $migrate_from_chat_id = null; |
|
| 283 | 283 | |
| 284 | 284 | /** |
| 285 | 285 | * Optional. Specified message was pinned. Note that the Message object in this field will not contain further |
| 286 | 286 | * reply_to_message fields even if it is itself a reply. |
| 287 | 287 | */ |
| 288 | - public null|message $pinned_message = null; |
|
| 288 | + public null | message $pinned_message = null; |
|
| 289 | 289 | |
| 290 | 290 | /** Optional. Message is an invoice for a payment, information about the invoice. More about payments » */ |
| 291 | - public null|invoice $invoice = null; |
|
| 291 | + public null | invoice $invoice = null; |
|
| 292 | 292 | |
| 293 | 293 | /** |
| 294 | 294 | * Optional. Message is a service message about a successful payment, information about the payment. More about |
| 295 | 295 | * payments » |
| 296 | 296 | */ |
| 297 | - public null|successfulPayment $successful_payment = null; |
|
| 297 | + public null | successfulPayment $successful_payment = null; |
|
| 298 | 298 | |
| 299 | 299 | /** Optional. The domain name of the website on which the user has logged in. More about Telegram Login » */ |
| 300 | - public null|string $connected_website = null; |
|
| 300 | + public null | string $connected_website = null; |
|
| 301 | 301 | |
| 302 | 302 | /** Optional. Telegram Passport data */ |
| 303 | - public null|passportData $passport_data = null; |
|
| 303 | + public null | passportData $passport_data = null; |
|
| 304 | 304 | |
| 305 | 305 | /** |
| 306 | 306 | * Optional. Service message. A user in the chat triggered another user's proximity alert while sharing Live |
| 307 | 307 | * Location. |
| 308 | 308 | */ |
| 309 | - public null|proximityAlertTriggered $proximity_alert_triggered = null; |
|
| 309 | + public null | proximityAlertTriggered $proximity_alert_triggered = null; |
|
| 310 | 310 | |
| 311 | 311 | /** Optional. Service message: forum topic created */ |
| 312 | - public null|forumTopicCreated $forum_topic_created = null; |
|
| 312 | + public null | forumTopicCreated $forum_topic_created = null; |
|
| 313 | 313 | |
| 314 | 314 | /** Optional. Service message: forum topic closed */ |
| 315 | - public null|forumTopicClosed $forum_topic_closed = null; |
|
| 315 | + public null | forumTopicClosed $forum_topic_closed = null; |
|
| 316 | 316 | |
| 317 | 317 | /** Optional. Service message: forum topic reopened */ |
| 318 | - public null|forumTopicReopened $forum_topic_reopened = null; |
|
| 318 | + public null | forumTopicReopened $forum_topic_reopened = null; |
|
| 319 | 319 | |
| 320 | 320 | /** Optional. Service message: video chat scheduled */ |
| 321 | - public null|videoChatScheduled $video_chat_scheduled = null; |
|
| 321 | + public null | videoChatScheduled $video_chat_scheduled = null; |
|
| 322 | 322 | |
| 323 | 323 | /** Optional. Service message: video chat started */ |
| 324 | - public null|videoChatStarted $video_chat_started = null; |
|
| 324 | + public null | videoChatStarted $video_chat_started = null; |
|
| 325 | 325 | |
| 326 | 326 | /** Optional. Service message: video chat ended */ |
| 327 | - public null|videoChatEnded $video_chat_ended = null; |
|
| 327 | + public null | videoChatEnded $video_chat_ended = null; |
|
| 328 | 328 | |
| 329 | 329 | /** Optional. Service message: new participants invited to a video chat */ |
| 330 | - public null|videoChatParticipantsInvited $video_chat_participants_invited = null; |
|
| 330 | + public null | videoChatParticipantsInvited $video_chat_participants_invited = null; |
|
| 331 | 331 | |
| 332 | 332 | /** Optional. Service message: data sent by a Web App */ |
| 333 | - public null|webAppData $web_app_data = null; |
|
| 333 | + public null | webAppData $web_app_data = null; |
|
| 334 | 334 | |
| 335 | 335 | /** Optional. Inline keyboard attached to the message. login_url buttons are represented as ordinary url buttons. */ |
| 336 | - public null|inlineKeyboardMarkup $reply_markup = null; |
|
| 336 | + public null | inlineKeyboardMarkup $reply_markup = null; |
|
| 337 | 337 | |
| 338 | 338 | |
| 339 | - public function __construct(stdClass|null $object = null) { |
|
| 339 | + public function __construct(stdClass | null $object = null) { |
|
| 340 | 340 | if ($object != null) { |
| 341 | 341 | parent::__construct($object, self::subs); |
| 342 | 342 | } |
@@ -21,13 +21,13 @@ discard block |
||
| 21 | 21 | public string $sticker_type; |
| 22 | 22 | |
| 23 | 23 | /** True, if the sticker set contains animated stickers */ |
| 24 | - public null|bool $is_animated = null; |
|
| 24 | + public null | bool $is_animated = null; |
|
| 25 | 25 | |
| 26 | 26 | /** True, if the sticker set contains video stickers */ |
| 27 | - public null|bool $is_video = null; |
|
| 27 | + public null | bool $is_video = null; |
|
| 28 | 28 | |
| 29 | 29 | /** Deprecated use sticker_type instead, True, if the sticker set contains masks */ |
| 30 | - public null|bool $contains_masks = null; |
|
| 30 | + public null | bool $contains_masks = null; |
|
| 31 | 31 | |
| 32 | 32 | /** |
| 33 | 33 | * List of all set stickers |
@@ -36,10 +36,10 @@ discard block |
||
| 36 | 36 | public array $stickers; |
| 37 | 37 | |
| 38 | 38 | /** Optional. Sticker set thumbnail in the .WEBP, .TGS, or .WEBM format */ |
| 39 | - public null|photoSize $thumb = null; |
|
| 39 | + public null | photoSize $thumb = 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 | } |