V
V
Valeriu Vodnicear2019-04-08 06:36:30
PHP
Valeriu Vodnicear, 2019-04-08 06:36:30

Are there any alternatives to the complete_phone_login method in MadelineProto?

As a final result, I need to get auth.Authorization .
Previously, there was a method where it was possible to transfer phone_code_hashand phone_codeeverything worked. And right now, through complete_phone_loginit is not clear which of the users will be authorized (I use the Ampserver).
What method can you use right now to by phoneand phone_codelog phone_code_hashin?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Valeriu Vodnicear, 2019-04-09
@vodnicear

Found:

$mtproto->method_call(
    'auth.signIn',
    [
        'phone_number' => $phone['phone_number'],
        'phone_code_hash' => $phone['phone_code_hash'],
        'phone_code' => $args['code']
    ],
    ['datacenter' => 2]
);

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question