FlashCom - BJS Codes / Bots
الذهاب إلى القناة على Telegram
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
إظهار المزيد880
المشتركون
لا توجد بيانات24 ساعات
-27 أيام
-2630 أيام
أرشيف المشاركات
📌 Advance Membership Check Python Code
channel_username = "@xBots_updates"
if bot.get_chat_member(channel_username, user_id).status == "left":
bot.send_message(message.chat.id, "Please join our channel to use this bot.")
bot.send_message(message.chat.id, "Join our channel here:", reply_markup=types.InlineKeyboardMarkup().add(types.InlineKeyboardButton("Join Channel", url="https://t.me/xBots_updates")))
else:
⚡️Posted on : @FlashComBjs
⚡Credits : @Tzcoder
⚡️Error Report : @FlashComBjsChat
⚡️Official Channel : @FlashComOfficial📌 Chat GPT 4 API BJS Code.❓
📜 You can create your own API ai bjs bot with this code.
🚀 Command :
/ai
⏳ Wait for answer : ✅ On
📄 Answer : How can I assist you today? If you have any questions or need help with something, feel free to ask!
🛠 BJS Code :
Api.sendChatAction({
chat_id: chat.chatid,
action: "typing"
})
Api.sendChatAction({
chat_id: chat.chatid,
action: "typing"
})
HTTP.get({ url:"https://gpt.hazex.workers.dev/?ques="+encodeURIComponent(message) +"",
success: "/success"
})
🚀 Command : /success
⏳ Wait for answer : ❌ Off
🛠 BJS Code :
var answer = JSON.parse(content).answer;
var error = JSON.parse(content).error;
if (answer) {
Bot.sendMessage(answer);
} else if ((error) == true){
Bot.sendMessage("There is an error.");
}
⚡️Posted on : @FlashComBjs
⚡API Credits : @HazexAPI
⚡️Error Report : @FlashComBjsChat
⚡️Official Channel : @FlashComOfficial
©️ This codes contents is modified and the API is switched by FlashCom you have no rights on changing the API Creditor and this Copyright Notice.📌 Send message to a bot user by telegram id with #copyMessage method BJS Code.❓
📜 You can send a message to a user using
copyMessage method which helps you in sending messages to a user of your bot with their telegram id using the bot
🚀 Command : /sendMessage
⏳ Wait for answer : ✅ On
📄 Answer : Enter the telegram ID of the user.
🛠 BJS Code :
Bot.runCommand("/sendMessage2",{ID:message});
🚀 Command : /sendMessage2
⏳ Wait for answer : ✅ On
📄 Answer : Enter your message for the user.
🛠 BJS Code :
Api.copyMessage({
chat_id: options.ID,
from_chat_id: user.telegramid,
message_id: request.message_id,
})
Bot.sendMessage("Message sent to user.");
⚡️Posted on : @FlashComBjs
⚡️Credits : @PbcAdmin
⚡️Error Report : @FlashComBjsChat
⚡️Official Channel : @FlashComOfficial📌 How To Delete Channel Message By Bot With Post LinkBJS Code❓
📜 You can delete the channel post which the bot is admins with the rights of deleting messages you can delete a message by sending it's post link.
How to setup the bot in channel ?
1. Add the bot to channel as admin.
2. Give permission to delete messages.
3. Done.
How to get post link of channel post ?
1. Go to your channel
2. Click the post
3. Click copy link
4.Then the link will be copied to your clipboard.
5. Done.
🚀 Command :
/delete
⏳Wait for answer : ✅ On
📄 Answer : Send the post link of the channel which this bot is admin.
🛠 BJS Code :
var button = [
[{title: "Delete", command: "/confirmdelete "+message}]]
Bot.sendInlineKeyboard(button,"Are you sure to delete: "+message)
🚀 Command : /confirmdelete
🛠 BJS Code :
const input=params;
const regex=/https:\/\/t\.me\/([^\/]+)\/([^\/]+)/;
const match=input.match(regex);
if(match){
const chatName=match[1];
const chatId=match[2];
Api.deleteMessage({chat_id:"@"+chatName,message_id:chatId});
Api.editMessageText({message_id:request.message.message_id,text:"The post has been deleted."})
}else{
Api.editMessageText({message_id:request.message.message_id,text:"Failed to delete the post."})
}
⚡️Posted on : @FlashComBjs
⚡️Credits : @PbcAdmin
⚡️Error Report : @FlashComBjsChat
⚡️Official Channel : @FlashComOfficialRepost from GetMart Official Channel
🫡 Here's wishing you and your family, peace, harmony, happiness, good health and prosperity on the auspicious occasion of Eid. Eid al-Adha Mubarak to you and everyone at home
Sorry for late wishes 😣
⭐️ Install these bots for free by clicking the install bot text link
1. Admin Panel Bot
https://t.me/GetMartBot?start=1084814
2. Auto Logo Generator Bot
https://t.me/GetMartBot?start=1084810
3. Bulk Poster Bot
https://t.me/GetMartBot?start=1084801
4. Bb Games Bot
https://t.me/GetMartBot?start=1154694
5. Click Bee Bot
https://t.me/GetMartBot?start=1084821
6. Chat Bot
https://t.me/GetMartBot?start=1084793
7. Join and Left Cleaner Bot
https://t.me/GetMartBot?start=1084804
8. Emoji Captcha Bot
https://t.me/GetMartBot?start=1084808
9. Ip Information Bot
https://t.me/GetMartBot?start=1084820
10. File Storing Bot
https://t.me/GetMartBot?start=1084794
11. Faucet Pay Bot (DGB)
https://t.me/GetMartBot?start=1154690
12. Global Seller Bot
https://t.me/GetMartBot?start=1084812
13. Group Welcome Bot
https://t.me/GetMartBot?start=1084805
14. Group Controller Bot
https://t.me/GetMartBot?start=1154689
15. Ip Verify Bot
https://t.me/GetMartBot?start=1084826
➫ Install more bots via @GetMartBot
📌 Advance Language Setting BJS Code❓
📜 This is an advance language setting code where to display languages which has been selected.
🚀 Command :
🇺🇸 Language
🛠 BJS Code :
const inlkey = [
[
{ text: "🇺🇸 English", callback_data: "/Set_lang EN" },
{ text: "🇪🇸 Español", callback_data: "/Set_lang ES" }
]
]
const text =
"*🇺🇸 Select The Language Of Your Preference.\n🇪🇸 Seleccione El Idioma De Su Preferencia.*"
Api.sendMessage({
text,
parse_mode: "Markdown",
reply_markup: { inline_keyboard: inlkey }
})
🚀 Command : /Set_lang
🛠 BJS Code :
let msg_id = User.getProperty("Settings_Msg_ID")
let Data = params.split(" ")
let Set_Lenguage = Data[0]
if (Set_Lenguage.includes("EN")) {
User.setProperty("Lenguage", "EN", "string")
var Text = "*🇺🇸 Language Set To English.*"
}
if (Set_Lenguage.includes("ES")) {
User.setProperty("Lenguage", "ES", "string")
var Text = "*🇪🇸 Idioma Configurado En Español.*"
}
Api.sendMessage({ text: Text, parse_mode: "Markdown" })
🚀 Command : Anything
🛠 Setup BJS Code :
//Add This On First Every Code English as default language
if(User.getProperty("Lenguage")=="EN"){ //if language is EN
// Your Code
}
if(User.getProperty("Lenguage")=="ES"){ //if language is ES
//Your Translated Code
}
🛠 Example BJS Code :
if(User.getProperty("Lenguage")=="ES"){
Api.sendMessage({ text: "Esto es español", parse_mode: "Markdown" })
}
if(User.getProperty("Lenguage")=="EN"){
Api.sendMessage({ text: "This is English", parse_mode: "Markdown" })
}
⚡️Posted on : @FlashComBjs
⚡️Credits : @CoderUnknownCredits
⚡️Error Report : @FlashComBjsChat
⚡️Official Channel : @FlashComOfficialRepost from GetMart Official Channel
⚡️ Introducing FlashCom Off-Topic Group
✤ This group is made where You can chat off topics including where you can post your ads in this group, chat with your friends or other users, other topics and even more.
✤ You can join the group by clicking the below join button
📌 Talk to Admin BJ'S Code: PRO ❓
📃 With this code user can Talk to you easy.
🚀 Command : /You own command Eg- /support
🛠 BJS Code :
Api.sendMessage({
text: "👋. Hello, You can contact us directly",
parse_mode: "Markdown",
on_result: "/onsend",
reply_markup: {
force_reply: true,
input_field_placeholder: "What can I help you"//you can change
}
})
🚀 Command :- /onsend
♻️ wait for message: On✅
🛠 Bjs Code :
var button = [
[
{
text: "Reply: " + user.first_name + "",
callback_data: "/reply " + user.telegramid + ""
}
]
]
Bot.sendMessage("*Received:* waiting for feedback.")
if (message) {
try {
Api.sendMessage({
chat_id: 6904325128,
//replace it with your own id
text: `🔔 New Message ( info )\n\n${message} `,
parse_mode: "html",
reply_markup: { inline_keyboard: button }
})
} catch (error) {
console.log("Error sending message:", error)
}
}
🔥The following is Admin Command.
🚀 Command: /reply
🛠️ BJ'S Code:
if (!params) {
Bot.sendMessage("*Params:* Empty")
return
}
var id = params
Bot.setProp("userid", id)
Api.sendMessage({
text: `Send text to ${id}`,
parse_mode: "Markdown",
on_result: "/Sendto",
reply_markup: {
force_reply: true,
input_field_placeholder: "Enter your message!"
}
})
🚀 Command: /Sendto
♻️ wait for message: On✅
🛠 Bjs Code :
var tgid = Bot.getProperty("userid")
if (tgid == undefined) {
Bot.sendMessage("User ID is undefined")
return
}
var msg = data.message
if (user.telegramid == 6904325128) {
//replace it with your own id
Api.sendMessage({
chat_id: tgid,
text: `<b>📩New message</>\n\n${msg}`,
parse_mode: "html",
disable_web_page_preview: true
})
Bot.sendMessage(`<b>🥂 Done:</> message send to ${tgid}`, {
parse_mode: "html"
})
Bot.setProperty("userid", [], "json") // Set an empty array as the value for "userid" property
return
}
Bot.sendMessage("*⚠️Access declared* ")
//code by @mrX605Tz
⚡️Posted on : @flashcombjs
⚡️Code Credits : @mrx605Tz
⚡Api Credit : @Nepcoder
⚡️Error Report : @flashcombjschat
⚡️ Official Channel : @flashcomofficial📌 How To Make The User Can Withdraw Only 1 Time In 1 Day BJS Code❓
📜 This code helps user to withdraw only one time in one day.
🚀 Command :
/withdraw
🛠️ BJS Code :
function canRun(){
var last_run_at = User.getProperty("last_withdraw");
if(!last_run_at){ return true }
var minutes = (Date.now() - last_run_at) /1000/60;
var minutes_in_day = 12 * 60
var next = minutes_in_day - minutes
var wait_hours = Math.floor(next / 60)
next -= wait_hours * 60
var wait_minutes = Math.floor(next)
var seconds = Math.floor((next - wait_minutes) * 60)
if(minutes < minutes_in_day) {
Bot.sendMessage("*📛 You Can Withdraw Only 1 Time In Day.\n\n⚠️ Come Back After "+wait_hours+" Hours "+wait_minutes+" Minutes "+seconds+" Seconds To Withdraw Again.*")
return
}
return true;
}
if(!canRun()){ return }
Bot.runCommand("📤 Withdraw")
🚀 Command 01 : Auto
🛠️ BJS Code 01 :
User.setProperty("last_withdraw", Date.now(), "integer");
📜 Note : 👆🏻 Add It In Last Of Auto Command
⚡️Posted on : @flashcombjs
⚡️Credits : @Shadab_Alam
⚡️Error Report : @flashcombjschat
⚡️Official Channel : @flashcomofficial✅ New UPI Cash Bot Launched [ OpenMoney Pe BoT ] ⚡️
🇮🇳 Link:- @OpenMoney_Pe_bot
⭐️ Bonus:- ₹1-2
❤️🔥 Per Refer:- ₹1-3
👑 Min Withdraw:- ₹10
💵 Withdraw Tax:- 20% Gst/Tax
📣 Bot Funds:- ₹1,500
❤️ Give Different Reactions Guys
Flash Id :
103283732. 🚩 Flag Ad #ADS
😍 Join Our ICC Men's T20 World Cup Official Telegram Channel:
https://t.me/T20WC2024
Flash Id :
103738272.
🚩 Flag Ad
#ADSWhat do you want FlashCom to create next ❓
-- We would like to get you opinion on what FlashCom must create next as channels, groups, bots etc.. You can suggest anything you want as per the decision we make and then your suggestions may include after the decision taken.
🤔 Just comment your idea by below comments
📌 Music 🎶 Downloader Bjs. ❓
🚀 Command :
/music
🛠 BJS Code :
var url = "https://music-api-rouge-rho.vercel.app/?songname="+message+""
HTTP.get({
url: url,
success: "/download2"
});
🚀 Command :- /download2
🛠 BJ'S :-
var musiclink = JSON.parse(content)
var music = musiclink.download_link
if (musiclink == undefined) {
Bot.sendMessage("Music 🎶 name not found.")
return
}
Api.sendDocument({
document: music,
caption:
"🎶 <b><i>Music downloaded by @" +
bot.name +
"</i></b> 🎵\n\nEnjoy the beats! 🎧",
parse_mode: "HTML"
})
⚡️Posted on : @flashcombjs
⚡️Code Credits : @mrx605Tz
⚡Api Credit : @Nepcoder
⚡️Error Report : @flashcombjschat
⚡️ Official Channel : @flashcomofficial📌 Rate Bot BJS Code❓
📜 With this code users can rate your bot.
🚀 Command :
/ratebot
🛠 BJS Code :
function getGlobalRes(res) {
return Libs.ResourcesLib.anotherChatRes(res, "global")
}
var rate1 = getGlobalRes("rate-1")
var rate2 = getGlobalRes("rate-2")
var rate3 = getGlobalRes("rate-3")
var rate4 = getGlobalRes("rate-4")
var rate5 = getGlobalRes("rate-5")
var button = [
[{ text: rate1+" 🌟", callback_data: "/rate 1" }],
[{ text: rate2+" 🌟🌟", callback_data: "/rate 2" }],
[{ text: rate3+" 🌟🌟🌟", callback_data: "/rate 3" }],
[{ text: rate4+" 🌟🌟🌟🌟", callback_data: "/rate 4" }],
[{ text: rate5+ "🌟🌟🌟🌟🌟", callback_data: "/rate 5" }]
]
Api.sendMessage({
text: "*Please Rate Our Bot*\n_Use The Buttons Below_",
parse_mode: "Markdown",
reply_markup: { inline_keyboard: button }
})
🚀 Command : /rate
🛠 BJS Code :
if (!params) {
return
}
var rated = User.getProperty("Rated")
if (rated) {
Bot.editMessage("You've Already Voted", request.message.message_id)
return
}
var globalRate = Libs.ResourcesLib.anotherChatRes("rate-" + params, "global")
globalRate.add(1)
User.setProperty("Rated", true)
Bot.editMessage(
"You Voted Us " + params + " Stars!",
request.message.message_id
)
⚡️Posted on : @flashcombjs
⚡️Credits : @CodeUnknownCredits
⚡️Error Report : @flashcombjschat
⚡️Official Channel : @flashcomofficial📌 Translate text in Bot - BJS code❓
Command:
/translate
Answer: Send any text to translate it.
⌛️ Wait for answer : ✅
if (message!=""){
Bot.sendInlineKeyboard([[ {title: "Hindi 🇮🇳", command: "/tr hi" }, {title: "Nepali 🇳🇵", command: "/tr ne"} ],[ {title: "English 🇺🇸", command: "/tr en" }, {title: "French 🇫🇷", command: "/tr fr"} ]], message)
}
🚀 Command: /tr
HTTP.post({
url:"https://google-translate1.p.rapidapi.com/language/translate/v2",
headers: { "content-type": 'application/x-www-form-urlencoded', 'Accept-Encoding':'application/gzip','X-RapidAPI-Key':'350bf0a51cmsh348c955b900fd46p15d6e3jsn037f7906d5b5','X-RapidAPI-Host': 'google-translate1.p.rapidapi.com' },
body:'q='+request.message.text+'&target='+params,
success: '/onTranslationResult',
})
Api.deleteMessage({message_id:request.message.message_id})
🚀 Command: /onTranslationResult
var r=JSON.parse(content).data.translations[0]
if(r){
Bot.sendMessage(r.translatedText+"\n\n"+"Translated from : "+r.detectedSourceLanguage+"")
}
else{
Bot.sendMessage("Some error occured.")
}
• Replace your API key. Get API key from rapidapi.com
⚡️Posted on : @flashcombjs
⚡️Credits : @sarozpaudel
⚡️Error Report : @flashcombjschat
⚡️Official Channel : @flashcomofficial📌 Iterations check with progress bar - BJS code❓
🚀 Command:
/check
var percentage = ((iteration_quota.progress / iteration_quota.limit) * 100).toFixed(2);
var totalChar = 25;
var occupied = "";
var begin = "[ ";
var end = " ] ";
for (let i = 0; i < percentage / 4; i++) {
occupied += "█";
}
var blank = "";
if (occupied.length < totalChar) {
let remaining = totalChar - occupied.length;
for (let j = 1; j <= remaining; j++) {
blank += "░";
}
}
var all = begin + occupied + blank + end;
Bot.sendMessage("Total Iterations : " + iteration_quota.limit + "\nUsed: " + iteration_quota.progress + " (" + percentage + "%) " + all, { parse_mode: "html" });
⚡️Posted on : @flashcombjs
⚡️Credits : @sarozpaudel
⚡️Error Report : @flashcombjschat
⚡️Official Channel : @flashcomofficial📌 Terabox direct link generator bot - BJS ❓
🚀 Command:
/download
📃 Answer: Send your terabox link to get it's download link.
⌛️ Wait for answer : ✅
var array=["https://www.terabox.com/s/1","https://teraboxapp.com/s/1","https://www.1024tera.com/s/1","https://nephobox.com/s/1","https://www.terabox.app/s/1","https://momerybox.com/s/1","https://terabox.com/s/1"];
var sI=null
for (let i = 0; i < array.length; i++) {
if ((message).startsWith(array[i])) {
sI = i;
break;
}
}
var shrt
if(sI !=null){
shrt=(message).replace(array[sI],'')
}else{
Bot.sendMessage("Not Valid Url !")
return
}
Api.sendMessage({text:"<b><i>Watch Online ⚡ :</i></b>\nhttps://www.terabox.com/sharing/embed?autoplay=true&resolution=1080&mute=false&surl="+shrt,parse_mode:'html'})
⚡️Posted on : @flashcombjs
⚡️Credits : @sarozpaudel
⚡️Error Report : @flashcombjschat
⚡️Official Channel : @flashcomofficial📌 Captcha verification in the bot - BJS code ❓
🚀 Command:
/verify
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('captcha')
if(userAns==ans){
Api.answerCallbackQuery({
callback_query_id: request.id,
text: "That's correct ! Now you can use the bot.",
show_alert: true
})
User.setProperty("verified", true, "boolean")
User.setProperty("captcha", null, "string");
}else{
Api.answerCallbackQuery({
callback_query_id: request.id,
text: "That's Wrong !",
show_alert: true
})
}
}
🚀 Command: @
function randomString(len){
return Math.random().toString(20).substr(2, len)
}
function rndFloat(min, max){
return (Math.random() * (max - min + 1)) + min
}
function rndInt(min, max){
return Math.floor(rndFloat(min, max))
}
if(command.name!="/verify"){
var status =User.getProperty('verified');
if(!status){
var captchaCodes=[]
for(let i=0;i<4;i++){
captchaCodes.push(randomString(6))
}
var index = rndInt(0,3)
User.setProperty('captcha',captchaCodes[index],'string')
Api.sendPhoto({photo:"https://dummyimage.com/400x100/fff/000.jpg&text="+captchaCodes[index],caption:"_*Solve the captcha first :*_",
parse_mode:"markdownv2",
reply_markup: { inline_keyboard: [
[
{ text: captchaCodes[0], callback_data: "/verify "+captchaCodes[0] },
{ text: captchaCodes[1], callback_data: "/verify "+captchaCodes[1] }
],
[
{ text: captchaCodes[2], callback_data: "/verify "+captchaCodes[2] },{ text: captchaCodes[3], callback_data: "/verify "+captchaCodes[3] }
]
]}
})
return
}
}
📹 Video Tutorial: https://youtu.be/xZ_4jIQ4qbg?si=l6uioSNT4BqJuG6O
⚡️Posted on : @flashcombjs
⚡️Credits : @sarozpaudel
⚡️Error Report : @flashcombjschat
⚡️Official Channel : @flashcomofficial
متاح الآن! بحث تيليغرام 2025 — أهم رؤى العام 
