randydev commited on
Commit
5502e89
·
verified ·
1 Parent(s): 3d2533e

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +4 -4
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 is_blocked_font_stylish(message.text):
137
- logging.info(f"is_blocked_font_stylish: 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,8 +161,8 @@ async def markdown_code(client, message):
161
  if message.text.markdown is None:
162
  return
163
 
164
- if is_blocked_font_stylish(message.text):
165
- logging.info(f"is_blocked_font_stylish: Blocked message from {message.from_user.first_name} in {message.chat.title}")
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):