Skip to content

Commit

Permalink
fix chat_type_filter
Browse files Browse the repository at this point in the history
  • Loading branch information
z44d authored Jul 2, 2024
1 parent e466a87 commit b433dd5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tgram/filters.py
Original file line number Diff line number Diff line change
Expand Up @@ -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__}"
Expand Down

0 comments on commit b433dd5

Please sign in to comment.