randydev commited on
Commit
f87cf87
·
verified ·
1 Parent(s): 35c7074

Update plugins/antiban.js

Browse files
Files changed (1) hide show
  1. 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 userId = req.query.user_id;
69
- if (!userId) {
70
  return res.status(400).json({ error: "Invalid or missing user_id" });
71
  }
72
 
73
  try {
74
- const result = await TelegramUserStoryDL(userId);
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" });