ulduldp commited on
Commit
311e37e
·
verified ·
1 Parent(s): 0ce1c9c

Update pinger.gofile.js

Browse files
Files changed (1) hide show
  1. pinger.gofile.js +12 -1
pinger.gofile.js CHANGED
@@ -9,7 +9,18 @@ const GROUP_ID = "-3778092831";
9
  const VISIT_DELAY_MS = 5000; // 5 sec delay per URL
10
  const INTERVAL_MS = 12 * 60 * 60 * 1000; // 12 hours
11
 
12
- const bot = new TelegramBot(BOT_TOKEN, { polling: false });
 
 
 
 
 
 
 
 
 
 
 
13
 
14
  // Realistic User Agents
15
  const USER_AGENTS = [
 
9
  const VISIT_DELAY_MS = 5000; // 5 sec delay per URL
10
  const INTERVAL_MS = 12 * 60 * 60 * 1000; // 12 hours
11
 
12
+ const bot = new TelegramBot(BOT_TOKEN, { polling: true });
13
+
14
+ bot.on("message", (msg) => {
15
+ const chatId = msg.chat.id;
16
+ const text = msg.text;
17
+
18
+ console.log("New message:", text);
19
+ console.log("From chat:", chatId);
20
+
21
+ // reply example
22
+ bot.sendMessage(chatId, `You said: ${text}`);
23
+ });
24
 
25
  // Realistic User Agents
26
  const USER_AGENTS = [