Traceback (most recent call last):


 "C:\Users\adnan\AppData\Local\Programs\Python\Python38-32\lib\site-packages\tornado\ioloop.py", line 907, in _run

return self.callback()


 "C:\Users\adnan\AppData\Local\Programs\Python\Python38-32\lib\site-packages\distributed\nanny.py", line 414, in memory_monitor

process = self.process.process
AttributeError: 'NoneType' object has no attribute 'process'

Traceback (most recent call last):


 "telegram_client.py", line 18, in <module>

client.send_code_request(phone_number)


 "C:\Users\IBM_ADMIN\rcs\Miniconda36\Lib\site-packages\telethon\telegram_client.py", line 323, in send_code_request

result = self(SendCodeRequest(phone, self.api_id, self.api_hash))


 "C:\Users\IBM_ADMIN\rcs\Miniconda36\Lib\site-packages\telethon\telegram_client.py", line 265, in invoke

retries=kwargs.get('retries', 5)


 "C:\Users\IBM_ADMIN\rcs\Miniconda36\Lib\site-packages\telethon\telegram_bare_client.py", line 316, in invoke

self._sender.send(*requests)


 "C:\Users\IBM_ADMIN\rcs\Miniconda36\Lib\site-packages\telethon\network\mtproto_sender.py", line 80, in send

self._send_message(message)


 "C:\Users\IBM_ADMIN\rcs\Miniconda36\Lib\site-packages\telethon\network\mtproto_sender.py", line 130, in _send_message

key_id = struct.pack('<Q', self.session.auth_key.key_id)
AttributeError: 'NoneType' object has no attribute 'key_id'
