@@ -18,78 +18,78 @@ |
||
18 | 18 | public user $user; |
19 | 19 | |
20 | 20 | /** `creator` and `administrator` only. True, if the user's presence in the chat is hidden */ |
21 | - public null|bool $is_anonymous = null; |
|
21 | + public null | bool $is_anonymous = null; |
|
22 | 22 | |
23 | 23 | /** `creator` and `administrator` only. Custom title for this user */ |
24 | - public null|string $custom_title = null; |
|
24 | + public null | string $custom_title = null; |
|
25 | 25 | |
26 | 26 | /** `administrator` only. True, if the bot is allowed to edit administrator privileges of that user */ |
27 | - public null|bool $can_be_edited = null; |
|
27 | + public null | bool $can_be_edited = null; |
|
28 | 28 | |
29 | 29 | /** |
30 | 30 | * `administrator` only. True, if the administrator can access the chat event log, chat statistics, message statistics in |
31 | 31 | * channels, see channel members, see anonymous administrators in supergroups and ignore slow mode. Implied by any other |
32 | 32 | * administrator privilege |
33 | 33 | */ |
34 | - public null|bool $can_manage_chat = null; |
|
34 | + public null | bool $can_manage_chat = null; |
|
35 | 35 | |
36 | 36 | /** `administrator` only. True, if the administrator can delete messages of other users */ |
37 | - public null|bool $can_delete_messages = null; |
|
37 | + public null | bool $can_delete_messages = null; |
|
38 | 38 | |
39 | 39 | /** `administrator` only. True, if the administrator can manage video chats */ |
40 | - public null|bool $can_manage_video_chats = null; |
|
40 | + public null | bool $can_manage_video_chats = null; |
|
41 | 41 | |
42 | 42 | /** `administrator` only. True, if the administrator can restrict, ban or unban chat members */ |
43 | - public null|bool $can_restrict_members = null; |
|
43 | + public null | bool $can_restrict_members = null; |
|
44 | 44 | |
45 | 45 | /** |
46 | 46 | * `administrator` only. if the administrator can add new administrators with a subset of their own privileges or demote |
47 | 47 | * administrators that he has promoted, directly or indirectly (promoted by administrators that were appointed by |
48 | 48 | * the user) |
49 | 49 | */ |
50 | - public null|bool $can_promote_members = null; |
|
50 | + public null | bool $can_promote_members = null; |
|
51 | 51 | |
52 | 52 | /** `administrator` and `restricted` only. True, if the user is allowed to change the chat title, photo and other settings */ |
53 | - public null|bool $can_change_info = null; |
|
53 | + public null | bool $can_change_info = null; |
|
54 | 54 | |
55 | 55 | /** `administrator` and `restricted` only. True, if the user is allowed to invite new users to the chat */ |
56 | - public null|bool $can_invite_users = null; |
|
56 | + public null | bool $can_invite_users = null; |
|
57 | 57 | |
58 | 58 | /** `administrator` only. Optional. True, if the administrator can post in the channel; channels only */ |
59 | - public null|bool $can_post_messages = null; |
|
59 | + public null | bool $can_post_messages = null; |
|
60 | 60 | |
61 | 61 | /** `administrator` only. Optional. True, if the administrator can edit messages of other users and can pin messages; channels only */ |
62 | - public null|bool $can_edit_messages = null; |
|
62 | + public null | bool $can_edit_messages = null; |
|
63 | 63 | |
64 | 64 | /** `administrator` and `restricted` only. Optional. True, if the user is allowed to pin messages; groups and supergroups only */ |
65 | - public null|bool $can_pin_messages = null; |
|
65 | + public null | bool $can_pin_messages = null; |
|
66 | 66 | /** |
67 | 67 | * `administrator` : Optional. True, if the user is allowed to create, rename, close, and reopen forum topics; supergroups only |
68 | 68 | * |
69 | 69 | * `restricted` : True, if the user is allowed to create forum topics |
70 | 70 | */ |
71 | - public null|bool $can_manage_topics = null; |
|
71 | + public null | bool $can_manage_topics = null; |
|
72 | 72 | |
73 | 73 | /** `restricted` only. True, if the user is a member of the chat at the moment of the request */ |
74 | - public null|bool $is_member = null; |
|
74 | + public null | bool $is_member = null; |
|
75 | 75 | |
76 | 76 | /** `restricted` only. True, if the user is allowed to send text messages, contacts, locations and venues */ |
77 | - public null|bool $can_send_messages = null; |
|
77 | + public null | bool $can_send_messages = null; |
|
78 | 78 | |
79 | 79 | /** `restricted` only. True, if the user is allowed to send audios, documents, photos, videos, video notes and voice notes */ |
80 | - public null|bool $can_send_media_messages = null; |
|
80 | + public null | bool $can_send_media_messages = null; |
|
81 | 81 | |
82 | 82 | /** `restricted` only. True, if the user is allowed to send polls */ |
83 | - public null|bool $can_send_polls = null; |
|
83 | + public null | bool $can_send_polls = null; |
|
84 | 84 | |
85 | 85 | /** `restricted` only. True, if the user is allowed to send animations, games, stickers and use inline bots */ |
86 | - public null|bool $can_send_other_messages = null; |
|
86 | + public null | bool $can_send_other_messages = null; |
|
87 | 87 | |
88 | 88 | /** `restricted` only. True, if the user is allowed to add web page previews to their messages */ |
89 | - public null|bool $can_add_web_page_previews = null; |
|
89 | + public null | bool $can_add_web_page_previews = null; |
|
90 | 90 | |
91 | 91 | /** `kicked` and `restricted` only. Date when restrictions will be lifted for this user; unix time. If 0, then the user is restricted forever */ |
92 | - public null|int $until_date = null; |
|
92 | + public null | int $until_date = null; |
|
93 | 93 | |
94 | 94 | |
95 | 95 | public function __construct(stdClass $object) { |
@@ -15,40 +15,40 @@ |
||
15 | 15 | public string $url = ''; |
16 | 16 | |
17 | 17 | /** True, if a custom certificate was provided for webhook certificate checks */ |
18 | - public null|bool $has_custom_certificate = null; |
|
18 | + public null | bool $has_custom_certificate = null; |
|
19 | 19 | |
20 | 20 | /** Number of updates awaiting delivery */ |
21 | 21 | public int $pending_update_count; |
22 | 22 | |
23 | 23 | /** Optional. Currently used webhook IP address */ |
24 | - public null|string $ip_address = null; |
|
24 | + public null | string $ip_address = null; |
|
25 | 25 | |
26 | 26 | /** Optional. Unix time for the most recent error that happened when trying to deliver an update via webhook */ |
27 | - public null|int $last_error_date = null; |
|
27 | + public null | int $last_error_date = null; |
|
28 | 28 | |
29 | 29 | /** |
30 | 30 | * Optional. Error message in human-readable format for the most recent error that happened when trying to |
31 | 31 | * deliver an update via webhook |
32 | 32 | */ |
33 | - public null|string $last_error_message = null; |
|
33 | + public null | string $last_error_message = null; |
|
34 | 34 | |
35 | 35 | /** |
36 | 36 | * Optional. Unix time of the most recent error that happened when trying to synchronize available updates with |
37 | 37 | * Telegram datacenters |
38 | 38 | */ |
39 | - public null|int $last_synchronization_error_date = null; |
|
39 | + public null | int $last_synchronization_error_date = null; |
|
40 | 40 | |
41 | 41 | /** Optional. The maximum allowed number of simultaneous HTTPS connections to the webhook for update delivery */ |
42 | - public null|int $max_connections = null; |
|
42 | + public null | int $max_connections = null; |
|
43 | 43 | |
44 | 44 | /** |
45 | 45 | * Optional. A list of update types the bot is subscribed to. Defaults to all update types except chat_member |
46 | 46 | * @var string[] |
47 | 47 | */ |
48 | - public null|array $allowed_updates = null; |
|
48 | + public null | array $allowed_updates = 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 | } |
@@ -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 | } |