Vikashsahu18/Fastreq_accept_botPublic · Bot Template

ProfileTelegram

AIFast_accept_bot appears to be a Telegram automation bot. Commands include /start, /verify, /setgreeting, /savegreeting, /defer, /delchannel, /chat_join_request, /clone. Observed in code: messaging, keyboards, http, web.

Utilityutility
17 commands0 envUpdated 1mo agoCreated Sep 30, 2026
Back to folder

commands/_onCloneSuccess.js

javascript · 36 lines

Raw
1/**#command2name: /onCloneSuccess3answer: 4keyboard: 5parse_mode: markdown6aliases: 7allow_only_group: false8need_reply: false9is_web: 010#command**/11 12let token = params;13let res = JSON.parse(content);14 15if (res.ok) {16  let botUsername = res.result.username;17  let botName = res.result.first_name;18 19  // Clone token save karein20  User.setProperty("clone_token", token, "string");21  User.setProperty("clone_username", botUsername, "string");22 23  // Naye bot ko TeleBotHost ke sath webhook se connect karna24  let webhookUrl = "https://api.telebothost.com/webhook/" + token;25  26  HTTP.get({27    url: "https://api.telegram.org/bot" + token + "/setWebhook?url=" + webhookUrl,28    success: "/onWebhookSet " + botUsername29  });30 31} else {32  Api.sendMessage({33    text: "❌ <b>Token connect nahi ho saka!</b> Kripya sahi token bhejein.",34    parse_mode: "HTML"35  });36}