Skip to main content

How to create telegram refere and earn bot without knowing coding

๐ŸคฉHow to create telegram refere and earn bot without knowing coding .

STEP 1 = 
First go to BotFather and create a bot copy the bot toke.
⚠️ If you don't know how to create bot by BotFather Than Whatch this video ๐Ÿ‘‡

STEP 2 = 
Go to bots.business Click on new bot. 

STEP 3 = 
Paste your token and install all lab. 

STEP 4 = 
Paste all Command who gives below. 
⚠️You you have any problems than watch this video ๐Ÿ‘‡

๐Ÿ’ก Command  = /start

๐ŸŒ Bjs = let stat = Bot.getProperty(""+user.telegramid+"");

if (stat=="ban"){
Bot.sendMessage("*❌You are Banned to Use These Bot*");
}else{
var mode = Bot.getProperty("mode")
if(mode == "On"){
Bot.sendMessage("*⚠️Bot Is Currently On Maintainace Mode Come Back Later.*")
}else{
var button = [{ title: "✅ check", command: "✅ check" }]
Bot.sendInlineKeyboard(
  button,
  "*Subscribe Our Channels If You Want To Start The Bot And Earn From It.....\n\n๐ŸŒบ*[Main CHANNEL](https://t.me/HBmedia0) \n\n*๐ŸŒบ*[update channel](https://t.me/HBtechgyan) \n\n*๐ŸŒบ*[Bother channel](https://t.me/hbfactplus) \n\n*๐ŸŒบ*[payment channel](https://t.me/Bekupchannel) \n\n*❤️Subscribe And Click On 'Check' Button To Start Our Bot......*\n\n[All Code Here](https://t.me/joinchat/ronUNxaiLXw2MDc1)",{disable_web_page_preview:"true"}
)
Bot.sendMessage("❌ Must be join @HBtechGyan")
var user_link = Libs.commonLib.getLinkFor(user)
function hello(message) {
  var greetings = ""
  Bot.sendMessage(greetings + message)
}
function doTouchOwnLink() {
  Bot.sendMessage("*❌You're Trying To Invite You're Self *")
}
function doAttracted(channel) {
  hello("Referal: " + channel)
}
function doAtractedByUser(refUser) {
  hello("")
  Bot.sendMessageToChatWithId(
    refUser.chatId,
    "*๐Ÿ’ฅ New Referral - *" +user_link+"*\nReward only if user joins our channels!*\n\n*Bot code by* @HBtechgyan"
  )
}
function doAlreadyAttracted() {
  Bot.sendMessage("*๐ŸฅณYou Already Started The Bot\n\nIf YouTube want to create your own bot Watch this video ๐Ÿ‘‡*\nhb*")
}
var trackOptions = {
  onTouchOwnLink: doTouchOwnLink,
  onAttracted: doAttracted,
  onAtractedByUser: doAtractedByUser,
  onAlreadyAttracted: doAlreadyAttracted
}
Libs.ReferralLib.currentUser.track(trackOptions)
var welco = User.getProperty("welco")
if (welco == undefined) {
    var status = Libs.ResourcesLib.anotherChatRes("status", "global")
  status.add(1)
  Bot.sendMessageToChatWithId(1333486670,
    "*๐Ÿ‘จ๐Ÿป‍✈️New User๐Ÿ†•*\n\n*๐Ÿคด๐ŸปUser = "+user.first_name+"\n\n๐Ÿ‘ฎ๐Ÿป‍♂Username =* " +
      user_link +
      " \n\n*๐Ÿ’ณUser Id =* " +
      user.telegramid +
      "\n\n*Bot code by* @HBtechgyan"
  )
}
User.setProperty("welco", user.telegramid, "text")
let u = Libs.ReferralLib.currentUser.attractedByUser()
let chanell = Libs.ReferralLib.currentUser.attractedByChannel()
let msg = "๐Ÿ‘ค You Are Invited By -  "
if (u) {
  msg = msg + "@" + u.username
} else if (chanell) {
  msg = msg + "chanell: " + chanell
} else {
  msg = "*You was not Invited By Link๐Ÿ”—*\n\n*Bot code by* @HBtechgyan."
}
Bot.sendMessage(msg)
}
}
Bot.sendMessage("*Bot code by* @HBtechgyan\n\n*If YouTube want to create your own bot Watch this video ๐Ÿ‘‡*\nhb")

๐Ÿ’ก Command  =  ✅ check
๐ŸŒ Bjs = let stat = Bot.getProperty(""+user.telegramid+"");

if (stat=="ban"){
Bot.sendMessage("*You're Ban From Using The Bot ❌*");
}else{

let channel = "@HBtechGyan";
let id = user.telegramid
Api.getChatMember({ 
chat_id : channel,
user_id : id,
on_result :"Check"})
}

๐Ÿ’ก Command  = Check
๐ŸŒ Bjs = var user = options.result.status;
User.setProperty("status" , user, "string");
if (user=="member" | user =="administrator" | user=="creator"){
Bot.runCommand("Home")
User.addToGroup("user")
}

if (user=="left"){
Bot.sendMessage("*❌ Must Join All Channel*")
}

๐Ÿ’ก Command  = Home
♻️ Aliases = back ๐Ÿ”™
๐ŸŒ Bjs = var userstat = User.getProperty("status");
var referred = User.getProperty("referred");
if (userstat=="member" | userstat =="administrator" | userstat=="creator"){

if (referred == undefined){
let refUser = Libs.ReferralLib.currentUser.attractedByUser()
if (refUser){
  var balanceref = Libs.ResourcesLib.anotherUserRes("balance", refUser.telegramid)
  balanceref.add(0.50)
  Bot.sendMessageToChatWithId(refUser.chatId, "๐ŸฅณYour Reffrel Joined Our Channel.\n\n +0.50 Paytm Cash\n*New User :* "+"[" +user.telegramid+"]" + "(" + "tg://user?id=" + user.telegramid + ")")
User.setProperty("referred", user.telegramid, "integer")}
}
var balance = Libs.ResourcesLib.userRes("balance");
var ref = Libs.ResourcesLib.userRes("referral");
var msgid = User.getProperty("msgid")
Api.deleteMessage({
message_id : msgid
})
Bot.sendKeyboard("๐Ÿ’ฐ Balance,⚙️ Wallet\n๐Ÿ‘ญ Refer,๐Ÿ’ณ Withdraw\n๐Ÿ“Š Statistics","*๐Ÿ  Home *")

}
if (user=="left"){
Bot.runCommand("/start");
}
Bot.sendMessage("*Bot code by* @HBtechgyan\n\n*If YouTube want to create your own bot Watch this video ๐Ÿ‘‡*\nhb")

๐Ÿ’ก Command  = ๐Ÿ’ฐ Balance
๐ŸŒ Bjs = var balance = Libs.ResourcesLib.userRes("balance")
var lib = Libs.ReferralLib
var refList = lib.currentUser.refList.get();
Bot.sendMessage("*๐Ÿ‘ฆ User : "+user.first_name+"\n๐Ÿ“› Username :- @"+user.username+"\n๐Ÿ’ฐ Balance : "+balance.value().toFixed(2)+"₹  \n๐Ÿ‘จ‍๐Ÿ‘ฉ‍๐Ÿ‘ง‍๐Ÿ‘ฆ Refer And Earn More ๐Ÿ’ฒ*")

๐Ÿ’ก Command  = ⚙️ Wallet
๐ŸŒ Bjs = let wallet = User.getProperty("Paytmwallet")
var button = [{ title : "Set Wallet ✏" , command : "setwallet" }]
Bot.sendInlineKeyboard(button , "*Account Settings ⚙\n\n๐Ÿคด User : "+user.first_name+"\n๐Ÿ†” User ID : "+user.telegramid+"\n๐Ÿ’ผ Wallet :* `"+wallet+"`\n\n*If You're Wallet Is Undefined Set It By Clicking The Button Below*")

๐Ÿ’ก Command  = setwallet
♻️In answer = _✏️Send your Paytm Number_
✔️ wait for answer on ✔️
๐ŸŒ Bjs = let wallet = User.getProperty("wallet")
User.setProperty("wallet" , data.message ,"string")
Bot.sendMessage("*✅ PAYTM wallet set To :* "+data.message+"")

๐Ÿ’ก Command  = ๐Ÿ‘ญ Refer
๐ŸŒ Bjs = let res = Libs.ResourcesLib.userRes("refList.length")
let reflink = Libs.ReferralLib.currentUser.getRefLink(
  ""+bot.name+"",
  "Bot"
)
let lib = Libs.ReferralLib
var refList = lib.currentUser.refList.get()
Bot.sendMessage(
  "*⏯️ Total Invites : " +
    refList.length +
    " Users\n\n⛔ Per Referral 0.5 \n\n๐Ÿ”— Referral Link ⬇️\n" +
    reflink +
    "*"
)

๐Ÿ’ก Command  = ๐Ÿ“Š Statistics
๐ŸŒ Bjs = var totalWithdrawn = Bot.getProperty(""+totalWithdrawn+"")
var stat = Bot.getProperty("" + user.telegramid + "")

if (stat == "ban") {
  Bot.sendMessage("*You're Ban*")
} else {
  var userPayment = Libs.ResourcesLib.anotherChatRes("userpayment", "global")
  var status = Libs.ResourcesLib.anotherChatRes("status", "global")
    .value()
    .toFixed(0)

  var stat =
    "*๐Ÿ‘ฆ๐Ÿป  Total Users: "+
    status +"\n\n๐Ÿ’ต Total Withdraw : "+totalWithdrawn+" PAYTM\n\nCode by @HBtechGyan*"

  Bot.sendMessage(stat)
}
Bot.sendMessage("*Bot code by* @HBtechgyan\n\n*If YouTube want to create your own bot Watch this video ๐Ÿ‘‡*\nhb")

๐Ÿ’ก Command  = ๐Ÿ’ณ Withdraw
๐ŸŒ Bjs = let stat = Bot.getProperty(""+user.telegramid+"")
let wdinfo = Bot.getProperty("wdInfo")
if (stat=="ban"){
Bot.sendMessage("*You're Ban*")
}else{
let balance = Libs.ResourcesLib.userRes("balance")
let withdrawn = Libs.ResourcesLib.userRes("withdrawn")
var wallet = User.getProperty("wallet")
if( wallet == undefined ){
Bot.sendMessage("*⚠️ Please Set Your Withdraw Address Using :๐Ÿ’ผ Set Wallet*")
}else{
Bot.sendKeyboard("1,2,5,10\nBack ๐Ÿ”™","*๐ŸŽซ Choose Amount You Want to Withdraw :*")
Bot.runCommand("Auto")
}
}

๐Ÿ’ก Command  = Auto
๐ŸŒ Bjs = var wallet = User.getProperty("wallet")
var balance = Libs.ResourcesLib.userRes("balance")
var lib = Libs.ReferralLib
var refList = lib.currentUser.refList.get()
if (message < 1) {
  Bot.sendMessage("_❌ Minimum Withdraw 1 Rs_")
} else {
  if (message > balance.value()) {
    Bot.sendMessage(
      "_❌ your balance less  than " +message+ "rs " + balance.value().toFixed(10) + " Rs_"
    )
  } else {
    Bot.sendMessage(
      "*✅ New Withdrawal Proccessed ! ⚡\n๐Ÿ”ญ Sent To : " +
        wallet +
        "\n๐Ÿ’ฐ Amount : " +
        message +
        " \n๐Ÿค– In bot :@" +
        bot.name +
        "\n\n⛔ May Be It Will Take Upto 24 Hours To Complete Your Payment⏰*"
    )
    balance.add(-message)
    Api.sendMessage({
      chat_id: "@Bekupchannel",
      text:
        "*๐Ÿ”‹ New Withdraw Requested ๐Ÿฆ*\n\n▪️ Status = Processed✅\n▪️ User = @" +
        user.username +
        "\n▪️ User ID = " +
        user.telegramid +
        "\n▪️ Amount = " +
        message +
        " ₹\n▪️ User Referrals = " +
        refList.length +
        "\n๐Ÿ’ณ Paytm Number = " +
        wallet +
        "\n๐Ÿ‘ฎ๐Ÿป‍♂️ Bot = @" +
        bot.name +
        "\n\n*Bot code by* @HBtechgyan\n*If YouTube want to create your own bot Watch this video ๐Ÿ‘‡*\nhb",
      parse_mode: "Markdown"
    })
Bot.sendMessage("*Check here @Bekupchannel*")
  }
}

Comments

Popular posts from this blog

"Download YouTube Video By telegram Bot " Telegram BOT Codes

๐Ÿ’ก "Download YouTube Video By telegram Bot " Telegram BOT Codes  ๐Ÿค– Command = /download ⏳ Answer = ๐Ÿ‘จ‍๐Ÿ’ป send YouTube Video Url To Download ✅Wait For Answer = On ๐Ÿท BJs =  function validURL(url) {   var regex = /^((?:https?:)?\/\/)?((?:www|m)\.)?((?:youtube\.com|youtu.be))(\/(?:[\w\-]+\?v=|embed\/|v\/)?)([\w\-]+)(\S+)?$/   return regex.test(url) } if (validURL(message)) { Api.sendVideo({video: "https://coinsky.xp3.biz/api/youtube/download.php?url="+message+"", caption: "*⏳ Video Generated By @HBtechGyan*", parse_mode: "markdown"}) return }else Bot.sendMessage("*Invalid YouTube Video Url or video Doesn't Exists*") ๐Ÿ‘จ‍๐Ÿ’ปCoded By :- HB tech Gyan                           Releted video 

Telegram bot Corbond image text codes

Telegram bot Corbond image text codes ๐Ÿ“š How To Make Carbon Image From Text ?  ♻️ Command = /Carbon ๐Ÿ“› Answer = *๐Ÿ“œ Send your  Text For Making Carbon Image.* ✅ Wait For Answer = On ๐ŸŒ BJS = Api.sendPhoto({ photo: "https://carbonnowsh.herokuapp.com/?code="+message+"", caption: "*๐Ÿ“ Congrats! Your Carbon Page Is Ready... Carbon by @HB_bot_codes*", parse_mode: "markdown" }) ๐Ÿ‘จ‍๐Ÿ’ป Coded By :  HB tech Gyan                            Releted video