Add missing await

This commit is contained in:
Lonami Exo 2018-07-08 23:44:56 +02:00
parent 7b6e65a7a5
commit 1b22d0eb12

View File

@ -604,7 +604,7 @@ class Message:
if not self.original_message.out: if not self.original_message.out:
if not isinstance(self.original_message.to_id, types.PeerUser): if not isinstance(self.original_message.to_id, types.PeerUser):
return None return None
me = self._client.get_me(input_peer=True) me = await self._client.get_me(input_peer=True)
if self.original_message.to_id.user_id != me.user_id: if self.original_message.to_id.user_id != me.user_id:
return None return None