Update plugins/antiban.js
Browse files- plugins/antiban.js +3 -3
plugins/antiban.js
CHANGED
@@ -65,13 +65,13 @@ const TelegramUserStoryDL = async (user_id) => {
|
|
65 |
* description: Success
|
66 |
*/
|
67 |
AntibanRoutes.get("/api/v1/user/story-dl", authenticateApiKey, apiLimiter, async (req, res) => {
|
68 |
-
const
|
69 |
-
if (!
|
70 |
return res.status(400).json({ error: "Invalid or missing user_id" });
|
71 |
}
|
72 |
|
73 |
try {
|
74 |
-
const result = await TelegramUserStoryDL(
|
75 |
res.json(result);
|
76 |
} catch (error) {
|
77 |
res.status(500).json({ error: "Failed to fetch user info" });
|
|
|
65 |
* description: Success
|
66 |
*/
|
67 |
AntibanRoutes.get("/api/v1/user/story-dl", authenticateApiKey, apiLimiter, async (req, res) => {
|
68 |
+
const Links = req.query.link;
|
69 |
+
if (!Links) {
|
70 |
return res.status(400).json({ error: "Invalid or missing user_id" });
|
71 |
}
|
72 |
|
73 |
try {
|
74 |
+
const result = await TelegramUserStoryDL(Links);
|
75 |
res.json(result);
|
76 |
} catch (error) {
|
77 |
res.status(500).json({ error: "Failed to fetch user info" });
|