FlashCom - BJS Codes / Bots
885 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
πŸ“Œ 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.

#BjsCode
πŸ”₯5πŸ‘2
πŸ“Œ Progress Bar BJS Code.❓

πŸ“œ
This is a progress bar which runs from 0% to 100%.

πŸš€ Command :
/loading

⏳ Wait for answer : ❌ Off

πŸ›  BJS Code :
Bot.sendMessage("Loading . . .",
{
on_result: "/load2", is_reply: false}
);


πŸš€ Command : /load2

⏳ Wait for answer : ❌ Off

πŸ›  BJS Code :
let msg_id = options.result.message_id;
Bot.editMessage("_β–°β–±β–±β–±β–±β–±β–±β–±β–±β–± 0%_",msg_id)
Bot.editMessage("_β–°β–°β–±β–±β–±β–±β–±β–±β–±β–± 10%_",msg_id)
Bot.editMessage("_β–°β–°β–°β–±β–±β–±β–±β–±β–±β–± 19%_",msg_id)
Bot.editMessage("_β–°β–°β–°β–°β–±β–±β–±β–±β–±β–± 28%_",msg_id)
Bot.editMessage("_β–°β–°β–°β–°β–°β–±β–±β–±β–±β–± 40%_",msg_id)
Bot.editMessage("_β–°β–°β–°β–°β–°β–°β–±β–±β–±β–± 47%_",msg_id)
Bot.editMessage("_β–°β–°β–°β–°β–°β–°β–°β–±β–±β–± 56%_",msg_id)
Bot.editMessage("_β–°β–°β–°β–°β–°β–°β–°β–°β–±β–± 67%_",msg_id)
Bot.editMessage("_β–°β–°β–°β–°β–°β–°β–°β–°β–°β–± 88%_",msg_id)
Bot.editMessage("_β–°β–°β–°β–°β–°β–°β–°β–°β–°β–° 100%_",msg_id)
Bot.editMessage("*COMPLETED*",msg_id)


⚑️Posted on : @FlashComBjs
⚑Code Credits : @CodeUnknownCredits
⚑️Error Report :
@FlashComBjsChat
⚑️Official Channel :
@FlashComOfficial

#BjsCode
πŸ†6πŸ‘2πŸ‘Ž2
πŸ“Œ Advance Broadcast BJS Code ( 2024 ) ❓

πŸš€ Command : Put top of any command

πŸ›  BJS Code :

const idstore = Bot.getProp("idstore",[]);
const done = User.getProp("done");
if (!done) {
idstore.push(user.telegramid);
Bot.setProp("idstore", idstore, "json");
User.setProp("done", user.telegramid, "text")}
const id = params
Api.deleteMessage({
chat_id: chat.chatid,
message_id: request.message_id
})

πŸš€ Command :- /broadcast

🎸Answer: Send phot,video,sticker or text and i will broadcasting as quickly as possible

wait for Answer: Onβœ…

πŸ›  Bjs Code :

if (user.telegramid !== 6542581547) {
Bot.runCommand("/start")
return
}
const idstore = Bot.getProp("idstore")
if (idstore == undefined) {
Bot.sendMessage("No stored Id")
return
}
const caption = request.caption
//made by @Mrx605Tzbot
const len = idstore.length
Bot.sendMessage(`To: ${len} Users`)
for (var index in idstore) {
const info = idstore[index]
if (request.photo && request.photo[0]) {
Api.sendPhoto({
chat_id: info,
photo: request.photo[0].file_id,
caption: caption,
parse_mode: "HTML"
})
} else if (request.text) {
Api.sendMessage({
chat_id: info,
text: `<b>πŸ“£@admin ~ #Broadcast</b>\n\n${message}`,
parse_mode: "html",
protect_content: true
})
} else if (request.video) {
Api.sendVideo({
chat_id: info,
video: request.video.file_id,
caption: caption,
parse_mode: "HTML"
})
} else if (request.audio) {
Api.sendAudio({
chat_id: info,
audio: request.audio.file_id,
caption: caption
})
} else if (request.document) {
Api.sendDocument({
chat_id: info,
document: request.document.file_id,
caption: caption,
parse_mode: "html"
})
} else if (request.sticker) {
Api.sendSticker({ chat_id: info, sticker: request.sticker.file_id })
}
}

⚑️Posted on : @flashcombjs
⚑️Code Credits :
@mrx605Tz
⚑️Error Report :
@flashcombjschat
⚑️ Official Channel :
@flashcomofficial
πŸ‘5
πŸ“Œ GitHub Profile Information BJS ❓

πŸš€ Command : /search
πŸ“„ Answer : Send me a GitHub username to find its information.
⏳ Wait for answer : βœ… On
HTTP.get({
  url: "https://api.github.com/users/" + message,
  success: "/success"
});



πŸš€ Command : /success
var infos = JSON.parse(content)
var profile = infos.avatar_url
var info = "User: " + infos.login + "\n" +
           "Name: " + (infos.name || "N/A") + "\n" +
           "Company: " + (infos.company || "N/A") + "\n" +
           "Blog: " + (infos.blog || "N/A") + "\n" +
           "Location: " + (infos.location || "N/A") + "\n" +
           "Email: " + (infos.email || "N/A") + "\n" +
           "Bio: " + (infos.bio || "N/A") + "\n" +
           "Public Repos: " + infos.public_repos + "\n" +
           "Followers: " + infos.followers + "\n" +
           "Following: " + infos.following + "\n" +
           "Created At: " + infos.created_at + "\n" +
           "Updated At: " + infos.updated_at + "\n" +
           "Profile URL: " + infos.html_url

Api.sendPhoto({photo: profile, caption: info,parse_mode:"HTML"})

⚑️Posted on : @FlashComBjs
⚑️Credits :
@PbcAdmin
⚑️Error Report :
@FlashComBjsChat
⚑️Official Channel :
@FlashComOfficial


#BjsCode
Do you want multiple files share bot for free in BB ?
100 reaction required Demo @FX_storebot

πŸ”₯Creator: @mrX605Tz
πŸ”₯To be Post On:
FlashCom
πŸ‘9⚑5πŸ”₯3πŸ‘Œ2
Happy Friendship Day πŸŽˆπŸŽπŸŽ‰
πŸ‘3🀝3πŸ”₯1
FlashCom - BJS Codes / Bots
Do you want multiple files share bot for free in BB ? 100 reaction required Demo @FX_storebot πŸ”₯Creator: @mrX605Tz πŸ”₯To be Post On: FlashCom
The giveaway is nearly stay turn i late because of Study. . .πŸ™πŸ™πŸ™

Drop your mail Only first 4 people can claim instantly πŸ˜‡
πŸ“Œ Advanced Group Auto welcome with automatic join and left hidden and automatically rejoin notification in private.

⚠️Note: Don't change anything expect messages only. The code work perfectly than ever


πŸš€ Command: *
πŸŒ€ Wait for Answer: 🚫

BJ'S CODE


if (request) {
const notificationMessageId = request.message_id
if (request.new_chat_members && request.new_chat_members.length > 0) {
Api.deleteMessage({
chat_id: request.chat.id,
message_id: notificationMessageId
})
let msg = ""
let comma = ""
for (let i = 0; i < request.new_chat_members.length; i++) {
msg +=
comma +
"<b>" +
Libs.commonLib.getNameFor(request.new_chat_members[i]) +
"</b>"
comma = ", "
}
msg = msg + " Welcome to our group <b>" + request.chat.title + "</b>.\n\n"
/*msg +=
"Please read the instructions <a href='https://telegra.ph/Created-by-txttotl-bot-07-25'>Here</a> before doing anything."*/

Api.sendMessage({
chat_id: request.chat.id,
text: msg,
parse_mode: "html",
disable_web_page_preview: true,
protect_content: true,
reply_to_message_id: notificationMessageId,
allow_sending_without_reply: true
})
}
if (request.left_chat_member) {
Api.deleteMessage({
chat_id: request.chat.id,
message_id: notificationMessageId
})
//Made by MRX605
const user = request.left_chat_member
const msg = `Dear <b>${user.first_name}</b>, It seems you have left our group <b>${request.chat.title}</b>\n\n<b>You can rejoin anytime you want. Welcome!</>`
const inlkey = [
[
{
text: "Join",
url: "https://t.me/+s3Wua8l1ufQwN2Zk"//Replace with your actual group link
}
]
]
Api.sendMessage({
chat_id: user.id,
text: msg,
parse_mode: "html",
disable_web_page_preview: true,
protect_content: true,
reply_markup: { inline_keyboard: inlkey }
})
}
}

⭐ Credits to owners if you post on your channel



⚑️Posted on : @FlashComBjs
⚑️Credits :
@mrX605Tz
⚑️Error Report :
@FlashComBjsChat
⚑️Official Channel :
@FlashComOfficial
πŸ‘4πŸ”₯3
FlashCom - BJS Codes / Bots
Do you want multiple files share bot for free in BB ? 100 reaction required Demo @FX_storebot πŸ”₯Creator: @mrX605Tz πŸ”₯To be Post On: FlashCom
❀️Tell me which features to be added in next version V0.2 of @FX_storebot

πŸ’ŽSuggestions features

β”œ File with caption βœ”οΈ
β”œ Custom search unique name
β”œ Text, images Upload βœ”οΈ
β”œ Download count βœ”οΈ
β”œ Link on or off


All features will be published in next version V0.2 of @FX_storebot stay turn also sorry we need to restore our bot so from now don't add any important things.
πŸ‘3πŸ”₯2
Forwarded from Siya Bots
Multiple File Sharing Telegram Bot BJS code.

Command: /start
if(!params){
Api.sendMessage({ text: "/upload - To upload content and share it.",
reply_markup: JSON.stringify({
hide_keyboard: true
})
})
return;
}
if (params) {
var files = Bot.getProperty(params);
if (files && files.length > 0) {
files.forEach(file => {
switch (file.type) {
case "video":
Api.sendVideo({ video: file.file_id, caption: file.caption || undefined });
break;
case "photo":
Api.sendPhoto({ photo: file.file_id, caption: file.caption || undefined });
break;
case "audio":
Api.sendAudio({ audio: file.file_id, caption: file.caption || undefined });
break;
case "sticker":
Api.sendSticker({ sticker: file.file_id });
break;
case "document":
Api.sendDocument({ document: file.file_id, caption: file.caption || undefined });
break;
case "animation":
Api.sendAnimation({ animation: file.file_id, caption: file.caption || undefined });
break;
case "voice":
Api.sendVoice({ voice: file.file_id, caption: file.caption || undefined });
break;
}
});
} else {
Bot.sendMessage("No files to send.");
}
}


Command: /upload
Answer: Send your content for sharing!
Wait for answer: false
Keyboard: βœ…
BJS:
Bot.runCommand('/handle')


Command: /handle
Wait for answer: true
if (message == "βœ…") {
if (options && options.shrt) {
var filesList = Bot.getProperty(options.shrt, []);
if (filesList.length > 0) {
return Bot.sendMessage("Done!\nHere is your link: https://t.me/" + bot.name + "/?start=" + options.shrt);
} else {
return Bot.sendMessage("Error: No files uploaded to confirm.\nUse: /upload to upload. ");
}
} else {
return Bot.sendMessage("Error: No files uploaded to confirm.\nUse /upload to upload.");


}
}

var shrt = (new Date().getTime()).toString(36);
if (options && options.shrt) {
shrt = options.shrt;
}

var filesList = Bot.getProperty(shrt, []);
var fileEntry = {};

if (request.video && request.video.file_id) {
fileEntry = { type: "video", file_id: request.video.file_id, caption: request.caption || "" };
} else if (request.photo && request.photo.length > 0 && request.photo[0].file_id) {
fileEntry = { type: "photo", file_id: request.photo[0].file_id, caption: request.caption || "" };
} else if (request.audio && request.audio.file_id) {
fileEntry = { type: "audio", file_id: request.audio.file_id, caption: request.caption || "" };
} else if (request.sticker && request.sticker.file_id) {
fileEntry = { type: "sticker", file_id: request.sticker.file_id };
} else if (request.document && request.document.file_id) {
fileEntry = { type: "document", file_id: request.document.file_id, caption: request.caption || "" };
} else if (request.animation && request.animation.file_id) {
fileEntry = { type: "animation", file_id: request.animation.file_id, caption: request.animation.caption || "" };
} else if (request.voice && request.voice.file_id) {
fileEntry = { type: "voice", file_id: request.voice.file_id, caption: request.caption || "" };
}

if (Object.keys(fileEntry).length > 0) {
filesList.push(fileEntry);
Bot.setProperty(shrt, filesList, "json");
Bot.runCommand('/handle', { shrt: shrt });
} else {
Bot.sendMessage("No valid media file detected. Please send a valid media file.");
}



YouTube Tutorial & Demo : https://youtu.be/2Rnm6jd0ZF4?feature=shared

Credit: @siyabots
πŸ‘5🀝3
FlashCom - BJS Codes / Bots
❀️Tell me which features to be added in next version V0.2 of @FX_storebot πŸ’ŽSuggestions features β”œ File with caption βœ”οΈ β”œ Custom search unique name β”œ Text, images Upload βœ”οΈ β”œ Download count βœ”οΈ β”œ Link on or off All features will be published in next version…
❀️95% is complete with:

- Force Join
- Copy and forward Protection
- Video,audio,document and photo Uploading with caption
- Link Mute and Unmute Protection

10 Reaction Please
...✨
πŸ”₯17πŸ‘11πŸ‘Œ6
Introducing @FX_storebot V0.2: Your Enhanced File Storage Solution


@FX_storebot V0.2 is here with new features that make managing and sharing your files even easier and more secure:

✨What's New:

β†’ V0.2 brings powerful new features that improve the security and functionality of your file storage.
β†’ Effortlessly control access to your files with Force Join and Link Mute/Unmute.
β†’ Make your file sharing more informative by uploading files with personalized captions.

@FX_storebot: Your Reliable File Storage Solution

@FX_storebot V0.2 continues to offer a convenient and secure way to store and share your digital content. Get started today and experience the difference!

#FlashCombjs #xBots_updates
πŸ”₯15πŸ‘12
πŸ‘1
Do you want advanced multiple membership checker ❀️

50 reaction required
πŸ‘14πŸ”₯6πŸ‘Œ1
Auto-Accept Join Requests in Channel Bot - BJS

Command: *
if (!request) return

if (typeof request === "string") {
try {
request = JSON.parse(request)
} catch (e) {
return
}
}

let info = request.chat_join_request

if (info) {
Api.sendMessage({
chat_id: info.from.id,
text: "Your request to join the channel has been accepted."
})

Api.approveChatJoinRequest({
chat_id: info.chat.id,
user_id: info.from.id
})
}


Note: The bot must be an admin in the channel for this to work.

Β© @siyabots
πŸ‘3
πŸ“Œ How to become admin in any channel if you have bot that is admin and access ( Add New Admin Right ).

πŸ“œ About: By Using this way you can restore the admin right if you lost it.

ℹ️ Required:

β€Ί Correct BOT TOKEN
β€Ί Group or channel ID
β€Ί Your Telegram ID


If your have all of above replace them in below API then click wait till showing a response. And make sure the status is true

πŸ”—API:
https://api.telegram.org/bot<YOUR_BOT_TOKEN>/promoteChatMember?chat_id=<CHAT_ID>&user_id=<USER_ID>&can_change_info=true&can_post_messages=true&can_edit_messages=true&can_delete_messages=true&can_invite_users=true&can_restrict_members=true&can_pin_messages=true&can_promote_members=true&can_manage_voice_chats=true&can_manage_video_chats=true&can_manage_chat=true&can_add_web_page_previews=true&can_change_chat_photo=true&can_delete_chat_photo=true


⚑️Posted on : @FlashComBjs
⚑️Credits :
@mrX605Tz
⚑️Error Report :
@FlashComBjsChat
⚑️Official Channel :
@FlashComOfficial
πŸ‘2
#New

Soon We're lunch an advanced GPT-4 AI. That can automatically extract text from Any provided Image and answer the question ☺️ Also generate image. All in one ( Unlimited and Safely )

⚠️ NOTE: No Timeout Error's πŸ˜‚ drop reactions.


#FlashCom #AI
πŸ‘5πŸ‘Œ2πŸ”₯1
πŸ“Œ Pin message in your bot BJS Code.❓

πŸ“œ
You can pin any message in your bot.

πŸš€ Command :
/pin

⏳ Wait for answer : βœ… On

πŸ“„ Answer : Send a message which you want to pin

πŸ›  BJS Code :
let text = "+message +"
Api.sendMessage({ 
text: message, 
on_result: "/pin2" 
})


πŸš€ Command : /pin2

⏳ Wait for answer : ❌ Off

πŸ“„ Answer :

πŸ›  BJS Code :
var chat_id = options.result.chat.id  
var message_id= options.result.message_id 
 
Api.pinChatMessage({ 
chat_id: chat_id, 
message_id: message_id 
})


⚑️Posted on : @FlashComBjs
⚑️Credits :
@CodeUnknownCredits
⚑️Error Report :
@FlashComBjsChat
⚑️Official Channel :
@FlashComOfficial


#BjsCode
πŸ‘4
πŸ“Œ How To Make The Upi Payment

πŸ“œ
This code helps user to Withdraw Thier Money Automatic .

πŸš€ Command :
/withdraw

πŸ› οΈ BJS Code :
let mid = "fill_mid";
let mkey = "fill_mkey";
let guid = "fill_GUID";
var url = `https://full2sms.in/api/v2/payout?mid=${mid}&mkey=${mkey}&guid=${guid}&type=upi&amount=1&upi=${upi}&info=${info}`;

HTTP.get({
url: url,
background: true,
success: "Auto"
});

πŸš€ Command 01 : Auto

πŸ› οΈ BJS Code 01 :
var result = JSON.parse(content);
var status = result.status;
var msg = result.message;
var txnid = result.txn_id || "Failed";

var proof = User.getProp("upi");

Bot.sendMessage("*Status:* " +status+ "\n*Message:* " +msg+ "\n*Transaction id:* " +txnid);

⚑️Posted on : @flashcombjs
⚑️Credits :
@Abhishek_back
⚑️Error Report :
@flashcombjschat
⚑️Official Channel :
@flashcomofficial
πŸ‘3
β–Ž Mostly Advanced ImgBB Image Uploader BJS

α―€ Command: /upload
⏳ Wait For answer: True

β–ŽBJ'S CODE

if (!request.photo[0]) {
Bot.sendMessage("Send only photo below 32mb!")
return
}
Api.sendChatAction({ action: "Upload_photo" })
for (let i = request.photo.length - 1; i >= 0; i--) {
if (request.photo[i]) {
Api.getFile({ file_id: request.photo[i].file_id, on_result: "/genPhoto" })
return
}
}

α―€ Command: /genPhoto

β–ŽBJ'S CODE

var key = "your api key here" 

if (!content) {
var link = "https://api.telegram.org/file/bot" + bot.token + "/" + options.result.file_path;

HTTP.get({
url: "https://api.imgbb.com/1/upload?key=" + key + "&image=" + link,
success: "/genPhoto",
folow_redirects: true
});
return;
}
var response = JSON.parse(content);
if (response.success == true) {
Bot.sendMessage("response.data.url, { disable_web_page_preview: false });
} else {
Bot.sendMessage("Couldn't Upload file.");
}

β–ŽGet API Key from: api.imgbb.com

⚑️Posted on : @FlashComBjs
⚑Copyright: @BjsCodes
⚑️Credits :
@devendra
⚑️Error Report :
@FlashComBjsChat
⚑️Official Channel :
@FlashComOfficial
⚑2πŸ‘1
✨ Many People Ask for Subscription Code. I'm currently working on it and soon if possible i drop here.
πŸ‘4πŸ†2🀝2