deletedaccount/Filosofi_1botPublic · Bot Template
Make more optional and custom bot contact @Mr_WASI_Developer
Scamscamgmail_farmingpaid_tasksearningsreferral_bonusdaily_bonus
33 commands0 envUpdated 5h agoCreated Aug 1, 2026
commands/👥 Referral.js
javascript · 56 lines
1/**#command2name: 👥 Referral3answer: 4keyboard: 5parse_mode: markdown6aliases: 7allow_only_group: false8need_reply: false9is_web: 010#command**/11 12var botName = bot.name;13var myRefCode = User.getProperty("my_ref_code");14 15// যদি কোনো কারণে ইউজারের রেফারেল কোড জেনারেট না হয়ে থাকে16if (!myRefCode) {17 function generateRefCode() {18 var chars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ";19 var result = "";20 for (var i = 0; i < 7; i++) {21 result += chars.charAt(Math.floor(Math.random() * chars.length));22 }23 return result;24 }25 myRefCode = generateRefCode();26 User.setProperty("my_ref_code", myRefCode);27 Bot.setProperty("ref_owner_" + myRefCode, user.telegramid);28}29 30var refLink = "https://t.me/" + botName + "?start=" + myRefCode;31 32// রেফারেল সংখ্যা আনা33var refCount = Bot.getProperty("user_ref_count_" + user.telegramid, 0);34refCount = (refCount && !isNaN(refCount)) ? parseInt(refCount) : 0;35 36var refMsg = 37 "👥 <b>REFERRAL SYSTEM</b>\n" +38 "━━━━━━━━━━━━━━━━━━━\n" +39 "🔑 <b>আপনার রেফারেল কোড:</b> <code>" + myRefCode + "</code>\n\n" +40 "🔗 <b>আপনার রেফারেল লিংক:</b> \n<code>" + refLink + "</code>\n\n" +41 "💰 <b>রেফার বোনাস:</b> ১০ BDT (প্রতি রেফারে)\n" +42 "🎁 <b>সাইনআপ বোনাস:</b> ৫ BDT (আপনার লিংকে কেউ অ্যাকাউন্ট করলে পাবে)\n\n" +43 "📊 <b>আপনার মোট রেফারেল:</b> <b>" + refCount + " জন</b>\n" +44 "━━━━━━━━━━━━━━━━━━━\n" +45 "📢 লিংকটি আপনার বন্ধুদের সাথে শেয়ার করুন এবং আনলিমিটেড ইনকাম করুন!";46 47var inlineButtons = [48 [{ text: "🔗 Share Referral Link", url: "https://t.me/share/url?url=" + encodeURIComponent(refLink) + "&text=" + encodeURIComponent("টেলিগ্রাম দিয়ে দিনে ৩০০-৫০০ টাকা ইনকাম করুন জিমেইল তৈরি করে! ইনস্ট্যান্ট পেমেন্ট 💸") }]49];50 51Api.sendMessage({52 chat_id: chat.chatid,53 text: refMsg,54 parse_mode: "HTML",55 reply_markup: { inline_keyboard: inlineButtons }56});