@@ -41,7 +41,7 @@ |
||
41 | 41 | public int $max_quantity; |
42 | 42 | |
43 | 43 | |
44 | - public function __construct(stdClass|null $object = null) { |
|
44 | + public function __construct(stdClass | null $object = null) { |
|
45 | 45 | if ($object != null) { |
46 | 46 | parent::__construct($object, self::subs); |
47 | 47 | } |
@@ -82,7 +82,7 @@ |
||
82 | 82 | public bool $request_photo; |
83 | 83 | |
84 | 84 | |
85 | - public function __construct(stdClass|null $object = null) { |
|
85 | + public function __construct(stdClass | null $object = null) { |
|
86 | 86 | if ($object != null) { |
87 | 87 | parent::__construct($object, self::subs); |
88 | 88 | } |
@@ -26,29 +26,29 @@ discard block |
||
26 | 26 | public int $duration; |
27 | 27 | |
28 | 28 | /** Optional. Performer of the audio as defined by sender or by audio tags */ |
29 | - public null|string $performer = null; |
|
29 | + public null | string $performer = null; |
|
30 | 30 | |
31 | 31 | /** Optional. Title of the audio as defined by sender or by audio tags */ |
32 | - public null|string $title = null; |
|
32 | + public null | string $title = null; |
|
33 | 33 | |
34 | 34 | /** Optional. Original filename as defined by sender */ |
35 | - public null|string $file_name = null; |
|
35 | + public null | string $file_name = null; |
|
36 | 36 | |
37 | 37 | /** Optional. MIME type of the file as defined by sender */ |
38 | - public null|string $mime_type = null; |
|
38 | + public null | string $mime_type = null; |
|
39 | 39 | |
40 | 40 | /** |
41 | 41 | * Optional. File size in bytes. It can be bigger than 2^31 and some programming languages may have |
42 | 42 | * difficulty/silent defects in interpreting it. But it has at most 52 significant bits, so a signed 64-bit |
43 | 43 | * integer or double-precision float type are safe for storing this value. |
44 | 44 | */ |
45 | - public null|int $file_size = null; |
|
45 | + public null | int $file_size = null; |
|
46 | 46 | |
47 | 47 | /** Optional. Thumbnail of the album cover to which the music file belongs */ |
48 | - public null|photoSize $thumbnail = null; |
|
48 | + public null | photoSize $thumbnail = null; |
|
49 | 49 | |
50 | 50 | |
51 | - public function __construct(stdClass|null $object = null) { |
|
51 | + public function __construct(stdClass | null $object = null) { |
|
52 | 52 | if ($object != null) { |
53 | 53 | parent::__construct($object, self::subs); |
54 | 54 | } |
@@ -69,8 +69,8 @@ discard block |
||
69 | 69 | * |
70 | 70 | * @return bool|string string will be returned when destination doesn't set |
71 | 71 | */ |
72 | - public function download(string|null $destination = null): bool|string { |
|
73 | - return telegram::downloadFile($destination ?? $this->file_name ?? 'unknown.mp3',$this->file_id); |
|
72 | + public function download(string | null $destination = null): bool | string { |
|
73 | + return telegram::downloadFile($destination ?? $this->file_name ?? 'unknown.mp3', $this->file_id); |
|
74 | 74 | } |
75 | 75 | |
76 | 76 | /** |
@@ -84,7 +84,7 @@ discard block |
||
84 | 84 | return telegram::fileLink($this->file_id); |
85 | 85 | } |
86 | 86 | |
87 | - public function typedSize (int $precision = 2, bool $space_between = true): string { |
|
87 | + public function typedSize(int $precision = 2, bool $space_between = true): string { |
|
88 | 88 | return tools::byteFormat($this->file_id, $precision, $space_between); |
89 | 89 | } |
90 | 90 | } |
@@ -18,25 +18,25 @@ discard block |
||
18 | 18 | public float $longitude; |
19 | 19 | |
20 | 20 | /** Optional. The radius of uncertainty for the location, measured in meters; 0-1500 */ |
21 | - public null|float $horizontal_accuracy = null; |
|
21 | + public null | float $horizontal_accuracy = null; |
|
22 | 22 | |
23 | 23 | /** |
24 | 24 | * Optional. Time relative to the message sending date, during which the location can be updated; in seconds. For |
25 | 25 | * active live locations only. |
26 | 26 | */ |
27 | - public null|int $live_period = null; |
|
27 | + public null | int $live_period = null; |
|
28 | 28 | |
29 | 29 | /** Optional. The direction in which user is moving, in degrees; 1-360. For active live locations only. */ |
30 | - public null|int $heading = null; |
|
30 | + public null | int $heading = null; |
|
31 | 31 | |
32 | 32 | /** |
33 | 33 | * Optional. The maximum distance for proximity alerts about approaching another chat member, in meters. For sent |
34 | 34 | * live locations only. |
35 | 35 | */ |
36 | - public null|int $proximity_alert_radius = null; |
|
36 | + public null | int $proximity_alert_radius = null; |
|
37 | 37 | |
38 | 38 | |
39 | - public function __construct(stdClass|null $object = null) { |
|
39 | + public function __construct(stdClass | null $object = null) { |
|
40 | 40 | if ($object != null) { |
41 | 41 | parent::__construct($object, self::subs); |
42 | 42 | } |
@@ -47,7 +47,7 @@ discard block |
||
47 | 47 | * |
48 | 48 | * @return string |
49 | 49 | */ |
50 | - public function mapLink (): string { |
|
50 | + public function mapLink(): string { |
|
51 | 51 | return "https://www.google.com/maps/search/$this->latitude,$this->longitude"; |
52 | 52 | } |
53 | 53 | } |
@@ -18,10 +18,10 @@ |
||
18 | 18 | public int $month; |
19 | 19 | |
20 | 20 | /** Optional. Year of the user's birth */ |
21 | - public null|int $year = null; |
|
21 | + public null | int $year = null; |
|
22 | 22 | |
23 | 23 | |
24 | - public function __construct(stdClass|null $object = null) { |
|
24 | + public function __construct(stdClass | null $object = null) { |
|
25 | 25 | if ($object != null) { |
26 | 26 | parent::__construct($object, self::subs); |
27 | 27 | } |
@@ -35,7 +35,7 @@ |
||
35 | 35 | public bool $is_enabled; |
36 | 36 | |
37 | 37 | |
38 | - public function __construct(stdClass|null $object = null) { |
|
38 | + public function __construct(stdClass | null $object = null) { |
|
39 | 39 | if ($object != null) { |
40 | 40 | parent::__construct($object, self::subs); |
41 | 41 | } |
@@ -32,23 +32,23 @@ discard block |
||
32 | 32 | public int $duration; |
33 | 33 | |
34 | 34 | /** Optional. Video thumbnail */ |
35 | - public null|photoSize $thumbnail = null; |
|
35 | + public null | photoSize $thumbnail = null; |
|
36 | 36 | |
37 | 37 | /** Optional. Original filename as defined by sender */ |
38 | - public null|string $file_name = null; |
|
38 | + public null | string $file_name = null; |
|
39 | 39 | |
40 | 40 | /** Optional. MIME type of the file as defined by sender */ |
41 | - public null|string $mime_type = null; |
|
41 | + public null | string $mime_type = null; |
|
42 | 42 | |
43 | 43 | /** |
44 | 44 | * Optional. File size in bytes. It can be bigger than 2^31 and some programming languages may have |
45 | 45 | * difficulty/silent defects in interpreting it. But it has at most 52 significant bits, so a signed 64-bit |
46 | 46 | * integer or double-precision float type are safe for storing this value. |
47 | 47 | */ |
48 | - public null|int $file_size = null; |
|
48 | + public null | int $file_size = null; |
|
49 | 49 | |
50 | 50 | |
51 | - public function __construct(stdClass|null $object = null) { |
|
51 | + public function __construct(stdClass | null $object = null) { |
|
52 | 52 | if ($object != null) { |
53 | 53 | parent::__construct($object, self::subs); |
54 | 54 | } |
@@ -69,8 +69,8 @@ discard block |
||
69 | 69 | * |
70 | 70 | * @return bool|string string will be returned when destination doesn't set |
71 | 71 | */ |
72 | - public function download(string|null $destination = null): bool|string { |
|
73 | - return telegram::downloadFile($destination ?? $this->file_name ?? 'unknown.mp4',$this->file_id); |
|
72 | + public function download(string | null $destination = null): bool | string { |
|
73 | + return telegram::downloadFile($destination ?? $this->file_name ?? 'unknown.mp4', $this->file_id); |
|
74 | 74 | } |
75 | 75 | |
76 | 76 | /** |
@@ -84,7 +84,7 @@ discard block |
||
84 | 84 | return telegram::fileLink($this->file_id); |
85 | 85 | } |
86 | 86 | |
87 | - public function typedSize (int $precision = 2, bool $space_between = true): string { |
|
87 | + public function typedSize(int $precision = 2, bool $space_between = true): string { |
|
88 | 88 | return tools::byteFormat($this->file_id, $precision, $space_between); |
89 | 89 | } |
90 | 90 | } |
@@ -28,13 +28,13 @@ discard block |
||
28 | 28 | * “personal_details”, “passport”, “driver_license”, “identity_card”, “internal_passport” and |
29 | 29 | * “address” types. Can be decrypted and verified using the accompanying EncryptedCredentials. |
30 | 30 | */ |
31 | - public null|string $data = null; |
|
31 | + public null | string $data = null; |
|
32 | 32 | |
33 | 33 | /** Optional. User's verified phone number, available only for “phone_number” type */ |
34 | - public null|string $phone_number = null; |
|
34 | + public null | string $phone_number = null; |
|
35 | 35 | |
36 | 36 | /** Optional. User's verified email address, available only for “email” type */ |
37 | - public null|string $email = null; |
|
37 | + public null | string $email = null; |
|
38 | 38 | |
39 | 39 | /** |
40 | 40 | * Optional. Array of encrypted files with documents provided by the user; available only for “utility_bill”, |
@@ -42,28 +42,28 @@ discard block |
||
42 | 42 | * types. Files can be decrypted and verified using the accompanying EncryptedCredentials. |
43 | 43 | * @var passportFile[] |
44 | 44 | */ |
45 | - public null|array $files = null; |
|
45 | + public null | array $files = null; |
|
46 | 46 | |
47 | 47 | /** |
48 | 48 | * Optional. Encrypted file with the front side of the document, provided by the user; available only for |
49 | 49 | * “passport”, “driver_license”, “identity_card” and “internal_passport”. The file can be |
50 | 50 | * decrypted and verified using the accompanying EncryptedCredentials. |
51 | 51 | */ |
52 | - public null|passportFile $front_side = null; |
|
52 | + public null | passportFile $front_side = null; |
|
53 | 53 | |
54 | 54 | /** |
55 | 55 | * Optional. Encrypted file with the reverse side of the document, provided by the user; available only for |
56 | 56 | * “driver_license” and “identity_card”. The file can be decrypted and verified using the accompanying |
57 | 57 | * EncryptedCredentials. |
58 | 58 | */ |
59 | - public null|passportFile $reverse_side = null; |
|
59 | + public null | passportFile $reverse_side = null; |
|
60 | 60 | |
61 | 61 | /** |
62 | 62 | * Optional. Encrypted file with the selfie of the user holding a document, provided by the user; available if |
63 | 63 | * requested for “passport”, “driver_license”, “identity_card” and “internal_passport”. The file |
64 | 64 | * can be decrypted and verified using the accompanying EncryptedCredentials. |
65 | 65 | */ |
66 | - public null|passportFile $selfie = null; |
|
66 | + public null | passportFile $selfie = null; |
|
67 | 67 | |
68 | 68 | /** |
69 | 69 | * Optional. Array of encrypted files with translated versions of documents provided by the user; available if |
@@ -73,13 +73,13 @@ discard block |
||
73 | 73 | * EncryptedCredentials. |
74 | 74 | * @var passportFile[] |
75 | 75 | */ |
76 | - public null|array $translation = null; |
|
76 | + public null | array $translation = null; |
|
77 | 77 | |
78 | 78 | /** Base64-encoded element hash for using in PassportElementErrorUnspecified */ |
79 | 79 | public string $hash; |
80 | 80 | |
81 | 81 | |
82 | - public function __construct(stdClass|null $object = null) { |
|
82 | + public function __construct(stdClass | null $object = null) { |
|
83 | 83 | if ($object != null) { |
84 | 84 | parent::__construct($object, self::subs); |
85 | 85 | } |
@@ -17,7 +17,7 @@ |
||
17 | 17 | public backgroundType $type; |
18 | 18 | |
19 | 19 | |
20 | - public function __construct(stdClass|null $object = null) { |
|
20 | + public function __construct(stdClass | null $object = null) { |
|
21 | 21 | if ($object != null) { |
22 | 22 | parent::__construct($object, self::subs); |
23 | 23 | } |