๐ก Suggest Me Some Idea In Comments.
๐ง What Should I Make Next?
๐ง What Should I Make Next?
๐ Inline Keyboard with editโ
๐ Create a text with inline keyboard button and when User click the button then the text with inline keyboard will be edited.
๐ Command :
๐ BJS Code :
๐ BJS Code :
โก๏ธCredits : @CodeUnknownCredits
โก๏ธError Report : @flashcombjschat
โก๏ธ Official Channel : @flashcomofficial
๐ Create a text with inline keyboard button and when User click the button then the text with inline keyboard will be edited.
๐ Command :
/inline๐ BJS Code :
let msg = "๐ Hello,\n\nWelcome to ny bot and you can add your text by replacing from the hi emoji to here ";
let keyboard = [
[{ text: "Command Inline 1", callback_data: "/callbackcommand1" },{ text: "Command Inline 2", callback_data: "/callbackcommand2" }],[{ text: "Url ", url: "https://google.com" }]
];
if (!request.data) {
Api.sendMessage({
text: msg,
parse_mode: "markdown",
disable_web_page_preview: true,
reply_markup: {
inline_keyboard: keyboard
}
});
} else {
Api.editMessageText({
message_id: request.message.message_id,
text: msg,
parse_mode: "markdown",
disable_web_page_preview: true,
reply_markup: {
inline_keyboard: keyboard
}
});
}
๐ Command : /editedinline๐ BJS Code :
Api.editMessageText({
message_id: request.message.message_id,
text: "Your edit message here",disable_web_page_preview: true,
parse_mode: "markdown", reply_markup: {
inline_keyboard: [
[{ text: "๐ Back", callback_data: "/start"}]
]
}
});
โก๏ธPosted on : @flashcombjsโก๏ธCredits : @CodeUnknownCredits
โก๏ธError Report : @flashcombjschat
โก๏ธ Official Channel : @flashcomofficial
๐5๐3
๐ Fully Advance And 100% Working BJ's To Do Ad(s) For Your Bot . โ
๐ From this code you can send your own ads to your bot.
๐ Command :
๐ BJS Code :
๐ Command:
๐ BJS Code :
๐ Command:
๐ BJS Code :
โก๏ธPosted on : @flashcombjs
โก๏ธCredits : @Abhishek_Back
โก๏ธError Report : @flashcombjschat
โก๏ธ Official Channel : @flashcomofficial
๐ From this code you can send your own ads to your bot.
๐ Command :
/start๐ BJS Code :
var ads = Bot.getProperty("Ads System") ? Bot.getProperty("Ads System") : []
if (!ads.includes(user.telegramid)) {
ads.push(user.telegramid)
Bot.setProperty("Ads System", ads, "json")
}
//Put In /start BJ's On The Top๐ Command:
/doads ( Your Choice ) ๐ BJS Code :
var ads = Bot.getProperty("Ads System")
for (var i in ads) {
Api.sendMessage({
chat_id: ads[i],
text: "<b>๐ Hello This Is A Testing</>", // customised it also
parse_mode: "html"
})
}
Bot.run({
command: "/doads",
run_after: 14400 //time in second
})๐ Command:
/offads (If You Want To Stop The Ads.) ๐ BJS Code :
Bot.clearRunAfter()
Bot.sendMessage("All Ads cleared.")
โก๏ธPosted on : @flashcombjs
โก๏ธCredits : @Abhishek_Back
โก๏ธError Report : @flashcombjschat
โก๏ธ Official Channel : @flashcomofficial
๐4๐2๐ค2โก1
๐ก Suggest Me Some Idea In Comments.
๐ง What Should I Make Next Code ?
๐ง What Should I Make Next Code ?
๐ฅ4๐1
๐ Inline Pixabay Photo's Search Bjs . โ
๐ You can search pixabay photo's through inline.
๐ Command :
๐ BJS Code :
๐ Command :
๐ BJS Code :
๐ Command :
๐ BJS Code :
โก๏ธPosted on : @flashcombjs
โก๏ธCredits : @CoderUnknownCredits
โก๏ธError Report : @flashcombjschat
โก๏ธ Official Channel : @flashcomofficial
๐ You can search pixabay photo's through inline.
๐ Command :
/start๐ BJS Code :
var inline_keyboard = [
[{ text: "Go inline here", switch_inline_query_current_chat: "" }],
[{ text: "Go inline in another chat", switch_inline_query: "" }]
]
var buttons = { inline_keyboard: inline_keyboard }
Api.sendMessage({ text: "Hy "+user.first_name+".\nI am simple photo search bot. \nI fetch images from pixabay api.", reply_markup: buttons })
๐ Command :
/inlineQuery๐ BJS Code :
if (!request.query) {
return
}
let query=request.query
let text=query.replace(/\s/g, "%20");
HTTP.get({ url: "https://pixabay.com/api/?key=36545097-d5df6c20dfd41fe6ace3f8fa0&per_page=50&q="+text, success: "/onLoading "+request.id })๐ Command :
/onLoading๐ BJS Code :
var hits = JSON.parse(content).hits
var results = []
for (let i = 0; i < hits.length; i++) {
results.push({
type: "photo",
id: hits[i].id,
thumbnail_url: hits[i].previewURL,
photo_url: hits[i].webformatURL,
photo_width: hits[i].webformatWidth,
photo_height: hits[i].webformatHeight
})
}
Api.answerInlineQuery({
inline_query_id: params,
results: results
})
โก๏ธPosted on : @flashcombjs
โก๏ธCredits : @CoderUnknownCredits
โก๏ธError Report : @flashcombjschat
โก๏ธ Official Channel : @flashcomofficial
โก๏ธ Happy 1st Anniversary Of FlashCom
โค FlashCom was found in
โค Almost in this date FlashCom has reached an year, A today is FlashCom anniversary, I want to extend my deepest appreciation for your unwavering support. Your commitment to our shared vision has contributed significantly to our growth and accomplishments.
โค FlashCom is made in order to help you in creating telegram bots, acquiring bots etc... as it is now. We may expand this in future. We even try to fulfill your requests about bots and we have fulfilled some of users needs of helps. FlashCom might help you a lot where we have posted may codes to develop bots and made bots where you can install bots as free.
โค FlashCom is free for every single user. As we do not collect payments from any user for any reason. FlashCom was brought up in firm where there was several consequences has to be faced during the growth of FlashCom. FlashCom has failed too many times. We did not give up even it was failing we started continuing this channel as we did not give-up and now FlashCom has gained a better results than before. Even now there are consequences we face we are still overcoming with those consequences in order to keep this channel exist in future as well.
โฃ Thanking Admins
โค We thank admins of FlashCom for their hard work and commitment to the company are truly inspiring and hereโs to another great year which you may do as well you did before. FlashCom has been grown and your part of it helping FlashCom extend to different users.
โฃ Thanking Users
โค Weโre elated to have you on our channel as member. We will continue FlashCom and FlashCom will provide you useful codes and bots which will benefit you. We even thank you again because of you only FlashCom exists as you are a member of this channel and you may help members of FlashCom and us! We thank you a lot for your assist.
โค We will try 0ur best in order to keep this channel continuing and we need your support for this. Introduce this channel to your friends , users who is finding channels in order for creating of bots, assistance etc... Just help him by introducing this channel and this is an help your doing to FlashCom as well which your helping to expand FlashCom.
โค FlashCom was found in
may 09 2023 and today is may 08 2024 where FlashCom reach one year as now it is 1st anniversary of FlashCom โค Almost in this date FlashCom has reached an year, A today is FlashCom anniversary, I want to extend my deepest appreciation for your unwavering support. Your commitment to our shared vision has contributed significantly to our growth and accomplishments.
โค FlashCom is made in order to help you in creating telegram bots, acquiring bots etc... as it is now. We may expand this in future. We even try to fulfill your requests about bots and we have fulfilled some of users needs of helps. FlashCom might help you a lot where we have posted may codes to develop bots and made bots where you can install bots as free.
โค FlashCom is free for every single user. As we do not collect payments from any user for any reason. FlashCom was brought up in firm where there was several consequences has to be faced during the growth of FlashCom. FlashCom has failed too many times. We did not give up even it was failing we started continuing this channel as we did not give-up and now FlashCom has gained a better results than before. Even now there are consequences we face we are still overcoming with those consequences in order to keep this channel exist in future as well.
โฃ Thanking Admins
โค We thank admins of FlashCom for their hard work and commitment to the company are truly inspiring and hereโs to another great year which you may do as well you did before. FlashCom has been grown and your part of it helping FlashCom extend to different users.
โฃ Thanking Users
โค Weโre elated to have you on our channel as member. We will continue FlashCom and FlashCom will provide you useful codes and bots which will benefit you. We even thank you again because of you only FlashCom exists as you are a member of this channel and you may help members of FlashCom and us! We thank you a lot for your assist.
โค We will try 0ur best in order to keep this channel continuing and we need your support for this. Introduce this channel to your friends , users who is finding channels in order for creating of bots, assistance etc... Just help him by introducing this channel and this is an help your doing to FlashCom as well which your helping to expand FlashCom.
๐ฅ4
๐ Automatically Bonus for Every Mouth Bjs. โ
๐ This Code Allows user to get Bonus each month Automatically.
๐ Command :
๐ BJS Code :
โก๏ธPosted on : @flashcombjs
โก๏ธCredits : @mrx605Tz
โก๏ธError Report : @flashcombjschat
โก๏ธ Official Channel : @flashcomofficial
๐ This Code Allows user to get Bonus each month Automatically.
๐ Command :
@๐ BJS Code :
function canRunMonthlyBonus() {
var last_bonus_date = User.getProperty("last_bonus_date");
if (!last_bonus_date) {
return true;
}
var last_bonus_month = new Date(last_bonus_date).getMonth();
var current_month = new Date().getMonth();
if (last_bonus_month === current_month) {
return false; // Monthly bonus already given this month
}
return true;
}
if (!canRunMonthlyBonus()) {
return;
}
User.setProperty("last_bonus_date", Date.now(), "integer");
let bonus_amount = 500;
let balance = Libs.ResourcesLib.userRes("balance");
balance.add(bonus_amount);
Api.sendMessage({
chat_id: user.telegramid,
text: "Congratulations! You have received a monthly bonus of " + bonus_amount + " points.",
parse_mode: "HTML"
});โก๏ธPosted on : @flashcombjs
โก๏ธCredits : @mrx605Tz
โก๏ธError Report : @flashcombjschat
โก๏ธ Official Channel : @flashcomofficial
โก2๐2
๐ Membership checker through HTTP method Bjsโ
๐ This code allows to check whether user is a member of your chat and if they are then they can proceed to command or bot will ask to join channel if they run that specific command
Libraries Needed
-- Membership checker lib
๐ Command :
๐ BJS Code :
๐ Command :
๐ BJS Code :
โก๏ธPosted on : @flashcombjs
โก๏ธCredits : @CodeUnknownCredits
โก๏ธError Report : @flashcombjschat
โก๏ธ Official Channel : @flashcomofficial
๐ This code allows to check whether user is a member of your chat and if they are then they can proceed to command or bot will ask to join channel if they run that specific command
Libraries Needed
-- Membership checker lib
๐ Command :
/start๐ BJS Code :
var channel = "@flashcombjs //replace your channel username"
HTTP.get({
url: "https://api.telegram.org/bot"+bot. token+"/getChatMember?chat_id="+channel+"&user_id="+user.telegramid+"",
success: "/check"})
๐ Command :
/check๐ BJS Code :
var info = JSON.parse(content)
var status = info.result.status
if ((status == "member") | (status == "administrator") | (status == "creator")) {
Bot.runCommand("/command")
}
if (status == "left") {
Bot.sendMessage("Must join channel") // your force join massage
}
โก๏ธPosted on : @flashcombjs
โก๏ธCredits : @CodeUnknownCredits
โก๏ธError Report : @flashcombjschat
โก๏ธ Official Channel : @flashcomofficial
๐2
๐ IP verification Checker ( API ) Bjsโ
๐ This code allows you to prevent users using VPN and multiple accounts in your bot. Only one account can be used.
Libraries Needed
-- Webhooks
๐ Command :
โก๏ธCredits : @CodeUnknownCredits
โก๏ธError Report : @flashcombjschat
โก๏ธ Official Channel : @flashcomofficial
๐ This code allows you to prevent users using VPN and multiple accounts in your bot. Only one account can be used.
Libraries Needed
-- Webhooks
๐ Command :
/start
๐ BJS Code : var verify = User.getProperty("verify")
if(verify){
Bot.runCommand("/start2")
return}
var url2 = Libs.Webhooks.getUrlFor({
command: "onWebhook",
user_id: user.id
})
var webPage = "https://api.jobians.top/captcha/verify?webhookUrl=" + encodeURIComponent(url2)
Bot.sendMessage("โน๏ธ [Please Verify Yourself By Clicking This Link\nโ ๏ธ Don't Use VPN]("+webPage+")",{ disable_web_page_preview: true })
๐ Command : onWebhook
๐ BJS Code :if (!content) {
return
}
var data = JSON.parse(content)
var ip = data.results.ip.split(".").slice(0,3).join(".")
var captcha = data.results.captcha
var vpn = data.results.vpn
var verify = User.getProperty("verify")
if(verify){
return}
if(vpn == "yes"){
Bot.sendMessage("๐จ You Are Ban For Using VPN!")
Bot.blockChat(chat.id);
return}
var ips = Bot.getProperty("ips", { list: {} })
if(ips.list[ip]){
Bot.sendMessage("โ You Have Been Banned For Using Multiple Account");
Bot.blockChat(chat.id);
return
}
if(captcha == "ok"){
var ips = Bot.getProperty("ips", { list: {} });
ips.list[ip] = true;
Bot.setProperty("ips", ips, "json");
Bot.sendMessage("โ
You Are Verified Now");
User.setProperty("verify","ok","string")
Bot.runCommand("/start2")
}
โก๏ธPosted on : @flashcombjsโก๏ธCredits : @CodeUnknownCredits
โก๏ธError Report : @flashcombjschat
โก๏ธ Official Channel : @flashcomofficial
๐2
๐ Repeat Force Join Channel In Bot To Use Botโ
๐ This code force users to join channel to use your bot.
๐ Command :
๐ Command :
๐ Command :
๐ Command :
How to make users use other commands if they are only member of the channel โ
-- Try adding the below codes to your other commands with reading to // mentioned in the code.
โ Libs Required
-- Membership Checker
โก๏ธCredits : @CodeUnknownCredits
โก๏ธError Report : @flashcombjschat
โก๏ธOfficial Channel : @flashcomofficial
๐ This code force users to join channel to use your bot.
๐ Command :
/start
๐ BJS Code : var userStat = User.getProperty("userStatus")
if (!userStat | (userStat == "left")) {
// if user starts the bot or leave channel then show join msg
Api.sendMessage({
text:
"<b>โ๏ธ Must Join to our Channel</b>\n\nโก๏ธ @your_channel_username\n\nโ
<b>After Joining, Click on ๐ข Joined</b>",
parse_mode: "html",
disable_web_page_preview: true,
reply_markup: {
inline_keyboard: [[{ text: "๐ข Joined", callback_data: "/check" }]]
}
})
return
} else if (
(userStat == "member") |
(userStat == "administrator") |
(userStat == "creator")
) {
//if user is in the channel and runs /start it will take to welcome page
Bot.runCommand("/check")
} ๐ Command :
/check
๐ BJS Code :let channel = your_channel_chat_id
let id = user.telegramid
Api.getChatMember({
chat_id : -channel,
user_id : id,
on_result :"/check1"
})
๐ Command :
/check1
๐ BJS Code :var user = options.result.status
if ((user == "member") | (user == "administrator") | (user == "creator")) {
User.setProperty("userStatus", user, "string")
Bot.runCommand("/menu")
}
if (user == "left") {
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
})
}
User.setProperty("userStatus", "left", "string")
Api.sendMessage({
text:
"<b>โ๏ธ Must Join to our Channel</b>\n\nโก๏ธ @your_channel_username\n\nโ <b>After Joining, Click on ๐ข Joined</b>",
parse_mode: "html",
disable_web_page_preview: true,
reply_markup: {
inline_keyboard: [[{ text: "๐ข Joined", callback_data: "/check" }]]
}
})
}
๐ Command :
/menu
๐ BJS Code : 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
})
var userStat = User.getProperty("userStatus")
if (!userStat | (userStat == "left")) {
Bot.runCommand("/start")
return
} else if (
(userStat == "member") |
(userStat == "administrator") |
(userStat == "creator")
) {
}
var buttons = [
{title: "Go to Google", url: "https://google.com"},
{title: "Call command for Button1", command: "/touch Button1" },
{title: "Call command for Button2", command: "/touch Button2" }
];
Bot.sendInlineKeyboard(buttons, "Welcome to homepage.");
}How to make users use other commands if they are only member of the channel โ
-- Try adding the below codes to your other commands with reading to // mentioned in the code.
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
})
var userStat = User.getProperty("userStatus")
if (!userStat | (userStat == "left")) {
//your code if user is not member of your channel or if user left.
//Bot.RunCommand("/start"); //recommended
return
} else if (
(userStat == "member") |
(userStat == "administrator") |
(userStat == "creator")
) {
}
//your code if user is member of your channel
//Bot.sendMessage("You are member of the channel")
}โ Libs Required
-- Membership Checker
โก๏ธPosted on : @flashcombjsโก๏ธCredits : @CodeUnknownCredits
โก๏ธError Report : @flashcombjschat
โก๏ธOfficial Channel : @flashcomofficial
๐7
๐ Multiple randomly channel membership checker. โ
๐ By using this code you can check the randomly channels membership.
๐ Command :
๐ BJS Code :
๐ Command :-
๐ BJ'S :-
โก๏ธPosted on : @flashcombjs
โก๏ธCredits : @mrx605Tz
โก๏ธError Report : @flashcombjschat
โก๏ธ Official Channel : @flashcomofficial
๐ By using this code you can check the randomly channels membership.
๐ Command :
/start ๐ BJS Code :
let channelsArr = [
{ username: "@manuvamovies", link: "https://t.me/manuvamovies" },
{ username: "@manuvaseries", link: "https://t.me/manuvaseries" },
{ username: "@manuvamuvi", link: "https://t.me/manuvamuvi" },
{ username: "@manuvasizoni", link: "https://t.me/manuvasizoni" },
{ username: "@manuvamovie18", link: "https://t.me/manuvamovie18" },
{ username: "@manuvamoviestore", link: "https://t.me/manuvamoviestore" }
]; //list all your channel groups here
var randomIndex = Libs.Random.randomInt(0, 6); //replace with the number of channels in the list above
var gett = channelsArr[randomIndex];
let channel = gett.username;
let chlnlink = gett.link;
let userid = user.telegramid;
if ( !params ) {
User.setProp("links", chlnlink);
User.setProp("channel", channel);
Api.getChatMember({
chat_id: channel,
user_id: userid,
on_result: "/isjoined"
});
return;
}
๐ Command :-
/isjoined๐ BJ'S :-
var links = User.getProp("links") //get links saved in first command
var channel = User.getProp("channel")//get channel username saved in first command
let status = options.result.status
var txt =
"Kama wewe ni mteja wetu ni lazima ujiunge na channel yetu ya " +
channel +
" Ili kuweza kupata movies/series/Animation Zetu.\n\nKumbuka Endapo Huto jiunga basi huto weza tumia bot wetu. Ukisha maliza kujiunga bofya hapa /start\n\nLink:-\n" +
links +
"\n" +
links +
"\n" +
links +
"" //replace your text warn user if isn't join to your channel
var isJoined =
status == "member" || status == "administrator" || status == "creator"
if (isJoined) {
Bot.runCommand("/mainf") //Your next command here
} else {
if (request.data && !isJoined) {
Api.answerCallbackQuery({
callback_query_id: request.id,
text: "โ Jiunge na channel ya " + channel + " ", //replace a alert text if is requested data
show_alert: false
})
Api.editMessageText({
chat_id: request.message.chat.id,
message_id: request.message.message_id,
text: txt,
parse_mode: "Markdown",
disable_web_page_preview: true
//reply_markup: { inline_keyboard: but }
})
}
if (!isJoined && !request.data) {
Api.sendMessage({
text: txt,
parse_mode: "Markdown",
disable_web_page_preview: true
//reply_markup: { inline_keyboard: but }
})
}
}โก๏ธPosted on : @flashcombjs
โก๏ธCredits : @mrx605Tz
โก๏ธError Report : @flashcombjschat
โก๏ธ Official Channel : @flashcomofficial
๐1
๐ Powerful Webhook Broadcast BJS Codeโ
๐ This is an powerful webhook broadcast code which can broadcast upto 3k users
Put the below BJS code at top of the /start command
๐ BJS Code :
The Above ๐BJS Code Must be On the /start Command to Make the Broadcast to Work
๐ Command :
โ๏ธ Wait for answer : โ
๐ Answer :
๐ BJS Code :
๐ Command :
๐ BJS Code :
โ Libs Required
-- Webhook
โก๏ธCredits : @CodeUnknownCredits
โก๏ธError Report : @flashcombjschat
โก๏ธOfficial Channel : @flashcomofficial
๐ This is an powerful webhook broadcast code which can broadcast upto 3k users
Put the below BJS code at top of the /start command
๐ BJS Code :
var us = Bot.getProperty("broadcasting", { list: {} })
if (!us.list[user.telegramid]) {
us.list[user.telegramid] = { user_id: user.id, user_tg: user.telegramid }
Bot.setProperty("broadcasting", us, "json")
}The Above ๐BJS Code Must be On the /start Command to Make the Broadcast to Work
/broadcastโ๏ธ Wait for answer : โ
๐ Answer :
Enter your message to broadcast๐ BJS Code :
if (request.video) {
var us = Bot.getProperty("broadcasting", { list: {} })
var msg = message
for (var i in us.list) {
var ase = us.list[i].user_id
var id = us.list[i].user_tg
var url = Libs.Webhooks.getUrlFor({
command: "/go1y2",
user_id: ase
})
HTTP.post({
url: url,
body: {
msg: msg,
captions: request.caption,
video: request.video.file_id,
id: id
}
})
}
return
}
if (request.photo[0]) {
var key = Bot.getProperty("admin_chat")
var us = Bot.getProperty("broadcasting", { list: {} })
var msg = message
for (var i in us.list) {
var ase = us.list[i].user_id
var id = us.list[i].user_tg
var url = Libs.Webhooks.getUrlFor({
command: "/go1y2",
user_id: ase
})
HTTP.post({
url: url,
body: {
msg: msg,
caption: request.caption,
image: request.photo[0].file_id,
id: id
}
})
}
return}
var key = Bot.getProperty("admin_chat")
var us = Bot.getProperty("broadcasting", { list: {} })
var msg = message
for (var i in us.list) {
var ase = us.list[i].user_id
var url = Libs.Webhooks.getUrlFor({
command: "/go1y2",
user_id: ase
})
HTTP.post({
url: url,
body: {
ktp: msg
}
})
}/go1y2๐ BJS Code :
var data = JSON.parse(content)
var c = data.caption
var vc = data.captions
var video = data.video
var image = data.image
var id = data.id
var msg = data.msg
if (vc) {
Api.sendVideo({ chat_id: id, video: video })
}
if (video) {
Api.sendVideo({
chat_id: id,
video: video,
caption: vc,
parse_mode: "HTML"
})
return
}
if (c) {
Api.sendPhoto({
chat_id: data.id,
photo: data.image,
caption: c,
parse_mode: "HTML"
})
return
}
if (image) {
Api.sendPhoto({ chat_id: id, photo: image })
return
}
Bot.sendMessage(data.ktp)
โ Libs Required
-- Webhook
โก๏ธPosted on : @flashcombjsโก๏ธCredits : @CodeUnknownCredits
โก๏ธError Report : @flashcombjschat
โก๏ธOfficial Channel : @flashcomofficial
๐6
๐ Captcha verification in the bot - BJS code โ
๐ Image captcha verification for telegram bot.
๐ Command:
๐ Command:
๐น Video Tutorial: https://youtu.be/xZ_4jIQ4qbg?si=l6uioSNT4BqJuG6O
โก๏ธCredits : @sarozpaudel
โก๏ธError Report : @flashcombjschat
โก๏ธOfficial Channel : @flashcomofficial
๐ Image captcha verification for telegram bot.
๐ Command:
/verifyvar 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
๐5
๐ Terabox video stream link generator bot - BJS Codeโ
๐ Command:
๐ Answer:
โ๏ธ Wait for answer : โ
โก๏ธPosted on : @flashcombjs
โก๏ธCredits : @sarozpaudel
โก๏ธError Report : @flashcombjschat
โก๏ธOfficial Channel : @flashcomofficial
๐ 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
๐5๐4
๐ Iterations check with progress bar - BJS codeโ
๐ Command:
โก๏ธPosted on : @flashcombjs
โก๏ธCredits : @sarozpaudel
โก๏ธError Report : @flashcombjschat
โก๏ธOfficial Channel : @flashcomofficial
๐ Command:
/checkvar 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
๐6
๐ Translate text in Bot - BJS codeโ
๐ Command:
๐ Answer:
โ๏ธ Wait for answer : โ
๐ Command:
๐ Command:
โข Replace your API key. Get API key from rapidapi.com
โก๏ธPosted on : @flashcombjs
โก๏ธCredits : @sarozpaudel
โก๏ธError Report : @flashcombjschat
โก๏ธOfficial Channel : @flashcomofficial
๐ 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:
/trHTTP.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:
/onTranslationResultvar 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
๐3
๐ Rate Bot BJS Codeโ
๐ With this code users can rate your bot.
๐ Command :
๐ BJS Code :
๐ Command :
๐ BJS Code :
โก๏ธCredits : @CodeUnknownCredits
โก๏ธError Report : @flashcombjschat
โก๏ธOfficial Channel : @flashcomofficial
๐ 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
๐3๐2
๐ Music ๐ถ Downloader Bjs. PRO โ
๐ธAnswer:
wait for Answer: Onโ
๐ Command :
๐ BJS Code :
๐ Command :-
๐ Bjs Code :
โก๏ธPosted on : @flashcombjs
โก๏ธCode Credits : @mrx605Tz
โกApi Credit : @Nepcoder
โก๏ธError Report : @flashcombjschat
โก๏ธ Official Channel : @flashcomofficial
๐ธAnswer:
Send me a name of a song and I'll send you the song in the highest quality
wait for Answer: Onโ
๐ Command :
/music ๐ BJS Code :
Api.sendChatAction({
chat_id: chat.chatid,
action: "record_voice"
})
User.setProp("Audioname", params)
var url =
"https://music-api-rouge-rho.vercel.app/?songname=" +
encodeURIComponent(message) +
""
HTTP.get({
url: url,
success: "/download2"
})
๐ Command :-
/download2๐ Bjs Code :
try {
var musiclink = JSON.parse(content)
var music = musiclink.download_link
if (musiclink === undefined) {
Bot.sendMessage(
"*โ Not Found*\n\nPlease use this system below to search for the name of the song you want\n\nExample: `Artist name than songname `"
)
return
}
var aud = Libs.ResourcesLib.anotherChatRes("audio", "global")
var Audioname = User.getProp("Audioname")
Api.sendChatAction({
chat_id: chat.chatid,
action: "upload_voice"
})
Api.sendDocument({
document: music,
caption:
"<b>๐๏ธResalt Of :-</> ใ<i>" +
Audioname +
"</>ใ\n<b>๐ถ Music By :- @" +
bot.name +
"</>\n\n<b>โกNote:-</>\nIf it's not the right one, please check the name and send it again correctly.\n\n<b>๐ธEnjoy the beats! ๐ง</>",
parse_mode: "HTML"
})
aud.add(+1)
User.setProperty("Audioname", [], "json") // Set an empty array as the value for "tickets" property
} catch (error) {
console.error("An error occurred:", error)
Bot.sendMessage(
"*โ Error's*\n\n`An error occurred while processing the music link. Please try again later.`"
)
}
โ ๏ธThere's a problem with Api Right now
โก๏ธPosted on : @flashcombjs
โก๏ธCode Credits : @mrx605Tz
โกApi Credit : @Nepcoder
โก๏ธError Report : @flashcombjschat
โก๏ธ Official Channel : @flashcomofficial
๐6
What 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 comment option
-- 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 comment option
๐2
๐ Join Our ICC Men's T20 World Cup Official Telegram Channel:
https://t.me/T20WC2024
Flash Id :
๐ฉ Flag Ad
#ADS
https://t.me/T20WC2024
Flash Id :
103738272.๐ฉ Flag Ad
#ADS
๐3