Telethon: What my mistage?

Created on 1 Nov 2019  路  2Comments  路  Source: LonamiWebs/Telethon

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

RTFM duplicate

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.

All 2 comments

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.

1314, #1313.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

JackCloudman picture JackCloudman  路  6Comments

ksanderer picture ksanderer  路  3Comments

adv-zl picture adv-zl  路  3Comments

pazis picture pazis  路  5Comments

amir3code picture amir3code  路  6Comments