Spaces:
Running
Running
Update main.py
Browse files
main.py
CHANGED
@@ -133,8 +133,8 @@ async def block_inline_via_bot(client, message):
|
|
133 |
logging.info(f"Blocked inline via bot message from {message.from_user.first_name} in {message.chat.title}")
|
134 |
return await message.delete()
|
135 |
|
136 |
-
if
|
137 |
-
logging.info(f"
|
138 |
return await message.delete()
|
139 |
|
140 |
if has_code_entity(message):
|
@@ -161,8 +161,8 @@ async def markdown_code(client, message):
|
|
161 |
if message.text.markdown is None:
|
162 |
return
|
163 |
|
164 |
-
if
|
165 |
-
logging.info(f"
|
166 |
return await message.delete()
|
167 |
|
168 |
if has_code_entity(message):
|
|
|
133 |
logging.info(f"Blocked inline via bot message from {message.from_user.first_name} in {message.chat.title}")
|
134 |
return await message.delete()
|
135 |
|
136 |
+
if contains_stylish_with_whitelist(message.text):
|
137 |
+
logging.info(f"contains_stylish_with_whitelist: Blocked inline message from {message.from_user.first_name} in {message.chat.title}")
|
138 |
return await message.delete()
|
139 |
|
140 |
if has_code_entity(message):
|
|
|
161 |
if message.text.markdown is None:
|
162 |
return
|
163 |
|
164 |
+
if contains_stylish_with_whitelist(message.text):
|
165 |
+
logging.info(f"contains_stylish_with_whitelist: Blocked message from {message.from_user.first_name} in {message.chat.title}")
|
166 |
return await message.delete()
|
167 |
|
168 |
if has_code_entity(message):
|