Avoid unnecessary await in Conversation

This commit is contained in:
Lonami Exo
2019-08-13 18:11:02 +02:00
parent e24dd3ad75
commit 61c0e63bbe
2 changed files with 14 additions and 11 deletions

View File

@@ -63,6 +63,10 @@ syncify(TelegramClient, _TakeoutClient, Draft, Dialog, MessageButton,
ChatGetter, SenderGetter, Forward, Message, InlineResult, Conversation)
# Private special case, since a conversation's methods return
# futures (but the public function themselves are synchronous).
_syncify_wrap(Conversation, '_get_result')
__all__ = [
'TelegramClient', 'Button',
'types', 'functions', 'custom', 'errors',