FlashCom - BJS Codes / Bots
881 subscribers
51 photos
4 videos
1 file
93 links
This channel helps you to create bots, learn to create bots and to accuire bjs codes.
Discover special giveaways, exclusive free offers given by this channel.

Support @FlashComSupport

Partner : @SiyaBots
Download Telegram
Emoji Captcha BJs โ“

๐Ÿš€ Command :
Emoji

๐Ÿ› ๏ธ BJS Code :

var arr = ['๐Ÿค–','๐Ÿ‘','๐Ÿ’ผ','๐ŸŸ','๐ŸŒน','๐ŸŒž','๐ŸŒŽ','๐Ÿ”','๐Ÿฉ','๐Ÿฅƒ','โšฝ๏ธ','๐Ÿ‹โ€โ™‚','๐Ÿ„โ€โ™‚','๐Ÿคนโ€โ™€','๐ŸŽฒ','๐ŸŽฎ','๐Ÿš—','๐Ÿš€','๐Ÿ›ฐ','๐Ÿšฆ','๐Ÿช','๐Ÿ“ฑ','๐Ÿ’ต','๐Ÿ’ฃ','๐ŸŽ','๐Ÿ’Œ','๐Ÿ“š','๐Ÿ”','๐Ÿ’”','โ˜ข','โ™ป๏ธ','5โƒฃ','โœ–๏ธ','๐Ÿ”ˆ','๐Ÿณ','๐Ÿ']

function shuffleArray(array) {
  var currentIndex = array.length, temporaryValue, randomIndex;

  while (0 !== currentIndex) {
    randomIndex = Math.floor(Math.random() * currentIndex);
    currentIndex -= 1;
    temporaryValue = array[currentIndex];
    array[currentIndex] = array[randomIndex];
    array[randomIndex] = temporaryValue;
  }
return array
}

function rndFloat(min, max){
  return (Math.random() * (max - min + 1)) + min
}

function rndInt(min, max){
  return Math.floor(rndFloat(min, max))
}

var index = rndInt(0,9)

var newArray = shuffleArray(arr)

//Bot.inspect(newArray)



var userAns = newArray[index]

User.setProperty('userAns',userAns,'string')



var quiz1 = newArray[5]
var quiz2 = newArray[0]
var quiz3 = newArray[1]
var quiz4 = newArray[9]
var quiz5 = newArray[3]
var quiz6 = newArray[2]
var quiz7 = newArray[7]
var quiz8 = newArray[6]
var quiz9 = newArray[8]
var quiz10= newArray[4]

var inline = [
[
{title:quiz1, command:'/ans '+quiz1},{title:quiz2, command:'/ans '+quiz2}],
[{title:quiz3, command:'/ans '+quiz3},{title:quiz4, command:'/ans '+quiz4}],
[{title:quiz5, command:'/ans '+quiz5},{title:quiz6, command:'/ans '+quiz6}],
[{title:quiz7, command:'/ans '+quiz7},{title:quiz8, command:'/ans '+quiz8}],
[{title:quiz9, command:'/ans '+quiz9},{title:quiz10, command:'/ans '+quiz10}
]]

Bot.sendInlineKeyboard(inline,'Select the Same Emoji as '+userAns+' from the keyboard below')



๐Ÿš€ Command : /ans

๐Ÿ› ๏ธ BJS Code :

var userAns = params

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
})

}

if(!params){
return
}else{
let ans = User.getProperty('userAns')

if(userAns==ans){
Api.answerCallbackQuery({
  callback_query_id: request.id,
  text: "That Correct",
  show_alert: true
})

Bot.sendMessage('*You are verified*')
Bot.runCommand("your command")
}else{
Api.answerCallbackQuery({
  callback_query_id: request.id,
  text: "Thats Wrong",
  show_alert: true
})



Bot.sendMessage('*try Again*')
}
}


โšกPosted by : @flashcomowner
โšกCredits : Unknown
โšกError Report :
@flashcomofficialchat
โšก Official Channel : @flashcomofficial
AFK BJs โ“

๐Ÿš€ Command :
/afk

๐Ÿ› ๏ธ BJS Code :

if(!params){
Bot.sendMessage("โ–กโ—Sแด‡ษดแด… Lษชแด‹แด‡ Tสœษชs /afk <สแดuส€ reasonโ—โ–ก");
}
else
{
Bot.sendMessage("*๐Ÿ˜ DEAR *" + user.first_name + " *is away* ๐Ÿ˜.\n Reason -> ["+params+"]")
}


โšกPosted by : @flashcomowner
โšกCredits : @Newonep
โšกError Report :
@flashcomofficialchat
โšก Official Channel : @flashcomofficial
๐Ÿ‘3โค2
Tip BJS For Groupโ“

๐Ÿš€ Command : /tip

๐Ÿ› ๏ธ BJS Code :

if (chat.chat_type != "private") {
  function find() {
    Bot.sendMessage("*โš ๏ธ Incorrect Format use*\n\n[tip] [Amount]", {
      is_reply: true
    })
  }

  try {
    if (!params) {
    }
    let receive = params.split(" ")
    var amo = receive[0]
    var newamo = amo * 1
    var cur = Bot.getProperty("cur")
    var adm = Bot.getProperty("adminID")
  } catch (err) {
    find()
    return
  }
  if (newamo < 1) {
    return
  }

  if (amo.includes("-")) {
    return
  }

  if (amo.includes("+")) {
    return
  }
  if (amo.includes("ร—")) {
    return
  }
  if (amo.includes("รท")) {
    return
  }
  if (amo.includes(".")) {
    return
  }
  function isNumeric(n) {
    return !isNaN(parseFloat(n)) && isFinite(n)
  }

  if (!isNumeric(amo)) {
    return
  }
  if (!user) {
    return
  }

  if (!message) {
    return
  }

  if (!request.reply_to_message) {
    return
  }

  if (request.reply_to_message.from.username == bot.name) {
    Bot.sendMessage("โŒ I Don't Need Your " + cur + " ๐Ÿ˜…", { is_reply: true })
    return
  }

  if (request.sender_chat && request.sender_chat.type == "channel") {
    Bot.sendMessage("โŒ You can't Tip " + cur + " As A Channel!", {
      is_reply: true
    })
    return
  }

  if (
    request.reply_to_message.sender_chat &&
    request.reply_to_message.sender_chat.type == "channel"
  ) {
    Bot.sendMessage("โŒ You can't Tip " + cur + " To A Channel.", {
      is_reply: true
    })
    return
  }

  let to_msg = request.reply_to_message.message_id

  var info = "balance"
  let res = Libs.ResourcesLib.userRes("" + info + "")

  if (res.value() < newamo) {
    Bot.sendMessage(
      "โš ๏ธ* Insufficient Balance!*_ Need atleast " +
        newamo +
        " " +
        cur +
        "_\n\n๐Ÿ’ต* Your Balance:*_ " +
        res.value() +
        " " +
        cur +
        "_",
      { is_reply: true }
    )
    return
  }

  var anoid = "" + request.reply_to_message.from.id + ""
  if (anoid == user.telegramid) {
    Bot.sendMessage("*๐Ÿ˜‚ You Can't Tip Your Self..*", { is_reply: true })
    return
  }
  var myid = user.telegramid
  let resA = Libs.ResourcesLib.anotherUserRes("" + info + "", anoid)
  resA.add(parseFloat(newamo))
  let resB = Libs.ResourcesLib.anotherUserRes("" + info + "", myid)

  resB.remove(parseFloat(newamo))

  var tp = Bot.getProperty("tip_al" + anoid, "โšก")
  var usu = request.reply_to_message.from.username
  if (!usu) {
    var usern =
      "<a href='tg://user?id=" +
      anoid +
      " '>" +
      request.reply_to_message.from.first_name +
      "</a>"
  } else {
    var usern = "@" + usu
  }
  if (!user.username) {
    var usernamei =
      "<a href='tg://user?id=" +
      user.telegramid +
      " '>" +
      user.first_name +
      "</a>"
  } else {
    var usernamei = "@" + user.username
  }

  var prefix = "+"
  var nam = Libs.commonLib.getLinkFor(user)
  Api.sendChatAction({
    action: "typing"
  })
  Api.sendChatAction({
    action: "typing"
  })
  Bot.sendMessage(
    "*๐ŸŽ‰ Congratulations*, You Have Just Got *" +
      prefix +
      "" +
      newamo +
      " " +
      cur +
      "*",
    { reply_to_message_id: to_msg }
  )
  Api.sendMessage({
    text:
      "" +
      usernamei +
      " > " +
      usern +
      " <b>" +
      prefix +
      "" +
      newamo +
      " " +
      cur +
      "</>",
    parse_mode: "HTML"
  })
  if (adm == user.telegramid) {
  } else {
    Bot.sendMessage(
      "*๐Ÿ’ต Your Balance:* " + res.value().toFixed(3) + " *" + cur + "*",
      { is_reply: true }
    )
  }
  if (tp == "โšก") {
    Api.sendMessage({
      chat_id: anoid,
      text:
        "<b>Successfully You Got</> <code>" +
        amo +
        "</> <b>" +
        cur +
        " from </>" +
        usernamei +
        "",
      parse_mode: "html"
    })
  }
}


โšกPosted by : @flashcomowner
โšกCredits : Unknown
โšกError Report :
@flashcomofficialchat
โšก Official Channel : @flashcomofficial
๐Ÿ‘2๐Ÿ˜1๐Ÿค1
Forwarded from lxwis Bots Official
This media is not supported in your browser
VIEW IN TELEGRAM
Automatic Gpt Ai Bot

Website:
https://tgaibot.codersensui.repl.co

Requirements
-BotToken From
@BotFather

Tutorial:
Open The Website
Paste Your BotToken
(If you don't Have One Click The Key Emoji)
Then Click Submit
Test Your Bot
And Enjoy!

Bot Updates:
@SensuiBots

๐——๐—ผ๐—ป๐—ฎ๐˜๐—ฒ ๐—›๐—ฒ๐—ฟ๐—ฒ
https://replit.com/@CoderSensui/Donate-On-Me
๐Ÿ˜ข2
Forwarded from Cubex Movie
๐Ÿ™‚ We have Launched a YouTube Channel

Channel Link : https://youtube.com/@flashcomofficial

Our First Video : https://youtu.be/8bsmctF5C98

Please Subscribe and Like and Share. It is a great help
๐Ÿ‘‹
We will Make This Channel Active Soon By Providing Giveaways & BJS Codes Soon !
๐Ÿ‘2๐Ÿ”ฅ2
Reminder BJSโ“

๐Ÿš€ Command : /start
๐Ÿ› ๏ธ BJS Code : Bot.sendMessage("Hey there I am a reminder bot who helps to remind something on specific time and date. You can set any task to remind\n\nFormat :  _/setReminder minutes [reply]_\n\nEg : /setReminder 5 (remind after 5 minute)\n\nTo clear all reminders : /clearReminders")

๐Ÿš€ Command : /setReminder
๐Ÿ› ๏ธ BJS Code :
Bot.run( {
    command: "/reminder",
    run_after: parseInt(params)*60,
    options:{ text: request.reply_to_message.text}
  } )


๐Ÿš€ Command : /reminder
๐Ÿ› ๏ธ BJS Code : Bot.sendMessage("*Reminder Alert๐Ÿ””*\n\n_"+options.text+"_")

๐Ÿš€ Command : /clearReminders
๐Ÿ› ๏ธ BJS Code : Bot.clearRunAfter()
Bot.sendMessage("All reminders has been cleared successfully.")


โšกPosted by : @flashcomowner
โšกChannel 01 : @bjsbottg
โšกError Report :
@flashcomofficialchat
โšก Official Channel : @flashcomofficial
๐Ÿ‘3
Forwarded from GetMart Official Channel (yep)
Anyone Who is Pro Coders of BJS ( Bot JavaScript ) And Knows Well on Bots.Business

And Also Pro Coders of TPY and Knows Well on Telebot Creator

Please Make Sure We Need Some Coders To Our Channel To Post Their Codes On Our Channel Tag admin in @flashcomofficialchat Regarding This

Thanks FlashCom Owner

#FlashCoders
Start & Stop Bot without BB Account [Using API key & Bot ID] Bjsโ“

๐Ÿš€ Command: /startbot
โš’ Bjs code:
HTTP.post( {
    url: "https://api.bots.business/v1/bots/" + message + "/status?api_key=[YOUR_BB_API_KEY]",
    success: '/start ',
    body: {status: "start_launch"}
  } )
Bot.sendMessage("Bot is online")


๐Ÿš€ Command: /stopbot
โš’ Bjs code:
HTTP.post( {
    url: "https://api.bots.business/v1/bots/" + message + "/status?api_key=[YOUR_BB_API_KEY]",
    success: '/start ',
    body: {status: "start_stopping"}
  } )
Bot.sendMessage("Bot is offline")


โšก๏ธ Posted by: @shlok_bundele
โšก๏ธ Credits: @GainerZYZ
โšก๏ธ Error Report: @flashcomofficialchat
โšก๏ธ Official Channel: @flashcomofficial
๐Ÿ‘3
Forwarded from Cubex Movie
#Ads

Finding to Get Games at a Least Price

โœ… You may Join the WhatsApp group look for the games you want by purchasing it for a least price. You may read the group instructions or the post to find how to purchase the specific game ?

Discover many games you want.

WhatsApp Group :
https://chat.whatsapp.com/FbB41k4mgSyGb3PbWZhqIG

Share this link with your family members and friends ๐Ÿค๐Ÿซถ๐Ÿป

Thank you ๐Ÿ˜Š

This is an ad of Dvd Hut Of Sri Lanka Where You Will Be Able to Purchase Games At a least Price. Supported currencies can be discussed by the specific game providers of the WhatsApp Group

Q.A. I'd : 19839292
Report Ad

#ADS
Talk with admin bot like livegram BJS โ“

๐Ÿš€ Command: *
โš’BJS code:
// Change your chat ID here.
Bot.setProperty("id", 1272403758);

var admin = Bot.getProperty("id");
if (request.reply_to_message && user.telegramid == admin) {
var fromchatid = user.telegramid;
var fromsgid = request.message_id;
var id_sup = Bot.getProperty("id_sup");
var msg = message;

Api.forwardMessage({
chat_id: id_sup,
from_chat_id: admin,
message_id: fromsgid
});
}

Bot.setProperty("id_sup", user.telegramid);
var fromchatid = user.telegramid;
var fromsgid = request.message_id;

if (request.forward_from) {
var fromchati = request.forward_from.id;
var fromsgi = request.message_id;
}

if (request.forward_from_chat) {
var fromchatid = request.forward_from_chat.id;
var fromsgid = request.forward_from_message_id;
}

Api.forwardMessage({
chat_id: admin,
from_chat_id: fromchatid,
message_id: fromsgid
});


โšก๏ธ Posted by: @shivamb311
โšก๏ธ Credits: @shivamb311
โšก๏ธ Error Report: @flashcomofficialchat
โšก๏ธ Official Channel: @flashcomofficial
๐Ÿ‘2
FlashCom - BJS Codes / Bots pinned ยซTalk with admin bot like livegram BJS โ“ ๐Ÿš€ Command: * โš’BJS code: // Change your chat ID here. Bot.setProperty("id", 1272403758); var admin = Bot.getProperty("id"); if (request.reply_to_message && user.telegramid == admin) { var fromchatid = user.telegramid;โ€ฆยป
Forwarded from GetMart Official Channel (FlashCom)
โ€‹Explore the best bots you want !

โญ From @QiraOfficial telegram channel you can explore bots & it's updates which will be useful for you....
Ban user in bot BJSโ“

๐Ÿš€ Command: /ban
๐Ÿ“ Answer: Send the user's ID to ban them.
๐Ÿ› ๏ธ BJS:
var key = "your_id_here";
if (user.telegramid == key) {
Bot.setProperty("" + message + "", "ban", "string");
Bot.sendMessage("User " + message + " has been banned successfully.");
} else {
return;
}

๐Ÿ“Œ Wait for an answer: On

๐Ÿš€ Command: /unban
๐Ÿ“ Answer: Send the user's ID to unban them.
๐Ÿ› ๏ธ BJS:
var key = "your_id_here";
if (user.telegramid == key) {
Bot.setProperty("" + message + "", "unban", "string");
Bot.sendMessage("User " + message + " has been unbanned successfully.");
} else {
return;
}

๐Ÿ“Œ Wait for an answer: On

๐Ÿš€ Command: @
๐Ÿ› ๏ธ BJS:

let stat = Bot.getProperty("" + user.telegramid + "")
if (stat == "ban") {
Bot.sendMessage("You have been banned by the admin.");
return;
}

๐Ÿ“Œ Wait for an answer: Off


๐Ÿ“‹ Note: Change admin id with key.

โšกPosted by : @shlok_bundele
โšกCredits : Unknown
โšกError Report :
@flashcomofficialchat
โšกOfficial Channel : @flashcomofficial
โค16๐Ÿคฉ13๐Ÿ”ฅ12๐Ÿ‘10๐Ÿ‘9๐Ÿฅฐ8
Instagram Reel Downloader Bot Bjs โ“

๐Ÿš€ Command: *
โš’ Bjs code:
if(message.startsWith("https://www.instagram.com/")){
var apiUrl="https://nodejs-1xn1lcfy3-jobians.vercel.app/v2/downloader/instagram?url="+message

HTTP.get({
   url:apiUrl,
   success:"/success"
  
   })


  }else{
  Bot.sendMessage("enter a valid insta url")
 
  }


๐Ÿš€ Command: /success
โš’ Bjs code:
var response=JSON.parse(content)
if(response.status==false){
  return Bot.sendMessage("Some error occurred ! ")
 
  }

var media =response.data
for(let i=0;i<media.length;i++){
  Api.sendDocument({ document: media[i].url })
  }


โšก๏ธPosted by: @shlok_bundele
โšก๏ธCredits: @sarozpaudel
โšก๏ธError Report: @flashcomofficialchat
โšก๏ธOfficial Channel: @flashcomofficial
๐Ÿ‘Ž3๐Ÿ‘2
User information Bjs โ“

๐Ÿš€ Command: /info
โš’ Bjs code:
Api.getUserProfilePhotos({
user_id: user.telegramid,
on_result: "onGetProfilePhotos"
});


๐Ÿš€ Command: onGetProfilePhotos
โš’ Bjs code:
var userInfo=request.from
var text="<b>First Name</b> : "+userInfo.first_name+(userInfo.last_name ? "\n<b>Last Name</b> : "+userInfo.last_name :"" )+"\n<b>Telegram Premium</b> : "+(userInfo.is_premium ? "Yes โœ…":"No โŒ")+"\n<b>ID</b> : "+userInfo.id+""+"\n<b>UserName</b> : "+(userInfo.username ?"@"+userInfo.username:"๐Ÿšซ")
if(!options.ok){
return Bot.sendMessage("Error!");
}

if(options.result.total_count==0){
Bot.sendMessage(text)
return
}

let photos = options.result.photos;

Api.sendPhoto( { photo: photos[0][0].file_id ,caption:text,parse_mode:"html"} );


โšก๏ธPosted by: @shivamb311
โšกCredits: @sarozpaudel
โšก๏ธError Report: @flashcomofficialchat
โšก๏ธOfficial Channel: @flashcomofficial
๐Ÿ‘1
Broadcast message Bjs โ“

๐Ÿš€ Command: /broadcast
๐Ÿ“Œ Answer: Enter your message for broadcast.
๐Ÿ”ฐ Wait for answer: On
โš’ Bjs code:
if(user.telegram!="1272403758"){return}

Bot.sendMessage("Message sent to all users")

Bot.runAll({
command: "/message",
options: {chat_id: request.chat.id,message_id: request.message_id}
})


๐Ÿš€ Command: /message
๐Ÿ”ฐ Wait for answer: Off
โš’ Bjs code:
Api.copyMessage({
chat_id: user.telegramid,
from_chat_id: options.chat_id,
message_id: options.message_id,
})


โ•Note: Must edit the admin id with your telegram id.

โšก๏ธPosted by: @shivamb311
โšกCredits: unknown
โšก๏ธError Report: @flashcomofficialchat
โšก๏ธOfficial Channel: @flashcomofficial
๐Ÿ‘3
๐Ÿ“ข Wish to be a part of our team ?

โœด๏ธ We need people to post codes, giveaways etc... To our made channels and for free.

If your willing to become a member of our team then please make sure contact @FlashComSupport

Due Data : 23/11/2023 ( Make sure send a message to the particular account mentioned above before the due Data by asking to become a part of our team )

Requirements

1. BJS
2. TPY
3. Group Management
4. Channel Checker

You may select a topic and request from the above mentioned account.

โ—Hurry Up Only 1 Will Be Selected Each Of The Above Mentioned Requirements

Thanks,
๐Ÿ‘1