Use Telethon's new AlchemySession for session storage

This commit is contained in:
Tulir Asokan
2018-03-02 20:22:03 +02:00
parent 46cac040c7
commit 3a4628cb6e
4 changed files with 130 additions and 10 deletions
+2 -1
View File
@@ -17,13 +17,14 @@
class Context:
def __init__(self, az, db, config, loop, bot, mx):
def __init__(self, az, db, config, loop, bot, mx, telethon_session_container):
self.az = az
self.db = db
self.config = config
self.loop = loop
self.bot = bot
self.mx = mx
self.telethon_session_container = telethon_session_container
def __iter__(self):
yield self.az