Revisit codebase to add missing async/await

This commit is contained in:
Lonami Exo
2018-06-14 17:09:20 +02:00
parent 1247d050ab
commit 908dfa148b
9 changed files with 73 additions and 111 deletions

View File

@@ -148,16 +148,16 @@ class UserUpdate(EventBuilder):
self.uploading = self.video = True
@property
def user(self):
async def user(self):
"""Alias around the chat (conversation)."""
return self.chat
return await self.chat
@property
def input_user(self):
async def input_user(self):
"""Alias around the input chat."""
return self.input_chat
return await self.input_chat
@property
def user_id(self):
async def user_id(self):
"""Alias around `chat_id`."""
return self.chat_id