Fix telethon.sync not syncifying takeout client

This commit is contained in:
Lonami Exo 2019-04-19 13:58:37 +02:00
parent 68bf9f76f6
commit a7b4794585

View File

@ -14,6 +14,7 @@ import asyncio
import functools import functools
import inspect import inspect
from .client.account import _TakeoutClient
from .client.telegramclient import TelegramClient from .client.telegramclient import TelegramClient
from .tl.custom import ( from .tl.custom import (
Draft, Dialog, MessageButton, Forward, Message, InlineResult, Conversation Draft, Dialog, MessageButton, Forward, Message, InlineResult, Conversation
@ -55,5 +56,5 @@ def syncify(*types):
_syncify_wrap(t, name) _syncify_wrap(t, name)
syncify(TelegramClient, Draft, Dialog, MessageButton, syncify(TelegramClient, _TakeoutClient, Draft, Dialog, MessageButton,
ChatGetter, SenderGetter, Forward, Message, InlineResult, Conversation) ChatGetter, SenderGetter, Forward, Message, InlineResult, Conversation)