@@ -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 | } |
@@ -8,35 +8,35 @@ |
||
8 | 8 | * This object represents a venue. |
9 | 9 | */ |
10 | 10 | class venue extends types { |
11 | - /** Keep all of properties which has sub properties */ |
|
12 | - private const subs = ['location' => 'BPT\types\location']; |
|
11 | + /** Keep all of properties which has sub properties */ |
|
12 | + private const subs = ['location' => 'BPT\types\location']; |
|
13 | 13 | |
14 | - /** Venue location. Can't be a live location */ |
|
15 | - public location $location; |
|
14 | + /** Venue location. Can't be a live location */ |
|
15 | + public location $location; |
|
16 | 16 | |
17 | - /** Name of the venue */ |
|
18 | - public string $title; |
|
17 | + /** Name of the venue */ |
|
18 | + public string $title; |
|
19 | 19 | |
20 | - /** Address of the venue */ |
|
21 | - public string $address; |
|
20 | + /** Address of the venue */ |
|
21 | + public string $address; |
|
22 | 22 | |
23 | - /** Optional. Foursquare identifier of the venue */ |
|
24 | - public string $foursquare_id; |
|
23 | + /** Optional. Foursquare identifier of the venue */ |
|
24 | + public string $foursquare_id; |
|
25 | 25 | |
26 | - /** |
|
27 | - * Optional. Foursquare type of the venue. (For example, “arts_entertainment/default”, |
|
28 | - * “arts_entertainment/aquarium” or “food/icecream”.) |
|
29 | - */ |
|
30 | - public string $foursquare_type; |
|
26 | + /** |
|
27 | + * Optional. Foursquare type of the venue. (For example, “arts_entertainment/default”, |
|
28 | + * “arts_entertainment/aquarium” or “food/icecream”.) |
|
29 | + */ |
|
30 | + public string $foursquare_type; |
|
31 | 31 | |
32 | - /** Optional. Google Places identifier of the venue */ |
|
33 | - public string $google_place_id; |
|
32 | + /** Optional. Google Places identifier of the venue */ |
|
33 | + public string $google_place_id; |
|
34 | 34 | |
35 | - /** Optional. Google Places type of the venue. (See supported types.) */ |
|
36 | - public string $google_place_type; |
|
35 | + /** Optional. Google Places type of the venue. (See supported types.) */ |
|
36 | + public string $google_place_type; |
|
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,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 | } |