randydev commited on
Commit
10d4350
·
verified ·
1 Parent(s): 6e4e6a0

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +1 -1
main.py CHANGED
@@ -66,7 +66,7 @@ async def callback_button(client: Client, cb: CallbackQuery):
66
 
67
  def is_tiktok_url(url):
68
  pattern = r"(https?)://(vt|www)\.tiktok\.com/(\w+)"
69
- match = re.search(pattern, name)
70
  return bool(match)
71
 
72
  @client.on_message(filters.text & filters.private)
 
66
 
67
  def is_tiktok_url(url):
68
  pattern = r"(https?)://(vt|www)\.tiktok\.com/(\w+)"
69
+ match = re.search(pattern, url)
70
  return bool(match)
71
 
72
  @client.on_message(filters.text & filters.private)