@@ -28,13 +28,13 @@ discard block |
||
| 28 | 28 | public int $duration; |
| 29 | 29 | |
| 30 | 30 | /** Optional. Video thumbnail */ |
| 31 | - public null|photoSize $thumbnail = null; |
|
| 31 | + public null | photoSize $thumbnail = null; |
|
| 32 | 32 | |
| 33 | 33 | /** Optional. File size in bytes */ |
| 34 | - public null|int $file_size = null; |
|
| 34 | + public null | int $file_size = null; |
|
| 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,8 +55,8 @@ 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 | |
| 62 | 62 | /** |
@@ -18,25 +18,25 @@ discard block |
||
| 18 | 18 | public float $latitude; |
| 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 | } |
@@ -26,7 +26,7 @@ discard block |
||
| 26 | 26 | public int $chat_id; |
| 27 | 27 | |
| 28 | 28 | |
| 29 | - public function __construct(stdClass|null $object = null) { |
|
| 29 | + public function __construct(stdClass | null $object = null) { |
|
| 30 | 30 | if ($object != null) { |
| 31 | 31 | parent::__construct($object, self::subs); |
| 32 | 32 | } |
@@ -39,7 +39,7 @@ discard block |
||
| 39 | 39 | * |
| 40 | 40 | * @return responseError|chat |
| 41 | 41 | */ |
| 42 | - public function getInfo (bool $answer = null): responseError|chat { |
|
| 42 | + public function getInfo(bool $answer = null): responseError | chat { |
|
| 43 | 43 | return telegram::getChat($this->chat_id, answer: $answer); |
| 44 | 44 | } |
| 45 | 45 | } |
@@ -38,25 +38,25 @@ discard block |
||
| 38 | 38 | public int $height; |
| 39 | 39 | |
| 40 | 40 | /** True, if the sticker is animated */ |
| 41 | - public null|bool $is_animated = null; |
|
| 41 | + public null | bool $is_animated = null; |
|
| 42 | 42 | |
| 43 | 43 | /** True, if the sticker is a video sticker */ |
| 44 | - public null|bool $is_video = null; |
|
| 44 | + public null | bool $is_video = null; |
|
| 45 | 45 | |
| 46 | 46 | /** Optional. Sticker thumbnail in the .WEBP or .JPG format */ |
| 47 | - public null|photoSize $thumbnail = null; |
|
| 47 | + public null | photoSize $thumbnail = null; |
|
| 48 | 48 | |
| 49 | 49 | /** Optional. Emoji associated with the sticker */ |
| 50 | - public null|string $emoji = null; |
|
| 50 | + public null | string $emoji = null; |
|
| 51 | 51 | |
| 52 | 52 | /** Optional. Name of the sticker set to which the sticker belongs */ |
| 53 | - public null|string $set_name = null; |
|
| 53 | + public null | string $set_name = null; |
|
| 54 | 54 | |
| 55 | 55 | /** Optional. Premium animation for the sticker, if the sticker is premium */ |
| 56 | - public null|file $premium_animation = null; |
|
| 56 | + public null | file $premium_animation = null; |
|
| 57 | 57 | |
| 58 | 58 | /** Optional. For mask stickers, the position where the mask should be placed */ |
| 59 | - public null|maskPosition $mask_position = null; |
|
| 59 | + public null | maskPosition $mask_position = null; |
|
| 60 | 60 | |
| 61 | 61 | /** Optional. For custom emoji stickers, unique identifier of the custom emoji */ |
| 62 | 62 | public string $custom_emoji_id; |
@@ -68,10 +68,10 @@ discard block |
||
| 68 | 68 | public bool $needs_repainting; |
| 69 | 69 | |
| 70 | 70 | /** Optional. File size in bytes */ |
| 71 | - public null|int $file_size = null; |
|
| 71 | + public null | int $file_size = null; |
|
| 72 | 72 | |
| 73 | 73 | |
| 74 | - public function __construct(stdClass|null $object = null) { |
|
| 74 | + public function __construct(stdClass | null $object = null) { |
|
| 75 | 75 | if ($object != null) { |
| 76 | 76 | parent::__construct($object, self::subs); |
| 77 | 77 | } |
@@ -92,8 +92,8 @@ discard block |
||
| 92 | 92 | * |
| 93 | 93 | * @return bool|string string will be returned when destination doesn't set |
| 94 | 94 | */ |
| 95 | - public function download(string|null $destination = null): bool|string { |
|
| 96 | - return telegram::downloadFile($destination ?? 'unknown.png',$this->file_id); |
|
| 95 | + public function download(string | null $destination = null): bool | string { |
|
| 96 | + return telegram::downloadFile($destination ?? 'unknown.png', $this->file_id); |
|
| 97 | 97 | } |
| 98 | 98 | |
| 99 | 99 | /** |
@@ -26,7 +26,7 @@ discard block |
||
| 26 | 26 | public int $user_id; |
| 27 | 27 | |
| 28 | 28 | |
| 29 | - public function __construct(stdClass|null $object = null) { |
|
| 29 | + public function __construct(stdClass | null $object = null) { |
|
| 30 | 30 | if ($object != null) { |
| 31 | 31 | parent::__construct($object, self::subs); |
| 32 | 32 | } |
@@ -39,7 +39,7 @@ discard block |
||
| 39 | 39 | * |
| 40 | 40 | * @return responseError|chat |
| 41 | 41 | */ |
| 42 | - public function getInfo (bool $answer = null): responseError|chat { |
|
| 42 | + public function getInfo(bool $answer = null): responseError | chat { |
|
| 43 | 43 | return telegram::getChat($this->user_id, answer: $answer); |
| 44 | 44 | } |
| 45 | 45 | } |
@@ -28,10 +28,10 @@ discard block |
||
| 28 | 28 | public int $height; |
| 29 | 29 | |
| 30 | 30 | /** Optional. File size in bytes */ |
| 31 | - public null|int $file_size = null; |
|
| 31 | + public null | int $file_size = null; |
|
| 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,8 +52,8 @@ 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 | |
| 59 | 59 | /** |
@@ -30,103 +30,103 @@ discard block |
||
| 30 | 30 | public string $type; |
| 31 | 31 | |
| 32 | 32 | /** Optional. Title, for supergroups, channels and group chats */ |
| 33 | - public null|string $title = null; |
|
| 33 | + public null | string $title = null; |
|
| 34 | 34 | |
| 35 | 35 | /** Optional. Username, for private chats, supergroups and channels if available */ |
| 36 | - public null|string $username = null; |
|
| 36 | + public null | string $username = null; |
|
| 37 | 37 | |
| 38 | 38 | /** Optional. First name of the other party in a private chat */ |
| 39 | - public null|string $first_name = null; |
|
| 39 | + public null | string $first_name = null; |
|
| 40 | 40 | |
| 41 | 41 | /** Optional. Last name of the other party in a private chat */ |
| 42 | - public null|string $last_name = null; |
|
| 42 | + public null | string $last_name = null; |
|
| 43 | 43 | |
| 44 | 44 | /** Optional. True, if the supergroup chat is a forum (has topics enabled) */ |
| 45 | - public null|bool $is_forum = null; |
|
| 45 | + public null | bool $is_forum = null; |
|
| 46 | 46 | |
| 47 | 47 | /** Optional. Chat photo. Returned only in getChat. */ |
| 48 | - public null|chatPhoto $photo = null; |
|
| 48 | + public null | chatPhoto $photo = null; |
|
| 49 | 49 | |
| 50 | 50 | /** Optional. If non-empty, the list of all active chat usernames; for private chats, supergroups and channels. Returned only in getChat. */ |
| 51 | - public null|array $active_usernames = null; |
|
| 51 | + public null | array $active_usernames = null; |
|
| 52 | 52 | |
| 53 | 53 | /** Optional. Custom emoji identifier of emoji status of the other party in a private chat. Returned only in getChat. */ |
| 54 | - public null|string $emoji_status_custom_emoji_id = null; |
|
| 54 | + public null | string $emoji_status_custom_emoji_id = null; |
|
| 55 | 55 | |
| 56 | 56 | /** |
| 57 | 57 | * Optional. Expiration date of the emoji status of the other party in a private chat, if any. |
| 58 | 58 | * Returned only in getChat. |
| 59 | 59 | */ |
| 60 | - public null|int $emoji_status_expiration_date; |
|
| 60 | + public null | int $emoji_status_expiration_date; |
|
| 61 | 61 | |
| 62 | 62 | /** Optional. Bio of the other party in a private chat. Returned only in getChat. */ |
| 63 | - public null|string $bio = null; |
|
| 63 | + public null | string $bio = null; |
|
| 64 | 64 | |
| 65 | 65 | /** |
| 66 | 66 | * Optional. True, if privacy settings of the other party in the private chat allows to use |
| 67 | 67 | * tg://user?id=<user_id> links only in chats with the user. Returned only in getChat. |
| 68 | 68 | */ |
| 69 | - public null|bool $has_private_forwards = null; |
|
| 69 | + public null | bool $has_private_forwards = null; |
|
| 70 | 70 | |
| 71 | 71 | /** |
| 72 | 72 | * Optional. True, if the privacy settings of the other party restrict sending voice and video note messages in |
| 73 | 73 | * the private chat. Returned only in getChat. |
| 74 | 74 | */ |
| 75 | - public null|bool $has_restricted_voice_and_video_messages = null; |
|
| 75 | + public null | bool $has_restricted_voice_and_video_messages = null; |
|
| 76 | 76 | |
| 77 | 77 | /** Optional. True, if users need to join the supergroup before they can send messages. Returned only in getChat. */ |
| 78 | - public null|bool $join_to_send_messages = null; |
|
| 78 | + public null | bool $join_to_send_messages = null; |
|
| 79 | 79 | |
| 80 | 80 | /** |
| 81 | 81 | * Optional. True, if all users directly joining the supergroup need to be approved by supergroup administrators. |
| 82 | 82 | * Returned only in getChat. |
| 83 | 83 | */ |
| 84 | - public null|bool $join_by_request = null; |
|
| 84 | + public null | bool $join_by_request = null; |
|
| 85 | 85 | |
| 86 | 86 | /** Optional. Description, for groups, supergroups and channel chats. Returned only in getChat. */ |
| 87 | - public null|string $description = null; |
|
| 87 | + public null | string $description = null; |
|
| 88 | 88 | |
| 89 | 89 | /** Optional. Primary invite link, for groups, supergroups and channel chats. Returned only in getChat. */ |
| 90 | - public null|string $invite_link = null; |
|
| 90 | + public null | string $invite_link = null; |
|
| 91 | 91 | |
| 92 | 92 | /** Optional. The most recent pinned message (by sending date). Returned only in getChat. */ |
| 93 | - public null|message $pinned_message = null; |
|
| 93 | + public null | message $pinned_message = null; |
|
| 94 | 94 | |
| 95 | 95 | /** Optional. Default chat member permissions, for groups and supergroups. Returned only in getChat. */ |
| 96 | - public null|chatPermissions $permissions = null; |
|
| 96 | + public null | chatPermissions $permissions = null; |
|
| 97 | 97 | |
| 98 | 98 | /** |
| 99 | 99 | * Optional. For supergroups, the minimum allowed delay between consecutive messages sent by each unpriviledged |
| 100 | 100 | * user; in seconds. Returned only in getChat. |
| 101 | 101 | */ |
| 102 | - public null|int $slow_mode_delay = null; |
|
| 102 | + public null | int $slow_mode_delay = null; |
|
| 103 | 103 | |
| 104 | 104 | /** |
| 105 | 105 | * Optional. The time after which all messages sent to the chat will be automatically deleted; in seconds. |
| 106 | 106 | * Returned only in getChat. |
| 107 | 107 | */ |
| 108 | - public null|int $message_auto_delete_time = null; |
|
| 108 | + public null | int $message_auto_delete_time = null; |
|
| 109 | 109 | |
| 110 | 110 | /** |
| 111 | 111 | * Optional. True, if aggressive anti-spam checks are enabled in the supergroup. |
| 112 | 112 | * The field is only available to chat administrators. Returned only in getChat. |
| 113 | 113 | */ |
| 114 | - public null|bool $has_aggressive_anti_spam_enabled = null; |
|
| 114 | + public null | bool $has_aggressive_anti_spam_enabled = null; |
|
| 115 | 115 | |
| 116 | 116 | /** |
| 117 | 117 | * Optional. True, if non-administrators can only get the list of bots and administrators in the chat. |
| 118 | 118 | * Returned only in getChat. |
| 119 | 119 | */ |
| 120 | - public null|bool $has_hidden_members = null; |
|
| 120 | + public null | bool $has_hidden_members = null; |
|
| 121 | 121 | |
| 122 | 122 | /** Optional. True, if messages from the chat can't be forwarded to other chats. Returned only in getChat. */ |
| 123 | - public null|bool $has_protected_content = null; |
|
| 123 | + public null | bool $has_protected_content = null; |
|
| 124 | 124 | |
| 125 | 125 | /** Optional. For supergroups, name of group sticker set. Returned only in getChat. */ |
| 126 | - public null|string $sticker_set_name = null; |
|
| 126 | + public null | string $sticker_set_name = null; |
|
| 127 | 127 | |
| 128 | 128 | /** Optional. True, if the bot can change the group sticker set. Returned only in getChat. */ |
| 129 | - public null|bool $can_set_sticker_set = null; |
|
| 129 | + public null | bool $can_set_sticker_set = null; |
|
| 130 | 130 | |
| 131 | 131 | /** |
| 132 | 132 | * Optional. Unique identifier for the linked chat, i.e. the discussion group identifier for a channel and vice |
@@ -134,13 +134,13 @@ discard block |
||
| 134 | 134 | * languages may have difficulty/silent defects in interpreting it. But it is smaller than 52 bits, so a signed |
| 135 | 135 | * 64 bit integer or double-precision float type are safe for storing this identifier. Returned only in getChat. |
| 136 | 136 | */ |
| 137 | - public null|int $linked_chat_id = null; |
|
| 137 | + public null | int $linked_chat_id = null; |
|
| 138 | 138 | |
| 139 | 139 | /** Optional. For supergroups, the location to which the supergroup is connected. Returned only in getChat. */ |
| 140 | - public null|chatLocation $location = null; |
|
| 140 | + public null | chatLocation $location = null; |
|
| 141 | 141 | |
| 142 | 142 | |
| 143 | - public function __construct(stdClass|null $object = null) { |
|
| 143 | + public function __construct(stdClass | null $object = null) { |
|
| 144 | 144 | if ($object != null) { |
| 145 | 145 | parent::__construct($object, self::subs); |
| 146 | 146 | } |
@@ -151,7 +151,7 @@ discard block |
||
| 151 | 151 | * |
| 152 | 152 | * @return bool |
| 153 | 153 | */ |
| 154 | - public function isPrivate (): bool { |
|
| 154 | + public function isPrivate(): bool { |
|
| 155 | 155 | return $this->type === chatType::PRIVATE; |
| 156 | 156 | } |
| 157 | 157 | |
@@ -160,7 +160,7 @@ discard block |
||
| 160 | 160 | * |
| 161 | 161 | * @return bool |
| 162 | 162 | */ |
| 163 | - public function isGroup (): bool { |
|
| 163 | + public function isGroup(): bool { |
|
| 164 | 164 | return $this->type === chatType::GROUP; |
| 165 | 165 | } |
| 166 | 166 | |
@@ -169,7 +169,7 @@ discard block |
||
| 169 | 169 | * |
| 170 | 170 | * @return bool |
| 171 | 171 | */ |
| 172 | - public function isSuperGroup (): bool { |
|
| 172 | + public function isSuperGroup(): bool { |
|
| 173 | 173 | return $this->type === chatType::SUPERGROUP; |
| 174 | 174 | } |
| 175 | 175 | |
@@ -178,7 +178,7 @@ discard block |
||
| 178 | 178 | * |
| 179 | 179 | * @return bool |
| 180 | 180 | */ |
| 181 | - public function isChannel (): bool { |
|
| 181 | + public function isChannel(): bool { |
|
| 182 | 182 | return $this->type === chatType::CHANNEL; |
| 183 | 183 | } |
| 184 | 184 | |
@@ -187,7 +187,7 @@ discard block |
||
| 187 | 187 | * |
| 188 | 188 | * @return responseError|bool |
| 189 | 189 | */ |
| 190 | - public function leave(): responseError|bool { |
|
| 190 | + public function leave(): responseError | bool { |
|
| 191 | 191 | if ($this->isPrivate()) { |
| 192 | 192 | return false; |
| 193 | 193 | } |
@@ -202,7 +202,7 @@ discard block |
||
| 202 | 202 | * |
| 203 | 203 | * @return responseError|bool |
| 204 | 204 | */ |
| 205 | - public function setPhoto(CURLFile|array $photo, bool $answer = null): responseError|bool { |
|
| 205 | + public function setPhoto(CURLFile | array $photo, bool $answer = null): responseError | bool { |
|
| 206 | 206 | if ($this->isPrivate()) { |
| 207 | 207 | return false; |
| 208 | 208 | } |
@@ -216,7 +216,7 @@ discard block |
||
| 216 | 216 | * |
| 217 | 217 | * @return responseError|bool |
| 218 | 218 | */ |
| 219 | - public function delPhoto(bool $answer = null): responseError|bool { |
|
| 219 | + public function delPhoto(bool $answer = null): responseError | bool { |
|
| 220 | 220 | if ($this->isPrivate()) { |
| 221 | 221 | return false; |
| 222 | 222 | } |
@@ -231,7 +231,7 @@ discard block |
||
| 231 | 231 | * |
| 232 | 232 | * @return responseError|bool |
| 233 | 233 | */ |
| 234 | - public function setTitle(string|array $title, bool $answer = null): responseError|bool { |
|
| 234 | + public function setTitle(string | array $title, bool $answer = null): responseError | bool { |
|
| 235 | 235 | if ($this->isPrivate()) { |
| 236 | 236 | return false; |
| 237 | 237 | } |
@@ -246,7 +246,7 @@ discard block |
||
| 246 | 246 | * |
| 247 | 247 | * @return responseError|bool |
| 248 | 248 | */ |
| 249 | - public function setDescription(string|null $description = null, bool $answer = null): responseError|bool { |
|
| 249 | + public function setDescription(string | null $description = null, bool $answer = null): responseError | bool { |
|
| 250 | 250 | if ($this->isPrivate()) { |
| 251 | 251 | return false; |
| 252 | 252 | } |
@@ -260,7 +260,7 @@ discard block |
||
| 260 | 260 | * |
| 261 | 261 | * @return bool|responseError|array |
| 262 | 262 | */ |
| 263 | - public function getAdmins(bool $answer = null): bool|responseError|array { |
|
| 263 | + public function getAdmins(bool $answer = null): bool | responseError | array { |
|
| 264 | 264 | if ($this->isPrivate()) { |
| 265 | 265 | return false; |
| 266 | 266 | } |
@@ -274,7 +274,7 @@ discard block |
||
| 274 | 274 | * |
| 275 | 275 | * @return bool|responseError|int |
| 276 | 276 | */ |
| 277 | - public function getMembersCount(bool $answer = null): bool|responseError|int { |
|
| 277 | + public function getMembersCount(bool $answer = null): bool | responseError | int { |
|
| 278 | 278 | if ($this->isPrivate()) { |
| 279 | 279 | return false; |
| 280 | 280 | } |
@@ -289,7 +289,7 @@ discard block |
||
| 289 | 289 | * |
| 290 | 290 | * @return chatMember|bool|responseError |
| 291 | 291 | */ |
| 292 | - public function getMember(int|null $user_id = null, bool $answer = null): chatMember|bool|responseError { |
|
| 292 | + public function getMember(int | null $user_id = null, bool $answer = null): chatMember | bool | responseError { |
|
| 293 | 293 | if ($this->isPrivate()) { |
| 294 | 294 | return false; |
| 295 | 295 | } |
@@ -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,8 +59,8 @@ 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 | |
| 66 | 66 | /** |
@@ -31,23 +31,23 @@ discard block |
||
| 31 | 31 | public int $duration; |
| 32 | 32 | |
| 33 | 33 | /** Optional. Animation thumbnail as defined by sender */ |
| 34 | - public null|photoSize $thumbnail = null; |
|
| 34 | + public null | photoSize $thumbnail = null; |
|
| 35 | 35 | |
| 36 | 36 | /** Optional. Original animation filename as defined by sender */ |
| 37 | - public null|string $file_name = null; |
|
| 37 | + public null | string $file_name = null; |
|
| 38 | 38 | |
| 39 | 39 | /** Optional. MIME type of the file as defined by sender */ |
| 40 | - public null|string $mime_type = null; |
|
| 40 | + public null | string $mime_type = null; |
|
| 41 | 41 | |
| 42 | 42 | /** |
| 43 | 43 | * Optional. File size in bytes. It can be bigger than 2^31 and some programming languages may have |
| 44 | 44 | * difficulty/silent defects in interpreting it. But it has at most 52 significant bits, so a signed 64-bit |
| 45 | 45 | * integer or double-precision float type are safe for storing this value. |
| 46 | 46 | */ |
| 47 | - public null|int $file_size = null; |
|
| 47 | + public null | int $file_size = null; |
|
| 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,8 +68,8 @@ 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 | |
| 75 | 75 | /** |