@@ -10,41 +10,41 @@ |
||
10 | 10 | * content instead of the voice message. |
11 | 11 | */ |
12 | 12 | class inlineQueryResultCachedVoice extends types { |
13 | - /** Keep all of properties which has sub properties */ |
|
14 | - private const subs = [ |
|
15 | - 'reply_markup' => 'BPT\types\inlineKeyboardMarkup', |
|
16 | - 'input_message_content' => 'BPT\types\inputMessageContent', |
|
17 | - ]; |
|
13 | + /** Keep all of properties which has sub properties */ |
|
14 | + private const subs = [ |
|
15 | + 'reply_markup' => 'BPT\types\inlineKeyboardMarkup', |
|
16 | + 'input_message_content' => 'BPT\types\inputMessageContent', |
|
17 | + ]; |
|
18 | 18 | |
19 | - /** Type of the result, must be voice */ |
|
20 | - public string $type; |
|
19 | + /** Type of the result, must be voice */ |
|
20 | + public string $type; |
|
21 | 21 | |
22 | - /** Unique identifier for this result, 1-64 bytes */ |
|
23 | - public string $id; |
|
22 | + /** Unique identifier for this result, 1-64 bytes */ |
|
23 | + public string $id; |
|
24 | 24 | |
25 | - /** A valid file identifier for the voice message */ |
|
26 | - public string $voice_file_id; |
|
25 | + /** A valid file identifier for the voice message */ |
|
26 | + public string $voice_file_id; |
|
27 | 27 | |
28 | - /** Voice message title */ |
|
29 | - public string $title; |
|
28 | + /** Voice message title */ |
|
29 | + public string $title; |
|
30 | 30 | |
31 | - /** Optional. Caption, 0-1024 characters after entities parsing */ |
|
32 | - public string $caption; |
|
31 | + /** Optional. Caption, 0-1024 characters after entities parsing */ |
|
32 | + public string $caption; |
|
33 | 33 | |
34 | - /** Optional. Mode for parsing entities in the voice message caption. See formatting options for more details. */ |
|
35 | - public string $parse_mode; |
|
34 | + /** Optional. Mode for parsing entities in the voice message caption. See formatting options for more details. */ |
|
35 | + public string $parse_mode; |
|
36 | 36 | |
37 | - /** Optional. List of special entities that appear in the caption, which can be specified instead of parse_mode */ |
|
38 | - public array $caption_entities; |
|
37 | + /** Optional. List of special entities that appear in the caption, which can be specified instead of parse_mode */ |
|
38 | + public array $caption_entities; |
|
39 | 39 | |
40 | - /** Optional. Inline keyboard attached to the message */ |
|
41 | - public inlineKeyboardMarkup $reply_markup; |
|
40 | + /** Optional. Inline keyboard attached to the message */ |
|
41 | + public inlineKeyboardMarkup $reply_markup; |
|
42 | 42 | |
43 | - /** Optional. Content of the message to be sent instead of the voice message */ |
|
44 | - public inputMessageContent $input_message_content; |
|
43 | + /** Optional. Content of the message to be sent instead of the voice message */ |
|
44 | + public inputMessageContent $input_message_content; |
|
45 | 45 | |
46 | 46 | |
47 | - public function __construct(stdClass $update) { |
|
48 | - parent::__construct($update, self::subs); |
|
49 | - } |
|
47 | + public function __construct(stdClass $update) { |
|
48 | + parent::__construct($update, self::subs); |
|
49 | + } |
|
50 | 50 | } |
@@ -10,41 +10,41 @@ |
||
10 | 10 | * message with specified content instead of the animation. |
11 | 11 | */ |
12 | 12 | class inlineQueryResultCachedGif extends types { |
13 | - /** Keep all of properties which has sub properties */ |
|
14 | - private const subs = [ |
|
15 | - 'reply_markup' => 'BPT\types\inlineKeyboardMarkup', |
|
16 | - 'input_message_content' => 'BPT\types\inputMessageContent', |
|
17 | - ]; |
|
13 | + /** Keep all of properties which has sub properties */ |
|
14 | + private const subs = [ |
|
15 | + 'reply_markup' => 'BPT\types\inlineKeyboardMarkup', |
|
16 | + 'input_message_content' => 'BPT\types\inputMessageContent', |
|
17 | + ]; |
|
18 | 18 | |
19 | - /** Type of the result, must be gif */ |
|
20 | - public string $type; |
|
19 | + /** Type of the result, must be gif */ |
|
20 | + public string $type; |
|
21 | 21 | |
22 | - /** Unique identifier for this result, 1-64 bytes */ |
|
23 | - public string $id; |
|
22 | + /** Unique identifier for this result, 1-64 bytes */ |
|
23 | + public string $id; |
|
24 | 24 | |
25 | - /** A valid file identifier for the GIF file */ |
|
26 | - public string $gif_file_id; |
|
25 | + /** A valid file identifier for the GIF file */ |
|
26 | + public string $gif_file_id; |
|
27 | 27 | |
28 | - /** Optional. Title for the result */ |
|
29 | - public string $title; |
|
28 | + /** Optional. Title for the result */ |
|
29 | + public string $title; |
|
30 | 30 | |
31 | - /** Optional. Caption of the GIF file to be sent, 0-1024 characters after entities parsing */ |
|
32 | - public string $caption; |
|
31 | + /** Optional. Caption of the GIF file to be sent, 0-1024 characters after entities parsing */ |
|
32 | + public string $caption; |
|
33 | 33 | |
34 | - /** Optional. Mode for parsing entities in the caption. See formatting options for more details. */ |
|
35 | - public string $parse_mode; |
|
34 | + /** Optional. Mode for parsing entities in the caption. See formatting options for more details. */ |
|
35 | + public string $parse_mode; |
|
36 | 36 | |
37 | - /** Optional. List of special entities that appear in the caption, which can be specified instead of parse_mode */ |
|
38 | - public array $caption_entities; |
|
37 | + /** Optional. List of special entities that appear in the caption, which can be specified instead of parse_mode */ |
|
38 | + public array $caption_entities; |
|
39 | 39 | |
40 | - /** Optional. Inline keyboard attached to the message */ |
|
41 | - public inlineKeyboardMarkup $reply_markup; |
|
40 | + /** Optional. Inline keyboard attached to the message */ |
|
41 | + public inlineKeyboardMarkup $reply_markup; |
|
42 | 42 | |
43 | - /** Optional. Content of the message to be sent instead of the GIF animation */ |
|
44 | - public inputMessageContent $input_message_content; |
|
43 | + /** Optional. Content of the message to be sent instead of the GIF animation */ |
|
44 | + public inputMessageContent $input_message_content; |
|
45 | 45 | |
46 | 46 | |
47 | - public function __construct(stdClass $update) { |
|
48 | - parent::__construct($update, self::subs); |
|
49 | - } |
|
47 | + public function __construct(stdClass $update) { |
|
48 | + parent::__construct($update, self::subs); |
|
49 | + } |
|
50 | 50 | } |
@@ -9,47 +9,47 @@ |
||
9 | 9 | * you can use input_message_content to send a message with the specified content instead of the audio. |
10 | 10 | */ |
11 | 11 | class inlineQueryResultAudio extends types { |
12 | - /** Keep all of properties which has sub properties */ |
|
13 | - private const subs = [ |
|
14 | - 'reply_markup' => 'BPT\types\inlineKeyboardMarkup', |
|
15 | - 'input_message_content' => 'BPT\types\inputMessageContent', |
|
16 | - ]; |
|
12 | + /** Keep all of properties which has sub properties */ |
|
13 | + private const subs = [ |
|
14 | + 'reply_markup' => 'BPT\types\inlineKeyboardMarkup', |
|
15 | + 'input_message_content' => 'BPT\types\inputMessageContent', |
|
16 | + ]; |
|
17 | 17 | |
18 | - /** Type of the result, must be audio */ |
|
19 | - public string $type; |
|
18 | + /** Type of the result, must be audio */ |
|
19 | + public string $type; |
|
20 | 20 | |
21 | - /** Unique identifier for this result, 1-64 bytes */ |
|
22 | - public string $id; |
|
21 | + /** Unique identifier for this result, 1-64 bytes */ |
|
22 | + public string $id; |
|
23 | 23 | |
24 | - /** A valid URL for the audio file */ |
|
25 | - public string $audio_url; |
|
24 | + /** A valid URL for the audio file */ |
|
25 | + public string $audio_url; |
|
26 | 26 | |
27 | - /** Title */ |
|
28 | - public string $title; |
|
27 | + /** Title */ |
|
28 | + public string $title; |
|
29 | 29 | |
30 | - /** Optional. Caption, 0-1024 characters after entities parsing */ |
|
31 | - public string $caption; |
|
30 | + /** Optional. Caption, 0-1024 characters after entities parsing */ |
|
31 | + public string $caption; |
|
32 | 32 | |
33 | - /** Optional. Mode for parsing entities in the audio caption. See formatting options for more details. */ |
|
34 | - public string $parse_mode; |
|
33 | + /** Optional. Mode for parsing entities in the audio caption. See formatting options for more details. */ |
|
34 | + public string $parse_mode; |
|
35 | 35 | |
36 | - /** Optional. List of special entities that appear in the caption, which can be specified instead of parse_mode */ |
|
37 | - public array $caption_entities; |
|
36 | + /** Optional. List of special entities that appear in the caption, which can be specified instead of parse_mode */ |
|
37 | + public array $caption_entities; |
|
38 | 38 | |
39 | - /** Optional. Performer */ |
|
40 | - public string $performer; |
|
39 | + /** Optional. Performer */ |
|
40 | + public string $performer; |
|
41 | 41 | |
42 | - /** Optional. Audio duration in seconds */ |
|
43 | - public int $audio_duration; |
|
42 | + /** Optional. Audio duration in seconds */ |
|
43 | + public int $audio_duration; |
|
44 | 44 | |
45 | - /** Optional. Inline keyboard attached to the message */ |
|
46 | - public inlineKeyboardMarkup $reply_markup; |
|
45 | + /** Optional. Inline keyboard attached to the message */ |
|
46 | + public inlineKeyboardMarkup $reply_markup; |
|
47 | 47 | |
48 | - /** Optional. Content of the message to be sent instead of the audio */ |
|
49 | - public inputMessageContent $input_message_content; |
|
48 | + /** Optional. Content of the message to be sent instead of the audio */ |
|
49 | + public inputMessageContent $input_message_content; |
|
50 | 50 | |
51 | 51 | |
52 | - public function __construct(stdClass $update) { |
|
53 | - parent::__construct($update, self::subs); |
|
54 | - } |
|
52 | + public function __construct(stdClass $update) { |
|
53 | + parent::__construct($update, self::subs); |
|
54 | + } |
|
55 | 55 | } |
@@ -10,53 +10,53 @@ |
||
10 | 10 | * photo. |
11 | 11 | */ |
12 | 12 | class inlineQueryResultPhoto extends types { |
13 | - /** Keep all of properties which has sub properties */ |
|
14 | - private const subs = [ |
|
15 | - 'reply_markup' => 'BPT\types\inlineKeyboardMarkup', |
|
16 | - 'input_message_content' => 'BPT\types\inputMessageContent', |
|
17 | - ]; |
|
13 | + /** Keep all of properties which has sub properties */ |
|
14 | + private const subs = [ |
|
15 | + 'reply_markup' => 'BPT\types\inlineKeyboardMarkup', |
|
16 | + 'input_message_content' => 'BPT\types\inputMessageContent', |
|
17 | + ]; |
|
18 | 18 | |
19 | - /** Type of the result, must be photo */ |
|
20 | - public string $type; |
|
19 | + /** Type of the result, must be photo */ |
|
20 | + public string $type; |
|
21 | 21 | |
22 | - /** Unique identifier for this result, 1-64 bytes */ |
|
23 | - public string $id; |
|
22 | + /** Unique identifier for this result, 1-64 bytes */ |
|
23 | + public string $id; |
|
24 | 24 | |
25 | - /** A valid URL of the photo. Photo must be in JPEG format. Photo size must not exceed 5MB */ |
|
26 | - public string $photo_url; |
|
25 | + /** A valid URL of the photo. Photo must be in JPEG format. Photo size must not exceed 5MB */ |
|
26 | + public string $photo_url; |
|
27 | 27 | |
28 | - /** URL of the thumbnail for the photo */ |
|
29 | - public string $thumb_url; |
|
28 | + /** URL of the thumbnail for the photo */ |
|
29 | + public string $thumb_url; |
|
30 | 30 | |
31 | - /** Optional. Width of the photo */ |
|
32 | - public int $photo_width; |
|
31 | + /** Optional. Width of the photo */ |
|
32 | + public int $photo_width; |
|
33 | 33 | |
34 | - /** Optional. Height of the photo */ |
|
35 | - public int $photo_height; |
|
34 | + /** Optional. Height of the photo */ |
|
35 | + public int $photo_height; |
|
36 | 36 | |
37 | - /** Optional. Title for the result */ |
|
38 | - public string $title; |
|
37 | + /** Optional. Title for the result */ |
|
38 | + public string $title; |
|
39 | 39 | |
40 | - /** Optional. Short description of the result */ |
|
41 | - public string $description; |
|
40 | + /** Optional. Short description of the result */ |
|
41 | + public string $description; |
|
42 | 42 | |
43 | - /** Optional. Caption of the photo to be sent, 0-1024 characters after entities parsing */ |
|
44 | - public string $caption; |
|
43 | + /** Optional. Caption of the photo to be sent, 0-1024 characters after entities parsing */ |
|
44 | + public string $caption; |
|
45 | 45 | |
46 | - /** Optional. Mode for parsing entities in the photo caption. See formatting options for more details. */ |
|
47 | - public string $parse_mode; |
|
46 | + /** Optional. Mode for parsing entities in the photo caption. See formatting options for more details. */ |
|
47 | + public string $parse_mode; |
|
48 | 48 | |
49 | - /** Optional. List of special entities that appear in the caption, which can be specified instead of parse_mode */ |
|
50 | - public array $caption_entities; |
|
49 | + /** Optional. List of special entities that appear in the caption, which can be specified instead of parse_mode */ |
|
50 | + public array $caption_entities; |
|
51 | 51 | |
52 | - /** Optional. Inline keyboard attached to the message */ |
|
53 | - public inlineKeyboardMarkup $reply_markup; |
|
52 | + /** Optional. Inline keyboard attached to the message */ |
|
53 | + public inlineKeyboardMarkup $reply_markup; |
|
54 | 54 | |
55 | - /** Optional. Content of the message to be sent instead of the photo */ |
|
56 | - public inputMessageContent $input_message_content; |
|
55 | + /** Optional. Content of the message to be sent instead of the photo */ |
|
56 | + public inputMessageContent $input_message_content; |
|
57 | 57 | |
58 | 58 | |
59 | - public function __construct(stdClass $update) { |
|
60 | - parent::__construct($update, self::subs); |
|
61 | - } |
|
59 | + public function __construct(stdClass $update) { |
|
60 | + parent::__construct($update, self::subs); |
|
61 | + } |
|
62 | 62 | } |
@@ -8,92 +8,92 @@ |
||
8 | 8 | * Represents the content of an invoice message to be sent as the result of an inline query. |
9 | 9 | */ |
10 | 10 | class inputInvoiceMessageContent 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 | - /** Product name, 1-32 characters */ |
|
15 | - public string $title; |
|
14 | + /** Product name, 1-32 characters */ |
|
15 | + public string $title; |
|
16 | 16 | |
17 | - /** Product description, 1-255 characters */ |
|
18 | - public string $description; |
|
17 | + /** Product description, 1-255 characters */ |
|
18 | + public string $description; |
|
19 | 19 | |
20 | - /** |
|
21 | - * Bot-defined invoice payload, 1-128 bytes. This will not be displayed to the user, use for your internal |
|
22 | - * processes. |
|
23 | - */ |
|
24 | - public string $payload; |
|
20 | + /** |
|
21 | + * Bot-defined invoice payload, 1-128 bytes. This will not be displayed to the user, use for your internal |
|
22 | + * processes. |
|
23 | + */ |
|
24 | + public string $payload; |
|
25 | 25 | |
26 | - /** Payment provider token, obtained via Botfather */ |
|
27 | - public string $provider_token; |
|
26 | + /** Payment provider token, obtained via Botfather */ |
|
27 | + public string $provider_token; |
|
28 | 28 | |
29 | - /** Three-letter ISO 4217 currency code, see more on currencies */ |
|
30 | - public string $currency; |
|
29 | + /** Three-letter ISO 4217 currency code, see more on currencies */ |
|
30 | + public string $currency; |
|
31 | 31 | |
32 | - /** |
|
33 | - * Price breakdown, a JSON-serialized list of components (e.g. product price, tax, discount, delivery cost, |
|
34 | - * delivery tax, bonus, etc.) |
|
35 | - */ |
|
36 | - public array $prices; |
|
32 | + /** |
|
33 | + * Price breakdown, a JSON-serialized list of components (e.g. product price, tax, discount, delivery cost, |
|
34 | + * delivery tax, bonus, etc.) |
|
35 | + */ |
|
36 | + public array $prices; |
|
37 | 37 | |
38 | - /** |
|
39 | - * Optional. The maximum accepted amount for tips in the smallest units of the currency (integer, not |
|
40 | - * float/double). For example, for a maximum tip of US$ 1.45 pass max_tip_amount = 145. See the exp parameter in |
|
41 | - * currencies.json, it shows the number of digits past the decimal point for each currency (2 for the majority of |
|
42 | - * currencies). Defaults to 0 |
|
43 | - */ |
|
44 | - public int $max_tip_amount; |
|
38 | + /** |
|
39 | + * Optional. The maximum accepted amount for tips in the smallest units of the currency (integer, not |
|
40 | + * float/double). For example, for a maximum tip of US$ 1.45 pass max_tip_amount = 145. See the exp parameter in |
|
41 | + * currencies.json, it shows the number of digits past the decimal point for each currency (2 for the majority of |
|
42 | + * currencies). Defaults to 0 |
|
43 | + */ |
|
44 | + public int $max_tip_amount; |
|
45 | 45 | |
46 | - /** |
|
47 | - * Optional. A JSON-serialized array of suggested amounts of tip in the smallest units of the currency (integer, |
|
48 | - * not float/double). At most 4 suggested tip amounts can be specified. The suggested tip amounts must be |
|
49 | - * positive, passed in a strictly increased order and must not exceed max_tip_amount. |
|
50 | - */ |
|
51 | - public array $suggested_tip_amounts; |
|
46 | + /** |
|
47 | + * Optional. A JSON-serialized array of suggested amounts of tip in the smallest units of the currency (integer, |
|
48 | + * not float/double). At most 4 suggested tip amounts can be specified. The suggested tip amounts must be |
|
49 | + * positive, passed in a strictly increased order and must not exceed max_tip_amount. |
|
50 | + */ |
|
51 | + public array $suggested_tip_amounts; |
|
52 | 52 | |
53 | - /** |
|
54 | - * Optional. A JSON-serialized object for data about the invoice, which will be shared with the payment provider. |
|
55 | - * A detailed description of the required fields should be provided by the payment provider. |
|
56 | - */ |
|
57 | - public string $provider_data; |
|
53 | + /** |
|
54 | + * Optional. A JSON-serialized object for data about the invoice, which will be shared with the payment provider. |
|
55 | + * A detailed description of the required fields should be provided by the payment provider. |
|
56 | + */ |
|
57 | + public string $provider_data; |
|
58 | 58 | |
59 | - /** |
|
60 | - * Optional. URL of the product photo for the invoice. Can be a photo of the goods or a marketing image for a |
|
61 | - * service. People like it better when they see what they are paying for. |
|
62 | - */ |
|
63 | - public string $photo_url; |
|
59 | + /** |
|
60 | + * Optional. URL of the product photo for the invoice. Can be a photo of the goods or a marketing image for a |
|
61 | + * service. People like it better when they see what they are paying for. |
|
62 | + */ |
|
63 | + public string $photo_url; |
|
64 | 64 | |
65 | - /** Optional. Photo size */ |
|
66 | - public int $photo_size; |
|
65 | + /** Optional. Photo size */ |
|
66 | + public int $photo_size; |
|
67 | 67 | |
68 | - /** Optional. Photo width */ |
|
69 | - public int $photo_width; |
|
68 | + /** Optional. Photo width */ |
|
69 | + public int $photo_width; |
|
70 | 70 | |
71 | - /** Optional. Photo height */ |
|
72 | - public int $photo_height; |
|
71 | + /** Optional. Photo height */ |
|
72 | + public int $photo_height; |
|
73 | 73 | |
74 | - /** Optional. Pass True, if you require the user's full name to complete the order */ |
|
75 | - public bool $need_name; |
|
74 | + /** Optional. Pass True, if you require the user's full name to complete the order */ |
|
75 | + public bool $need_name; |
|
76 | 76 | |
77 | - /** Optional. Pass True, if you require the user's phone number to complete the order */ |
|
78 | - public bool $need_phone_number; |
|
77 | + /** Optional. Pass True, if you require the user's phone number to complete the order */ |
|
78 | + public bool $need_phone_number; |
|
79 | 79 | |
80 | - /** Optional. Pass True, if you require the user's email address to complete the order */ |
|
81 | - public bool $need_email; |
|
80 | + /** Optional. Pass True, if you require the user's email address to complete the order */ |
|
81 | + public bool $need_email; |
|
82 | 82 | |
83 | - /** Optional. Pass True, if you require the user's shipping address to complete the order */ |
|
84 | - public bool $need_shipping_address; |
|
83 | + /** Optional. Pass True, if you require the user's shipping address to complete the order */ |
|
84 | + public bool $need_shipping_address; |
|
85 | 85 | |
86 | - /** Optional. Pass True, if user's phone number should be sent to provider */ |
|
87 | - public bool $send_phone_number_to_provider; |
|
86 | + /** Optional. Pass True, if user's phone number should be sent to provider */ |
|
87 | + public bool $send_phone_number_to_provider; |
|
88 | 88 | |
89 | - /** Optional. Pass True, if user's email address should be sent to provider */ |
|
90 | - public bool $send_email_to_provider; |
|
89 | + /** Optional. Pass True, if user's email address should be sent to provider */ |
|
90 | + public bool $send_email_to_provider; |
|
91 | 91 | |
92 | - /** Optional. Pass True, if the final price depends on the shipping method */ |
|
93 | - public bool $is_flexible; |
|
92 | + /** Optional. Pass True, if the final price depends on the shipping method */ |
|
93 | + public bool $is_flexible; |
|
94 | 94 | |
95 | 95 | |
96 | - public function __construct(stdClass $update) { |
|
97 | - parent::__construct($update, self::subs); |
|
98 | - } |
|
96 | + public function __construct(stdClass $update) { |
|
97 | + parent::__construct($update, self::subs); |
|
98 | + } |
|
99 | 99 | } |
@@ -9,10 +9,10 @@ |
||
9 | 9 | * following 20 types: |
10 | 10 | */ |
11 | 11 | class inlineQueryResult 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 | } |
@@ -8,17 +8,17 @@ |
||
8 | 8 | * Represents a location to which a chat is connected. |
9 | 9 | */ |
10 | 10 | class chatLocation 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 | - /** The location to which the supergroup is connected. Can't be a live location. */ |
|
15 | - public location $location; |
|
14 | + /** The location to which the supergroup is connected. Can't be a live location. */ |
|
15 | + public location $location; |
|
16 | 16 | |
17 | - /** Location address; 1-64 characters, as defined by the chat owner */ |
|
18 | - public string $address; |
|
17 | + /** Location address; 1-64 characters, as defined by the chat owner */ |
|
18 | + public string $address; |
|
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 | } |
@@ -10,44 +10,44 @@ |
||
10 | 10 | * specified content instead of the photo. |
11 | 11 | */ |
12 | 12 | class inlineQueryResultCachedPhoto extends types { |
13 | - /** Keep all of properties which has sub properties */ |
|
14 | - private const subs = [ |
|
15 | - 'reply_markup' => 'BPT\types\inlineKeyboardMarkup', |
|
16 | - 'input_message_content' => 'BPT\types\inputMessageContent', |
|
17 | - ]; |
|
13 | + /** Keep all of properties which has sub properties */ |
|
14 | + private const subs = [ |
|
15 | + 'reply_markup' => 'BPT\types\inlineKeyboardMarkup', |
|
16 | + 'input_message_content' => 'BPT\types\inputMessageContent', |
|
17 | + ]; |
|
18 | 18 | |
19 | - /** Type of the result, must be photo */ |
|
20 | - public string $type; |
|
19 | + /** Type of the result, must be photo */ |
|
20 | + public string $type; |
|
21 | 21 | |
22 | - /** Unique identifier for this result, 1-64 bytes */ |
|
23 | - public string $id; |
|
22 | + /** Unique identifier for this result, 1-64 bytes */ |
|
23 | + public string $id; |
|
24 | 24 | |
25 | - /** A valid file identifier of the photo */ |
|
26 | - public string $photo_file_id; |
|
25 | + /** A valid file identifier of the photo */ |
|
26 | + public string $photo_file_id; |
|
27 | 27 | |
28 | - /** Optional. Title for the result */ |
|
29 | - public string $title; |
|
28 | + /** Optional. Title for the result */ |
|
29 | + public string $title; |
|
30 | 30 | |
31 | - /** Optional. Short description of the result */ |
|
32 | - public string $description; |
|
31 | + /** Optional. Short description of the result */ |
|
32 | + public string $description; |
|
33 | 33 | |
34 | - /** Optional. Caption of the photo to be sent, 0-1024 characters after entities parsing */ |
|
35 | - public string $caption; |
|
34 | + /** Optional. Caption of the photo to be sent, 0-1024 characters after entities parsing */ |
|
35 | + public string $caption; |
|
36 | 36 | |
37 | - /** Optional. Mode for parsing entities in the photo caption. See formatting options for more details. */ |
|
38 | - public string $parse_mode; |
|
37 | + /** Optional. Mode for parsing entities in the photo caption. See formatting options for more details. */ |
|
38 | + public string $parse_mode; |
|
39 | 39 | |
40 | - /** Optional. List of special entities that appear in the caption, which can be specified instead of parse_mode */ |
|
41 | - public array $caption_entities; |
|
40 | + /** Optional. List of special entities that appear in the caption, which can be specified instead of parse_mode */ |
|
41 | + public array $caption_entities; |
|
42 | 42 | |
43 | - /** Optional. Inline keyboard attached to the message */ |
|
44 | - public inlineKeyboardMarkup $reply_markup; |
|
43 | + /** Optional. Inline keyboard attached to the message */ |
|
44 | + public inlineKeyboardMarkup $reply_markup; |
|
45 | 45 | |
46 | - /** Optional. Content of the message to be sent instead of the photo */ |
|
47 | - public inputMessageContent $input_message_content; |
|
46 | + /** Optional. Content of the message to be sent instead of the photo */ |
|
47 | + public inputMessageContent $input_message_content; |
|
48 | 48 | |
49 | 49 | |
50 | - public function __construct(stdClass $update) { |
|
51 | - parent::__construct($update, self::subs); |
|
52 | - } |
|
50 | + public function __construct(stdClass $update) { |
|
51 | + parent::__construct($update, self::subs); |
|
52 | + } |
|
53 | 53 | } |
@@ -8,35 +8,35 @@ |
||
8 | 8 | * This object represents a chat photo. |
9 | 9 | */ |
10 | 10 | class chatPhoto extends types { |
11 | - /** Keep all of properties which has sub properties */ |
|
12 | - private const subs = []; |
|
13 | - |
|
14 | - /** |
|
15 | - * File identifier of small (160x160) chat photo. This file_id can be used only for photo download and only for |
|
16 | - * as long as the photo is not changed. |
|
17 | - */ |
|
18 | - public string $small_file_id; |
|
19 | - |
|
20 | - /** |
|
21 | - * Unique file identifier of small (160x160) chat photo, which is supposed to be the same over time and for |
|
22 | - * different bots. Can't be used to download or reuse the file. |
|
23 | - */ |
|
24 | - public string $small_file_unique_id; |
|
25 | - |
|
26 | - /** |
|
27 | - * File identifier of big (640x640) chat photo. This file_id can be used only for photo download and only for as |
|
28 | - * long as the photo is not changed. |
|
29 | - */ |
|
30 | - public string $big_file_id; |
|
31 | - |
|
32 | - /** |
|
33 | - * Unique file identifier of big (640x640) chat photo, which is supposed to be the same over time and for |
|
34 | - * different bots. Can't be used to download or reuse the file. |
|
35 | - */ |
|
36 | - public string $big_file_unique_id; |
|
37 | - |
|
38 | - |
|
39 | - public function __construct(stdClass $update) { |
|
40 | - parent::__construct($update, self::subs); |
|
41 | - } |
|
11 | + /** Keep all of properties which has sub properties */ |
|
12 | + private const subs = []; |
|
13 | + |
|
14 | + /** |
|
15 | + * File identifier of small (160x160) chat photo. This file_id can be used only for photo download and only for |
|
16 | + * as long as the photo is not changed. |
|
17 | + */ |
|
18 | + public string $small_file_id; |
|
19 | + |
|
20 | + /** |
|
21 | + * Unique file identifier of small (160x160) chat photo, which is supposed to be the same over time and for |
|
22 | + * different bots. Can't be used to download or reuse the file. |
|
23 | + */ |
|
24 | + public string $small_file_unique_id; |
|
25 | + |
|
26 | + /** |
|
27 | + * File identifier of big (640x640) chat photo. This file_id can be used only for photo download and only for as |
|
28 | + * long as the photo is not changed. |
|
29 | + */ |
|
30 | + public string $big_file_id; |
|
31 | + |
|
32 | + /** |
|
33 | + * Unique file identifier of big (640x640) chat photo, which is supposed to be the same over time and for |
|
34 | + * different bots. Can't be used to download or reuse the file. |
|
35 | + */ |
|
36 | + public string $big_file_unique_id; |
|
37 | + |
|
38 | + |
|
39 | + public function __construct(stdClass $update) { |
|
40 | + parent::__construct($update, self::subs); |
|
41 | + } |
|
42 | 42 | } |