@@ -8,36 +8,36 @@ |
||
8 | 8 | * This object contains basic information about a successful payment. |
9 | 9 | */ |
10 | 10 | class successfulPayment extends types { |
11 | - /** Keep all of properties which has sub properties */ |
|
12 | - private const subs = ['order_info' => 'BPT\types\orderInfo']; |
|
11 | + /** Keep all of properties which has sub properties */ |
|
12 | + private const subs = ['order_info' => 'BPT\types\orderInfo']; |
|
13 | 13 | |
14 | - /** Three-letter ISO 4217 currency code */ |
|
15 | - public string $currency; |
|
14 | + /** Three-letter ISO 4217 currency code */ |
|
15 | + public string $currency; |
|
16 | 16 | |
17 | - /** |
|
18 | - * Total price in the smallest units of the currency (integer, not float/double). For example, for a price of US$ |
|
19 | - * 1.45 pass amount = 145. See the exp parameter in currencies.json, it shows the number of digits past the |
|
20 | - * decimal point for each currency (2 for the majority of currencies). |
|
21 | - */ |
|
22 | - public int $total_amount; |
|
17 | + /** |
|
18 | + * Total price in the smallest units of the currency (integer, not float/double). For example, for a price of US$ |
|
19 | + * 1.45 pass amount = 145. See the exp parameter in currencies.json, it shows the number of digits past the |
|
20 | + * decimal point for each currency (2 for the majority of currencies). |
|
21 | + */ |
|
22 | + public int $total_amount; |
|
23 | 23 | |
24 | - /** Bot specified invoice payload */ |
|
25 | - public string $invoice_payload; |
|
24 | + /** Bot specified invoice payload */ |
|
25 | + public string $invoice_payload; |
|
26 | 26 | |
27 | - /** Optional. Identifier of the shipping option chosen by the user */ |
|
28 | - public string $shipping_option_id; |
|
27 | + /** Optional. Identifier of the shipping option chosen by the user */ |
|
28 | + public string $shipping_option_id; |
|
29 | 29 | |
30 | - /** Optional. Order info provided by the user */ |
|
31 | - public orderInfo $order_info; |
|
30 | + /** Optional. Order info provided by the user */ |
|
31 | + public orderInfo $order_info; |
|
32 | 32 | |
33 | - /** Telegram payment identifier */ |
|
34 | - public string $telegram_payment_charge_id; |
|
33 | + /** Telegram payment identifier */ |
|
34 | + public string $telegram_payment_charge_id; |
|
35 | 35 | |
36 | - /** Provider payment identifier */ |
|
37 | - public string $provider_payment_charge_id; |
|
36 | + /** Provider payment identifier */ |
|
37 | + public string $provider_payment_charge_id; |
|
38 | 38 | |
39 | 39 | |
40 | - public function __construct(stdClass $update) { |
|
41 | - parent::__construct($update, self::subs); |
|
42 | - } |
|
40 | + public function __construct(stdClass $update) { |
|
41 | + parent::__construct($update, self::subs); |
|
42 | + } |
|
43 | 43 | } |
@@ -8,23 +8,23 @@ |
||
8 | 8 | * Represents a menu button, which launches a Web App. |
9 | 9 | */ |
10 | 10 | class menuButtonWebApp extends types { |
11 | - /** Keep all of properties which has sub properties */ |
|
12 | - private const subs = ['web_app' => 'BPT\types\webAppInfo']; |
|
11 | + /** Keep all of properties which has sub properties */ |
|
12 | + private const subs = ['web_app' => 'BPT\types\webAppInfo']; |
|
13 | 13 | |
14 | - /** Type of the button, must be web_app */ |
|
15 | - public string $type; |
|
14 | + /** Type of the button, must be web_app */ |
|
15 | + public string $type; |
|
16 | 16 | |
17 | - /** Text on the button */ |
|
18 | - public string $text; |
|
17 | + /** Text on the button */ |
|
18 | + public string $text; |
|
19 | 19 | |
20 | - /** |
|
21 | - * Description of the Web App that will be launched when the user presses the button. The Web App will be able to |
|
22 | - * send an arbitrary message on behalf of the user using the method answerWebAppQuery. |
|
23 | - */ |
|
24 | - public webAppInfo $web_app; |
|
20 | + /** |
|
21 | + * Description of the Web App that will be launched when the user presses the button. The Web App will be able to |
|
22 | + * send an arbitrary message on behalf of the user using the method answerWebAppQuery. |
|
23 | + */ |
|
24 | + public webAppInfo $web_app; |
|
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 | } |
@@ -9,10 +9,10 @@ |
||
9 | 9 | * information. |
10 | 10 | */ |
11 | 11 | class videoChatStarted 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 | - public function __construct(stdClass $update) { |
|
16 | - parent::__construct($update, self::subs); |
|
17 | - } |
|
15 | + public function __construct(stdClass $update) { |
|
16 | + parent::__construct($update, self::subs); |
|
17 | + } |
|
18 | 18 | } |
@@ -9,26 +9,26 @@ |
||
9 | 9 | * format when decrypted and don't exceed 10MB. |
10 | 10 | */ |
11 | 11 | class passportFile 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 | - /** Identifier for this file, which can be used to download or reuse the file */ |
|
16 | - public string $file_id; |
|
15 | + /** Identifier for this file, which can be used to download or reuse the file */ |
|
16 | + public string $file_id; |
|
17 | 17 | |
18 | - /** |
|
19 | - * Unique identifier for this file, which is supposed to be the same over time and for different bots. Can't be |
|
20 | - * used to download or reuse the file. |
|
21 | - */ |
|
22 | - public string $file_unique_id; |
|
18 | + /** |
|
19 | + * Unique identifier for this file, which is supposed to be the same over time and for different bots. Can't be |
|
20 | + * used to download or reuse the file. |
|
21 | + */ |
|
22 | + public string $file_unique_id; |
|
23 | 23 | |
24 | - /** File size in bytes */ |
|
25 | - public int $file_size; |
|
24 | + /** File size in bytes */ |
|
25 | + public int $file_size; |
|
26 | 26 | |
27 | - /** Unix time when the file was uploaded */ |
|
28 | - public int $file_date; |
|
27 | + /** Unix time when the file was uploaded */ |
|
28 | + public int $file_date; |
|
29 | 29 | |
30 | 30 | |
31 | - public function __construct(stdClass $update) { |
|
32 | - parent::__construct($update, self::subs); |
|
33 | - } |
|
31 | + public function __construct(stdClass $update) { |
|
32 | + parent::__construct($update, self::subs); |
|
33 | + } |
|
34 | 34 | } |
@@ -8,41 +8,41 @@ |
||
8 | 8 | * This object represents a video file. |
9 | 9 | */ |
10 | 10 | class video extends types { |
11 | - /** Keep all of properties which has sub properties */ |
|
12 | - private const subs = ['thumb' => 'BPT\types\photoSize']; |
|
11 | + /** Keep all of properties which has sub properties */ |
|
12 | + private const subs = ['thumb' => 'BPT\types\photoSize']; |
|
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 | - /** Video width as defined by sender */ |
|
24 | - public int $width; |
|
23 | + /** Video width as defined by sender */ |
|
24 | + public int $width; |
|
25 | 25 | |
26 | - /** Video height as defined by sender */ |
|
27 | - public int $height; |
|
26 | + /** Video height as defined by sender */ |
|
27 | + public int $height; |
|
28 | 28 | |
29 | - /** Duration of the video in seconds as defined by sender */ |
|
30 | - public int $duration; |
|
29 | + /** Duration of the video in seconds as defined by sender */ |
|
30 | + public int $duration; |
|
31 | 31 | |
32 | - /** Optional. Video thumbnail */ |
|
33 | - public photoSize $thumb; |
|
32 | + /** Optional. Video thumbnail */ |
|
33 | + public photoSize $thumb; |
|
34 | 34 | |
35 | - /** Optional. Original filename as defined by sender */ |
|
36 | - public string $file_name; |
|
35 | + /** Optional. Original filename as defined by sender */ |
|
36 | + public string $file_name; |
|
37 | 37 | |
38 | - /** Optional. Mime type of a file as defined by sender */ |
|
39 | - public string $mime_type; |
|
38 | + /** Optional. Mime type of a file as defined by sender */ |
|
39 | + public string $mime_type; |
|
40 | 40 | |
41 | - /** Optional. File size in bytes */ |
|
42 | - public int $file_size; |
|
41 | + /** Optional. File size in bytes */ |
|
42 | + public int $file_size; |
|
43 | 43 | |
44 | 44 | |
45 | - public function __construct(stdClass $update) { |
|
46 | - parent::__construct($update, self::subs); |
|
47 | - } |
|
45 | + public function __construct(stdClass $update) { |
|
46 | + parent::__construct($update, self::subs); |
|
47 | + } |
|
48 | 48 | } |
@@ -8,14 +8,14 @@ |
||
8 | 8 | * This object represents a service message about a change in auto-delete timer settings. |
9 | 9 | */ |
10 | 10 | class messageAutoDeleteTimerChanged 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 | - /** New auto-delete time for messages in the chat; in seconds */ |
|
15 | - public int $message_auto_delete_time; |
|
14 | + /** New auto-delete time for messages in the chat; in seconds */ |
|
15 | + public int $message_auto_delete_time; |
|
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,36 +8,36 @@ |
||
8 | 8 | * This object contains information about an incoming pre-checkout query. |
9 | 9 | */ |
10 | 10 | class preCheckoutQuery extends types { |
11 | - /** Keep all of properties which has sub properties */ |
|
12 | - private const subs = ['from' => 'BPT\types\user', 'order_info' => 'BPT\types\orderInfo']; |
|
11 | + /** Keep all of properties which has sub properties */ |
|
12 | + private const subs = ['from' => 'BPT\types\user', 'order_info' => 'BPT\types\orderInfo']; |
|
13 | 13 | |
14 | - /** Unique query identifier */ |
|
15 | - public string $id; |
|
14 | + /** Unique query identifier */ |
|
15 | + public string $id; |
|
16 | 16 | |
17 | - /** User who sent the query */ |
|
18 | - public user $from; |
|
17 | + /** User who sent the query */ |
|
18 | + public user $from; |
|
19 | 19 | |
20 | - /** Three-letter ISO 4217 currency code */ |
|
21 | - public string $currency; |
|
20 | + /** Three-letter ISO 4217 currency code */ |
|
21 | + public string $currency; |
|
22 | 22 | |
23 | - /** |
|
24 | - * Total price in the smallest units of the currency (integer, not float/double). For example, for a price of US$ |
|
25 | - * 1.45 pass amount = 145. See the exp parameter in currencies.json, it shows the number of digits past the |
|
26 | - * decimal point for each currency (2 for the majority of currencies). |
|
27 | - */ |
|
28 | - public int $total_amount; |
|
23 | + /** |
|
24 | + * Total price in the smallest units of the currency (integer, not float/double). For example, for a price of US$ |
|
25 | + * 1.45 pass amount = 145. See the exp parameter in currencies.json, it shows the number of digits past the |
|
26 | + * decimal point for each currency (2 for the majority of currencies). |
|
27 | + */ |
|
28 | + public int $total_amount; |
|
29 | 29 | |
30 | - /** Bot specified invoice payload */ |
|
31 | - public string $invoice_payload; |
|
30 | + /** Bot specified invoice payload */ |
|
31 | + public string $invoice_payload; |
|
32 | 32 | |
33 | - /** Optional. Identifier of the shipping option chosen by the user */ |
|
34 | - public string $shipping_option_id; |
|
33 | + /** Optional. Identifier of the shipping option chosen by the user */ |
|
34 | + public string $shipping_option_id; |
|
35 | 35 | |
36 | - /** Optional. Order info provided by the user */ |
|
37 | - public orderInfo $order_info; |
|
36 | + /** Optional. Order info provided by the user */ |
|
37 | + public orderInfo $order_info; |
|
38 | 38 | |
39 | 39 | |
40 | - public function __construct(stdClass $update) { |
|
41 | - parent::__construct($update, self::subs); |
|
42 | - } |
|
40 | + public function __construct(stdClass $update) { |
|
41 | + parent::__construct($update, self::subs); |
|
42 | + } |
|
43 | 43 | } |
@@ -8,17 +8,17 @@ |
||
8 | 8 | * This object contains information about one answer option in a poll. |
9 | 9 | */ |
10 | 10 | class pollOption 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 | - /** Option text, 1-100 characters */ |
|
15 | - public string $text; |
|
14 | + /** Option text, 1-100 characters */ |
|
15 | + public string $text; |
|
16 | 16 | |
17 | - /** Number of users that voted for this option */ |
|
18 | - public int $voter_count; |
|
17 | + /** Number of users that voted for this option */ |
|
18 | + public int $voter_count; |
|
19 | 19 | |
20 | 20 | |
21 | - public function __construct(stdClass $update) { |
|
22 | - parent::__construct($update, self::subs); |
|
23 | - } |
|
21 | + public function __construct(stdClass $update) { |
|
22 | + parent::__construct($update, self::subs); |
|
23 | + } |
|
24 | 24 | } |
@@ -9,26 +9,26 @@ |
||
9 | 9 | * the scans changes. |
10 | 10 | */ |
11 | 11 | class passportElementErrorFiles 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 files */ |
|
16 | - public string $source; |
|
15 | + /** Error source, must be files */ |
|
16 | + public string $source; |
|
17 | 17 | |
18 | - /** |
|
19 | - * The section of the user's Telegram Passport which has the issue, one of “utility_bill”, |
|
20 | - * “bank_statement”, “rental_agreement”, “passport_registration”, “temporary_registration” |
|
21 | - */ |
|
22 | - public string $type; |
|
18 | + /** |
|
19 | + * The section of the user's Telegram Passport which has the issue, one of “utility_bill”, |
|
20 | + * “bank_statement”, “rental_agreement”, “passport_registration”, “temporary_registration” |
|
21 | + */ |
|
22 | + public string $type; |
|
23 | 23 | |
24 | - /** List of base64-encoded file hashes */ |
|
25 | - public array $file_hashes; |
|
24 | + /** List of base64-encoded file hashes */ |
|
25 | + public array $file_hashes; |
|
26 | 26 | |
27 | - /** Error message */ |
|
28 | - public string $message; |
|
27 | + /** Error message */ |
|
28 | + public string $message; |
|
29 | 29 | |
30 | 30 | |
31 | - public function __construct(stdClass $update) { |
|
32 | - parent::__construct($update, self::subs); |
|
33 | - } |
|
31 | + public function __construct(stdClass $update) { |
|
32 | + parent::__construct($update, self::subs); |
|
33 | + } |
|
34 | 34 | } |