Traceback (most recent call last):
File "register.py", line 50, in
asyncio.run(main())
File "C:\Users\test\AppData\Local\Programs\Python\Python37-32\lib\asyncio\runners.py", line 43, in run
return loop.run_until_complete(main)
File "C:\Users\test\AppData\Local\Programs\Python\Python37-32\lib\asyncio\base_events.py", line 579, in run_until_complete
return future.result()
File "register.py", line 32, in main
sent = await client.send_code_request(phone)
File "C:\Users\test\AppData\Local\Programs\Python\Python37-32\lib\site-packages\telethon\client\auth.py", line 480, in send_code_request
phone, self.api_id, self.api_hash, types.CodeSettings()))
File "C:\Users\test\AppData\Local\Programs\Python\Python37-32\lib\site-packages\telethon\client\users.py", line 53, in call
future = self._sender.send(request, ordered=ordered)
File "C:\Users\test\AppData\Local\Programs\Python\Python37-32\lib\site-packages\telethon\network\mtprotosender.py", line 162, in send
raise ConnectionError('Cannot send requests while disconnected')
ConnectionError: Cannot send requests while disconnected
Please stop opening issues unless you have found an actual bug in the library or I will have to report your account. As I have already said, this is not a bug in the library, and the error message is pretty clear. You are not formatting your code properly and you're not even providing the code that causes the issue.
Most helpful comment
Please stop opening issues unless you have found an actual bug in the library or I will have to report your account. As I have already said, this is not a bug in the library, and the error message is pretty clear. You are not formatting your code properly and you're not even providing the code that causes the issue.