Update Telethon and use PyPI telethon-aio package

This commit is contained in:
Tulir Asokan
2018-03-04 13:35:24 +02:00
parent 172e472221
commit 021b60a45e
18 changed files with 37 additions and 38 deletions
+2 -2
View File
@@ -22,7 +22,7 @@ import asyncio
import sqlalchemy as sql
from sqlalchemy import orm
from telethon.sessions import AlchemySessionContainer
from telethon_aio.sessions import AlchemySessionContainer
from mautrix_appservice import AppService
from .base import Base
@@ -66,7 +66,7 @@ if args.generate_registration:
sys.exit(0)
if config["appservice.debug"]:
telethon_log = logging.getLogger("telethon")
telethon_log = logging.getLogger("telethon_aio")
telethon_log.addHandler(handler)
telethon_log.setLevel(logging.DEBUG)
log.setLevel(logging.DEBUG)