1
0
mirror of https://github.com/danog/MadelineProto.git synced 2024-11-30 06:39:01 +01:00
This commit is contained in:
Daniil Gentili 2023-07-16 16:17:25 +02:00
parent 3ae4817f8b
commit b0694f2c7e
Signed by: danog
GPG Key ID: 8C1BE3B34B230CA7
4 changed files with 41 additions and 5 deletions

View File

@ -148,6 +148,6 @@
"invalid_dl.php": "%s is not a valid download script (%s)",
"need_dl.php": "Could not generate default download script (%s), please create a dl.php file with the following content: %s and pass its URL to the second parameter of getDownloadLink",
"dl.php_powered_by_madelineproto": "Telegram file download server, powered by https://t.me/MadelineProto (https://docs.madelineproto.xyz)!"
"dl.php_powered_by_madelineproto": "Telegram file download server (up to 4GB), powered by https://t.me/MadelineProto (https://docs.madelineproto.xyz/docs/FILES.html#getting-a-download-link)!"
}

View File

@ -52,7 +52,7 @@ final class API extends AbstractAPI
*
* @var string
*/
public const RELEASE = '8.0.0-beta100';
public const RELEASE = '8.0.0-beta101';
/**
* Secret chat was not found.
*

View File

@ -65,8 +65,10 @@ final class Lang
'call_error_1' => 'نەتوانرا پەیوەندی %s بدۆزرێتەوە و وەریبگرێت',
'call_error_2' => 'نەتوانرا پەیوەندی %s بدۆزرێتەوە و پشتڕاستی بکاتەوە',
'call_error_3' => 'نەتوانرا پەیوەندی %s بدۆزرێتەوە و تەواو بکات',
'cli_need_dl.php_link' => 'Please specify a download script URL when using getDownloadLink via CLI!',
'constructor_not_found' => 'Constructor نەدۆزرایەوە بۆ جۆری: ',
'deserialization_error' => 'هەڵەیەک لە کاتی ڕیزبەندیکردندا ڕوویدا',
'dl.php_powered_by_madelineproto' => 'Telegram file download server, powered by https://t.me/MadelineProto (https://docs.madelineproto.xyz)!',
'do_not_delete_MadelineProto.log' => 'the MadelineProto.log file must never be deleted, please set a custom max size in the settings, instead!',
'do_not_remove_MadelineProto.log_phar' => 'Please do not remove madeline.phar or madeline.php, or else MadelineProto will crash. If you have any problem with MadelineProto, report it to https://github.com/danog/MadelineProto or https://t.me/pwrtelegramgroup',
'do_not_use_blocking_class' => 'for performance reasons, handlers may not use the non-async blocking class %s, please use %s, instead',
@ -84,6 +86,7 @@ final class Lang
'file_type_invalid' => 'جۆری پەڕگەی نادروست دۆزراوەتەوە (%s)',
'fingerprint_invalid' => 'پەنجەمۆری کلیل نادروستە!',
'go' => 'بڕۆ',
'invalid_dl.php' => '%s is not a valid download script (%s)',
'length_too_big' => 'درێژی زۆر گەورەیە',
'loginBot' => 'تۆکنی بۆتەکەت بنووسە: ',
'loginBotTokenWeb' => 'بۆت تۆکن',
@ -130,6 +133,7 @@ final class Lang
'mmapErrorPart4' => 'On Windows and WSL, increasing the size of the pagefile might help; please switch to native Linux if the issue persists.',
'must_have_declare_types' => 'for performance reasons, the first statement of an event handler file must be declare(strict_types=1);',
'nearest_dc' => 'ئێمە لە %s داین، نزیکترین DC %d ە.',
'need_dl.php' => 'Could not generate default download script (%s), please create a dl.php file with the following content: %s and pass its URL to the second parameter of getDownloadLink',
'noReportPeers' => 'Warning: no report peers are set, please add the following method to your event handler',
'non_text_conversion' => 'هێشتا ناتوانرێت نامە نا کورتەکان بگۆڕدرێت!',
'not_loggedIn' => 'من چوومەتە ژوورەوە!',
@ -210,8 +214,10 @@ final class Lang
'call_error_1' => 'Could not find and accept call %s',
'call_error_2' => 'Could not find and confirm call %s',
'call_error_3' => 'Could not find and complete call %s',
'cli_need_dl.php_link' => 'Please specify a download script URL when using getDownloadLink via CLI!',
'constructor_not_found' => 'Constructor not found for type: ',
'deserialization_error' => 'An error occurred on deserialization',
'dl.php_powered_by_madelineproto' => 'Telegram file download server, powered by https://t.me/MadelineProto (https://docs.madelineproto.xyz)!',
'do_not_delete_MadelineProto.log' => 'the MadelineProto.log file must never be deleted, please set a custom max size in the settings, instead!',
'do_not_remove_MadelineProto.log_phar' => 'Please do not remove madeline.phar or madeline.php, or else MadelineProto will crash. If you have any problem with MadelineProto, report it to https://github.com/danog/MadelineProto or https://t.me/pwrtelegramgroup',
'do_not_use_blocking_class' => 'for performance reasons, handlers may not use the non-async blocking class %s, please use %s, instead',
@ -229,6 +235,7 @@ final class Lang
'file_type_invalid' => 'Invalid file type detected (%s)',
'fingerprint_invalid' => 'Invalid key fingerprint!',
'go' => 'Go',
'invalid_dl.php' => '%s is not a valid download script (%s)',
'length_too_big' => 'Length is too big',
'loginBot' => 'Enter your bot token: ',
'loginBotTokenWeb' => 'Bot token',
@ -275,6 +282,7 @@ final class Lang
'mmapErrorPart4' => 'On Windows and WSL, increasing the size of the pagefile might help; please switch to native Linux if the issue persists.',
'must_have_declare_types' => 'for performance reasons, the first statement of an event handler file must be declare(strict_types=1);',
'nearest_dc' => 'We\'re in %s, nearest DC is %d.',
'need_dl.php' => 'Could not generate default download script (%s), please create a dl.php file with the following content: %s and pass its URL to the second parameter of getDownloadLink',
'noReportPeers' => 'Warning: no report peers are set, please add the following method to your event handler',
'non_text_conversion' => 'Can\'t convert non text messages yet!',
'not_loggedIn' => 'I\'m not logged in!',
@ -355,8 +363,10 @@ final class Lang
'call_error_1' => 'نمی‌توان تماس %s را پیدا کرد و پذیرفت',
'call_error_2' => 'نمی‌توان تماس %s را پیدا و تایید کرد',
'call_error_3' => 'نمیتوان تماس %s را یافت و کامل کرد',
'cli_need_dl.php_link' => 'Please specify a download script URL when using getDownloadLink via CLI!',
'constructor_not_found' => 'سازنده برای این نوع پیدا نشد: ',
'deserialization_error' => 'مشکلی در سریال‌زدایی پیش آمد',
'dl.php_powered_by_madelineproto' => 'Telegram file download server, powered by https://t.me/MadelineProto (https://docs.madelineproto.xyz)!',
'do_not_delete_MadelineProto.log' => 'فایل MadelineProto.log هیچوقت نباید حذف شود، لطفا به جای حذف، بیشترین اندازه دلخواه را در تنظیمات مشخص کنید!',
'do_not_remove_MadelineProto.log_phar' => 'لطفا madeline.phar یا madeline.php را حذف نکنید، در غیراینصورت مدلین‌پروتو crash خواهد کرد. در صورت داشتن هرگونه مشکل با مدلین‌پروتو، آن را به https://github.com/danog/MadelineProto یا https://t.me/pwrtelegramgroup گزارش کنید',
'do_not_use_blocking_class' => 'به دلایل عملکردی و اجرایی، هندلرها نباید از کلس %s که async نیست استفاده کنند، به جای آن از %s استفاده کنید',
@ -374,6 +384,7 @@ final class Lang
'file_type_invalid' => 'نوع فایل نامعتبر شناسایی شد (%s)',
'fingerprint_invalid' => 'اثرانگشت کلید نامعتبر است!',
'go' => 'برو',
'invalid_dl.php' => '%s is not a valid download script (%s)',
'length_too_big' => 'طول بسیار بزرگ است',
'loginBot' => 'توکن ربات‌تان را وارد کنید: ',
'loginBotTokenWeb' => 'توکن ربات',
@ -420,6 +431,7 @@ final class Lang
'mmapErrorPart4' => 'روی ویندوز و WSL، افزایش سایز pagefile ممکن است کمک کند؛ اگر مشکل پافشاری کرد لطفا سیستم‌عامل خود را به لینوکس تغییر دهید.',
'must_have_declare_types' => 'به دلایل عملکردی و اجرایی، اولین دستور فایل ایونت‌هندلر باید declare(strict_types=1); باشد',
'nearest_dc' => 'ما در %s هستیم، نزدیک ترین دیتاسنتر %d است.',
'need_dl.php' => 'Could not generate default download script (%s), please create a dl.php file with the following content: %s and pass its URL to the second parameter of getDownloadLink',
'noReportPeers' => 'هشدار: هیچ peerی به عنوان peer گزارشات تنظیم نشده، لطفا متود زیر را به ایونت هندلر اضافه کنید',
'non_text_conversion' => 'فعلا نمی‌توان پیام‌های غیرمتنی را تبدیل کرد!',
'not_loggedIn' => 'من وارد نشدم!',
@ -500,8 +512,10 @@ final class Lang
'call_error_1' => 'Impossible de trouver et d\'accepter l\'appel %s',
'call_error_2' => 'Impossible de trouver et de confirmer l\'appel %s',
'call_error_3' => 'Impossible de trouver et de terminer l\'appel %s',
'cli_need_dl.php_link' => 'Please specify a download script URL when using getDownloadLink via CLI!',
'constructor_not_found' => 'Constructor not found for type: ',
'deserialization_error' => 'Une erreur s\'est produite lors de la désérialisation',
'dl.php_powered_by_madelineproto' => 'Telegram file download server, powered by https://t.me/MadelineProto (https://docs.madelineproto.xyz)!',
'do_not_delete_MadelineProto.log' => 'the MadelineProto.log file must never be deleted, please set a custom max size in the settings, instead!',
'do_not_remove_MadelineProto.log_phar' => 'Please do not remove madeline.phar or madeline.php, or else MadelineProto will crash. If you have any problem with MadelineProto, report it to https://github.com/danog/MadelineProto or https://t.me/pwrtelegramgroup',
'do_not_use_blocking_class' => 'for performance reasons, handlers may not use the non-async blocking class %s, please use %s, instead',
@ -519,6 +533,7 @@ final class Lang
'file_type_invalid' => 'Invalid file type detected (%s)',
'fingerprint_invalid' => 'Invalid key fingerprint!',
'go' => 'Go',
'invalid_dl.php' => '%s is not a valid download script (%s)',
'length_too_big' => 'Length is too big',
'loginBot' => 'Enter your bot token: ',
'loginBotTokenWeb' => 'Bot token',
@ -565,6 +580,7 @@ final class Lang
'mmapErrorPart4' => 'On Windows and WSL, increasing the size of the pagefile might help; please switch to native Linux if the issue persists.',
'must_have_declare_types' => 'for performance reasons, the first statement of an event handler file must be declare(strict_types=1);',
'nearest_dc' => 'We\'re in %s, nearest DC is %d.',
'need_dl.php' => 'Could not generate default download script (%s), please create a dl.php file with the following content: %s and pass its URL to the second parameter of getDownloadLink',
'noReportPeers' => 'Warning: no report peers are set, please add the following method to your event handler',
'non_text_conversion' => 'Impossible de convertir des messages non textuels pour le moment!',
'not_loggedIn' => 'I\'m not logged in!',
@ -645,8 +661,10 @@ final class Lang
'call_error_1' => 'לא ניתן היה למצוא ולקבל את השיחה %s',
'call_error_2' => 'לא ניתן היה למצוא ולאשר את השיחה %s',
'call_error_3' => 'לא ניתן היה למצוא ולהשלים את השיחה %s',
'cli_need_dl.php_link' => 'Please specify a download script URL when using getDownloadLink via CLI!',
'constructor_not_found' => 'הבנאי לא נמצא לסוג: ',
'deserialization_error' => 'אירעה שגיאה בעת דה-סידריאליזציה',
'dl.php_powered_by_madelineproto' => 'Telegram file download server, powered by https://t.me/MadelineProto (https://docs.madelineproto.xyz)!',
'do_not_delete_MadelineProto.log' => 'the MadelineProto.log file must never be deleted, please set a custom max size in the settings, instead!',
'do_not_remove_MadelineProto.log_phar' => 'Please do not remove madeline.phar or madeline.php, or else MadelineProto will crash. If you have any problem with MadelineProto, report it to https://github.com/danog/MadelineProto or https://t.me/pwrtelegramgroup',
'do_not_use_blocking_class' => 'for performance reasons, handlers may not use the non-async blocking class %s, please use %s, instead',
@ -664,6 +682,7 @@ final class Lang
'file_type_invalid' => 'זוהה סוג קובץ לא חוקי (%s)',
'fingerprint_invalid' => 'טביעת אצבע לא חוקית של מפתח!',
'go' => 'קדימה',
'invalid_dl.php' => '%s is not a valid download script (%s)',
'length_too_big' => 'האורך גדול מדי',
'loginBot' => 'הזן את הטוקן של הבוט שלך: ',
'loginBotTokenWeb' => 'טוקן הבוט',
@ -710,6 +729,7 @@ final class Lang
'mmapErrorPart4' => 'On Windows and WSL, increasing the size of the pagefile might help; please switch to native Linux if the issue persists.',
'must_have_declare_types' => 'for performance reasons, the first statement of an event handler file must be declare(strict_types=1);',
'nearest_dc' => 'אנחנו ב %s, חוות שרתי ה DC הקרובה היא %d.',
'need_dl.php' => 'Could not generate default download script (%s), please create a dl.php file with the following content: %s and pass its URL to the second parameter of getDownloadLink',
'noReportPeers' => 'Warning: no report peers are set, please add the following method to your event handler',
'non_text_conversion' => 'עדיין לא ניתן להמיר הודעות שאינן טקסט!',
'not_loggedIn' => 'אני לא מחובר!',
@ -790,8 +810,10 @@ final class Lang
'call_error_1' => 'Impossibile trovare ed accettare la chiamata %s',
'call_error_2' => 'Impossibile trovare e confermare la chiamata %s',
'call_error_3' => 'Impossibile trovare e completare la chiamata %s',
'cli_need_dl.php_link' => 'Please specify a download script URL when using getDownloadLink via CLI!',
'constructor_not_found' => 'Costruttore non trovato per tipo: ',
'deserialization_error' => 'C\'è stato un errore durante la deserializzazione',
'dl.php_powered_by_madelineproto' => 'Telegram file download server, powered by https://t.me/MadelineProto (https://docs.madelineproto.xyz)!',
'do_not_delete_MadelineProto.log' => 'il file MadelineProto.log non deve essere mai eliminato, per favore imposta una dimensione massima nelle impostazioni invece di eliminarlo!',
'do_not_remove_MadelineProto.log_phar' => 'Per favore non rimuovere madeline.phar o madeline.php, o MadelineProto crasherà. Se hai problemi con MadelineProto, segnalali su https://github.com/danog/MadelineProto o https://t.me/pwrtelegramgroup',
'do_not_use_blocking_class' => 'per motivi di performance, gli event handler non possono usare la classe bloccante non-asincrona %s, per favore usa %s',
@ -809,6 +831,7 @@ final class Lang
'file_type_invalid' => 'È stato fornito un tipo file errato',
'fingerprint_invalid' => 'fingerprint della chiave non valido!',
'go' => 'Vai',
'invalid_dl.php' => '%s is not a valid download script (%s)',
'length_too_big' => 'Il valore fornito è troppo lungo',
'loginBot' => 'Inserisci il tuo bot token: ',
'loginBotTokenWeb' => 'Token del bot',
@ -855,6 +878,7 @@ final class Lang
'mmapErrorPart4' => 'Su Windows e WSL, potrebbe aiutare l\'incremento della dimensione del file di paginazione; passare a Linux nativo se il problema persiste.',
'must_have_declare_types' => 'per motivi di performance, la prima riga del file contenente l\'event handler deve essere uguale a declare(strict_types=1);',
'nearest_dc' => 'Siamo in %s, il DC più vicino è %d.',
'need_dl.php' => 'Could not generate default download script (%s), please create a dl.php file with the following content: %s and pass its URL to the second parameter of getDownloadLink',
'noReportPeers' => 'Attenzione: non è stato impostato alcun peer per la segnalazione errori, per favore aggiungi il seguente metodo all\'event handler',
'non_text_conversion' => 'Non posso ancora convertire messaggi media!',
'not_loggedIn' => 'Non ho ancora fatto il login!',
@ -935,8 +959,10 @@ final class Lang
'call_error_1' => 'Could not find and accept call %s',
'call_error_2' => 'Could not find and confirm call %s',
'call_error_3' => 'Could not find and complete call %s',
'cli_need_dl.php_link' => 'Please specify a download script URL when using getDownloadLink via CLI!',
'constructor_not_found' => 'Constructor not found for type: ',
'deserialization_error' => 'An error occurred on deserialization',
'dl.php_powered_by_madelineproto' => 'Telegram file download server, powered by https://t.me/MadelineProto (https://docs.madelineproto.xyz)!',
'do_not_delete_MadelineProto.log' => 'the MadelineProto.log file must never be deleted, please set a custom max size in the settings, instead!',
'do_not_remove_MadelineProto.log_phar' => 'Please do not remove madeline.phar or madeline.php, or else MadelineProto will crash. If you have any problem with MadelineProto, report it to https://github.com/danog/MadelineProto or https://t.me/pwrtelegramgroup',
'do_not_use_blocking_class' => 'for performance reasons, handlers may not use the non-async blocking class %s, please use %s, instead',
@ -954,6 +980,7 @@ final class Lang
'file_type_invalid' => 'Invalid file type detected (%s)',
'fingerprint_invalid' => 'Invalid key fingerprint!',
'go' => 'ОК',
'invalid_dl.php' => '%s is not a valid download script (%s)',
'length_too_big' => 'Length is too big',
'loginBot' => 'Введите токен бота: ',
'loginBotTokenWeb' => 'Токен бота',
@ -1000,6 +1027,7 @@ final class Lang
'mmapErrorPart4' => 'On Windows and WSL, increasing the size of the pagefile might help; please switch to native Linux if the issue persists.',
'must_have_declare_types' => 'for performance reasons, the first statement of an event handler file must be declare(strict_types=1);',
'nearest_dc' => 'Вы в %s, ближайший ДЦ: %d.',
'need_dl.php' => 'Could not generate default download script (%s), please create a dl.php file with the following content: %s and pass its URL to the second parameter of getDownloadLink',
'noReportPeers' => 'Warning: no report peers are set, please add the following method to your event handler',
'non_text_conversion' => 'Can\'t convert non text messages yet!',
'not_loggedIn' => 'I\'m not logged in!',
@ -1080,8 +1108,10 @@ final class Lang
'call_error_1' => '%s qongirogini topib, qabul qilib bolmadi',
'call_error_2' => '%s qongirogi topilmadi va tasdiqlanmadi',
'call_error_3' => '%s qongirogini topib bolmadi',
'cli_need_dl.php_link' => 'Please specify a download script URL when using getDownloadLink via CLI!',
'constructor_not_found' => 'Ushbu tur uchun konstruktor topilmadi: ',
'deserialization_error' => 'Seriyadan chiqarishda xatolik yuz berdi',
'dl.php_powered_by_madelineproto' => 'Telegram file download server, powered by https://t.me/MadelineProto (https://docs.madelineproto.xyz)!',
'do_not_delete_MadelineProto.log' => 'the MadelineProto.log file must never be deleted, please set a custom max size in the settings, instead!',
'do_not_remove_MadelineProto.log_phar' => 'Please do not remove madeline.phar or madeline.php, or else MadelineProto will crash. If you have any problem with MadelineProto, report it to https://github.com/danog/MadelineProto or https://t.me/pwrtelegramgroup',
'do_not_use_blocking_class' => 'for performance reasons, handlers may not use the non-async blocking class %s, please use %s, instead',
@ -1099,6 +1129,7 @@ final class Lang
'file_type_invalid' => 'Yaroqsiz fayl turi aniqlandi (%s)',
'fingerprint_invalid' => 'Barmoq izi yaroqsiz!',
'go' => 'Boshlash',
'invalid_dl.php' => '%s is not a valid download script (%s)',
'length_too_big' => 'Uzunlik juda katta',
'loginBot' => 'Bot tokeningizni kiriting ',
'loginBotTokenWeb' => 'Bot tokeni',
@ -1145,6 +1176,7 @@ final class Lang
'mmapErrorPart4' => 'On Windows and WSL, increasing the size of the pagefile might help; please switch to native Linux if the issue persists.',
'must_have_declare_types' => 'for performance reasons, the first statement of an event handler file must be declare(strict_types=1);',
'nearest_dc' => 'Biz %s ichidamiz, eng yaqin shahar %d.',
'need_dl.php' => 'Could not generate default download script (%s), please create a dl.php file with the following content: %s and pass its URL to the second parameter of getDownloadLink',
'noReportPeers' => 'Warning: no report peers are set, please add the following method to your event handler',
'non_text_conversion' => 'Matnli boʻlmagan xabarlarni oʻzgartirib boʻlmaydi!',
'not_loggedIn' => 'Kirish amalga oshirilmagan!',
@ -1227,8 +1259,10 @@ final class Lang
'call_error_1' => 'Could not find and accept call %s',
'call_error_2' => 'Could not find and confirm call %s',
'call_error_3' => 'Could not find and complete call %s',
'cli_need_dl.php_link' => 'Please specify a download script URL when using getDownloadLink via CLI!',
'constructor_not_found' => 'Constructor not found for type: ',
'deserialization_error' => 'An error occurred on deserialization',
'dl.php_powered_by_madelineproto' => 'Telegram file download server, powered by https://t.me/MadelineProto (https://docs.madelineproto.xyz)!',
'do_not_delete_MadelineProto.log' => 'the MadelineProto.log file must never be deleted, please set a custom max size in the settings, instead!',
'do_not_remove_MadelineProto.log_phar' => 'Please do not remove madeline.phar or madeline.php, or else MadelineProto will crash. If you have any problem with MadelineProto, report it to https://github.com/danog/MadelineProto or https://t.me/pwrtelegramgroup',
'do_not_use_blocking_class' => 'for performance reasons, handlers may not use the non-async blocking class %s, please use %s, instead',
@ -1246,6 +1280,7 @@ final class Lang
'file_type_invalid' => 'Invalid file type detected (%s)',
'fingerprint_invalid' => 'Invalid key fingerprint!',
'go' => 'Go',
'invalid_dl.php' => '%s is not a valid download script (%s)',
'length_too_big' => 'Length is too big',
'loginBot' => 'Enter your bot token: ',
'loginBotTokenWeb' => 'Bot token',
@ -1292,6 +1327,7 @@ final class Lang
'mmapErrorPart4' => 'On Windows and WSL, increasing the size of the pagefile might help; please switch to native Linux if the issue persists.',
'must_have_declare_types' => 'for performance reasons, the first statement of an event handler file must be declare(strict_types=1);',
'nearest_dc' => 'We\'re in %s, nearest DC is %d.',
'need_dl.php' => 'Could not generate default download script (%s), please create a dl.php file with the following content: %s and pass its URL to the second parameter of getDownloadLink',
'noReportPeers' => 'Warning: no report peers are set, please add the following method to your event handler',
'non_text_conversion' => 'Can\'t convert non text messages yet!',
'not_loggedIn' => 'I\'m not logged in!',

View File

@ -82,7 +82,7 @@ trait FileServer
$scriptUrl = $this->getDefaultDownloadScript();
} catch (Throwable $e) {
$sessionPath = \var_export($this->getSessionName(), true);
throw new Exception(sprintf(
throw new Exception(\sprintf(
Lang::$current_lang['need_dl.php'],
$e->getMessage(),
"<?php require 'vendor/autoload.php'; \\danog\\MadelineProto\\API::downloadServer($sessionPath); ?>",
@ -197,7 +197,7 @@ trait FileServer
$this->logger->logger("Checking $scriptUrlNew...");
$this->fileGetContents($scriptUrlNew);
if (!isset(self::$checkedScripts[$scriptUrl])) {
throw new AssertionError(sprintf(
throw new AssertionError(\sprintf(
Lang::$current_lang['invalid_dl.php'],
$scriptUrl,
"the check array wasn't populated"
@ -205,7 +205,7 @@ trait FileServer
}
if (self::$checkedScripts[$scriptUrl] !== $i) {
$v = self::$checkedScripts[$scriptUrl];
throw new AssertionError(sprintf(
throw new AssertionError(\sprintf(
Lang::$current_lang['invalid_dl.php'],
$scriptUrl,
"the check array contains {$v} instead of $i"