@@ -8,29 +8,29 @@ |
||
8 | 8 | * This object represents a voice note. |
9 | 9 | */ |
10 | 10 | class voice 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 | - /** Duration of the audio in seconds as defined by sender */ |
|
24 | - public int $duration; |
|
23 | + /** Duration of the audio in seconds as defined by sender */ |
|
24 | + public int $duration; |
|
25 | 25 | |
26 | - /** Optional. MIME type of the file as defined by sender */ |
|
27 | - public string $mime_type; |
|
26 | + /** Optional. MIME type of the file as defined by sender */ |
|
27 | + public string $mime_type; |
|
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 | } |
@@ -9,26 +9,26 @@ |
||
9 | 9 | * reverse side of the document changes. |
10 | 10 | */ |
11 | 11 | class passportElementErrorReverseSide 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 reverse_side */ |
|
16 | - public string $source; |
|
15 | + /** Error source, must be reverse_side */ |
|
16 | + public string $source; |
|
17 | 17 | |
18 | - /** |
|
19 | - * The section of the user's Telegram Passport which has the issue, one of “driver_license”, |
|
20 | - * “identity_card” |
|
21 | - */ |
|
22 | - public string $type; |
|
18 | + /** |
|
19 | + * The section of the user's Telegram Passport which has the issue, one of “driver_license”, |
|
20 | + * “identity_card” |
|
21 | + */ |
|
22 | + public string $type; |
|
23 | 23 | |
24 | - /** Base64-encoded hash of the file with the reverse side of the document */ |
|
25 | - public string $file_hash; |
|
24 | + /** Base64-encoded hash of the file with the reverse side of the document */ |
|
25 | + public string $file_hash; |
|
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 | } |
@@ -8,42 +8,42 @@ |
||
8 | 8 | * This object represents a Telegram user or bot. |
9 | 9 | */ |
10 | 10 | class user 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 | - /** |
|
15 | - * Unique identifier for this user or bot. This number may have more than 32 significant bits and some |
|
16 | - * programming languages may have difficulty/silent defects in interpreting it. But it has at most 52 significant |
|
17 | - * bits, so a 64-bit integer or double-precision float type are safe for storing this identifier. |
|
18 | - */ |
|
19 | - public int $id; |
|
14 | + /** |
|
15 | + * Unique identifier for this user or bot. This number may have more than 32 significant bits and some |
|
16 | + * programming languages may have difficulty/silent defects in interpreting it. But it has at most 52 significant |
|
17 | + * bits, so a 64-bit integer or double-precision float type are safe for storing this identifier. |
|
18 | + */ |
|
19 | + public int $id; |
|
20 | 20 | |
21 | - /** True, if this user is a bot */ |
|
22 | - public bool $is_bot; |
|
21 | + /** True, if this user is a bot */ |
|
22 | + public bool $is_bot; |
|
23 | 23 | |
24 | - /** User's or bot's first name */ |
|
25 | - public string $first_name; |
|
24 | + /** User's or bot's first name */ |
|
25 | + public string $first_name; |
|
26 | 26 | |
27 | - /** Optional. User's or bot's last name */ |
|
28 | - public string $last_name; |
|
27 | + /** Optional. User's or bot's last name */ |
|
28 | + public string $last_name; |
|
29 | 29 | |
30 | - /** Optional. User's or bot's username */ |
|
31 | - public string $username; |
|
30 | + /** Optional. User's or bot's username */ |
|
31 | + public string $username; |
|
32 | 32 | |
33 | - /** Optional. IETF language tag of the user's language */ |
|
34 | - public string $language_code; |
|
33 | + /** Optional. IETF language tag of the user's language */ |
|
34 | + public string $language_code; |
|
35 | 35 | |
36 | - /** Optional. True, if the bot can be invited to groups. Returned only in getMe. */ |
|
37 | - public bool $can_join_groups; |
|
36 | + /** Optional. True, if the bot can be invited to groups. Returned only in getMe. */ |
|
37 | + public bool $can_join_groups; |
|
38 | 38 | |
39 | - /** Optional. True, if privacy mode is disabled for the bot. Returned only in getMe. */ |
|
40 | - public bool $can_read_all_group_messages; |
|
39 | + /** Optional. True, if privacy mode is disabled for the bot. Returned only in getMe. */ |
|
40 | + public bool $can_read_all_group_messages; |
|
41 | 41 | |
42 | - /** Optional. True, if the bot supports inline queries. Returned only in getMe. */ |
|
43 | - public bool $supports_inline_queries; |
|
42 | + /** Optional. True, if the bot supports inline queries. Returned only in getMe. */ |
|
43 | + public bool $supports_inline_queries; |
|
44 | 44 | |
45 | 45 | |
46 | - public function __construct(stdClass $update) { |
|
47 | - parent::__construct($update, self::subs); |
|
48 | - } |
|
46 | + public function __construct(stdClass $update) { |
|
47 | + parent::__construct($update, self::subs); |
|
48 | + } |
|
49 | 49 | } |
@@ -9,10 +9,10 @@ |
||
9 | 9 | * by the user. It should be one of: |
10 | 10 | */ |
11 | 11 | class passportElementError 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,14 +8,14 @@ |
||
8 | 8 | * Describes that no specific value for the menu button was set. |
9 | 9 | */ |
10 | 10 | class menuButtonDefault 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 default */ |
|
15 | - public string $type; |
|
14 | + /** Type of the button, must be default */ |
|
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 | } |
@@ -9,26 +9,26 @@ |
||
9 | 9 | * selfie changes. |
10 | 10 | */ |
11 | 11 | class passportElementErrorSelfie 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 selfie */ |
|
16 | - public string $source; |
|
15 | + /** Error source, must be selfie */ |
|
16 | + public string $source; |
|
17 | 17 | |
18 | - /** |
|
19 | - * The section of the user's Telegram Passport which has the issue, one of “passport”, “driver_license”, |
|
20 | - * “identity_card”, “internal_passport” |
|
21 | - */ |
|
22 | - public string $type; |
|
18 | + /** |
|
19 | + * The section of the user's Telegram Passport which has the issue, one of “passport”, “driver_license”, |
|
20 | + * “identity_card”, “internal_passport” |
|
21 | + */ |
|
22 | + public string $type; |
|
23 | 23 | |
24 | - /** Base64-encoded hash of the file with the selfie */ |
|
25 | - public string $file_hash; |
|
24 | + /** Base64-encoded hash of the file with the selfie */ |
|
25 | + public string $file_hash; |
|
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 | } |
@@ -8,14 +8,14 @@ |
||
8 | 8 | * This object represents a service message about a video chat ended in the chat. |
9 | 9 | */ |
10 | 10 | class videoChatEnded 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 | - /** Video chat duration in seconds */ |
|
15 | - public int $duration; |
|
14 | + /** Video chat duration in seconds */ |
|
15 | + public int $duration; |
|
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,29 +9,29 @@ |
||
9 | 9 | * when the field's value changes. |
10 | 10 | */ |
11 | 11 | class passportElementErrorDataField 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 data */ |
|
16 | - public string $source; |
|
15 | + /** Error source, must be data */ |
|
16 | + public string $source; |
|
17 | 17 | |
18 | - /** |
|
19 | - * The section of the user's Telegram Passport which has the error, one of “personal_details”, |
|
20 | - * “passport”, “driver_license”, “identity_card”, “internal_passport”, “address” |
|
21 | - */ |
|
22 | - public string $type; |
|
18 | + /** |
|
19 | + * The section of the user's Telegram Passport which has the error, one of “personal_details”, |
|
20 | + * “passport”, “driver_license”, “identity_card”, “internal_passport”, “address” |
|
21 | + */ |
|
22 | + public string $type; |
|
23 | 23 | |
24 | - /** Name of the data field which has the error */ |
|
25 | - public string $field_name; |
|
24 | + /** Name of the data field which has the error */ |
|
25 | + public string $field_name; |
|
26 | 26 | |
27 | - /** Base64-encoded data hash */ |
|
28 | - public string $data_hash; |
|
27 | + /** Base64-encoded data hash */ |
|
28 | + public string $data_hash; |
|
29 | 29 | |
30 | - /** Error message */ |
|
31 | - public string $message; |
|
30 | + /** Error message */ |
|
31 | + public string $message; |
|
32 | 32 | |
33 | 33 | |
34 | - public function __construct(stdClass $update) { |
|
35 | - parent::__construct($update, self::subs); |
|
36 | - } |
|
34 | + public function __construct(stdClass $update) { |
|
35 | + parent::__construct($update, self::subs); |
|
36 | + } |
|
37 | 37 | } |
@@ -8,17 +8,17 @@ |
||
8 | 8 | * This object represent a user's profile pictures. |
9 | 9 | */ |
10 | 10 | class userProfilePhotos 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 | - /** Total number of profile pictures the target user has */ |
|
15 | - public int $total_count; |
|
14 | + /** Total number of profile pictures the target user has */ |
|
15 | + public int $total_count; |
|
16 | 16 | |
17 | - /** Requested profile pictures (in up to 4 sizes each) */ |
|
18 | - public array $photos; |
|
17 | + /** Requested profile pictures (in up to 4 sizes each) */ |
|
18 | + public array $photos; |
|
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 | } |