Skip to content

Single Telegram Account

Setiawan edited this page Aug 12, 2020 · 1 revision

There are two ways to log in:

HTTP Based

  • Call MadelineProto::phoneLogin(string $phone) method from MadelineProto facade to send the phone code.

  • Call MadelineProto::completePhoneLogin(string $code) method from MadelineProto 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.

Artisan Command Based

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.

Clone this wiki locally