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
+1 -1
View File
@@ -16,7 +16,7 @@
# along with this program. If not, see <https://www.gnu.org/licenses/>.
import asyncio
from telethon_aio.errors import *
from telethon.errors import *
from . import command_handler
from .. import puppet as pu
+1 -1
View File
@@ -17,7 +17,7 @@
import markdown
import logging
from telethon_aio.errors import FloodWaitError
from telethon.errors import FloodWaitError
from ..util import format_duration
+1 -1
View File
@@ -16,7 +16,7 @@
# along with this program. If not, see <https://www.gnu.org/licenses/>.
import asyncio
from telethon_aio.errors import *
from telethon.errors import *
from mautrix_appservice import MatrixRequestError
from .. import portal as po
+4 -4
View File
@@ -14,10 +14,10 @@
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.
from telethon_aio.errors import *
from telethon_aio.tl.types import User as TLUser
from telethon_aio.tl.functions.messages import ImportChatInviteRequest, CheckChatInviteRequest
from telethon_aio.tl.functions.channels import JoinChannelRequest
from telethon.errors import *
from telethon.tl.types import User as TLUser
from telethon.tl.functions.messages import ImportChatInviteRequest, CheckChatInviteRequest
from telethon.tl.functions.channels import JoinChannelRequest
from .. import puppet as pu, portal as po
from . import command_handler