Replies: 2 comments 6 replies
-
|
Just do $settings = (new \danog\MadelineProto\Settings\AppInfo)
->setApiId(app_id)
->setApiHash('hash');
MyEventHandler::startAndLoop('session.madeline', $settings); |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
How can I further request to receive messages? It used to be $MadelineProto->messages->getPeerDialogs(peers: $InputChannel); |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I don’t understand, is it possible to log in automatically with api_id and hash?
I read this topic #929 and this https://docs.madelineproto.xyz/docs/LOGIN.html#automatic
$MadelineProto = new \danog\MadelineProto\API('session.madeline');
$settings = (new \danog\MadelineProto\Settings\AppInfo)
->setApiId(app_id)
->setApiHash('hash');
$MadelineProto->updateSettings($settings);
MyEventHandler::startAndLoop('session.madeline', $settings);
It does not work for me. Manual authorization is still required on the page.
Beta Was this translation helpful? Give feedback.
All reactions