1
0
mirror of https://github.com/danog/MadelineProto.git synced 2024-11-26 21:14:43 +01:00
This commit is contained in:
Daniil Gentili 2023-06-19 10:15:39 +02:00
parent 486c81cc29
commit 552e82ca64
Signed by: danog
GPG Key ID: 8C1BE3B34B230CA7
5 changed files with 14 additions and 9 deletions

View File

@ -76,8 +76,7 @@ Want to add your own open-source project to this list? [Click here!](https://doc
* [Manual (user)](https://docs.madelineproto.xyz/docs/LOGIN.html#manual-user)
* [API ID](https://docs.madelineproto.xyz/docs/LOGIN.html#api-id)
* [Manual (bot)](https://docs.madelineproto.xyz/docs/LOGIN.html#manual-bot)
* [Logout](https://docs.madelineproto.xyz/docs/LOGIN.html#logout)
* [Changing 2FA password](https://docs.madelineproto.xyz/docs/LOGIN.html#changing-2fa-password)
* [QR code login (user)](https://docs.madelineproto.xyz/docs/LOGIN.html#qr-code-user)
* [Features](https://docs.madelineproto.xyz/docs/FEATURES.html)
* [Requirements](https://docs.madelineproto.xyz/docs/REQUIREMENTS.html)
* [MadelineProto on Docker](https://docs.madelineproto.xyz/docs/DOCKER.html)

2
docs

@ -1 +1 @@
Subproject commit 6936aa2703675f1b144d613e69e4922b51ea358f
Subproject commit ddbcd8e6c0eadc29134a7416e4a2ab6158de43d6

View File

@ -404,7 +404,9 @@ final class DataCenterConnection implements JsonSerializable
*/
public function flush(): void
{
if (!isset($this->datacenter)) return;
if (!isset($this->datacenter)) {
return;
}
$this->API->logger->logger("Flushing pending messages, DC {$this->datacenter}", Logger::NOTICE);
foreach ($this->connections as $socket) {
$socket->flush();

View File

@ -140,11 +140,13 @@ final class Lang
'apiManualPrompt0' => 'Inserisci il tuo API ID: ',
'apiManualPrompt1' => 'Inserisci il tuo API hash: ',
'apiParamsError' => 'Non hai fornito tutti i parametri richiesti!',
'loginBot' => 'Inserisci il tuo bot token: ',
'loginQr' => 'Scansiona il codice QR per fare il login automaticamente.',
'loginManual' => 'In alternativa, puoi inserire un bot token o un numero di telefono per effettuare il login manualmente: ',
'loginNoCode' => 'Non hai fornito un codice di verifica!',
'loginNoName' => 'Non hai fornito un nome!',
'loginNoPass' => 'Non hai fornito la password!',
'loginUser' => 'Inserisci il tuo numero di telefono: ',
'loginUserPass' => 'Inserisci la tua password (suggerimento %s): ',
'loginUserPassHint' => 'Suggerimento: %s',
'loginUserPassWeb' => 'Inserisci la tua password: ',
@ -175,10 +177,6 @@ final class Lang
'en' =>
[
'go' => 'Go',
'loginChoosePromptWeb' => 'Do you want to login as a user or as a bot?',
'loginWebQr' => 'You can also login automatically by scanning the following QR code:',
'loginOptionBot' => 'Bot',
'loginOptionUser' => 'User',
'apiChooseManualAutoTip' => 'Note that you can also provide the API ID/hash directly in the code using the settings: %s',
'apiChooseManualAutoTipWeb' => 'Note that you can also provide the API ID/hash directly in the code using the <a target="_blank" href="%s">settings</a>.',
'apiChoosePrompt' => 'Your choice (m/a): ',
@ -205,6 +203,12 @@ final class Lang
'apiAppInstructionsAutoTypeOther' => 'Other (specify in description)',
'apiParamsError' => 'You didn\'t provide all of the required parameters!',
'apiError' => 'ERROR: %s. Try again.',
'loginChoosePromptWeb' => 'Do you want to login as a user or as a bot?',
'loginWebQr' => 'You can also login automatically by scanning the following QR code:',
'loginOptionBot' => 'Bot',
'loginOptionUser' => 'User',
'loginBot' => 'Enter your bot token: ',
'loginUser' => 'Enter your phone number: ',
'loginQr' => "Scan the above QR code to login automatically.",
'loginManual' => 'Alternatively, you can also enter a bot token or phone number to login manually: ',
'loginUserCode' => 'Enter the code: ',

View File

@ -36,7 +36,7 @@ use danog\MadelineProto\MTProto;
use JsonSerializable;
/**
* Represents a login QR code.
* Represents a login QR code.
* The `link` public readonly property contains the [QR code login link](https://core.telegram.org/api/links#qr-code-login-links).
* The `expiry` public readonly property contains the expiry date of the link.
*/