mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2024-11-23 01:46:35 +03:00
Add missing await
This commit is contained in:
parent
7b6e65a7a5
commit
1b22d0eb12
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user