Traceback (most recent call last):


 "$my_code", line 83, in _download_if_needed

progress_callback=update_hook


 "$virtualenv/lib/python3.7/site-packages/telethon/client/downloads.py", line 263, in download_file

sender = await self._borrow_exported_sender(e.new_dc)


 "$virtualenv/lib/python3.7/site-packages/telethon/client/telegrambaseclient.py", line 502, in _borrow_exported_sender

sender = await self._create_exported_sender(dc_id)


 "$virtualenv/lib/python3.7/site-packages/telethon/client/telegrambaseclient.py", line 469, in _create_exported_sender

dc = await self._get_dc(dc_id)


 "$virtualenv/lib/python3.7/site-packages/telethon/client/telegrambaseclient.py", line 448, in _get_dc

if not cls._config:
AttributeError: type object '_TakeoutClient' has no attribute '_config'

Traceback (most recent call last):

 "/home/ubuntu/inbox/inbox/util/concurrency.py", line 73, in wrapped
return func(*args, **kwargs)

 "/home/ubuntu/inbox/inbox/mailsync/gc.py", line 53, in _run_impl
self.check(current_time)

 "/home/ubuntu/inbox/inbox/mailsync/gc.py", line 72, in check
thread.messages.remove(message)
AttributeError: 'NoneType' object has no attribute 'messages'```