mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-08-08 04:52:30 +00:00
Add experimental support for async sessions (#4667)
There no plans for this to ever be non-experimental in v1.
This commit is contained in:
@@ -552,7 +552,7 @@ class AuthMethods:
|
||||
self._authorized = False
|
||||
|
||||
await self.disconnect()
|
||||
self.session.delete()
|
||||
await utils.maybe_async(self.session.delete())
|
||||
self.session = None
|
||||
return True
|
||||
|
||||
|
Reference in New Issue
Block a user