mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-08-05 03:22:29 +00:00
Avoid unnecessary await in Conversation
This commit is contained in:
@@ -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',
|
||||
|
Reference in New Issue
Block a user