@@ -9,27 +9,27 @@ |
||
9 | 9 | * with the document translation change. |
10 | 10 | */ |
11 | 11 | class passportElementErrorTranslationFiles extends types { |
12 | - /** Keep all of properties which has sub properties */ |
|
13 | - private const subs = []; |
|
12 | + /** Keep all of properties which has sub properties */ |
|
13 | + private const subs = []; |
|
14 | 14 | |
15 | - /** Error source, must be translation_files */ |
|
16 | - public string $source; |
|
15 | + /** Error source, must be translation_files */ |
|
16 | + public string $source; |
|
17 | 17 | |
18 | - /** |
|
19 | - * Type of element of the user's Telegram Passport which has the issue, one of “passport”, |
|
20 | - * “driver_license”, “identity_card”, “internal_passport”, “utility_bill”, “bank_statement”, |
|
21 | - * “rental_agreement”, “passport_registration”, “temporary_registration” |
|
22 | - */ |
|
23 | - public string $type; |
|
18 | + /** |
|
19 | + * Type of element of the user's Telegram Passport which has the issue, one of “passport”, |
|
20 | + * “driver_license”, “identity_card”, “internal_passport”, “utility_bill”, “bank_statement”, |
|
21 | + * “rental_agreement”, “passport_registration”, “temporary_registration” |
|
22 | + */ |
|
23 | + public string $type; |
|
24 | 24 | |
25 | - /** List of base64-encoded file hashes */ |
|
26 | - public array $file_hashes; |
|
25 | + /** List of base64-encoded file hashes */ |
|
26 | + public array $file_hashes; |
|
27 | 27 | |
28 | - /** Error message */ |
|
29 | - public string $message; |
|
28 | + /** Error message */ |
|
29 | + public string $message; |
|
30 | 30 | |
31 | 31 | |
32 | - public function __construct(stdClass $update) { |
|
33 | - parent::__construct($update, self::subs); |
|
34 | - } |
|
32 | + public function __construct(stdClass $update) { |
|
33 | + parent::__construct($update, self::subs); |
|
34 | + } |
|
35 | 35 | } |
@@ -8,14 +8,14 @@ |
||
8 | 8 | * Contains information about a Web App. |
9 | 9 | */ |
10 | 10 | class webAppInfo extends types { |
11 | - /** Keep all of properties which has sub properties */ |
|
12 | - private const subs = []; |
|
11 | + /** Keep all of properties which has sub properties */ |
|
12 | + private const subs = []; |
|
13 | 13 | |
14 | - /** An HTTPS URL of a Web App to be opened with additional data as specified in Initializing Web Apps */ |
|
15 | - public string $url; |
|
14 | + /** An HTTPS URL of a Web App to be opened with additional data as specified in Initializing Web Apps */ |
|
15 | + public string $url; |
|
16 | 16 | |
17 | 17 | |
18 | - public function __construct(stdClass $update) { |
|
19 | - parent::__construct($update, self::subs); |
|
20 | - } |
|
18 | + public function __construct(stdClass $update) { |
|
19 | + parent::__construct($update, self::subs); |
|
20 | + } |
|
21 | 21 | } |
@@ -9,20 +9,20 @@ |
||
9 | 9 | * alert set by another user. |
10 | 10 | */ |
11 | 11 | class proximityAlertTriggered extends types { |
12 | - /** Keep all of properties which has sub properties */ |
|
13 | - private const subs = ['traveler' => 'BPT\types\user', 'watcher' => 'BPT\types\user']; |
|
12 | + /** Keep all of properties which has sub properties */ |
|
13 | + private const subs = ['traveler' => 'BPT\types\user', 'watcher' => 'BPT\types\user']; |
|
14 | 14 | |
15 | - /** User that triggered the alert */ |
|
16 | - public user $traveler; |
|
15 | + /** User that triggered the alert */ |
|
16 | + public user $traveler; |
|
17 | 17 | |
18 | - /** User that set the alert */ |
|
19 | - public user $watcher; |
|
18 | + /** User that set the alert */ |
|
19 | + public user $watcher; |
|
20 | 20 | |
21 | - /** The distance between the users */ |
|
22 | - public int $distance; |
|
21 | + /** The distance between the users */ |
|
22 | + public int $distance; |
|
23 | 23 | |
24 | 24 | |
25 | - public function __construct(stdClass $update) { |
|
26 | - parent::__construct($update, self::subs); |
|
27 | - } |
|
25 | + public function __construct(stdClass $update) { |
|
26 | + parent::__construct($update, self::subs); |
|
27 | + } |
|
28 | 28 | } |
@@ -9,92 +9,92 @@ |
||
9 | 9 | * update. |
10 | 10 | */ |
11 | 11 | class update extends types { |
12 | - /** Keep all of properties which has sub properties */ |
|
13 | - private const subs = [ |
|
14 | - 'message' => 'BPT\types\message', |
|
15 | - 'edited_message' => 'BPT\types\message', |
|
16 | - 'channel_post' => 'BPT\types\message', |
|
17 | - 'edited_channel_post' => 'BPT\types\message', |
|
18 | - 'inline_query' => 'BPT\types\inlineQuery', |
|
19 | - 'chosen_inline_result' => 'BPT\types\chosenInlineResult', |
|
20 | - 'callback_query' => 'BPT\types\callbackQuery', |
|
21 | - 'shipping_query' => 'BPT\types\shippingQuery', |
|
22 | - 'pre_checkout_query' => 'BPT\types\preCheckoutQuery', |
|
23 | - 'poll' => 'BPT\types\poll', |
|
24 | - 'poll_answer' => 'BPT\types\pollAnswer', |
|
25 | - 'my_chat_member' => 'BPT\types\chatMemberUpdated', |
|
26 | - 'chat_member' => 'BPT\types\chatMemberUpdated', |
|
27 | - 'chat_join_request' => 'BPT\types\chatJoinRequest', |
|
28 | - ]; |
|
29 | - |
|
30 | - /** |
|
31 | - * The update's unique identifier. Update identifiers start from a certain positive number and increase |
|
32 | - * sequentially. This ID becomes especially handy if you're using Webhooks, since it allows you to ignore |
|
33 | - * repeated updates or to restore the correct update sequence, should they get out of order. If there are no new |
|
34 | - * updates for at least a week, then identifier of the next update will be chosen randomly instead of |
|
35 | - * sequentially. |
|
36 | - */ |
|
37 | - public int $update_id; |
|
38 | - |
|
39 | - /** Optional. New incoming message of any kind — text, photo, sticker, etc. */ |
|
40 | - public message $message; |
|
41 | - |
|
42 | - /** Optional. New version of a message that is known to the bot and was edited */ |
|
43 | - public message $edited_message; |
|
44 | - |
|
45 | - /** Optional. New incoming channel post of any kind — text, photo, sticker, etc. */ |
|
46 | - public message $channel_post; |
|
47 | - |
|
48 | - /** Optional. New version of a channel post that is known to the bot and was edited */ |
|
49 | - public message $edited_channel_post; |
|
50 | - |
|
51 | - /** Optional. New incoming inline query */ |
|
52 | - public inlineQuery $inline_query; |
|
53 | - |
|
54 | - /** |
|
55 | - * Optional. The result of an inline query that was chosen by a user and sent to their chat partner. Please see |
|
56 | - * our documentation on the feedback collecting for details on how to enable these updates for your bot. |
|
57 | - */ |
|
58 | - public chosenInlineResult $chosen_inline_result; |
|
59 | - |
|
60 | - /** Optional. New incoming callback query */ |
|
61 | - public callbackQuery $callback_query; |
|
62 | - |
|
63 | - /** Optional. New incoming shipping query. Only for invoices with flexible price */ |
|
64 | - public shippingQuery $shipping_query; |
|
65 | - |
|
66 | - /** Optional. New incoming pre-checkout query. Contains full information about checkout */ |
|
67 | - public preCheckoutQuery $pre_checkout_query; |
|
68 | - |
|
69 | - /** Optional. New poll state. Bots receive only updates about stopped polls and polls, which are sent by the bot */ |
|
70 | - public poll $poll; |
|
71 | - |
|
72 | - /** |
|
73 | - * Optional. A user changed their answer in a non-anonymous poll. Bots receive new votes only in polls that were |
|
74 | - * sent by the bot itself. |
|
75 | - */ |
|
76 | - public pollAnswer $poll_answer; |
|
77 | - |
|
78 | - /** |
|
79 | - * Optional. The bot's chat member status was updated in a chat. For private chats, this update is received only |
|
80 | - * when the bot is blocked or unblocked by the user. |
|
81 | - */ |
|
82 | - public chatMemberUpdated $my_chat_member; |
|
83 | - |
|
84 | - /** |
|
85 | - * Optional. A chat member's status was updated in a chat. The bot must be an administrator in the chat and must |
|
86 | - * explicitly specify “chat_member” in the list of allowed_updates to receive these updates. |
|
87 | - */ |
|
88 | - public chatMemberUpdated $chat_member; |
|
89 | - |
|
90 | - /** |
|
91 | - * Optional. A request to join the chat has been sent. The bot must have the can_invite_users administrator right |
|
92 | - * in the chat to receive these updates. |
|
93 | - */ |
|
94 | - public chatJoinRequest $chat_join_request; |
|
95 | - |
|
96 | - |
|
97 | - public function __construct(stdClass $update) { |
|
98 | - parent::__construct($update, self::subs); |
|
99 | - } |
|
12 | + /** Keep all of properties which has sub properties */ |
|
13 | + private const subs = [ |
|
14 | + 'message' => 'BPT\types\message', |
|
15 | + 'edited_message' => 'BPT\types\message', |
|
16 | + 'channel_post' => 'BPT\types\message', |
|
17 | + 'edited_channel_post' => 'BPT\types\message', |
|
18 | + 'inline_query' => 'BPT\types\inlineQuery', |
|
19 | + 'chosen_inline_result' => 'BPT\types\chosenInlineResult', |
|
20 | + 'callback_query' => 'BPT\types\callbackQuery', |
|
21 | + 'shipping_query' => 'BPT\types\shippingQuery', |
|
22 | + 'pre_checkout_query' => 'BPT\types\preCheckoutQuery', |
|
23 | + 'poll' => 'BPT\types\poll', |
|
24 | + 'poll_answer' => 'BPT\types\pollAnswer', |
|
25 | + 'my_chat_member' => 'BPT\types\chatMemberUpdated', |
|
26 | + 'chat_member' => 'BPT\types\chatMemberUpdated', |
|
27 | + 'chat_join_request' => 'BPT\types\chatJoinRequest', |
|
28 | + ]; |
|
29 | + |
|
30 | + /** |
|
31 | + * The update's unique identifier. Update identifiers start from a certain positive number and increase |
|
32 | + * sequentially. This ID becomes especially handy if you're using Webhooks, since it allows you to ignore |
|
33 | + * repeated updates or to restore the correct update sequence, should they get out of order. If there are no new |
|
34 | + * updates for at least a week, then identifier of the next update will be chosen randomly instead of |
|
35 | + * sequentially. |
|
36 | + */ |
|
37 | + public int $update_id; |
|
38 | + |
|
39 | + /** Optional. New incoming message of any kind — text, photo, sticker, etc. */ |
|
40 | + public message $message; |
|
41 | + |
|
42 | + /** Optional. New version of a message that is known to the bot and was edited */ |
|
43 | + public message $edited_message; |
|
44 | + |
|
45 | + /** Optional. New incoming channel post of any kind — text, photo, sticker, etc. */ |
|
46 | + public message $channel_post; |
|
47 | + |
|
48 | + /** Optional. New version of a channel post that is known to the bot and was edited */ |
|
49 | + public message $edited_channel_post; |
|
50 | + |
|
51 | + /** Optional. New incoming inline query */ |
|
52 | + public inlineQuery $inline_query; |
|
53 | + |
|
54 | + /** |
|
55 | + * Optional. The result of an inline query that was chosen by a user and sent to their chat partner. Please see |
|
56 | + * our documentation on the feedback collecting for details on how to enable these updates for your bot. |
|
57 | + */ |
|
58 | + public chosenInlineResult $chosen_inline_result; |
|
59 | + |
|
60 | + /** Optional. New incoming callback query */ |
|
61 | + public callbackQuery $callback_query; |
|
62 | + |
|
63 | + /** Optional. New incoming shipping query. Only for invoices with flexible price */ |
|
64 | + public shippingQuery $shipping_query; |
|
65 | + |
|
66 | + /** Optional. New incoming pre-checkout query. Contains full information about checkout */ |
|
67 | + public preCheckoutQuery $pre_checkout_query; |
|
68 | + |
|
69 | + /** Optional. New poll state. Bots receive only updates about stopped polls and polls, which are sent by the bot */ |
|
70 | + public poll $poll; |
|
71 | + |
|
72 | + /** |
|
73 | + * Optional. A user changed their answer in a non-anonymous poll. Bots receive new votes only in polls that were |
|
74 | + * sent by the bot itself. |
|
75 | + */ |
|
76 | + public pollAnswer $poll_answer; |
|
77 | + |
|
78 | + /** |
|
79 | + * Optional. The bot's chat member status was updated in a chat. For private chats, this update is received only |
|
80 | + * when the bot is blocked or unblocked by the user. |
|
81 | + */ |
|
82 | + public chatMemberUpdated $my_chat_member; |
|
83 | + |
|
84 | + /** |
|
85 | + * Optional. A chat member's status was updated in a chat. The bot must be an administrator in the chat and must |
|
86 | + * explicitly specify “chat_member” in the list of allowed_updates to receive these updates. |
|
87 | + */ |
|
88 | + public chatMemberUpdated $chat_member; |
|
89 | + |
|
90 | + /** |
|
91 | + * Optional. A request to join the chat has been sent. The bot must have the can_invite_users administrator right |
|
92 | + * in the chat to receive these updates. |
|
93 | + */ |
|
94 | + public chatJoinRequest $chat_join_request; |
|
95 | + |
|
96 | + |
|
97 | + public function __construct(stdClass $update) { |
|
98 | + parent::__construct($update, self::subs); |
|
99 | + } |
|
100 | 100 | } |
@@ -8,29 +8,29 @@ |
||
8 | 8 | * This object represents a shipping address. |
9 | 9 | */ |
10 | 10 | class shippingAddress extends types { |
11 | - /** Keep all of properties which has sub properties */ |
|
12 | - private const subs = []; |
|
11 | + /** Keep all of properties which has sub properties */ |
|
12 | + private const subs = []; |
|
13 | 13 | |
14 | - /** ISO 3166-1 alpha-2 country code */ |
|
15 | - public string $country_code; |
|
14 | + /** ISO 3166-1 alpha-2 country code */ |
|
15 | + public string $country_code; |
|
16 | 16 | |
17 | - /** State, if applicable */ |
|
18 | - public string $state; |
|
17 | + /** State, if applicable */ |
|
18 | + public string $state; |
|
19 | 19 | |
20 | - /** City */ |
|
21 | - public string $city; |
|
20 | + /** City */ |
|
21 | + public string $city; |
|
22 | 22 | |
23 | - /** First line for the address */ |
|
24 | - public string $street_line1; |
|
23 | + /** First line for the address */ |
|
24 | + public string $street_line1; |
|
25 | 25 | |
26 | - /** Second line for the address */ |
|
27 | - public string $street_line2; |
|
26 | + /** Second line for the address */ |
|
27 | + public string $street_line2; |
|
28 | 28 | |
29 | - /** Address post code */ |
|
30 | - public string $post_code; |
|
29 | + /** Address post code */ |
|
30 | + public string $post_code; |
|
31 | 31 | |
32 | 32 | |
33 | - public function __construct(stdClass $update) { |
|
34 | - parent::__construct($update, self::subs); |
|
35 | - } |
|
33 | + public function __construct(stdClass $update) { |
|
34 | + parent::__construct($update, self::subs); |
|
35 | + } |
|
36 | 36 | } |
@@ -8,35 +8,35 @@ |
||
8 | 8 | * This object represents a point on the map. |
9 | 9 | */ |
10 | 10 | class location extends types { |
11 | - /** Keep all of properties which has sub properties */ |
|
12 | - private const subs = []; |
|
11 | + /** Keep all of properties which has sub properties */ |
|
12 | + private const subs = []; |
|
13 | 13 | |
14 | - /** Longitude as defined by sender */ |
|
15 | - public float $longitude; |
|
14 | + /** Longitude as defined by sender */ |
|
15 | + public float $longitude; |
|
16 | 16 | |
17 | - /** Latitude as defined by sender */ |
|
18 | - public float $latitude; |
|
17 | + /** Latitude as defined by sender */ |
|
18 | + public float $latitude; |
|
19 | 19 | |
20 | - /** Optional. The radius of uncertainty for the location, measured in meters; 0-1500 */ |
|
21 | - public float $horizontal_accuracy; |
|
20 | + /** Optional. The radius of uncertainty for the location, measured in meters; 0-1500 */ |
|
21 | + public float $horizontal_accuracy; |
|
22 | 22 | |
23 | - /** |
|
24 | - * Optional. Time relative to the message sending date, during which the location can be updated; in seconds. For |
|
25 | - * active live locations only. |
|
26 | - */ |
|
27 | - public int $live_period; |
|
23 | + /** |
|
24 | + * Optional. Time relative to the message sending date, during which the location can be updated; in seconds. For |
|
25 | + * active live locations only. |
|
26 | + */ |
|
27 | + public int $live_period; |
|
28 | 28 | |
29 | - /** Optional. The direction in which user is moving, in degrees; 1-360. For active live locations only. */ |
|
30 | - public int $heading; |
|
29 | + /** Optional. The direction in which user is moving, in degrees; 1-360. For active live locations only. */ |
|
30 | + public int $heading; |
|
31 | 31 | |
32 | - /** |
|
33 | - * Optional. Maximum distance for proximity alerts about approaching another chat member, in meters. For sent |
|
34 | - * live locations only. |
|
35 | - */ |
|
36 | - public int $proximity_alert_radius; |
|
32 | + /** |
|
33 | + * Optional. Maximum distance for proximity alerts about approaching another chat member, in meters. For sent |
|
34 | + * live locations only. |
|
35 | + */ |
|
36 | + public int $proximity_alert_radius; |
|
37 | 37 | |
38 | 38 | |
39 | - public function __construct(stdClass $update) { |
|
40 | - parent::__construct($update, self::subs); |
|
41 | - } |
|
39 | + public function __construct(stdClass $update) { |
|
40 | + parent::__construct($update, self::subs); |
|
41 | + } |
|
42 | 42 | } |
@@ -8,23 +8,23 @@ |
||
8 | 8 | * This object represents information about an order. |
9 | 9 | */ |
10 | 10 | class orderInfo extends types { |
11 | - /** Keep all of properties which has sub properties */ |
|
12 | - private const subs = ['shipping_address' => 'BPT\types\shippingAddress']; |
|
11 | + /** Keep all of properties which has sub properties */ |
|
12 | + private const subs = ['shipping_address' => 'BPT\types\shippingAddress']; |
|
13 | 13 | |
14 | - /** Optional. User name */ |
|
15 | - public string $name; |
|
14 | + /** Optional. User name */ |
|
15 | + public string $name; |
|
16 | 16 | |
17 | - /** Optional. User's phone number */ |
|
18 | - public string $phone_number; |
|
17 | + /** Optional. User's phone number */ |
|
18 | + public string $phone_number; |
|
19 | 19 | |
20 | - /** Optional. User email */ |
|
21 | - public string $email; |
|
20 | + /** Optional. User email */ |
|
21 | + public string $email; |
|
22 | 22 | |
23 | - /** Optional. User shipping address */ |
|
24 | - public shippingAddress $shipping_address; |
|
23 | + /** Optional. User shipping address */ |
|
24 | + public shippingAddress $shipping_address; |
|
25 | 25 | |
26 | 26 | |
27 | - public function __construct(stdClass $update) { |
|
28 | - parent::__construct($update, self::subs); |
|
29 | - } |
|
27 | + public function __construct(stdClass $update) { |
|
28 | + parent::__construct($update, self::subs); |
|
29 | + } |
|
30 | 30 | } |
@@ -8,14 +8,14 @@ |
||
8 | 8 | * Represents a menu button, which opens the bot's list of commands. |
9 | 9 | */ |
10 | 10 | class menuButtonCommands extends types { |
11 | - /** Keep all of properties which has sub properties */ |
|
12 | - private const subs = []; |
|
11 | + /** Keep all of properties which has sub properties */ |
|
12 | + private const subs = []; |
|
13 | 13 | |
14 | - /** Type of the button, must be commands */ |
|
15 | - public string $type; |
|
14 | + /** Type of the button, must be commands */ |
|
15 | + public string $type; |
|
16 | 16 | |
17 | 17 | |
18 | - public function __construct(stdClass $update) { |
|
19 | - parent::__construct($update, self::subs); |
|
20 | - } |
|
18 | + public function __construct(stdClass $update) { |
|
19 | + parent::__construct($update, self::subs); |
|
20 | + } |
|
21 | 21 | } |
@@ -8,29 +8,29 @@ |
||
8 | 8 | * This object represents one size of a photo or a file / sticker thumbnail. |
9 | 9 | */ |
10 | 10 | class photoSize extends types { |
11 | - /** Keep all of properties which has sub properties */ |
|
12 | - private const subs = []; |
|
11 | + /** Keep all of properties which has sub properties */ |
|
12 | + private const subs = []; |
|
13 | 13 | |
14 | - /** Identifier for this file, which can be used to download or reuse the file */ |
|
15 | - public string $file_id; |
|
14 | + /** Identifier for this file, which can be used to download or reuse the file */ |
|
15 | + public string $file_id; |
|
16 | 16 | |
17 | - /** |
|
18 | - * Unique identifier for this file, which is supposed to be the same over time and for different bots. Can't be |
|
19 | - * used to download or reuse the file. |
|
20 | - */ |
|
21 | - public string $file_unique_id; |
|
17 | + /** |
|
18 | + * Unique identifier for this file, which is supposed to be the same over time and for different bots. Can't be |
|
19 | + * used to download or reuse the file. |
|
20 | + */ |
|
21 | + public string $file_unique_id; |
|
22 | 22 | |
23 | - /** Photo width */ |
|
24 | - public int $width; |
|
23 | + /** Photo width */ |
|
24 | + public int $width; |
|
25 | 25 | |
26 | - /** Photo height */ |
|
27 | - public int $height; |
|
26 | + /** Photo height */ |
|
27 | + public int $height; |
|
28 | 28 | |
29 | - /** Optional. File size in bytes */ |
|
30 | - public int $file_size; |
|
29 | + /** Optional. File size in bytes */ |
|
30 | + public int $file_size; |
|
31 | 31 | |
32 | 32 | |
33 | - public function __construct(stdClass $update) { |
|
34 | - parent::__construct($update, self::subs); |
|
35 | - } |
|
33 | + public function __construct(stdClass $update) { |
|
34 | + parent::__construct($update, self::subs); |
|
35 | + } |
|
36 | 36 | } |