From 3a230430cf98e23ea180cbfb2b237c826f04f128 Mon Sep 17 00:00:00 2001 From: Zaid Date: Sun, 7 Jul 2024 23:37:57 +0300 Subject: [PATCH] add refunded_payment filter --- tgram/filters.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tgram/filters.py b/tgram/filters.py index 3a46bd7..a0f1176 100644 --- a/tgram/filters.py +++ b/tgram/filters.py @@ -72,6 +72,7 @@ def __or__(self, other: "Filter") -> "Filter": pinned_message = Filter(lambda m: getattr(m, "pinned_message")) invoice = Filter(lambda m: getattr(m, "invoice")) successful_payment = Filter(lambda m: getattr(m, "successful_payment")) +refunded_payment = Filter(lambda m: getattr(m, "refunded_payment")) users_shared = Filter(lambda m: getattr(m, "users_shared")) chat_shared = Filter(lambda m: getattr(m, "chat_shared")) connected_website = Filter(lambda m: getattr(m, "connected_website")) @@ -119,6 +120,7 @@ def __or__(self, other: "Filter") -> "Filter": | write_access_allowed | write_access_allowed | successful_payment + | refunded_payment | users_shared | chat_shared | pinned_message