From 31b32184c927a4793bb5222624394e735b6722f8 Mon Sep 17 00:00:00 2001 From: "ALi.w" Date: Sun, 13 Nov 2022 16:57:19 +0330 Subject: [PATCH] Use getattr to get outgoing attribute in filters.me (#1137) * Use getattr to get outgoing attribute from the message in me_filter. Fixes #1136. Signed-off-by: Aliwoto * Update filters.py Signed-off-by: Aliwoto Co-authored-by: Dan <14043624+delivrance@users.noreply.github.com> --- pyrogram/filters.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyrogram/filters.py b/pyrogram/filters.py index f31b385e..ac2dbf20 100644 --- a/pyrogram/filters.py +++ b/pyrogram/filters.py @@ -164,7 +164,7 @@ all = create(all_filter) # region me_filter async def me_filter(_, __, m: Message): - return bool(m.from_user and m.from_user.is_self or m.outgoing) + return bool(m.from_user and m.from_user.is_self or getattr(m, "outgoing", False)) me = create(me_filter)