@@ -18,20 +18,20 @@ |
||
18 | 18 | public string $first_name; |
19 | 19 | |
20 | 20 | /** Optional. Contact's last name */ |
21 | - public null|string $last_name = null; |
|
21 | + public null | string $last_name = null; |
|
22 | 22 | |
23 | 23 | /** |
24 | 24 | * Optional. Contact's user identifier in Telegram. This number may have more than 32 significant bits and some |
25 | 25 | * programming languages may have difficulty/silent defects in interpreting it. But it has at most 52 significant |
26 | 26 | * bits, so a 64-bit integer or double-precision float type are safe for storing this identifier. |
27 | 27 | */ |
28 | - public null|int $user_id = null; |
|
28 | + public null | int $user_id = null; |
|
29 | 29 | |
30 | 30 | /** Optional. Additional data about the contact in the form of a vCard */ |
31 | - public null|string $vcard = null; |
|
31 | + public null | string $vcard = 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 | } |
@@ -21,7 +21,7 @@ |
||
21 | 21 | public array $photos = []; |
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 | } |
@@ -46,64 +46,64 @@ |
||
46 | 46 | public int $update_id; |
47 | 47 | |
48 | 48 | /** Optional. New incoming message of any kind - text, photo, sticker, etc. */ |
49 | - public null|message $message = null; |
|
49 | + public null | message $message = null; |
|
50 | 50 | |
51 | 51 | /** Optional. New version of a message that is known to the bot and was edited */ |
52 | - public null|message $edited_message = null; |
|
52 | + public null | message $edited_message = null; |
|
53 | 53 | |
54 | 54 | /** Optional. New incoming channel post of any kind - text, photo, sticker, etc. */ |
55 | - public null|message $channel_post = null; |
|
55 | + public null | message $channel_post = null; |
|
56 | 56 | |
57 | 57 | /** Optional. New version of a channel post that is known to the bot and was edited */ |
58 | - public null|message $edited_channel_post = null; |
|
58 | + public null | message $edited_channel_post = null; |
|
59 | 59 | |
60 | 60 | /** Optional. New incoming inline query */ |
61 | - public null|inlineQuery $inline_query = null; |
|
61 | + public null | inlineQuery $inline_query = null; |
|
62 | 62 | |
63 | 63 | /** |
64 | 64 | * Optional. The result of an inline query that was chosen by a user and sent to their chat partner. Please see |
65 | 65 | * our documentation on the feedback collecting for details on how to enable these updates for your bot. |
66 | 66 | */ |
67 | - public null|chosenInlineResult $chosen_inline_result = null; |
|
67 | + public null | chosenInlineResult $chosen_inline_result = null; |
|
68 | 68 | |
69 | 69 | /** Optional. New incoming callback query */ |
70 | - public null|callbackQuery $callback_query = null; |
|
70 | + public null | callbackQuery $callback_query = null; |
|
71 | 71 | |
72 | 72 | /** Optional. New incoming shipping query. Only for invoices with flexible price */ |
73 | - public null|shippingQuery $shipping_query = null; |
|
73 | + public null | shippingQuery $shipping_query = null; |
|
74 | 74 | |
75 | 75 | /** Optional. New incoming pre-checkout query. Contains full information about checkout */ |
76 | - public null|preCheckoutQuery $pre_checkout_query = null; |
|
76 | + public null | preCheckoutQuery $pre_checkout_query = null; |
|
77 | 77 | |
78 | 78 | /** Optional. New poll state. Bots receive only updates about stopped polls and polls, which are sent by the bot */ |
79 | - public null|poll $poll = null; |
|
79 | + public null | poll $poll = null; |
|
80 | 80 | |
81 | 81 | /** |
82 | 82 | * Optional. A user changed their answer in a non-anonymous poll. Bots receive new votes only in polls that were |
83 | 83 | * sent by the bot itself. |
84 | 84 | */ |
85 | - public null|pollAnswer $poll_answer = null; |
|
85 | + public null | pollAnswer $poll_answer = null; |
|
86 | 86 | |
87 | 87 | /** |
88 | 88 | * Optional. The bot's chat member status was updated in a chat. For private chats, this update is received only |
89 | 89 | * when the bot is blocked or unblocked by the user. |
90 | 90 | */ |
91 | - public null|chatMemberUpdated $my_chat_member = null; |
|
91 | + public null | chatMemberUpdated $my_chat_member = null; |
|
92 | 92 | |
93 | 93 | /** |
94 | 94 | * Optional. A chat member's status was updated in a chat. The bot must be an administrator in the chat and must |
95 | 95 | * explicitly specify “chat_member” in the list of allowed_updates to receive these updates. |
96 | 96 | */ |
97 | - public null|chatMemberUpdated $chat_member = null; |
|
97 | + public null | chatMemberUpdated $chat_member = null; |
|
98 | 98 | |
99 | 99 | /** |
100 | 100 | * Optional. A request to join the chat has been sent. The bot must have the can_invite_users administrator right |
101 | 101 | * in the chat to receive these updates. |
102 | 102 | */ |
103 | - public null|chatJoinRequest $chat_join_request = null; |
|
103 | + public null | chatJoinRequest $chat_join_request = null; |
|
104 | 104 | |
105 | 105 | |
106 | - public function __construct(stdClass|null $object = null) { |
|
106 | + public function __construct(stdClass | null $object = null) { |
|
107 | 107 | if ($object != null) { |
108 | 108 | parent::__construct($object, self::subs); |
109 | 109 | } |
@@ -12,19 +12,19 @@ |
||
12 | 12 | private const subs = ['shipping_address' => 'BPT\types\shippingAddress']; |
13 | 13 | |
14 | 14 | /** Optional. User name */ |
15 | - public null|string $name = null; |
|
15 | + public null | string $name = null; |
|
16 | 16 | |
17 | 17 | /** Optional. User's phone number */ |
18 | - public null|string $phone_number = null; |
|
18 | + public null | string $phone_number = null; |
|
19 | 19 | |
20 | 20 | /** Optional. User email */ |
21 | - public null|string $email = null; |
|
21 | + public null | string $email = null; |
|
22 | 22 | |
23 | 23 | /** Optional. User shipping address */ |
24 | - public null|shippingAddress $shipping_address = null; |
|
24 | + public null | shippingAddress $shipping_address = null; |
|
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 | } |
@@ -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 | } |
@@ -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 | } |
@@ -17,16 +17,16 @@ |
||
17 | 17 | * But it has at most 52 significant bits, so a signed 64-bit integer or double-precision float type are safe for |
18 | 18 | * storing this identifier. |
19 | 19 | */ |
20 | - public null|int $migrate_to_chat_id = null; |
|
20 | + public null | int $migrate_to_chat_id = null; |
|
21 | 21 | |
22 | 22 | /** |
23 | 23 | * Optional. In case of exceeding flood control, the number of seconds left to wait before the request can be |
24 | 24 | * repeated |
25 | 25 | */ |
26 | - public null|int $retry_after = null; |
|
26 | + public null | int $retry_after = null; |
|
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 | } |