thedemons / opentele

A Python Telegram API Library for converting between tdata and telethon sessions, with built-in official Telegram APIs.
https://opentele.readthedocs.io/
MIT License
306 stars 99 forks source link

tl/telethon.py AuthMethods._on_login isn't awaited #88

Open n1ret opened 1 year ago

n1ret commented 1 year ago

Describe the bug I think that this bug caused the absence of authkey in the .session file

To Reproduce Steps to reproduce the behavior:

  1. Using ToTelethon method on TDesktop

Additional context /opentele/tl/telethon.py:686: RuntimeWarning: coroutine 'AuthMethods._on_login' was never awaited newClient._on_login(result.user) # type: ignore