@@ -11,41 +11,41 @@ |
||
11 | 11 | * present. Exactly one of the fields data or game_short_name will be present. |
12 | 12 | */ |
13 | 13 | class callbackQuery extends types { |
14 | - /** Keep all of properties which has sub properties */ |
|
15 | - private const subs = ['from' => 'BPT\types\user', 'message' => 'BPT\types\message']; |
|
14 | + /** Keep all of properties which has sub properties */ |
|
15 | + private const subs = ['from' => 'BPT\types\user', 'message' => 'BPT\types\message']; |
|
16 | 16 | |
17 | - /** Unique identifier for this query */ |
|
18 | - public string $id; |
|
17 | + /** Unique identifier for this query */ |
|
18 | + public string $id; |
|
19 | 19 | |
20 | - /** Sender */ |
|
21 | - public user $from; |
|
20 | + /** Sender */ |
|
21 | + public user $from; |
|
22 | 22 | |
23 | - /** |
|
24 | - * Optional. Message with the callback button that originated the query. Note that message content and message |
|
25 | - * date will not be available if the message is too old |
|
26 | - */ |
|
27 | - public message $message; |
|
23 | + /** |
|
24 | + * Optional. Message with the callback button that originated the query. Note that message content and message |
|
25 | + * date will not be available if the message is too old |
|
26 | + */ |
|
27 | + public message $message; |
|
28 | 28 | |
29 | - /** Optional. Identifier of the message sent via the bot in inline mode, that originated the query. */ |
|
30 | - public string $inline_message_id; |
|
29 | + /** Optional. Identifier of the message sent via the bot in inline mode, that originated the query. */ |
|
30 | + public string $inline_message_id; |
|
31 | 31 | |
32 | - /** |
|
33 | - * Global identifier, uniquely corresponding to the chat to which the message with the callback button was sent. |
|
34 | - * Useful for high scores in games. |
|
35 | - */ |
|
36 | - public string $chat_instance; |
|
32 | + /** |
|
33 | + * Global identifier, uniquely corresponding to the chat to which the message with the callback button was sent. |
|
34 | + * Useful for high scores in games. |
|
35 | + */ |
|
36 | + public string $chat_instance; |
|
37 | 37 | |
38 | - /** |
|
39 | - * Optional. Data associated with the callback button. Be aware that a bad client can send arbitrary data in this |
|
40 | - * field. |
|
41 | - */ |
|
42 | - public string $data; |
|
38 | + /** |
|
39 | + * Optional. Data associated with the callback button. Be aware that a bad client can send arbitrary data in this |
|
40 | + * field. |
|
41 | + */ |
|
42 | + public string $data; |
|
43 | 43 | |
44 | - /** Optional. Short name of a Game to be returned, serves as the unique identifier for the game */ |
|
45 | - public string $game_short_name; |
|
44 | + /** Optional. Short name of a Game to be returned, serves as the unique identifier for the game */ |
|
45 | + public string $game_short_name; |
|
46 | 46 | |
47 | 47 | |
48 | - public function __construct(stdClass $update) { |
|
49 | - parent::__construct($update, self::subs); |
|
50 | - } |
|
48 | + public function __construct(stdClass $update) { |
|
49 | + parent::__construct($update, self::subs); |
|
50 | + } |
|
51 | 51 | } |
@@ -9,33 +9,33 @@ |
||
9 | 9 | * identifiers. |
10 | 10 | */ |
11 | 11 | class game extends types { |
12 | - /** Keep all of properties which has sub properties */ |
|
13 | - private const subs = ['animation' => 'BPT\types\animation']; |
|
12 | + /** Keep all of properties which has sub properties */ |
|
13 | + private const subs = ['animation' => 'BPT\types\animation']; |
|
14 | 14 | |
15 | - /** Title of the game */ |
|
16 | - public string $title; |
|
15 | + /** Title of the game */ |
|
16 | + public string $title; |
|
17 | 17 | |
18 | - /** Description of the game */ |
|
19 | - public string $description; |
|
18 | + /** Description of the game */ |
|
19 | + public string $description; |
|
20 | 20 | |
21 | - /** Photo that will be displayed in the game message in chats. */ |
|
22 | - public array $photo; |
|
21 | + /** Photo that will be displayed in the game message in chats. */ |
|
22 | + public array $photo; |
|
23 | 23 | |
24 | - /** |
|
25 | - * Optional. Brief description of the game or high scores included in the game message. Can be automatically |
|
26 | - * edited to include current high scores for the game when the bot calls setGameScore, or manually edited using |
|
27 | - * editMessageText. 0-4096 characters. |
|
28 | - */ |
|
29 | - public string $text; |
|
24 | + /** |
|
25 | + * Optional. Brief description of the game or high scores included in the game message. Can be automatically |
|
26 | + * edited to include current high scores for the game when the bot calls setGameScore, or manually edited using |
|
27 | + * editMessageText. 0-4096 characters. |
|
28 | + */ |
|
29 | + public string $text; |
|
30 | 30 | |
31 | - /** Optional. Special entities that appear in text, such as usernames, URLs, bot commands, etc. */ |
|
32 | - public array $text_entities; |
|
31 | + /** Optional. Special entities that appear in text, such as usernames, URLs, bot commands, etc. */ |
|
32 | + public array $text_entities; |
|
33 | 33 | |
34 | - /** Optional. Animation that will be displayed in the game message in chats. Upload via BotFather */ |
|
35 | - public animation $animation; |
|
34 | + /** Optional. Animation that will be displayed in the game message in chats. Upload via BotFather */ |
|
35 | + public animation $animation; |
|
36 | 36 | |
37 | 37 | |
38 | - public function __construct(stdClass $update) { |
|
39 | - parent::__construct($update, self::subs); |
|
40 | - } |
|
38 | + public function __construct(stdClass $update) { |
|
39 | + parent::__construct($update, self::subs); |
|
40 | + } |
|
41 | 41 | } |
@@ -8,51 +8,51 @@ |
||
8 | 8 | * Represents a video to be sent. |
9 | 9 | */ |
10 | 10 | class inputMediaVideo extends types { |
11 | - /** Keep all of properties which has sub properties */ |
|
12 | - private const subs = ['thumb' => 'BPT\types\inputFile']; |
|
11 | + /** Keep all of properties which has sub properties */ |
|
12 | + private const subs = ['thumb' => 'BPT\types\inputFile']; |
|
13 | 13 | |
14 | - /** Type of the result, must be video */ |
|
15 | - public string $type; |
|
14 | + /** Type of the result, must be video */ |
|
15 | + public string $type; |
|
16 | 16 | |
17 | - /** |
|
18 | - * File to send. Pass a file_id to send a file that exists on the Telegram servers (recommended), pass an HTTP |
|
19 | - * URL for Telegram to get a file from the Internet, or pass “attach://<file_attach_name>” to upload a new |
|
20 | - * one using multipart/form-data under <file_attach_name> name. More info on Sending Files » |
|
21 | - */ |
|
22 | - public string $media; |
|
17 | + /** |
|
18 | + * File to send. Pass a file_id to send a file that exists on the Telegram servers (recommended), pass an HTTP |
|
19 | + * URL for Telegram to get a file from the Internet, or pass “attach://<file_attach_name>” to upload a new |
|
20 | + * one using multipart/form-data under <file_attach_name> name. More info on Sending Files » |
|
21 | + */ |
|
22 | + public string $media; |
|
23 | 23 | |
24 | - /** |
|
25 | - * Optional. Thumbnail of the file sent; can be ignored if thumbnail generation for the file is supported |
|
26 | - * server-side. The thumbnail should be in JPEG format and less than 200 kB in size. A thumbnail's width and |
|
27 | - * height should not exceed 320. Ignored if the file is not uploaded using multipart/form-data. Thumbnails can't |
|
28 | - * be reused and can be only uploaded as a new file, so you can pass “attach://<file_attach_name>” if the |
|
29 | - * thumbnail was uploaded using multipart/form-data under <file_attach_name>. More info on Sending Files » |
|
30 | - */ |
|
31 | - public inputFile $thumb; |
|
24 | + /** |
|
25 | + * Optional. Thumbnail of the file sent; can be ignored if thumbnail generation for the file is supported |
|
26 | + * server-side. The thumbnail should be in JPEG format and less than 200 kB in size. A thumbnail's width and |
|
27 | + * height should not exceed 320. Ignored if the file is not uploaded using multipart/form-data. Thumbnails can't |
|
28 | + * be reused and can be only uploaded as a new file, so you can pass “attach://<file_attach_name>” if the |
|
29 | + * thumbnail was uploaded using multipart/form-data under <file_attach_name>. More info on Sending Files » |
|
30 | + */ |
|
31 | + public inputFile $thumb; |
|
32 | 32 | |
33 | - /** Optional. Caption of the video to be sent, 0-1024 characters after entities parsing */ |
|
34 | - public string $caption; |
|
33 | + /** Optional. Caption of the video to be sent, 0-1024 characters after entities parsing */ |
|
34 | + public string $caption; |
|
35 | 35 | |
36 | - /** Optional. Mode for parsing entities in the video caption. See formatting options for more details. */ |
|
37 | - public string $parse_mode; |
|
36 | + /** Optional. Mode for parsing entities in the video caption. See formatting options for more details. */ |
|
37 | + public string $parse_mode; |
|
38 | 38 | |
39 | - /** Optional. List of special entities that appear in the caption, which can be specified instead of parse_mode */ |
|
40 | - public array $caption_entities; |
|
39 | + /** Optional. List of special entities that appear in the caption, which can be specified instead of parse_mode */ |
|
40 | + public array $caption_entities; |
|
41 | 41 | |
42 | - /** Optional. Video width */ |
|
43 | - public int $width; |
|
42 | + /** Optional. Video width */ |
|
43 | + public int $width; |
|
44 | 44 | |
45 | - /** Optional. Video height */ |
|
46 | - public int $height; |
|
45 | + /** Optional. Video height */ |
|
46 | + public int $height; |
|
47 | 47 | |
48 | - /** Optional. Video duration in seconds */ |
|
49 | - public int $duration; |
|
48 | + /** Optional. Video duration in seconds */ |
|
49 | + public int $duration; |
|
50 | 50 | |
51 | - /** Optional. Pass True, if the uploaded video is suitable for streaming */ |
|
52 | - public bool $supports_streaming; |
|
51 | + /** Optional. Pass True, if the uploaded video is suitable for streaming */ |
|
52 | + public bool $supports_streaming; |
|
53 | 53 | |
54 | 54 | |
55 | - public function __construct(stdClass $update) { |
|
56 | - parent::__construct($update, self::subs); |
|
57 | - } |
|
55 | + public function __construct(stdClass $update) { |
|
56 | + parent::__construct($update, self::subs); |
|
57 | + } |
|
58 | 58 | } |
@@ -8,29 +8,29 @@ |
||
8 | 8 | * Represents a result of an inline query that was chosen by the user and sent to their chat partner. |
9 | 9 | */ |
10 | 10 | class chosenInlineResult extends types { |
11 | - /** Keep all of properties which has sub properties */ |
|
12 | - private const subs = ['from' => 'BPT\types\user', 'location' => 'BPT\types\location']; |
|
11 | + /** Keep all of properties which has sub properties */ |
|
12 | + private const subs = ['from' => 'BPT\types\user', 'location' => 'BPT\types\location']; |
|
13 | 13 | |
14 | - /** The unique identifier for the result that was chosen */ |
|
15 | - public string $result_id; |
|
14 | + /** The unique identifier for the result that was chosen */ |
|
15 | + public string $result_id; |
|
16 | 16 | |
17 | - /** The user that chose the result */ |
|
18 | - public user $from; |
|
17 | + /** The user that chose the result */ |
|
18 | + public user $from; |
|
19 | 19 | |
20 | - /** Optional. Sender location, only for bots that require user location */ |
|
21 | - public location $location; |
|
20 | + /** Optional. Sender location, only for bots that require user location */ |
|
21 | + public location $location; |
|
22 | 22 | |
23 | - /** |
|
24 | - * Optional. Identifier of the sent inline message. Available only if there is an inline keyboard attached to the |
|
25 | - * message. Will be also received in callback queries and can be used to edit the message. |
|
26 | - */ |
|
27 | - public string $inline_message_id; |
|
23 | + /** |
|
24 | + * Optional. Identifier of the sent inline message. Available only if there is an inline keyboard attached to the |
|
25 | + * message. Will be also received in callback queries and can be used to edit the message. |
|
26 | + */ |
|
27 | + public string $inline_message_id; |
|
28 | 28 | |
29 | - /** The query that was used to obtain the result */ |
|
30 | - public string $query; |
|
29 | + /** The query that was used to obtain the result */ |
|
30 | + public string $query; |
|
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,14 +8,14 @@ |
||
8 | 8 | * Represents the scope of bot commands, covering all group and supergroup chats. |
9 | 9 | */ |
10 | 10 | class botCommandScopeAllGroupChats 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 | - /** Scope type, must be all_group_chats */ |
|
15 | - public string $type; |
|
14 | + /** Scope type, must be all_group_chats */ |
|
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,41 +8,41 @@ |
||
8 | 8 | * This object represents an animation file (GIF or H.264/MPEG-4 AVC video without sound). |
9 | 9 | */ |
10 | 10 | class animation 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. Animation thumbnail as defined by sender */ |
|
33 | - public photoSize $thumb; |
|
32 | + /** Optional. Animation thumbnail as defined by sender */ |
|
33 | + public photoSize $thumb; |
|
34 | 34 | |
35 | - /** Optional. Original animation filename as defined by sender */ |
|
36 | - public string $file_name; |
|
35 | + /** Optional. Original animation filename as defined by sender */ |
|
36 | + public string $file_name; |
|
37 | 37 | |
38 | - /** Optional. MIME type of the file as defined by sender */ |
|
39 | - public string $mime_type; |
|
38 | + /** Optional. MIME type of the 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,35 +8,35 @@ |
||
8 | 8 | * Represents the content of a location message to be sent as the result of an inline query. |
9 | 9 | */ |
10 | 10 | class inputLocationMessageContent 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 | - /** Latitude of the location in degrees */ |
|
15 | - public float $latitude; |
|
14 | + /** Latitude of the location in degrees */ |
|
15 | + public float $latitude; |
|
16 | 16 | |
17 | - /** Longitude of the location in degrees */ |
|
18 | - public float $longitude; |
|
17 | + /** Longitude of the location in degrees */ |
|
18 | + public float $longitude; |
|
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 | - /** Optional. Period in seconds for which the location can be updated, should be between 60 and 86400. */ |
|
24 | - public int $live_period; |
|
23 | + /** Optional. Period in seconds for which the location can be updated, should be between 60 and 86400. */ |
|
24 | + public int $live_period; |
|
25 | 25 | |
26 | - /** |
|
27 | - * Optional. For live locations, a direction in which the user is moving, in degrees. Must be between 1 and 360 |
|
28 | - * if specified. |
|
29 | - */ |
|
30 | - public int $heading; |
|
26 | + /** |
|
27 | + * Optional. For live locations, a direction in which the user is moving, in degrees. Must be between 1 and 360 |
|
28 | + * if specified. |
|
29 | + */ |
|
30 | + public int $heading; |
|
31 | 31 | |
32 | - /** |
|
33 | - * Optional. For live locations, a maximum distance for proximity alerts about approaching another chat member, |
|
34 | - * in meters. Must be between 1 and 100000 if specified. |
|
35 | - */ |
|
36 | - public int $proximity_alert_radius; |
|
32 | + /** |
|
33 | + * Optional. For live locations, a maximum distance for proximity alerts about approaching another chat member, |
|
34 | + * in meters. Must be between 1 and 100000 if specified. |
|
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,75 +8,75 @@ |
||
8 | 8 | * Contains information about documents or other Telegram Passport elements shared with the bot by the user. |
9 | 9 | */ |
10 | 10 | class encryptedPassportElement extends types { |
11 | - /** Keep all of properties which has sub properties */ |
|
12 | - private const subs = [ |
|
13 | - 'front_side' => 'BPT\types\passportFile', |
|
14 | - 'reverse_side' => 'BPT\types\passportFile', |
|
15 | - 'selfie' => 'BPT\types\passportFile', |
|
16 | - ]; |
|
11 | + /** Keep all of properties which has sub properties */ |
|
12 | + private const subs = [ |
|
13 | + 'front_side' => 'BPT\types\passportFile', |
|
14 | + 'reverse_side' => 'BPT\types\passportFile', |
|
15 | + 'selfie' => 'BPT\types\passportFile', |
|
16 | + ]; |
|
17 | 17 | |
18 | - /** |
|
19 | - * Element type. One of “personal_details”, “passport”, “driver_license”, “identity_card”, |
|
20 | - * “internal_passport”, “address”, “utility_bill”, “bank_statement”, “rental_agreement”, |
|
21 | - * “passport_registration”, “temporary_registration”, “phone_number”, “email”. |
|
22 | - */ |
|
23 | - public string $type; |
|
18 | + /** |
|
19 | + * Element type. One of “personal_details”, “passport”, “driver_license”, “identity_card”, |
|
20 | + * “internal_passport”, “address”, “utility_bill”, “bank_statement”, “rental_agreement”, |
|
21 | + * “passport_registration”, “temporary_registration”, “phone_number”, “email”. |
|
22 | + */ |
|
23 | + public string $type; |
|
24 | 24 | |
25 | - /** |
|
26 | - * Optional. Base64-encoded encrypted Telegram Passport element data provided by the user, available for |
|
27 | - * “personal_details”, “passport”, “driver_license”, “identity_card”, “internal_passport” and |
|
28 | - * “address” types. Can be decrypted and verified using the accompanying EncryptedCredentials. |
|
29 | - */ |
|
30 | - public string $data; |
|
25 | + /** |
|
26 | + * Optional. Base64-encoded encrypted Telegram Passport element data provided by the user, available for |
|
27 | + * “personal_details”, “passport”, “driver_license”, “identity_card”, “internal_passport” and |
|
28 | + * “address” types. Can be decrypted and verified using the accompanying EncryptedCredentials. |
|
29 | + */ |
|
30 | + public string $data; |
|
31 | 31 | |
32 | - /** Optional. User's verified phone number, available only for “phone_number” type */ |
|
33 | - public string $phone_number; |
|
32 | + /** Optional. User's verified phone number, available only for “phone_number” type */ |
|
33 | + public string $phone_number; |
|
34 | 34 | |
35 | - /** Optional. User's verified email address, available only for “email” type */ |
|
36 | - public string $email; |
|
35 | + /** Optional. User's verified email address, available only for “email” type */ |
|
36 | + public string $email; |
|
37 | 37 | |
38 | - /** |
|
39 | - * Optional. Array of encrypted files with documents provided by the user, available for “utility_bill”, |
|
40 | - * “bank_statement”, “rental_agreement”, “passport_registration” and “temporary_registration” |
|
41 | - * types. Files can be decrypted and verified using the accompanying EncryptedCredentials. |
|
42 | - */ |
|
43 | - public array $files; |
|
38 | + /** |
|
39 | + * Optional. Array of encrypted files with documents provided by the user, available for “utility_bill”, |
|
40 | + * “bank_statement”, “rental_agreement”, “passport_registration” and “temporary_registration” |
|
41 | + * types. Files can be decrypted and verified using the accompanying EncryptedCredentials. |
|
42 | + */ |
|
43 | + public array $files; |
|
44 | 44 | |
45 | - /** |
|
46 | - * Optional. Encrypted file with the front side of the document, provided by the user. Available for |
|
47 | - * “passport”, “driver_license”, “identity_card” and “internal_passport”. The file can be |
|
48 | - * decrypted and verified using the accompanying EncryptedCredentials. |
|
49 | - */ |
|
50 | - public passportFile $front_side; |
|
45 | + /** |
|
46 | + * Optional. Encrypted file with the front side of the document, provided by the user. Available for |
|
47 | + * “passport”, “driver_license”, “identity_card” and “internal_passport”. The file can be |
|
48 | + * decrypted and verified using the accompanying EncryptedCredentials. |
|
49 | + */ |
|
50 | + public passportFile $front_side; |
|
51 | 51 | |
52 | - /** |
|
53 | - * Optional. Encrypted file with the reverse side of the document, provided by the user. Available for |
|
54 | - * “driver_license” and “identity_card”. The file can be decrypted and verified using the accompanying |
|
55 | - * EncryptedCredentials. |
|
56 | - */ |
|
57 | - public passportFile $reverse_side; |
|
52 | + /** |
|
53 | + * Optional. Encrypted file with the reverse side of the document, provided by the user. Available for |
|
54 | + * “driver_license” and “identity_card”. The file can be decrypted and verified using the accompanying |
|
55 | + * EncryptedCredentials. |
|
56 | + */ |
|
57 | + public passportFile $reverse_side; |
|
58 | 58 | |
59 | - /** |
|
60 | - * Optional. Encrypted file with the selfie of the user holding a document, provided by the user; available for |
|
61 | - * “passport”, “driver_license”, “identity_card” and “internal_passport”. The file can be |
|
62 | - * decrypted and verified using the accompanying EncryptedCredentials. |
|
63 | - */ |
|
64 | - public passportFile $selfie; |
|
59 | + /** |
|
60 | + * Optional. Encrypted file with the selfie of the user holding a document, provided by the user; available for |
|
61 | + * “passport”, “driver_license”, “identity_card” and “internal_passport”. The file can be |
|
62 | + * decrypted and verified using the accompanying EncryptedCredentials. |
|
63 | + */ |
|
64 | + public passportFile $selfie; |
|
65 | 65 | |
66 | - /** |
|
67 | - * Optional. Array of encrypted files with translated versions of documents provided by the user. Available if |
|
68 | - * requested for “passport”, “driver_license”, “identity_card”, “internal_passport”, |
|
69 | - * “utility_bill”, “bank_statement”, “rental_agreement”, “passport_registration” and |
|
70 | - * “temporary_registration” types. Files can be decrypted and verified using the accompanying |
|
71 | - * EncryptedCredentials. |
|
72 | - */ |
|
73 | - public array $translation; |
|
66 | + /** |
|
67 | + * Optional. Array of encrypted files with translated versions of documents provided by the user. Available if |
|
68 | + * requested for “passport”, “driver_license”, “identity_card”, “internal_passport”, |
|
69 | + * “utility_bill”, “bank_statement”, “rental_agreement”, “passport_registration” and |
|
70 | + * “temporary_registration” types. Files can be decrypted and verified using the accompanying |
|
71 | + * EncryptedCredentials. |
|
72 | + */ |
|
73 | + public array $translation; |
|
74 | 74 | |
75 | - /** Base64-encoded element hash for using in PassportElementErrorUnspecified */ |
|
76 | - public string $hash; |
|
75 | + /** Base64-encoded element hash for using in PassportElementErrorUnspecified */ |
|
76 | + public string $hash; |
|
77 | 77 | |
78 | 78 | |
79 | - public function __construct(stdClass $update) { |
|
80 | - parent::__construct($update, self::subs); |
|
81 | - } |
|
79 | + public function __construct(stdClass $update) { |
|
80 | + parent::__construct($update, self::subs); |
|
81 | + } |
|
82 | 82 | } |
@@ -10,41 +10,41 @@ |
||
10 | 10 | * can use input_message_content to send a message with the specified content instead of the animation. |
11 | 11 | */ |
12 | 12 | class inlineQueryResultCachedMpeg4Gif 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 mpeg4_gif */ |
|
20 | - public string $type; |
|
19 | + /** Type of the result, must be mpeg4_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 MP4 file */ |
|
26 | - public string $mpeg4_file_id; |
|
25 | + /** A valid file identifier for the MP4 file */ |
|
26 | + public string $mpeg4_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 MPEG-4 file to be sent, 0-1024 characters after entities parsing */ |
|
32 | - public string $caption; |
|
31 | + /** Optional. Caption of the MPEG-4 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 video animation */ |
|
44 | - public inputMessageContent $input_message_content; |
|
43 | + /** Optional. Content of the message to be sent instead of the video 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 | } |