From b433dd5f5d998bad00183e007b5e54a5e3c19620 Mon Sep 17 00:00:00 2001 From: Zaid Date: Wed, 3 Jul 2024 00:50:56 +0300 Subject: [PATCH] fix chat_type_filter --- tgram/filters.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tgram/filters.py b/tgram/filters.py index c9a97dd..c4298dd 100644 --- a/tgram/filters.py +++ b/tgram/filters.py @@ -232,7 +232,7 @@ def chat_filter(m): elif isinstance(m, tgram.types.InlineQuery): chat_type = m.chat_type elif getattr(m, "chat"): # Most of other updates types have chat attribute. - chat_type = m.chat.id + chat_type = m.chat.type else: raise ValueError( f"Chat type filter doesn't work with {m.__class__.__name__}"