π Command -
π° Bjs ‡οΈ
/startπ° Bjs ‡οΈ
if (request.data) {
var message_id = request.message.message_id
var chat_id = request.message.chat.id
api.deletemessage({
chat_id: chat_id,
message_id: message_id
})
}
Api.sendPhoto({
photo: "https://i.ibb.co/581B2TY/file-97.jpg", // it is picture!
caption: " * π Select Payment Methods π*\n\n",
parse_mode : "Markdown" ,
reply_markup: { inline_keyboard: [
[
{ text: "π PayTM Wallet", callback_data: "PayTM" },{text: "β οΈ Help", callback_data: "Help" }
]]}
});
var welco = User.getProperty("welco")
if (welco == undefined) {
var user_link =
"[" + user.first_name + "]" + "(" + "tg://user?id=" + user.telegramid + ")"
var status = Libs.ResourcesLib.anotherChatRes("status", "global")
status.add(2)
Bot.sendMessageToChatWithId(5331136537,
"*π New User *\n\n π¨βπΎUser = "+user.first_name+"\n\nπ³ User Id =* " +
user.telegramid +
""
)
}
User.setProperty("welco", user.telegramid, "text")π1π±1
π Command -
β οΈ Wait For Answer On π
π£οΈ In Answer -
π° Bjs ‡οΈ
PayTMβ οΈ Wait For Answer On π
π£οΈ In Answer -
*π£οΈ Send Amount You Want Pay*π° Bjs ‡οΈ
var rand = Libs.Random.randomInt(100, 100000)
function isNumeric(n) {
return !isNaN(parseFloat(n)) && isFinite(n)
}
var value = message
if (!isNumeric(value)) {
Bot.sendMessage("*π Invaild Value. Enter Only Numeric Value. Try Again*", {
is_reply: true
})
return
}
if (message <0.99) {
Bot.sendMessage("*β Min. Deposit Amount Is βΉ1\nβ Max. Deposit Amount Is βΉ99*")
return
}
if (message >99) {
Bot.sendMessage("*β Min. Deposit Amount Is βΉ1\nβ Max. Deposit Amount Is βΉ99*")
return
}
var rand = Libs.Random.randomInt(1000000000, 9000090000)
User.setProperty("id",rand,"integer")
var idd = User.getProperty("id")
User.setProperty("re", null)
User.setProperty("amount", message, "integer")
var txt =
"*π User : " +
user.first_name +
"\nπΈ Amout : " +
message +
" Rupees Only*\n*π§ Order ID * : " +
idd +
""
var button = [
[
{
title: "π³οΈ Pay ",
url:
"https://full2sms.in/gateway/processPpayment?token=Your Token&amount="+message+"&order_id=" +idd+ "&cpin=Your CPIN"
}
],
[{ title: "Paid β
", command: "/onSuc" }]
]
Bot.sendInlineKeyboard(button, txt, { is_reply: true })π2
π Command -
π° Bjs ‡οΈ
/onSucπ° Bjs ‡οΈ
var id = User.getProperty("id")
HTTP.get( {
url: "https://full2sms.in/gateway/paymentStatus?order_id="+id+"&gpin=Your GPIN",
success: "/onSuc1"
} )π Command -
π° Bjs ‡οΈ
/onSuc1π° Bjs ‡οΈ
if (content == "Invalid Order id!") {
Bot.sendMessage("No Transaction Found!")
return
}
var res = JSON.parse(content)
var re = User.getProperty("re")
var id = User.getProperty("id")
var balance = Libs.ResourcesLib.userRes("balance")
var amount = User.getProperty("amount")
var suc = res.status
if (suc == "success") {
if (re == "suc") {
Bot.sendMessage("*Amount - " +amount+ " Rupees Only\n \nπ Your Payment Has Been Successfully Sended To User π*")
} else {
Api.sendPhoto({
photo: "https://t.me/Payment_Sucessfull/2",
caption:
"π Transaction Success\nπΈ Amout : " +
amount +
"\nπOrder Id : " +
id +
""
})
User.setProperty("re", "suc", "string")
return
}
}
Bot.sendMessage("");π3
π Command -
π° Bjs ‡οΈ
/onErrorπ° Bjs ‡οΈ
if(content == "Invalid Order id!"){
balance.add("0")
Api.sendPhoto({
photo: "https://images.app.goo.gl/zVWQJHw3HJQiBVibA",
caption:
"π Transaction Failed\nπΈ Amout : " +
amount +
"\nπ Order Id : " +
id +
"\nUpdated Balance: " +
balance.value().toFixed(2) +
""
})
return}
Bot.sendMessage("Ok")π Command -
β οΈ Wait For Answer On π
π£οΈ In Answer -
π° Bjs ‡οΈ
Helpβ οΈ Wait For Answer On π
π£οΈ In Answer -
*How Can I Help You*π° Bjs ‡οΈ
Bot.sendMessage("*β
Message Sent To Admin*")
Bot.sendMessageToChatWithId(Your Id, "*β οΈ New Support Message\n\nπ€΄Name:* "+user.first_name+"\n*π‘Id:* "+user.telegramid+"\nπ¨βπ»User: @"+user.username+"\n\n*π₯ Message: * _"+message+"_",{disable_web_page_preview:true})π3
π Command -
β οΈ Wait For Answer On π
π£οΈ In Answer -
π° Bjs ‡οΈ
Replyβ οΈ Wait For Answer On π
π£οΈ In Answer -
_Send His Telegram Id_π° Bjs ‡οΈ
var admin = Your Id
Bot.getProperty("admin"+user.telegramid)
if(user.telegramid == Your Id){
User.setProperty("MsgId",message, "string")
Bot.runCommand("Msg_2")
}else{
Bot.sendMessage("You Are Not An Admin")
}π1
π Command -
β οΈ Wait For Answer On π
π£οΈ In Answer -
π° Bjs ‡οΈ
Msg_2β οΈ Wait For Answer On π
π£οΈ In Answer -
*π Send Massage*π° Bjs ‡οΈ
var admin = Your Id
Bot.getProperty("admin"+user.telegramid)
if(user.telegramid == Your Id){
var tg =
User.getProperty("MsgId")
Bot.sendMessage("*Message:* "+message+"*\n Has been sent*")
Bot.sendMessageToChatWithId(tg, "*Admin Has Messaged You\n=======================*\n\n_"+message+"_")
}else{
Bot.sendMessage("You Are Not An Admin")
}π’Sorry Guys mai ye bot nahi de paaunga kyuki bot me kuch problem aa gayi hai aap log video dekh ke bot bana lo agar koi problem aaye to comment me batana π
π3
ADVANCE BOT CODERS
π’Sorry Guys mai ye bot nahi de paaunga kyuki bot me kuch problem aa gayi hai aap log video dekh ke bot bana lo agar koi problem aaye to comment me batana π
Guys me bot khud bana ke de sakta tha par mere pass time nahi hai
π2
π Advanced Link Shortner BJS
π§ Command :-
π» BJS :-
π§ Command :-
π» BJS :-
}
π§ Command :-
π» BJS :-
β Get Your Api Key From https://slweb.tk/ !
π§ Command :-
/startπ» BJS :-
Bot.sendMessage("Welcome To SL Link Shortner Bot.\n\nSend Any Link I Will Short It")π§ Command :-
*π» BJS :-
function validURL(url) {
var regex = /^(?:(?:https?|ftp):\/\/)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)(?:\.(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)*(?:\.(?:[a-z\u00a1-\uffff]{2,})))(?::\d{2,5})?(?:\/\S*)?$/
return regex.test(url)
}
if (validURL(message)) {
HTTP.post({
url: "https://slweb.tk/api/url/add",
success: "/onDone",
body: {
url: message
},
headers: {
Authorization: "Bearer key",
"Content-Type": "application/json"
}
})
//Remove key and add your api key
} else {
Bot.sendMessage("Wrong URL\nExample : https://youtube.com",{is_reply:true})}
π§ Command :-
/onDoneπ» BJS :-
var Data = JSON.parse(content)
var Short_Link = Data.shorturl
let err = Data.error
if (err == "0") {
Bot.sendMessage("ββββββββββββ\nShort Link : "+Short_Link+"\nββββββββββββ",{is_reply:true,disable_web_page_preview:true})
return
}
Bot.sendMessage("Enter Correct Api Key,",{is_reply:true})β Get Your Api Key From https://slweb.tk/ !
π3π1π€1
Which bot need link do comment me
π2
Command: Your Command Name
Answer:
Wait For Answer On β
BJS:
Answer:
*Send Your Long Url*Wait For Answer On β
BJS:
var api = "Your API Key"
var longurl = message
var url =
"https://api-ssl.bitly.com/v3/shorten?access_token=" +
api +
"&longUrl=" +
longurl
HTTP.post({
url: url,
success: "ShortLink"
})π2
Guys pehle wale Url shortner wale Bjs me kuch problems tha ye wala use karo
Reaction dediya karo
Reaction dediya karo
β€4π2
Β©οΈAmazon Product finder BJS
ββββββββ
Commmand:
Wait for answer on
In answer:
BJ's:
πHere is the codeπ
ββββββββ
Commmand:
Β©οΈAmazon Product finderWait for answer on
In answer:
Product name BJ's:
var d = ""+encodeURI(message+"")
HTTP.get({url:"https://amazon-scraper.tprojects.workers.dev/search/"+d+"",success:"am2"})
Title: am2
BJ's :
var r = JSON.parse(content)
if(r.result == 0){
Bot.sendMessage("Not Found")
}else{
var s = r.result0.name
var im1 = r.result0.image
var price1 = r.result0.price
var pl1 = r.result0.productlink
var buynowkey = [[{text: "Buy Now!",url: pl1}]]
Api.sendPhoto({
photo: im1,
caption: "" + s + "
Price: " + price1 + "
Product link: Buy Now",parsemode: "Markdown",replymarkup: {inlinekeyboard: buynowkey}
})
var s2 = r.result1.name
var im2 = r.result1.image
var price2 = r.result1.price
var pl2 = r.result1.productlink
var buynowkey = [[{text: "Buy Now!",url: pl2}]]
Api.sendPhoto({
photo: im2,
caption: "" + s2 + "
Price: " + price2+ "
Product link: Buy Now",parsemode: "Markdown",replymarkup: {inlinekeyboard: buynowkey}
})
var s3 = r.result2.name
var im3 = r.result2.image
var price3 = r.result2.price
var pl3 = r.result2.productlink
var buynowkey = [[{text: "Buy Now!",url: pl3}]]
Api.sendPhoto({
photo: im3,
caption: "" + s3 + "
Price: " + price3 + "
Product link: Buy Now",parsemode: "Markdown",replymarkup: {inlinekeyboard: buynowkey}
})}πHere is the codeπ
π3
π Amazon Product Finder From Bot π
Reaction to dedo
Reaction to dedo
β€6
π―YT Thumbnail BJS
ββββββββ
=> Command -
=> Answer -
=> Wait For Answer - On
=>
πHere is the codeπ
ββββββββ
=> Command -
/YtThumb=> Answer -
*π Send Your YouTube Video Link To Get Thumbnail.*=> Wait For Answer - On
=>
BJS - Api.sendPhoto({
photo: message,
caption: "*π¬ Your YouTube Video Thumbnail Generated By : @"+bot.name+".*"
})πHere is the codeπ
π±1