@@ -40,7 +40,7 @@ |
||
40 | 40 | { |
41 | 41 | return is_array($data) && |
42 | 42 | array_key_exists('text', $data) && ( |
43 | - array_key_exists('url', $data) || |
|
43 | + array_key_exists('url', $data) || |
|
44 | 44 | array_key_exists('callback_data', $data) || |
45 | 45 | array_key_exists('switch_inline_query', $data) |
46 | 46 | ); |
@@ -238,7 +238,7 @@ |
||
238 | 238 | * |
239 | 239 | * @param \Longman\TelegramBot\Entities\File $file |
240 | 240 | * |
241 | - * @return boolean |
|
241 | + * @return boolean|string |
|
242 | 242 | * @throws \Longman\TelegramBot\Exception\TelegramException |
243 | 243 | */ |
244 | 244 | public static function downloadFile(File $file) |