More coming wait half and hour because I have some work
Command :-
Bjs :-
uploadBjs :-
if (!request.photo[0]) {
Bot.sendMessage("*Please Send A Photo Only!*")
Bot.runCommand("/start")
return
}
if (request.photo[3]) {
Api.getFile({ file_id: request.photo[3].file_id, on_result: "/photolinksuc" })
return
}
if (request.photo[2]) {
Api.getFile({ file_id: request.photo[2].file_id, on_result: "/photolinksuc" })
return
}
if (request.photo[1]) {
Api.getFile({ file_id: request.photo[1].file_id, on_result: "/photolinksuc" })
return
}
if (request.photo[0]) {
Api.getFile({ file_id: request.photo[0].file_id, on_result: "/photolinksuc" })
return
}π1
πCommand:-
Bjs:-
/photolinksucBjs:-
Bot.sendMessage("Uploading . . . . . . .",
{
on_result: "Edited", is_reply: true}
);
var limk =
"https://api.telegram.org/file/bot" +
bot.token +
"/" +
options.result.file_path +
""
HTTP.post({url:"https://api.imgbb.com/1/upload?key=10d3d7a469215f98ec6b8e022c7d6e7c&image="+limk+"", success:"/onsup"})π1
πCommand :- /onsup
BJS :-
BJS :-
var r = JSON.parse(content)
var s = r.data.url
let msg_id = options.result.message_id;
Bot.editMessage("Downloading Completed. Now I'am Uploading to Photo...",msg_id)
Bot.editMessage("Downloading Completed. Now I'am Uploading to Photo...",msg_id)
Bot.editMessage("Downloading Completed. Now I'am Uploading to Photo...",msg_id)
Bot.editMessage(s,
msg_id,
{disable_web_page_preview: true})
var button = [[{title:"Tap Here to Rate β€οΈ",command:"Rate"}]]
Bot.sendInlineKeyboard(button,"*Please Rate Our Bot so that we can know How was your Experience π*")π1
Command:- Rate
Bjs:-
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
})
}
var alreadysent = User.getProperty("alreadysent")
if(alreadysent){
Bot.sendMessage("You Already Rated Thanks β€οΈ")
return}
var button = [[{title :"β€β€β€β€β€",command: "/rate π π π π π"}],[{title : "π§‘π§‘π§‘π§‘",command :"/rate π π π π"}],[{title:"πππ",command:"/rate πππ"}],[{title:"ππ",command:"/rate ππ"}],[{title:"π€",command:"/rateπ"}]]
Bot.sendInlineKeyboard(button,
"*π€ Please Rate Us : @"+ bot.name + "*")Command:- /rate
Bjs :- var alreadysent = User.getProperty("alreadysen")
if(alreadysent){
Bot.sendMessage("*π« You Heve Already Rated\n\nWant to see your Rating, Join Here :- @your*")
return}
Api.sendMessage({
chat_id: "@yourchannalename",
text: "*β€οΈ Thanks for your Feedback β€οΈ\n\nπ€ Name : - "+user.first_name+" \nπ¨βπ»User Id - "+user.telegramid+"\nπ¬User name - @"+user.username+"\nβοΈBot - @"+bot.name+"\nπRating " + params + "*",parse_mode: "Markdown"
})
Api.answerCallbackQuery({
callback_query_id: request.id,
text: "π Thanks For Rating Us π",
show_alert: true })
Bot.sendMessage("*β€οΈ Thanks For Rating Us β€οΈ\n\n Want to see your Rating π, Join Here :- @mohitallbotsproofs*")
User.setProperty("alreadysen",".")
Bjs :- var alreadysent = User.getProperty("alreadysen")
if(alreadysent){
Bot.sendMessage("*π« You Heve Already Rated\n\nWant to see your Rating, Join Here :- @your*")
return}
Api.sendMessage({
chat_id: "@yourchannalename",
text: "*β€οΈ Thanks for your Feedback β€οΈ\n\nπ€ Name : - "+user.first_name+" \nπ¨βπ»User Id - "+user.telegramid+"\nπ¬User name - @"+user.username+"\nβοΈBot - @"+bot.name+"\nπRating " + params + "*",parse_mode: "Markdown"
})
Api.answerCallbackQuery({
callback_query_id: request.id,
text: "π Thanks For Rating Us π",
show_alert: true })
Bot.sendMessage("*β€οΈ Thanks For Rating Us β€οΈ\n\n Want to see your Rating π, Join Here :- @mohitallbotsproofs*")
User.setProperty("alreadysen",".")
π1
π2
ADVANCE BOT CODERS
Need 1 Day 1 Withdraw Bot (autopay)
Ye
bot chahiye kisi ko
bot chahiye kisi ko
Advanced Chat Bot π BJS
ββββββββββ
π Here is the Code π
ββββββββββ
β€ Command :- βοΈ Send Msg
π BJS :- let Ask = User.getProperty("Ask")
var button = { title : "βοΈ Send Msg " , command : "Msg" }
Bot.sendInlineKeyboard(button , "π« Last Message = "+Msg+"")
ββββββββββββββ
β€ Command :- Msg
π Answer :- βοΈ You Can Chat With Name By This Bot. Send Msg Bro π
β
Wait for Answer :- on
π BJS :- let Ask = User.getProperty("Ask")
User.setProperty("Ask" ,message ,"string")
Bot.sendMessage("π© Message Sent To Ravan Wait Some Time = "+message+"")
Bot.sendMessageToChatWithId(Your I'd, "π© New Message From User π©
π€΄π» User = "+user.first_name+"
π Message = "+message+"
π° TG I'd = "+user.telegramid+"")
π This Code for User Want to Send π This BJ's for Answering
β€ Command :- /CWU
π BJ'S :- if (user.telegramid == YOUR ID ) {
Bot.runCommand("/CWU2")
} else {
Bot.sendMessage("You're not the admin")
}
ββββββββββββββββ
β€ Command :- /CWU2
π Answer :- π User I'd. You want to send Msg
β
WAIT FOR ANSWER = ON
π BJ's :- if (user.telegramid == YOUR ID ) {
let msg = message
Bot.run({
command: "/CBU3",
options: { tgid: msg }
})
} else {
Bot.sendMessage("LOL U Not My Master π")
}
ββββββββββββββββ
β€ Command :- /CBU3
π Answer :- Send Msg For The User π€©
β
Wait for Answer :- on
π BJ's :- if (user.telegramid == YOUR ID ) {
let msg = message
let tgid = options.tgid
Bot.sendMessageToChatWithId(tgid, "Sorry For Waiting. Your Reply From Your Name π€
" + msg + "")
Bot.sendMessage("Message Sent to The User π₯")
} else {
Bot.sendMessage("LOL π€£YOU ARE NOT MY MASTER")
}π Here is the Code π
π2
π2β€1
Guys konsa bot chahiye
π1π₯°1π1
ADVANCE BOT CODERS
Ye codes chahiye kya??
Bet n earn wala
Forwarded from Coding hub (π£α΄κ±κ±ΙͺΚΚα΄ β (Coder))
π Command - Your Command
π₯BJS :-
πΉ Command - /ondart
π₯ BJS :-
π Coded By - @Possible_Coder
π₯BJS :-
var bal = Libs.ResourcesLib.userRes("balance")
var buttons = [
[
{ title: "5 INR", command: "/ondart" }
],
[{ title: "Back ", command: "/Back" }]
]
Bot.sendInlineKeyboard(
buttons,
"Here you can play darts and win more INR.\nSet the amount of your bet or choose from suggested options.\n\nThe rules are simple:\n\nIf you hit red - you win x2 of the bet.\nWhite or off - you lose the bet.\n\nAvailable balance: " +
bal.value(6).toFixed(6) +
" INR"
)πΉ Command - /ondart
π₯ BJS :-
var balance = Libs.ResourcesLib.userRes("balance")
var result = options.result.dice.value
if (6 == result) {
balance.add(10)
Bot.sendMessage("You win")
}
if (5 == result) {
balance.add(-5)
Bot.sendMessage("You lose")
}
if (4 == result) {
balance.add(-5)
Bot.sendMessage("You win")
}
if (3 == result) {
balance.add(-5)
Bot.sendMessage("You lose")
}
if (2 == result) {
balance.add(8)
Bot.sendMessage("You win")
}
if (1 == result) {
balance.add(-5)
Bot.sendMessage("You lose")
}π Coded By - @Possible_Coder
π1