mirror of
https://gitflic.ru/project/alt-gnome/karkas.git
synced 2025-10-03 12:04:06 +03:00
добавлено отключение проверки на чаты, если они не указаны
This commit is contained in:
@@ -54,6 +54,11 @@ class ChatIDFilter(BaseFilter):
|
||||
chat_id = message.chat.id
|
||||
|
||||
approved_chats = self.approved_chats or get_approved_chat_id()
|
||||
|
||||
# Если список для фильтрации пуст - разрешаем всем.
|
||||
if len(approved_chats) == 0:
|
||||
return True
|
||||
|
||||
res = chat_id in approved_chats
|
||||
|
||||
return res ^ (self.blacklist)
|
||||
|
Reference in New Issue
Block a user