Spaces:
Running
Running
Update main.py
Browse files
main.py
CHANGED
@@ -67,6 +67,8 @@ async def callback_button(client: Client, cb: CallbackQuery):
|
|
67 |
async def tiktok_downloader(client: Client, message: Message):
|
68 |
if message.text:
|
69 |
query = message.text
|
|
|
|
|
70 |
callback_data = generate_callback_data(message.from_user.id, query)
|
71 |
keyboard = InlineKeyboardMarkup(
|
72 |
[
|
|
|
67 |
async def tiktok_downloader(client: Client, message: Message):
|
68 |
if message.text:
|
69 |
query = message.text
|
70 |
+
if not query.startswith("https://vt.tiktok.com/") and not query.startswith("https://www.tiktok.com/"):
|
71 |
+
return await message.reply_text("Invalid link")
|
72 |
callback_data = generate_callback_data(message.from_user.id, query)
|
73 |
keyboard = InlineKeyboardMarkup(
|
74 |
[
|