๐คฉ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")
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
Post a Comment