add deleting links excluding allowed

This commit is contained in:
Rykov7
2022-11-12 15:37:48 +03:00
parent abb787d6ef
commit 7fa7400be3
2 changed files with 23 additions and 12 deletions
+6 -1
View File
@@ -1,4 +1,5 @@
import os
import re
from telebot import TeleBot
from dotenv import load_dotenv
@@ -9,4 +10,8 @@ bot = TeleBot(TOKEN)
ADMIN_ID = 280887861 # Rykov7
PYTHONCHATRU = -1001338616632 # pythonchatru
TEST_CHAT = -1001622893830
TEST_CHAT = -1001622893830
URL_RX = re.compile(r'\w+\.\w+/\w+')
ALLOWED_WORDS = ['pastebin', 'github', 'google', 'nometa', 'python',
'stackoverflow', 'habr', 'medium']