Add forum filter

This commit is contained in:
KurimuzonAkuma 2023-12-15 17:13:41 +03:00
parent 5f43892a44
commit 8e201b941d

View File

@ -513,6 +513,17 @@ channel = create(channel_filter)
"""Filter messages sent in channels."""
# endregion
# region forum_filter
async def forum_filter(_, __, m: Message):
return bool(m.chat and m.chat.is_forum)
forum = create(forum_filter)
"""Filter messages sent in forums."""
# endregion
# region new_chat_members_filter