Fix Telethon 0.18.1 compatibility. Fixes #96

This commit is contained in:
Tulir Asokan
2018-03-24 16:32:21 +02:00
parent 2bf327dbc5
commit 91ae50911e
18 changed files with 48 additions and 62 deletions
+4 -5
View File
@@ -18,10 +18,10 @@ from typing import Awaitable, Callable
import logging
import re
from telethon_aio.tl.types import *
from telethon_aio.tl.functions.messages import GetChatsRequest, GetFullChatRequest
from telethon_aio.tl.functions.channels import GetChannelsRequest, GetParticipantRequest
from telethon_aio.errors import ChannelInvalidError, ChannelPrivateError
from telethon.tl.types import *
from telethon.tl.functions.messages import GetChatsRequest, GetFullChatRequest
from telethon.tl.functions.channels import GetChannelsRequest, GetParticipantRequest
from telethon.errors import ChannelInvalidError, ChannelPrivateError
from .abstract_user import AbstractUser
from .db import BotChat
@@ -29,7 +29,6 @@ from . import puppet as pu, portal as po, user as u
config = None
ReplyFunc = Callable[[str], Awaitable[Message]]