π Talk to Admin BJ'S Code: PRO β
π With this code user can Talk to you easy.
π Command : /You own command Eg- /support
π BJS Code :
π Command :-
β»οΈ wait for message: Onβ
π Bjs Code :
π₯The following is Admin Command.
π Command: /reply
π οΈ BJ'S Code:
π Command:
β»οΈ wait for message: Onβ
π Bjs Code :
β‘οΈPosted on : @flashcombjs
β‘οΈCode Credits : @mrx605Tz
β‘Api Credit : @Nepcoder
β‘οΈError Report : @flashcombjschat
β‘οΈ Official Channel : @flashcomofficial
#BjsCode
π 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
β€ 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 :
π BJS Code :
π Command :
π BJS Code :
π Command :
π Setup BJS Code :
π Example BJS Code :
β‘οΈPosted on : @FlashComBjs
β‘οΈCredits : @CoderUnknownCredits
β‘οΈError Report : @FlashComBjsChat
β‘οΈOfficial Channel : @FlashComOfficial
#BjsCode
π 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
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 π£
Sorry for late wishes π£
π8
Again Active Guyzzzz
Tell In Comment Which Code Need
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 :
β³Wait for answer : β On
π Answer :
π BJS Code :
π Command :
π BJS Code :
β‘οΈPosted on : @FlashComBjs
β‘οΈCredits : @PbcAdmin
β‘οΈError Report : @FlashComBjsChat
β‘οΈOfficial Channel : @FlashComOfficial
#BjsCode
π 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
π Command :
β³ Wait for answer : β On
π Answer :
π BJS Code :
π Command :
β³ Wait for answer : β On
π Answer :
π BJS Code :
β‘οΈPosted on : @FlashComBjs
β‘οΈCredits : @PbcAdmin
β‘οΈError Report : @FlashComBjsChat
β‘οΈOfficial Channel : @FlashComOfficial
#BjsCode
π 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 :
β³ 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