Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Login with app ID and HASH #929

Closed
nulele opened this issue Apr 13, 2021 · 1 comment
Closed

Login with app ID and HASH #929

nulele opened this issue Apr 13, 2021 · 1 comment

Comments

@nulele
Copy link

nulele commented Apr 13, 2021

Hello,
I already have Telegram App ID and HASH and cannot understand from this documentation page (https://docs.madelineproto.xyz/docs/LOGIN.html) how to login with such data.

I tried with:

$settings = [ 'app_info' => [ 'api_id' => XXXXXXX, 'api_hash' => 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX', ] ];
$MadelineProto = new MadelineProtoAPI(public_path('session.madeline'), $settings);
$MadelineProto->async(true);
yield $MadelineProto->start();

I'm prompt if I want to login with User or BOT but I already have done the procedure when I created the app on the https://my.telegram.org/ page

Thanks.

@danog
Copy link
Owner

danog commented Apr 20, 2021

You still have to login after providing your api ID, the api ID is only used to access the api, you still have to login.

@danog danog closed this as completed Apr 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants