Closed ZherebcovSergey closed 9 months ago
Try providing an absolute session path, does that solve the issue?
I tried to use the absolute session path, but unfortunately it did not work.
Logger: MadelineProto 8.0.0-beta153 Logger: Copyright (C) 2016-2023 Daniil Gentili Logger: Licensed under AGPLv3 Logger: https://github.com/danog/MadelineProto MTProto: The database settings have changed! TL: Loading TL schemes... TL: Parsing TL_telegram_v164.tl... TL: Parsing TL_mtproto_v1.tl... TL: Parsing TL_secret.tl... MTProto: The serialization settings have changed! TL: Loading TL schemes... TL: Parsing TL_telegram_v164.tl... TL: Parsing TL_mtproto_v1.tl... TL: Parsing TL_secret.tl... DataCenter: Acquiring connect lock for 2! DataCenter: Connecting to DC 2 DataCenterConnection: Restoring 0 messages to DC 2 Session: Resetting session in DC 2.0... Connection: Connecting to DC 2.0 via tcp://149.154.167.51:443 main DC 2, via ipv4 using AbridgedStream => SocksProxy ({"address":"...","port":...,"username":"...","password":"..."}) => BufferedRawStream => DefaultStream SocksProxy: [ "Connected to ... via socks5" ] Connection: Connected to DC 2.0 via tcp://149.154.167.51:443 main DC 2, via ipv4 using AbridgedStream => SocksProxy ({"address":"...","port":...,"username":"...","password":"..."}) => BufferedRawStream => DefaultStream! DataCenterConnection: Acquiring lock in order to init auth for DC 2 DataCenterConnection: Initing auth for DC 2 DataCenterConnection: Generating permanent authorization key for DC 2... AuthKeyHandler: Requesting pq... Session: Garbage collected 0 outgoing messages in DC 2, 1 left ResponseHandler: Trying to assign a response of type ResPQ to its request... ResponseHandler: Does the request of return type ResPQ match? ResponseHandler: Yes AuthKeyHandler: Factorizing with native_single_cpp (please wait, might take a while) AuthKeyHandler: Factorizing with python_single_alt (please wait, might take a while) AuthKeyHandler: Install https://prime.madelineproto.xyz and the FFI extension to speed this up! AuthKeyHandler: Factorizing with python_single (please wait, might take a while) AuthKeyHandler: Install https://prime.madelineproto.xyz and the FFI extension to speed this up! AuthKeyHandler: Factorizing with native_single (please wait, might take a while) AuthKeyHandler: Install https://prime.madelineproto.xyz and the FFI extension to speed this up! AuthKeyHandler: Factorization 2056154707432627861 = 1229749709 1672010729 AuthKeyHandler: Starting Diffie Hellman key exchange GarbageCollector: gc_collect_cycles done. Cleaned memory: 0 Mb ResponseHandler: Trying to assign a response of type Server_DH_Params to its request... ResponseHandler: Does the request of return type Server_DH_Params match? ResponseHandler: Yes AuthKeyHandler: Server-client time delta = 0.0 s Crypt: Executing p/g checks (1/2)... Crypt: Executing p/g checks (2/2)... Crypt: Executing g check... Crypt: Executing g_a check (1/2)... Crypt: Executing g_a check (2/2)... AuthKeyHandler: Generating b... AuthKeyHandler: Generating g_b... Crypt: Executing g_a check (1/2)... Crypt: Executing g_a check (2/2)... AuthKeyHandler: Executing g_b check... AuthKeyHandler: Preparing client_DH_inner_data... AuthKeyHandler: Executing set_client_DH_params... ResponseHandler: Trying to assign a response of type Set_client_DH_params_answer to its request... ResponseHandler: Does the request of return type Set_client_DH_params_answer match? ResponseHandler: Yes AuthKeyHandler: Generating authorization key (install gmp to speed up this process)... AuthKeyHandler: Diffie Hellman key exchange processed successfully! AuthKeyHandler: Auth key generated DataCenterConnection: Generating temporary authorization key for DC 2... AuthKeyHandler: Requesting pq... ResponseHandler: Trying to assign a response of type ResPQ to its request... ResponseHandler: Does the request of return type ResPQ match? ResponseHandler: Yes AuthKeyHandler: Factorizing with native_single_cpp (please wait, might take a while) AuthKeyHandler: Factorizing with python_single_alt (please wait, might take a while) AuthKeyHandler: Install https://prime.madelineproto.xyz and the FFI extension to speed this up! AuthKeyHandler: Factorizing with python_single (please wait, might take a while) AuthKeyHandler: Install https://prime.madelineproto.xyz and the FFI extension to speed this up! AuthKeyHandler: Factorizing with native_single (please wait, might take a while) AuthKeyHandler: Install https://prime.madelineproto.xyz and the FFI extension to speed this up! AuthKeyHandler: Factorization 2363236103772342389 = 1348816123 1752081743 AuthKeyHandler: Starting Diffie Hellman key exchange ResponseHandler: Trying to assign a response of type Server_DH_Params to its request... ResponseHandler: Does the request of return type Server_DH_Params match? ResponseHandler: Yes AuthKeyHandler: Server-client time delta = 0.0 s Crypt: Executing p/g checks (1/2)... Crypt: Executing p/g checks (2/2)... Crypt: Executing g check... Crypt: Executing g_a check (1/2)... Crypt: Executing g_a check (2/2)... AuthKeyHandler: Generating b... AuthKeyHandler: Generating g_b... Crypt: Executing g_a check (1/2)... Crypt: Executing g_a check (2/2)... AuthKeyHandler: Executing g_b check... AuthKeyHandler: Preparing client_DH_inner_data... AuthKeyHandler: Executing set_client_DH_params... ResponseHandler: Trying to assign a response of type Set_client_DH_params_answer to its request... ResponseHandler: Does the request of return type Set_client_DH_params_answer match? ResponseHandler: Yes AuthKeyHandler: Generating authorization key (install gmp to speed up this process)... AuthKeyHandler: Diffie Hellman key exchange processed successfully! AuthKeyHandler: Auth key generated DataCenterConnection: Binding authorization keys... WriteLoop: Skipping help.getConfig pending due to unbound keys in DC 2.0 WriteLoop: Skipping help.getConfig pending due to unbound keys in DC 2.0 WriteLoop: Skipping help.getConfig pending due to unbound keys in DC 2.0 WriteLoop: Skipping help.getConfig pending due to unbound keys in DC 2.0 DataCenterConnection: Bound temporary and permanent authorization keys, DC 2 WriteLoop: Writing client info (also executing help.getConfig)... WriteLoop: Writing client info (also executing help.getConfig)... WriteLoop: Writing client info (also executing help.getConfig)... MTProto: Updated config! DataCenterConnection: Flushing pending messages, DC 2 PingLoop: Ping DC 2.0 MTProto: Updated config! MTProto: Starting update system APIWrapper: MadelineProto is ready! Login: Sending code... Logger: MadelineProto 8.0.0-beta153 Logger: Copyright (C) 2016-2023 Daniil Gentili Logger: Licensed under AGPLv3 Logger: https://github.com/danog/MadelineProto MTProto: The database settings have changed! TL: Loading TL schemes... TL: Parsing TL_telegram_v164.tl... TL: Parsing TL_mtproto_v1.tl... TL: Parsing TL_secret.tl... MTProto: The serialization settings have changed! TL: Loading TL schemes... TL: Parsing TL_telegram_v164.tl... TL: Parsing TL_mtproto_v1.tl... TL: Parsing TL_secret.tl... DataCenter: Acquiring connect lock for 2! DataCenter: Connecting to DC 2 DataCenterConnection: Restoring 0 messages to DC 2 Session: Resetting session in DC 2.0... Connection: Connecting to DC 2.0 via tcp://149.154.167.51:443 main DC 2, via ipv4 using AbridgedStream => SocksProxy ({"address":"...","port":...,"username":"...","password":"..."}) => BufferedRawStream => DefaultStream SocksProxy: [ "Connected to ..... via socks5" ] Connection: Connected to DC 2.0 via tcp://149.154.167.51:443 main DC 2, via ipv4 using AbridgedStream => SocksProxy ({"address":"...","port":...,"username":"...","password":"..."}) => BufferedRawStream => DefaultStream! DataCenterConnection: Acquiring lock in order to init auth for DC 2 DataCenterConnection: Initing auth for DC 2 DataCenterConnection: Generating permanent authorization key for DC 2... AuthKeyHandler: Requesting pq... Session: Garbage collected 0 outgoing messages in DC 2, 1 left ResponseHandler: Trying to assign a response of type ResPQ to its request... ResponseHandler: Does the request of return type ResPQ match? ResponseHandler: Yes AuthKeyHandler: Factorizing with native_single_cpp (please wait, might take a while) AuthKeyHandler: Factorizing with python_single_alt (please wait, might take a while) AuthKeyHandler: Install https://prime.madelineproto.xyz and the FFI extension to speed this up! AuthKeyHandler: Factorizing with python_single (please wait, might take a while) AuthKeyHandler: Install https://prime.madelineproto.xyz and the FFI extension to speed this up! AuthKeyHandler: Factorizing with native_single (please wait, might take a while) AuthKeyHandler: Install https://prime.madelineproto.xyz and the FFI extension to speed this up! AuthKeyHandler: Factorization 2069986665593373701 = 1190607139 1738597559 AuthKeyHandler: Starting Diffie Hellman key exchange GarbageCollector: gc_collect_cycles done. Cleaned memory: 0 Mb ResponseHandler: Trying to assign a response of type Server_DH_Params to its request... ResponseHandler: Does the request of return type Server_DH_Params match? ResponseHandler: Yes AuthKeyHandler: Server-client time delta = 0.0 s Crypt: Executing p/g checks (1/2)... Crypt: Executing p/g checks (2/2)... Crypt: Executing g check... Crypt: Executing g_a check (1/2)... Crypt: Executing g_a check (2/2)... AuthKeyHandler: Generating b... AuthKeyHandler: Generating g_b... Crypt: Executing g_a check (1/2)... Crypt: Executing g_a check (2/2)... AuthKeyHandler: Executing g_b check... AuthKeyHandler: Preparing client_DH_inner_data... AuthKeyHandler: Executing set_client_DH_params... ResponseHandler: Trying to assign a response of type Set_client_DH_params_answer to its request... ResponseHandler: Does the request of return type Set_client_DH_params_answer match? ResponseHandler: Yes AuthKeyHandler: Generating authorization key (install gmp to speed up this process)... AuthKeyHandler: Diffie Hellman key exchange processed successfully! AuthKeyHandler: Auth key generated DataCenterConnection: Generating temporary authorization key for DC 2... AuthKeyHandler: Requesting pq... ResponseHandler: Trying to assign a response of type ResPQ to its request... ResponseHandler: Does the request of return type ResPQ match? ResponseHandler: Yes AuthKeyHandler: Factorizing with native_single_cpp (please wait, might take a while) AuthKeyHandler: Factorizing with python_single_alt (please wait, might take a while) AuthKeyHandler: Install https://prime.madelineproto.xyz and the FFI extension to speed this up! AuthKeyHandler: Factorizing with python_single (please wait, might take a while) AuthKeyHandler: Install https://prime.madelineproto.xyz and the FFI extension to speed this up! AuthKeyHandler: Factorizing with native_single (please wait, might take a while) AuthKeyHandler: Install https://prime.madelineproto.xyz and the FFI extension to speed this up! AuthKeyHandler: Factorization 3041439793109861987 = 1714142341 1774321607 AuthKeyHandler: Starting Diffie Hellman key exchange ResponseHandler: Trying to assign a response of type Server_DH_Params to its request... ResponseHandler: Does the request of return type Server_DH_Params match? ResponseHandler: Yes AuthKeyHandler: Server-client time delta = 0.0 s Crypt: Executing p/g checks (1/2)... Crypt: Executing p/g checks (2/2)... Crypt: Executing g check... Crypt: Executing g_a check (1/2)... Crypt: Executing g_a check (2/2)... AuthKeyHandler: Generating b... AuthKeyHandler: Generating g_b... Crypt: Executing g_a check (1/2)... Crypt: Executing g_a check (2/2)... AuthKeyHandler: Executing g_b check... AuthKeyHandler: Preparing client_DH_inner_data... AuthKeyHandler: Executing set_client_DH_params... ResponseHandler: Trying to assign a response of type Set_client_DH_params_answer to its request... ResponseHandler: Does the request of return type Set_client_DH_params_answer match? ResponseHandler: Yes AuthKeyHandler: Generating authorization key (install gmp to speed up this process)... AuthKeyHandler: Diffie Hellman key exchange processed successfully! AuthKeyHandler: Auth key generated DataCenterConnection: Binding authorization keys... WriteLoop: Skipping help.getConfig pending due to unbound keys in DC 2.0 WriteLoop: Skipping help.getConfig pending due to unbound keys in DC 2.0 WriteLoop: Skipping help.getConfig pending due to unbound keys in DC 2.0 WriteLoop: Skipping help.getConfig pending due to unbound keys in DC 2.0 DataCenterConnection: Bound temporary and permanent authorization keys, DC 2 WriteLoop: Writing client info (also executing help.getConfig)... WriteLoop: Writing client info (also executing help.getConfig)... WriteLoop: Writing client info (also executing help.getConfig)... DataCenterConnection: Flushing pending messages, DC 2 PingLoop: Ping DC 2.0
By the way, I tested it on version "^7", everything works fine.
It seems like the shutdown function registered by madelineproto is not being called for some reason, could you try adding a var_dump in src/Shutdown.php, shutdown() to see if it's executed?
Wow, I had my own shutdown functions registered (at the beginning of the script) but can't see errors in it(through the use of a coroutine I think) :) I commented them and saw that with the update to v.8 the library stopped finding exception:
ReadLoop: Error: Class "danog\MadelineProto\TL\Exception" not found in /var/www/tg/vendor/danog/madelineproto/src/danog/MadelineProto/TL/TL.php:881 Stack trace:
0 /var/www/tg/vendor/danog/madelineproto/src/danog/MadelineProto/TL/TL.php(863): danog\MadelineProto\TL\TL->deserializeInternal()
1 /var/www/tg/vendor/danog/madelineproto/src/danog/MadelineProto/TL/TL.php(961): danog\MadelineProto\TL\TL->deserializeInternal()
2 /var/www/tg/vendor/danog/madelineproto/src/danog/MadelineProto/TL/TL.php(891): danog\MadelineProto\TL\TL->deserializeInternal()
3 /var/www/tg/vendor/danog/madelineproto/src/danog/MadelineProto/TL/TL.php(961): danog\MadelineProto\TL\TL->deserializeInternal()
4 /var/www/tg/vendor/danog/madelineproto/src/danog/MadelineProto/TL/TL.php(961): danog\MadelineProto\TL\TL->deserializeInternal()
5 /var/www/tg/vendor/danog/madelineproto/src/danog/MadelineProto/TL/TL.php(863): danog\MadelineProto\TL\TL->deserializeInternal()
6 /var/www/tg/vendor/danog/madelineproto/src/danog/MadelineProto/TL/TL.php(961): danog\MadelineProto\TL\TL->deserializeInternal()
7 /var/www/tg/vendor/danog/madelineproto/src/danog/MadelineProto/TL/TL.php(759): danog\MadelineProto\TL\TL->deserializeInternal()
8 /var/www/tg/vendor/danog/madelineproto/src/danog/MadelineProto/Loop/Connection/ReadLoop.php(202): danog\MadelineProto\TL\TL->deserialize()
9 [internal function]: danog\MadelineProto\Loop\Connection\ReadLoop->readMessage()
10 /var/www/tg/vendor/amphp/amp/lib/Coroutine.php(118): Generator->send()
11 /var/www/tg/vendor/amphp/amp/lib/Internal/Placeholder.php(149): Amp\Coroutine->Amp{closure}()
12 /var/www/tg/vendor/danog/madelineproto/src/danog/MadelineProto/Coroutine.php(115): danog\MadelineProto\Coroutine->resolve()
13 /var/www/tg/vendor/amphp/amp/lib/Internal/Placeholder.php(149): danog\MadelineProto\Coroutine->danog\MadelineProto{closure}()
14 /var/www/tg/vendor/danog/madelineproto/src/danog/MadelineProto/Coroutine.php(115): danog\MadelineProto\Coroutine->resolve()
15 /var/www/tg/vendor/amphp/amp/lib/Internal/Placeholder.php(149): danog\MadelineProto\Coroutine->danog\MadelineProto{closure}()
16 /var/www/tg/vendor/amphp/amp/lib/Deferred.php(53): Amp\Promise@anonymous->resolve()
17 /var/www/tg/vendor/amphp/byte-stream/lib/ResourceInputStream.php(101): Amp\Deferred->resolve()
18 /var/www/tg/vendor/amphp/amp/lib/Loop/NativeDriver.php(327): Amp\ByteStream\ResourceInputStream::Amp\ByteStream{closure}()
19 /var/www/tg/vendor/amphp/amp/lib/Loop/NativeDriver.php(124): Amp\Loop\NativeDriver->selectStreams()
20 /var/www/tg/vendor/amphp/amp/lib/Loop/Driver.php(138): Amp\Loop\NativeDriver->dispatch()
21 /var/www/tg/vendor/amphp/amp/lib/Loop/Driver.php(72): Amp\Loop\Driver->tick()
22 /var/www/tg/vendor/amphp/amp/lib/Loop.php(95): Amp\Loop\Driver->run()
23 /var/www/tg/vendor/danog/madelineproto/src/danog/MadelineProto/Tools.php(277): Amp\Loop::run()
24 /var/www/tg/vendor/danog/madelineproto/src/danog/MadelineProto/Ipc/Runner/entry.php(110): danog\MadelineProto\Tools::wait()
25 /var/www/tg/vendor/danog/madelineproto/src/danog/MadelineProto/Ipc/Runner/entry.php(134): {closure}()
26 {main}
After removing its use - everything is ok, thanks.
Great! <3
Logger: MadelineProto 8.0.0-beta150
I am facing this issue though I am submitting the correct code.
I receive the following data in response:
Success response, so I call submit code action with received code:
After some time I get an error - "I'm not waiting for the code! Please call the phoneLogin method first". I do not understand why such an error occurs? The code is 100% correct and the time between requests is minimal, that is, the code is not expired.
MadelineProto.log
:Logger: MadelineProto 8.0.0-beta150 Logger: Copyright (C) 2016-2023 Daniil Gentili Logger: Licensed under AGPLv3 Logger: https://github.com/danog/MadelineProto MTProto: The database settings have changed! TL: Loading TL schemes... TL: Parsing TL_telegram_v162.tl... TL: Parsing TL_mtproto_v1.tl... TL: Parsing TL_secret.tl... MTProto: The serialization settings have changed! TL: Loading TL schemes... TL: Parsing TL_telegram_v162.tl... TL: Parsing TL_mtproto_v1.tl... TL: Parsing TL_secret.tl... DataCenter: Acquiring connect lock for 2! DataCenter: Connecting to DC 2 DataCenterConnection: Restoring 0 messages to DC 2 Session: Resetting session in DC 2.0... Connection: Connecting to DC 2.0 via tcp://149.154.167.51:443 main DC 2, via ipv4 using AbridgedStream => SocksProxy ({"address":"....","port":....,"username":"......","password":"........"}) => BufferedRawStream => DefaultStream SocksProxy: [ "Connected to ....... via socks5" ] Connection: Connected to DC 2.0 via tcp://149.154.167.51:443 main DC 2, via ipv4 using AbridgedStream => SocksProxy ({"address":"......","port":.......,"username":".......","password":"......"}) => BufferedRawStream => DefaultStream! Connection: Initing auth in DC 2 due to call to help.getConfig pending! DataCenterConnection: Acquiring lock in order to init auth for DC 2 DataCenterConnection: Initing auth for DC 2 DataCenterConnection: Generating permanent authorization key for DC 2... AuthKeyHandler: Requesting pq... Connection: Initing auth in DC 2 due to call to help.getConfig pending! DataCenterConnection: Acquiring lock in order to init auth for DC 2 Session: Garbage collected 0 outgoing messages in DC 2, 1 left ResponseHandler: Trying to assign a response of type ResPQ to its request... ResponseHandler: Does the request of return type ResPQ match? ResponseHandler: Yes AuthKeyHandler: Factorizing with native_single_cpp (please wait, might take a while) AuthKeyHandler: Factorizing with python_single_alt (please wait, might take a while) AuthKeyHandler: Install https://prime.madelineproto.xyz and the FFI extension to speed this up! AuthKeyHandler: Factorizing with python_single (please wait, might take a while) AuthKeyHandler: Install https://prime.madelineproto.xyz and the FFI extension to speed this up! AuthKeyHandler: Factorizing with native_single (please wait, might take a while) AuthKeyHandler: Install https://prime.madelineproto.xyz and the FFI extension to speed this up! AuthKeyHandler: Factorization 2769932034947274781 = 1614077989 1716107929 AuthKeyHandler: Starting Diffie Hellman key exchange GarbageCollector: gc_collect_cycles done. Cleaned memory: 0 Mb ResponseHandler: Trying to assign a response of type Server_DH_Params to its request... ResponseHandler: Does the request of return type Server_DH_Params match? ResponseHandler: Yes AuthKeyHandler: Server-client time delta = 0.0 s Crypt: Executing p/g checks (1/2)... Crypt: Executing p/g checks (2/2)... Crypt: Executing g check... Crypt: Executing g_a check (1/2)... Crypt: Executing g_a check (2/2)... AuthKeyHandler: Generating b... AuthKeyHandler: Generating g_b... Crypt: Executing g_a check (1/2)... Crypt: Executing g_a check (2/2)... AuthKeyHandler: Executing g_b check... AuthKeyHandler: Preparing client_DH_inner_data... AuthKeyHandler: Executing set_client_DH_params... ResponseHandler: Trying to assign a response of type Set_client_DH_params_answer to its request... ResponseHandler: Does the request of return type Set_client_DH_params_answer match? ResponseHandler: Yes AuthKeyHandler: Generating authorization key (install gmp to speed up this process)... AuthKeyHandler: Diffie Hellman key exchange processed successfully! AuthKeyHandler: Auth key generated DataCenterConnection: Generating temporary authorization key for DC 2... AuthKeyHandler: Requesting pq... ResponseHandler: Trying to assign a response of type ResPQ to its request... ResponseHandler: Does the request of return type ResPQ match? ResponseHandler: Yes AuthKeyHandler: Factorizing with native_single_cpp (please wait, might take a while) AuthKeyHandler: Factorizing with python_single_alt (please wait, might take a while) AuthKeyHandler: Install https://prime.madelineproto.xyz and the FFI extension to speed this up! AuthKeyHandler: Factorizing with python_single (please wait, might take a while) AuthKeyHandler: Install https://prime.madelineproto.xyz and the FFI extension to speed this up! AuthKeyHandler: Factorizing with native_single (please wait, might take a while) AuthKeyHandler: Install https://prime.madelineproto.xyz and the FFI extension to speed this up! AuthKeyHandler: Factorization 3472416253841811937 = 1795006907 1934486291 AuthKeyHandler: Starting Diffie Hellman key exchange ResponseHandler: Trying to assign a response of type Server_DH_Params to its request... ResponseHandler: Does the request of return type Server_DH_Params match? ResponseHandler: Yes AuthKeyHandler: Server-client time delta = 0.0 s Crypt: Executing p/g checks (1/2)... Crypt: Executing p/g checks (2/2)... Crypt: Executing g check... Crypt: Executing g_a check (1/2)... Crypt: Executing g_a check (2/2)... AuthKeyHandler: Generating b... AuthKeyHandler: Generating g_b... Crypt: Executing g_a check (1/2)... Crypt: Executing g_a check (2/2)... AuthKeyHandler: Executing g_b check... AuthKeyHandler: Preparing client_DH_inner_data... AuthKeyHandler: Executing set_client_DH_params... ResponseHandler: Trying to assign a response of type Set_client_DH_params_answer to its request... ResponseHandler: Does the request of return type Set_client_DH_params_answer match? ResponseHandler: Yes AuthKeyHandler: Generating authorization key (install gmp to speed up this process)... AuthKeyHandler: Diffie Hellman key exchange processed successfully! AuthKeyHandler: Auth key generated DataCenterConnection: Binding authorization keys... DataCenterConnection: Bound temporary and permanent authorization keys, DC 2 WriteLoop: Writing client info (also executing help.getConfig)... DataCenterConnection: Flushing pending messages, DC 2 DataCenterConnection: Initing auth for DC 2 PingLoop: Ping DC 2.0 MTProto: Updated config! MTProto: Updated config! MTProto: We're in RU, nearest DC is 2. MTProto: Starting update system APIWrapper: MadelineProto is ready! Login: Sending code... Logger: MadelineProto 8.0.0-beta150 Logger: Copyright (C) 2016-2023 Daniil Gentili Logger: Licensed under AGPLv3 Logger: https://github.com/danog/MadelineProto MTProto: The database settings have changed! TL: Loading TL schemes... TL: Parsing TL_telegram_v162.tl... TL: Parsing TL_mtproto_v1.tl... TL: Parsing TL_secret.tl... MTProto: The serialization settings have changed! TL: Loading TL schemes... TL: Parsing TL_telegram_v162.tl... TL: Parsing TL_mtproto_v1.tl... TL: Parsing TL_secret.tl... DataCenter: Acquiring connect lock for 2! DataCenter: Connecting to DC 2 DataCenterConnection: Restoring 0 messages to DC 2 Session: Resetting session in DC 2.0... Connection: Connecting to DC 2.0 via tcp://149.154.167.51:443 main DC 2, via ipv4 using AbridgedStream => SocksProxy ({"address":".......","port":.....,"username":".......","password":"......."}) => BufferedRawStream => DefaultStream SocksProxy: [ "Connected to ...... via socks5" ] Connection: Connected to DC 2.0 via tcp://149.154.167.51:443 main DC 2, via ipv4 using AbridgedStream => SocksProxy ({"address":".......","port":......,"username":"......","password":"........"}) => BufferedRawStream => DefaultStream! Connection: Initing auth in DC 2 due to call to help.getConfig pending! DataCenterConnection: Acquiring lock in order to init auth for DC 2 DataCenterConnection: Initing auth for DC 2 DataCenterConnection: Generating permanent authorization key for DC 2... AuthKeyHandler: Requesting pq... Connection: Initing auth in DC 2 due to call to help.getConfig pending! DataCenterConnection: Acquiring lock in order to init auth for DC 2 Session: Garbage collected 0 outgoing messages in DC 2, 1 left ResponseHandler: Trying to assign a response of type ResPQ to its request... ResponseHandler: Does the request of return type ResPQ match? ResponseHandler: Yes AuthKeyHandler: Factorizing with native_single_cpp (please wait, might take a while) AuthKeyHandler: Factorizing with python_single_alt (please wait, might take a while) AuthKeyHandler: Install https://prime.madelineproto.xyz and the FFI extension to speed this up! AuthKeyHandler: Factorizing with python_single (please wait, might take a while) AuthKeyHandler: Install https://prime.madelineproto.xyz and the FFI extension to speed this up! AuthKeyHandler: Factorizing with native_single (please wait, might take a while) AuthKeyHandler: Install https://prime.madelineproto.xyz and the FFI extension to speed this up! AuthKeyHandler: Factorization 1863039359337587149 = 1117640747 1666939367 AuthKeyHandler: Starting Diffie Hellman key exchange GarbageCollector: gc_collect_cycles done. Cleaned memory: 0 Mb ResponseHandler: Trying to assign a response of type Server_DH_Params to its request... ResponseHandler: Does the request of return type Server_DH_Params match? ResponseHandler: Yes AuthKeyHandler: Server-client time delta = -1.0 s Crypt: Executing p/g checks (1/2)... Crypt: Executing p/g checks (2/2)... Crypt: Executing g check... Crypt: Executing g_a check (1/2)... Crypt: Executing g_a check (2/2)... AuthKeyHandler: Generating b... AuthKeyHandler: Generating g_b... Crypt: Executing g_a check (1/2)... Crypt: Executing g_a check (2/2)... AuthKeyHandler: Executing g_b check... AuthKeyHandler: Preparing client_DH_inner_data... AuthKeyHandler: Executing set_client_DH_params... ResponseHandler: Trying to assign a response of type Set_client_DH_params_answer to its request... ResponseHandler: Does the request of return type Set_client_DH_params_answer match? ResponseHandler: Yes AuthKeyHandler: Generating authorization key (install gmp to speed up this process)... AuthKeyHandler: Diffie Hellman key exchange processed successfully! AuthKeyHandler: Auth key generated DataCenterConnection: Generating temporary authorization key for DC 2... AuthKeyHandler: Requesting pq... ResponseHandler: Trying to assign a response of type ResPQ to its request... ResponseHandler: Does the request of return type ResPQ match? ResponseHandler: Yes AuthKeyHandler: Factorizing with native_single_cpp (please wait, might take a while) AuthKeyHandler: Factorizing with python_single_alt (please wait, might take a while) AuthKeyHandler: Install https://prime.madelineproto.xyz and the FFI extension to speed this up! AuthKeyHandler: Factorizing with python_single (please wait, might take a while) AuthKeyHandler: Install https://prime.madelineproto.xyz and the FFI extension to speed this up! AuthKeyHandler: Factorizing with native_single (please wait, might take a while) AuthKeyHandler: Install https://prime.madelineproto.xyz and the FFI extension to speed this up! AuthKeyHandler: Factorization 2133804038857091399 = 1221253357 1747224707 AuthKeyHandler: Starting Diffie Hellman key exchange ResponseHandler: Trying to assign a response of type Server_DH_Params to its request... ResponseHandler: Does the request of return type Server_DH_Params match? ResponseHandler: Yes AuthKeyHandler: Server-client time delta = 0.0 s Crypt: Executing p/g checks (1/2)... Crypt: Executing p/g checks (2/2)... Crypt: Executing g check... Crypt: Executing g_a check (1/2)... Crypt: Executing g_a check (2/2)... AuthKeyHandler: Generating b... AuthKeyHandler: Generating g_b... Crypt: Executing g_a check (1/2)... Crypt: Executing g_a check (2/2)... AuthKeyHandler: Executing g_b check... AuthKeyHandler: Preparing client_DH_inner_data... AuthKeyHandler: Executing set_client_DH_params... ResponseHandler: Trying to assign a response of type Set_client_DH_params_answer to its request... ResponseHandler: Does the request of return type Set_client_DH_params_answer match? ResponseHandler: Yes AuthKeyHandler: Generating authorization key (install gmp to speed up this process)... AuthKeyHandler: Diffie Hellman key exchange processed successfully! AuthKeyHandler: Auth key generated DataCenterConnection: Binding authorization keys... DataCenterConnection: Bound temporary and permanent authorization keys, DC 2 WriteLoop: Writing client info (also executing help.getConfig)... DataCenterConnection: Flushing pending messages, DC 2 DataCenterConnection: Initing auth for DC 2 PingLoop: Ping DC 2.0 MTProto: Updated config! MTProto: Updated config!