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


#BjsCode
πŸ‘12
Forwarded from GetMart Official Channel (FlashCom)
⚑️ 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
πŸ“Œ 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 :
@FlashComOfficial

#BjsCode
πŸ‘4
⭐️ 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
πŸ‘8
Forwarded from GetMart Official Channel (FlashCom)
🫑 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 😣
πŸ‘8
Again Active Guyzzzz

Tell In Comment Which Code Need
πŸ‘2
πŸ“Œ How To Delete Channel Message By Bot With Post Link BJS 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 :
@FlashComOfficial


#BjsCode
πŸ‘5⚑1πŸ”₯1🀝1
πŸ“Œ 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


#BjsCode
πŸ‘6
πŸ“Œ 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