mirror of
https://github.com/danog/laravel-madeline-proto.git
synced 2024-11-26 20:04:41 +01:00
Updated TelegramAccountLoginCommand
Fixing undefined method error
This commit is contained in:
parent
6f5e52d953
commit
90e763b6f7
@ -34,12 +34,12 @@ class TelegramAccountLoginCommand extends Command
|
||||
|
||||
$phoneNumber = $this->ask('Phone number with country code (e.g: +6282112345678)?');
|
||||
|
||||
MadelineProto::sendPhoneCode($phoneNumber);
|
||||
MadelineProto::phoneLogin($phoneNumber);
|
||||
|
||||
$code = $this->ask('Phone code?');
|
||||
|
||||
try {
|
||||
MadelineProto::signIn($code);
|
||||
MadelineProto::completePhoneLogin($code);
|
||||
} catch (NeedTwoFactorAuthException $e) {
|
||||
$password = $this->ask("2FA Password (hint '{$e->account->hint}')");
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user