-
Notifications
You must be signed in to change notification settings - Fork 49
Single Telegram Account
Setiawan edited this page Aug 12, 2020
·
1 revision
There are two ways to log in:
-
Call
MadelineProto::phoneLogin(string $phone)
method fromMadelineProto
facade to send the phone code. -
Call
MadelineProto::completePhoneLogin(string $code)
method fromMadelineProto
facade to complete the phone login by providing the phone code sent by the telegram. -
We're logged in! Now we can use the messages api from
Messages
facade.
Run the following artisan command.
php artisan madeline-proto:login
Fill the phone number
Phone number with country code (e.g: +6282112345678)?:
> +6280012345678
Fill the phone code (otp)
Phone code?:
> xxxxxx
We're logged in! Now we can use the messages api from Messages
facade.