@@ -47,7 +47,7 @@ discard block |
||
| 47 | 47 | public photoSize $thumb; |
| 48 | 48 | |
| 49 | 49 | |
| 50 | - public function __construct(stdClass|null $object = null) { |
|
| 50 | + public function __construct(stdClass | null $object = null) { |
|
| 51 | 51 | if ($object != null) { |
| 52 | 52 | parent::__construct($object, self::subs); |
| 53 | 53 | } |
@@ -68,7 +68,7 @@ discard block |
||
| 68 | 68 | * |
| 69 | 69 | * @return bool|string string will be returned when destination doesn't set |
| 70 | 70 | */ |
| 71 | - public function download(string|null $destination = null): bool|string { |
|
| 72 | - return telegram::downloadFile($destination ?? $this->file_name ?? 'unknown.mp3',$this->file_id); |
|
| 71 | + public function download(string | null $destination = null): bool | string { |
|
| 72 | + return telegram::downloadFile($destination ?? $this->file_name ?? 'unknown.mp3', $this->file_id); |
|
| 73 | 73 | } |
| 74 | 74 | } |
@@ -65,7 +65,7 @@ discard block |
||
| 65 | 65 | public int $file_size; |
| 66 | 66 | |
| 67 | 67 | |
| 68 | - public function __construct(stdClass|null $object = null) { |
|
| 68 | + public function __construct(stdClass | null $object = null) { |
|
| 69 | 69 | if ($object != null) { |
| 70 | 70 | parent::__construct($object, self::subs); |
| 71 | 71 | } |
@@ -86,7 +86,7 @@ discard block |
||
| 86 | 86 | * |
| 87 | 87 | * @return bool|string string will be returned when destination doesn't set |
| 88 | 88 | */ |
| 89 | - public function download(string|null $destination = null): bool|string { |
|
| 90 | - return telegram::downloadFile($destination ?? 'unknown.png',$this->file_id); |
|
| 89 | + public function download(string | null $destination = null): bool | string { |
|
| 90 | + return telegram::downloadFile($destination ?? 'unknown.png', $this->file_id); |
|
| 91 | 91 | } |
| 92 | 92 | } |
@@ -47,7 +47,7 @@ discard block |
||
| 47 | 47 | public int $file_size; |
| 48 | 48 | |
| 49 | 49 | |
| 50 | - public function __construct(stdClass|null $object = null) { |
|
| 50 | + public function __construct(stdClass | null $object = null) { |
|
| 51 | 51 | if ($object != null) { |
| 52 | 52 | parent::__construct($object, self::subs); |
| 53 | 53 | } |
@@ -68,7 +68,7 @@ discard block |
||
| 68 | 68 | * |
| 69 | 69 | * @return bool|string string will be returned when destination doesn't set |
| 70 | 70 | */ |
| 71 | - public function download(string|null $destination = null): bool|string { |
|
| 72 | - return telegram::downloadFile($destination ?? $this->file_name ?? 'unknown.gif',$this->file_id); |
|
| 71 | + public function download(string | null $destination = null): bool | string { |
|
| 72 | + return telegram::downloadFile($destination ?? $this->file_name ?? 'unknown.gif', $this->file_id); |
|
| 73 | 73 | } |
| 74 | 74 | } |
@@ -34,7 +34,7 @@ discard block |
||
| 34 | 34 | public int $file_size; |
| 35 | 35 | |
| 36 | 36 | |
| 37 | - public function __construct(stdClass|null $object = null) { |
|
| 37 | + public function __construct(stdClass | null $object = null) { |
|
| 38 | 38 | if ($object != null) { |
| 39 | 39 | parent::__construct($object, self::subs); |
| 40 | 40 | } |
@@ -55,7 +55,7 @@ discard block |
||
| 55 | 55 | * |
| 56 | 56 | * @return bool|string string will be returned when destination doesn't set |
| 57 | 57 | */ |
| 58 | - public function download(string|null $destination = null): bool|string { |
|
| 59 | - return telegram::downloadFile($destination ?? 'unknown.mp4',$this->file_id); |
|
| 58 | + public function download(string | null $destination = null): bool | string { |
|
| 59 | + return telegram::downloadFile($destination ?? 'unknown.mp4', $this->file_id); |
|
| 60 | 60 | } |
| 61 | 61 | } |
@@ -38,7 +38,7 @@ discard block |
||
| 38 | 38 | public int $file_size; |
| 39 | 39 | |
| 40 | 40 | |
| 41 | - public function __construct(stdClass|null $object = null) { |
|
| 41 | + public function __construct(stdClass | null $object = null) { |
|
| 42 | 42 | if ($object != null) { |
| 43 | 43 | parent::__construct($object, self::subs); |
| 44 | 44 | } |
@@ -59,7 +59,7 @@ discard block |
||
| 59 | 59 | * |
| 60 | 60 | * @return bool|string string will be returned when destination doesn't set |
| 61 | 61 | */ |
| 62 | - public function download(string|null $destination = null): bool|string { |
|
| 63 | - return telegram::downloadFile($destination ?? $this->file_name ?? 'unknown.txt',$this->file_id); |
|
| 62 | + public function download(string | null $destination = null): bool | string { |
|
| 63 | + return telegram::downloadFile($destination ?? $this->file_name ?? 'unknown.txt', $this->file_id); |
|
| 64 | 64 | } |
| 65 | 65 | } |
@@ -37,7 +37,7 @@ discard block |
||
| 37 | 37 | public string $big_file_unique_id; |
| 38 | 38 | |
| 39 | 39 | |
| 40 | - public function __construct(stdClass|null $object = null) { |
|
| 40 | + public function __construct(stdClass | null $object = null) { |
|
| 41 | 41 | if ($object != null) { |
| 42 | 42 | parent::__construct($object, self::subs); |
| 43 | 43 | } |
@@ -59,7 +59,7 @@ discard block |
||
| 59 | 59 | * |
| 60 | 60 | * @return bool|string string will be returned when destination doesn't set |
| 61 | 61 | */ |
| 62 | - public function download(string|null $destination = null,bool $big = true): bool|string { |
|
| 63 | - return telegram::downloadFile($destination ?? $this->file_name ?? 'unknown.mp4',$big ? $this->big_file_id : $this->small_file_id); |
|
| 62 | + public function download(string | null $destination = null, bool $big = true): bool | string { |
|
| 63 | + return telegram::downloadFile($destination ?? $this->file_name ?? 'unknown.mp4', $big ? $this->big_file_id : $this->small_file_id); |
|
| 64 | 64 | } |
| 65 | 65 | } |
@@ -31,7 +31,7 @@ discard block |
||
| 31 | 31 | public int $file_size; |
| 32 | 32 | |
| 33 | 33 | |
| 34 | - public function __construct(stdClass|null $object = null) { |
|
| 34 | + public function __construct(stdClass | null $object = null) { |
|
| 35 | 35 | if ($object != null) { |
| 36 | 36 | parent::__construct($object, self::subs); |
| 37 | 37 | } |
@@ -52,7 +52,7 @@ discard block |
||
| 52 | 52 | * |
| 53 | 53 | * @return bool|string string will be returned when destination doesn't set |
| 54 | 54 | */ |
| 55 | - public function download(string|null $destination = null): bool|string { |
|
| 56 | - return telegram::downloadFile($destination ?? 'unknown.jpg',$this->file_id); |
|
| 55 | + public function download(string | null $destination = null): bool | string { |
|
| 56 | + return telegram::downloadFile($destination ?? 'unknown.jpg', $this->file_id); |
|
| 57 | 57 | } |
| 58 | 58 | } |
@@ -35,7 +35,7 @@ discard block |
||
| 35 | 35 | public int $file_size; |
| 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 | } |
@@ -56,7 +56,7 @@ discard block |
||
| 56 | 56 | * |
| 57 | 57 | * @return bool|string string will be returned when destination doesn't set |
| 58 | 58 | */ |
| 59 | - public function download(string|null $destination = null): bool|string { |
|
| 60 | - return telegram::downloadFile($destination ?? 'unknown.ogg',$this->file_id); |
|
| 59 | + public function download(string | null $destination = null): bool | string { |
|
| 60 | + return telegram::downloadFile($destination ?? 'unknown.ogg', $this->file_id); |
|
| 61 | 61 | } |
| 62 | 62 | } |
@@ -47,7 +47,7 @@ discard block |
||
| 47 | 47 | public int $file_size; |
| 48 | 48 | |
| 49 | 49 | |
| 50 | - public function __construct(stdClass|null $object = null) { |
|
| 50 | + public function __construct(stdClass | null $object = null) { |
|
| 51 | 51 | if ($object != null) { |
| 52 | 52 | parent::__construct($object, self::subs); |
| 53 | 53 | } |
@@ -68,7 +68,7 @@ discard block |
||
| 68 | 68 | * |
| 69 | 69 | * @return bool|string string will be returned when destination doesn't set |
| 70 | 70 | */ |
| 71 | - public function download(string|null $destination = null): bool|string { |
|
| 72 | - return telegram::downloadFile($destination ?? $this->file_name ?? 'unknown.mp4',$this->file_id); |
|
| 71 | + public function download(string | null $destination = null): bool | string { |
|
| 72 | + return telegram::downloadFile($destination ?? $this->file_name ?? 'unknown.mp4', $this->file_id); |
|
| 73 | 73 | } |
| 74 | 74 | } |