From afbba219d50173ebb8c1855720454c7eeb263490 Mon Sep 17 00:00:00 2001 From: Lonami Exo Date: Sat, 2 Jun 2018 12:38:03 +0200 Subject: [PATCH] Fix copy-paste typo --- telethon/events/newmessage.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/telethon/events/newmessage.py b/telethon/events/newmessage.py index 082c9737..31fe6c8a 100644 --- a/telethon/events/newmessage.py +++ b/telethon/events/newmessage.py @@ -31,7 +31,7 @@ class NewMessage(EventBuilder): if incoming is not None and outgoing is None: outgoing = not incoming elif outgoing is not None and incoming is None: - incoming = not incoming + incoming = not outgoing if incoming and outgoing: self.incoming = self.outgoing = None # Same as no filter