fix update
Browse files
akn/AllDownloaderBot/helpers/azrcallback.py
CHANGED
@@ -78,7 +78,7 @@ async def arzunmute_callback(client, callback):
|
|
78 |
except Exception as e:
|
79 |
await callback.answer(f"Failed to unmute user: {e}")
|
80 |
|
81 |
-
@Client.on_callback_query(filters.regex("^rhelp_(ban|mute|promote|demote|clean|lock|downloader$"))
|
82 |
async def rxhelp_callback(client, callback):
|
83 |
category = callback.data.split("_")[1]
|
84 |
keyboard = InlineKeyboardMarkup([
|
|
|
78 |
except Exception as e:
|
79 |
await callback.answer(f"Failed to unmute user: {e}")
|
80 |
|
81 |
+
@Client.on_callback_query(filters.regex("^rhelp_(ban|mute|promote|demote|clean|lock|downloader)$"))
|
82 |
async def rxhelp_callback(client, callback):
|
83 |
category = callback.data.split("_")[1]
|
84 |
keyboard = InlineKeyboardMarkup([
|
akn/AllDownloaderBot/main.py
CHANGED
@@ -238,7 +238,7 @@ class Tiktok:
|
|
238 |
]
|
239 |
|
240 |
def is_tiktok_url(url):
|
241 |
-
pattern = r"(https?)://(
|
242 |
match = re.search(pattern, url)
|
243 |
return bool(match)
|
244 |
|
|
|
238 |
]
|
239 |
|
240 |
def is_tiktok_url(url):
|
241 |
+
pattern = r"(https?)://(www\.)?(tiktok\.com|vt\.tiktok\.com)/[^\s]+"
|
242 |
match = re.search(pattern, url)
|
243 |
return bool(match)
|
244 |
|