No more phone numbers in .env

This commit is contained in:
Daniil Gentili 2017-08-29 14:23:44 +02:00
parent 7a3a0923be
commit 118c01eea0

View File

@ -63,7 +63,7 @@ if ($MadelineProto === false) {
);
\danog\MadelineProto\Logger::log([$checkedPhone], \danog\MadelineProto\Logger::NOTICE);
$sentCode = $MadelineProto->phone_login(getenv('MTPROTO_NUMBER'));
$sentCode = $MadelineProto->phone_login(readline('Enter your phone number: '));
\danog\MadelineProto\Logger::log([$sentCode], \danog\MadelineProto\Logger::NOTICE);
echo 'Enter the code you received: ';
$code = fgets(STDIN, (isset($sentCode['type']['length']) ? $sentCode['type']['length'] : 5) + 1);