π Chat GPT 4 API BJS Code.β
π You can create your own API ai bjs bot with this code.
π Command :
β³ Wait for answer : β On
π Answer :
π BJS Code :
π Command :
β³ Wait for answer : β Off
π BJS Code :
β‘οΈ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
π 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 :
β³ Wait for answer : β Off
π BJS Code :
π Command :
β³ Wait for answer : β Off
π BJS Code :
β‘οΈPosted on : @FlashComBjs
β‘Code Credits : @CodeUnknownCredits
β‘οΈError Report : @FlashComBjsChat
β‘οΈOfficial Channel : @FlashComOfficial
#BjsCode
π 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 :
π Command :-
πΈAnswer:
wait for Answer: Onβ
π Bjs Code :
β‘οΈPosted on : @flashcombjs
β‘οΈCode Credits : @mrx605Tz
β‘οΈError Report : @flashcombjschat
β‘οΈ Official Channel : @flashcomofficial
π 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 :
π Answer :
β³ Wait for answer : β On
π Command :
β‘οΈPosted on : @FlashComBjs
β‘οΈCredits : @PbcAdmin
β‘οΈError Report : @FlashComBjsChat
β‘οΈOfficial Channel : @FlashComOfficial
#BjsCode
π 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 :
/successvar 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
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 π
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.
π Command: *
π Wait for Answer: π«
BJ'S CODE
β‘οΈPosted on : @FlashComBjs
β‘οΈCredits : @mrX605Tz
β‘οΈError Report : @FlashComBjsChat
β‘οΈOfficial Channel : @FlashComOfficial
β οΈ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
π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:
Command:
Answer:
Wait for answer: false
Keyboard:
BJS:
Command:
Wait for answer: true
YouTube Tutorial & Demo : https://youtu.be/2Rnm6jd0ZF4?feature=shared
Credit: @siyabots
Command:
/startif(!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:
/uploadAnswer:
Send your content for sharing!Wait for answer: false
Keyboard:
β
BJS:
Bot.runCommand('/handle')Command:
/handleWait 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...β¨
- 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
What do you suggest in V0.3 of @FX_storebot
Anonymous Poll
49%
Clone feature
9%
Customer Caption
20%
Broadcast
22%
Auto Delete
π1
Do you want advanced multiple membership checker β€οΈ
50 reaction required
50 reaction required
π14π₯6π1
Auto-Accept Join Requests in Channel Bot - BJS
Command:
Note: The bot must be an admin in the channel for this to work.
Β© @siyabots
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:
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:
β‘οΈPosted on : @FlashComBjs
β‘οΈCredits : @mrX605Tz
β‘οΈError Report : @FlashComBjsChat
β‘οΈOfficial Channel : @FlashComOfficial
π 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
π Pin message in your bot BJS Code.β
π You can pin any message in your bot.
π Command :
β³ Wait for answer : β On
π Answer :
π BJS Code :
π Command :
β³ Wait for answer : β Off
π Answer :
π BJS Code :
β‘οΈPosted on : @FlashComBjs
β‘οΈCredits : @CodeUnknownCredits
β‘οΈError Report : @FlashComBjsChat
β‘οΈOfficial Channel : @FlashComOfficial
#BjsCode
π 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 :
π οΈ BJS Code :
π Command 01 :
π οΈ BJS Code 01 :
β‘οΈPosted on : @flashcombjs
β‘οΈCredits : @Abhishek_back
β‘οΈError Report : @flashcombjschat
β‘οΈOfficial Channel : @flashcomofficial
π 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:
β³ Wait For answer: True
βBJ'S CODE
α―€ Command:
βBJ'S CODE
βGet API Key from: api.imgbb.com
β‘οΈPosted on : @FlashComBjs
β‘Copyright: @BjsCodes
β‘οΈCredits : @devendra
β‘οΈError Report : @FlashComBjsChat
β‘οΈOfficial Channel : @FlashComOfficial
α―€ 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