fa
Feedback
FlashCom - BJS Codes / Bots

FlashCom - BJS Codes / Bots

رفتن به کانال در Telegram

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

نمایش بیشتر
880
مشترکین
اطلاعاتی وجود ندارد24 ساعت
-27 روز
-2630 روز
آرشیو پست ها
Anayone have, at least 10 Telegram Star 🌟 please bless me. Then i will give u automatically Telegram star payment code with subscriptions. u can add any duration u want like week mouth and the bot can automatically detect expired time @mrX605Tz

▎ Advanced automatic delete old message include bot message and user message Before send new one ᯤ Command: Onmassageid ⏳ Wait For answer: False ▎BJ'S CODE
try {
  var messageid = options.result.message_id
  let requestMessageId = null

  if (request.message_id) {
    requestMessageId = request.message_id
  }
  if (request.data) {
    messageid = request.message.message_id
  }

  var requestMessage = User.getProp("request_msg_id")
  var resultMessage = User.getProp("result_msg_id")

  if (requestMessage && resultMessage) {
    Api.deleteMessage({
      message_id: requestMessage
    })
    User.setProp("request_msg_id", null)
    User.setProp("request_msg_id", requestMessageId, "string")
    Api.deleteMessage({
      message_id: resultMessage
    })
    User.setProp("result_msg_id", null)
    User.setProp("result_msg_id", messageid, "string")
    return
  }
  User.setProp("result_msg_id", messageid, "string")
  User.setProp("request_msg_id", requestMessageId, "string")
} catch (e) {
  User.setProp("result_msg_id", null)
  User.setProp("request_msg_id", null)
}
⚠️ After create Onmassageid command you must put the below option in every Api.sendMessage() or Bot.sendMessage()
Bot.sendMessage():
{ on_result: Onmassageid }
Api.sendMessage()
on_result: Onmassageid
Credits to owners if you post on your channel
⚡️Posted on : @FlashComBjs ⚡️Credits : @mrX605Tz ⚡️Error Report : @FlashComBjsChat ⚡️Official Channel : @FlashComOfficial

▎ ProBan BB code is here ᯤ  Command: /banuser ᯤ  Command: @ ⏳ Wait For answer: False
PASS: MRX605 is legend
⚠️ Remember: Change admin id and TimeZone I'm from Tanzania thus why 😂
⚡️Posted on : @FlashComBjs ⚡️Credits : @mrX605Tz ⚡️Error Report : @FlashComBjsChat ⚡️Official Channel : @FlashComOfficial

😢 code too long

Api.sendMessage({ chat_id: userId, text: ⚠️ *Banned:* You have been temporarily banned for ${banDuration}., parse_mode: "Markdown" }) Api.answerCallbackQuery({ callback_query_id: request.id, text: "🚫 User banned successfully: to unban send /banuser " + userId, show_alert: true }) } `

▎ ProBan BB code is here ᯤ  Command: /upload ⏳ Wait For answer: False ▎BJ'S CODE `js //about //coded by: @mrX605Tz //platform: Bots.business //Credit: @mrX605Tz var admin = 6542581547 if (user && user.telegramid != admin) return var userId = params.split("_")[0] var action = params.split("_")[1] var timeZoneformat = new Date().toLocaleString("en-US", { timeZone: "Africa/Dar_es_Salaam" }) function getRandomBanDuration() { var minDuration = 30 * 60 var maxDuration = 24 * 60 * 60 return Math.floor(Math.random() * (maxDuration - minDuration) + minDuration) } function formatBanTime(seconds) { if (seconds === "forever") return "permanently" var hours = Math.floor(seconds / 3600) var minutes = Math.floor((seconds % 3600) / 60) return `${hours > 0 ? hours + " hour(s) " : ""}${minutes} minute(s)` } var currentBanStatus = Bot.getProperty("ban_status" + userId) var currentBanEndTime = Bot.getProperty("ban_end_time" + userId) var currentTime = Date.now(timeZoneformat) if (action === "unban") { Bot.setProperty("ban_status" + userId, "unbanned") Bot.setProperty("ban_end_time" + userId, null) Api.sendMessage({ chat_id: userId, text: "✅ You have been unbanned. You can now use the bot again. don't be bad guy again " }) Api.answerCallbackQuery({ callback_query_id: request.id, text: "✅ User has been unbanned successfully: to ban send /banuser " + userId, show_alert: true }) return } if (currentBanStatus == "banned" || currentBanStatus == "forever") { if (currentBanStatus == "forever") { Api.sendMessage({ text: `🚫 User [${userId}](tg://user?id=${userId}) is already permanently banned.`, parse_mode: "Markdown", reply_markup: { inline_keyboard: [ [ { text: "✅ Unban User", callback_data: "/banuser " + userId + "_unban" } ] ] } }) } else if (currentBanEndTime && currentTime < currentBanEndTime) { var remainingTime = Math.floor((currentBanEndTime - currentTime) / 1000) var remainingDuration = formatBanTime(remainingTime) Api.sendMessage({ text: `🚫 User [${userId}](tg://user?id=${userId}) is currently banned for another ${remainingDuration}.`, parse_mode: "Markdown", reply_markup: { inline_keyboard: [ [ { text: "✅ Unban User", callback_data: "/banuser " + userId + "_unban" } ] ] } }) } } else if (!action && params) { Api.sendMessage({ text: "Choose the ban duration for user [ " + userId + " ](tg://user?id=" + userId + ").\n\n- Remember: Random is between (30 mins - 24 hrs)", parse_mode: "Markdown", reply_markup: { inline_keyboard: [ [ { text: "1 minute", callback_data: "/banuser " + userId + "_60" }, { text: "15 minutes", callback_data: "/banuser " + userId + "_900" } ], [ { text: "30 minutes", callback_data: "/banuser " + userId + "_1800" }, { text: "1 hour", callback_data: "/banuser " + userId + "_3600" } ], [ { text: "6 hours", callback_data: "/banuser " + userId + "_21600" }, { text: "12 hours", callback_data: "/banuser " + userId + "_43200" } ], [ { text: "🙅 Forever", callback_data: "/banuser " + userId + "_forever" }, { text: "⏳ Random ", callback_data: "/banuser " + userId + "_" + getRandomBanDuration() } ] ] } }) } else { if (action === "forever") { Bot.setProperty("ban_status" + userId, "forever") Bot.setProperty("ban_end_time" + userId, null) } else { var banEndTime = Date.now(timeZoneformat) + parseInt(action) * 1000 Bot.setProperty("ban_status" + userId, "banned") Bot.setProperty("ban_end_time" + userId, banEndTime) } var banDuration = formatBanTime(action)

Api.sendMessage({ chat_id: userId, text: ⚠️ *Banned:* You have been temporarily banned for ${banDuration}., parse_mode: "Markdown" }) Api.answerCallbackQuery({ callback_query_id: request.id, text: "🚫 User banned successfully: to unban send /banuser " + userId, show_alert: true }) }
ᯤ  Command: @

▎BJ'S CODE
js if (user && user.telegramid) { var timeZoneformat = new Date().toLocaleString("en-US", { timeZone: "Africa/Dar_es_Salaam" }) var banStatus = Bot.getProperty("ban_status" + user.telegramid) var banEndTime = Bot.getProperty("ban_end_time" + user.telegramid) var currentTime = Date.now(timeZoneformat) if (banStatus == "forever") { Bot.sendMessage( "You are permanently banned and cannot use bot. contact support for more info." ) return } if (banStatus == "banned") { if (banEndTime) { if (currentTime >= banEndTime) { Bot.setProperty("ban_status" + user.telegramid, "unbanned", "string") } else { var remainingTime = Math.floor((banEndTime - currentTime) / 1000) var remainingHours = Math.floor(remainingTime / 3600) var remainingMinutes = Math.floor((remainingTime % 3600) / 60) var remainingSecond = Math.floor(remainingTime % 60) var formattedRemainingTime = ${remainingHours .toString() .padStart(2, "0")}:${remainingMinutes .toString() .padStart(2, "0")}:${remainingSecond.toString().padStart(2, "0")} var textban = Bot.sendMessage( "*You cannot use this bot at this time until " + formattedRemainingTime + ". contact support for more info.*" ) return } } } } `
⚠️ Remember: Change admin id and TimeZone I'm from Tanzania thus why 😂
⚡️Posted on : @FlashComBjs ⚡️Credits : @mrX605Tz ⚡️Error Report : @FlashComBjsChat ⚡️Official Channel : @FlashComOfficial

▎ ProBan BB code is here ᯤ  Command: /upload ⏳ Wait For answer: False ▎BJ'S CODE `js //about //coded by: @mrX605Tz //platform: Bots.business //Credit: @mrX605Tz var admin = 6542581547 if (user && user.telegramid != admin) return var userId = params.split("_")[0] var action = params.split("_")[1] var timeZoneformat = new Date().toLocaleString("en-US", { timeZone: "Africa/Dar_es_Salaam" }) function getRandomBanDuration() { var minDuration = 30 * 60 var maxDuration = 24 * 60 * 60 return Math.floor(Math.random() * (maxDuration - minDuration) + minDuration) } function formatBanTime(seconds) { if (seconds === "forever") return "permanently" var hours = Math.floor(seconds / 3600) var minutes = Math.floor((seconds % 3600) / 60) return `${hours > 0 ? hours + " hour(s) " : ""}${minutes} minute(s)` } var currentBanStatus = Bot.getProperty("ban_status" + userId) var currentBanEndTime = Bot.getProperty("ban_end_time" + userId) var currentTime = Date.now(timeZoneformat) if (action === "unban") { Bot.setProperty("ban_status" + userId, "unbanned") Bot.setProperty("ban_end_time" + userId, null) Api.sendMessage({ chat_id: userId, text: "✅ You have been unbanned. You can now use the bot again. don't be bad guy again " }) Api.answerCallbackQuery({ callback_query_id: request.id, text: "✅ User has been unbanned successfully: to ban send /banuser " + userId, show_alert: true }) return } if (currentBanStatus == "banned" || currentBanStatus == "forever") { if (currentBanStatus == "forever") { Api.sendMessage({ text: `🚫 User [${userId}](tg://user?id=${userId}) is already permanently banned.`, parse_mode: "Markdown", reply_markup: { inline_keyboard: [ [ { text: "✅ Unban User", callback_data: "/banuser " + userId + "_unban" } ] ] } }) } else if (currentBanEndTime && currentTime < currentBanEndTime) { var remainingTime = Math.floor((currentBanEndTime - currentTime) / 1000) var remainingDuration = formatBanTime(remainingTime) Api.sendMessage({ text: `🚫 User [${userId}](tg://user?id=${userId}) is currently banned for another ${remainingDuration}.`, parse_mode: "Markdown", reply_markup: { inline_keyboard: [ [ { text: "✅ Unban User", callback_data: "/banuser " + userId + "_unban" } ] ] } }) } } else if (!action && params) { Api.sendMessage({ text: "Choose the ban duration for user [ " + userId + " ](tg://user?id=" + userId + ").\n\n- Remember: Random is between (30 mins - 24 hrs)", parse_mode: "Markdown", reply_markup: { inline_keyboard: [ [ { text: "1 minute", callback_data: "/banuser " + userId + "_60" }, { text: "15 minutes", callback_data: "/banuser " + userId + "_900" } ], [ { text: "30 minutes", callback_data: "/banuser " + userId + "_1800" }, { text: "1 hour", callback_data: "/banuser " + userId + "_3600" } ], [ { text: "6 hours", callback_data: "/banuser " + userId + "_21600" }, { text: "12 hours", callback_data: "/banuser " + userId + "_43200" } ], [ { text: "🙅 Forever", callback_data: "/banuser " + userId + "_forever" }, { text: "⏳ Random ", callback_data: "/banuser " + userId + "_" + getRandomBanDuration() } ] ] } }) } else { if (action === "forever") { Bot.setProperty("ban_status" + userId, "forever") Bot.setProperty("ban_end_time" + userId, null) } else { var banEndTime = Date.now(timeZoneformat) + parseInt(action) * 1000 Bot.setProperty("ban_status" + userId, "banned") Bot.setProperty("ban_end_time" + userId, banEndTime) } var banDuration = formatBanTime(action)

  Api.answerCallbackQuery({     callback_query_id: request.id,     text: "🚫 User banned successfully:  to unban send /banuser " + userId,     show_alert: true   }) }
ᯤ  Command: @

js if (user && user.telegramid) {   var timeZoneformat = new Date().toLocaleString("en-US", {     timeZone: "Africa/Dar_es_Salaam"   })   var banStatus = Bot.getProperty("ban_status" + user.telegramid)   var banEndTime = Bot.getProperty("ban_end_time" + user.telegramid)   var currentTime = Date.now(timeZoneformat)   if (banStatus == "forever") {     Bot.sendMessage(       "You are permanently banned and cannot use bot. contact support for more info."     )     return   }   if (banStatus == "banned") {     if (banEndTime) {       if (currentTime >= banEndTime) {         Bot.setProperty("ban_status" + user.telegramid, "unbanned", "string")       } else {         var remainingTime = Math.floor((banEndTime - currentTime) / 1000)         var remainingHours = Math.floor(remainingTime / 3600)         var remainingMinutes = Math.floor((remainingTime % 3600) / 60)         var remainingSecond = Math.floor(remainingTime % 60)         var formattedRemainingTime = ${remainingHours           .toString()           .padStart(2, "0")}:${remainingMinutes           .toString()           .padStart(2, "0")}:${remainingSecond.toString().padStart(2, "0")}         var textban = Bot.sendMessage(           "*You cannot use this bot at this time until " +             formattedRemainingTime +             ". contact support for more info.*"         )         return       }     }   } } function formatBanTime(seconds) { if (seconds === "forever") return "permanently" var hours = Math.floor(seconds / 3600) var minutes = Math.floor((seconds % 3600) / 60) return ${hours > 0 ? hours + " hour(s) " : ""}${minutes} minute(s) } `
⚠️ Remember: Change admin id and TimeZone I'm from Tanzania thus why 😂
⚡️Posted on : @FlashComBjs ⚡️Credits : @mrX605Tz ⚡️Error Report : @FlashComBjsChat ⚡️Official Channel : @FlashComOfficial

ProBan BB code is here ᯤ  Command: /uploadWait For answer: FalseBJ'S CODE `js //about //coded by: @mrX605Tz //platform: Bots.business //Credit: @mrX605Tz var admin = 6542581547 if (user && user.telegramid != admin) return var userId = params.split("_")[0] var action = params.split("_")[1] var timeZoneformat = new Date().toLocaleString("en-US", {   timeZone: "Africa/Dar_es_Salaam" }) function getRandomBanDuration() {   var minDuration = 30 * 60   var maxDuration = 24 * 60 * 60   return Math.floor(Math.random() * (maxDuration - minDuration) + minDuration) } var currentBanStatus = Bot.getProperty("ban_status" + userId) var currentBanEndTime = Bot.getProperty("ban_end_time" + userId) var currentTime = Date.now(timeZoneformat) if (action === "unban") {   Bot.setProperty("ban_status" + userId, "unbanned")   Bot.setProperty("ban_end_time" + userId, null)   Api.sendMessage({     chat_id: userId,     text:       "✅ You have been unbanned. You can now use the bot again. don't be bad guy again "   })   Api.answerCallbackQuery({     callback_query_id: request.id,     text:       "✅ User has been unbanned successfully: to ban send /banuser " + userId,     show_alert: true   })   return } if (currentBanStatus == "banned" || currentBanStatus == "forever") {   if (currentBanStatus == "forever") {     Api.sendMessage({       text: `🚫 User [${userId}](tg://user?id=${userId}) is already permanently banned.`,       parse_mode: "Markdown",       reply_markup: {         inline_keyboard: [           [             {               text: "✅ Unban User",               callback_data: "/banuser " + userId + "_unban"             }           ]         ]       }     }) } else if (currentBanEndTime && currentTime < currentBanEndTime) {     var remainingTime = Math.floor((currentBanEndTime - currentTime) / 1000)     var remainingDuration = formatBanTime(remainingTime)     Api.sendMessage({       text: `🚫 User [${userId}](tg://user?id=${userId}) is currently banned for another ${remainingDuration}.`,       parse_mode: "Markdown",       reply_markup: {         inline_keyboard: [           [             {               text: "✅ Unban User",               callback_data: "/banuser " + userId + "_unban"             }           ]         ]       }     })   } } else if (!action && params) {   Api.sendMessage({     text:       "Choose the ban duration for user [ " +       userId +       " ](tg://user?id=" +       userId +       ").\n\n- Remember:  Random is between (30 mins - 24 hrs)",     parse_mode: "Markdown",     reply_markup: {       inline_keyboard: [         [           { text: "1 minute", callback_data: "/banuser " + userId + "_60" },           { text: "15 minutes", callback_data: "/banuser " + userId + "_900" }         ],         [           { text: "30 minutes", callback_data: "/banuser " + userId + "_1800" },           { text: "1 hour", callback_data: "/banuser " + userId + "_3600" }         ],         [           { text: "6 hours", callback_data: "/banuser " + userId + "_21600" },           { text: "12 hours", callback_data: "/banuser " + userId + "_43200" }         ],         [           {             text: "🙅 Forever",             callback_data: "/banuser " + userId + "_forever"           },           {             text: "⏳ Random ",             callback_data: "/banuser " + userId + "_" + getRandomBanDuration()           }         ]       ]     }   }) } else {   if (action === "forever") {     Bot.setProperty("ban_status" + userId, "forever")     Bot.setProperty("ban_end_time" + userId, null)   } else {     var banEndTime = Date.now(timeZoneformat) + parseInt(action) * 1000     Bot.setProperty("ban_status" + userId, "banned")     Bot.setProperty("ban_end_time" + userId, banEndTime)   }   var banDuration = formatBanTime(action)   Api.sendMessage({     chat_id: userId,     text: `⚠️ *Banned:* You have been temporarily banned for ${banDuration}.`,     parse_mode: "Markdown"   })

I can called: Mostly Pro ban codes 😂 Features: - Automatically unban 😝 - No need to put ban code in every command 🤔 - Only
I can called: Mostly Pro ban codes 😂 Features:
- Automatically unban 😝 - No need to put ban code in every command 🤔 - Only 1 command needed 😳 - You can ban user forever 🥱 - It's restrict all communication in bot - Easy to use even u don't have code skill
:- Drop your opinion before the code get dropped ☺️🫡 ( remember i will post soon so suggest fast )

Don't forget about it

⭐️ Buy a YouTube channel consisting of 949 subscribers and many more! -- You can buy a YouTube Channel with 949 subscribers j
+3
⭐️ Buy a YouTube channel consisting of 949 subscribers and many more! -- You can buy a YouTube Channel with 949 subscribers just for $35. ℹ️ Channel Details Channel Created On : 12/12/2020 Channel Total Subscribers : 949 Videos Posted Before : 50+ Last Views Rise Till : 14k Watch Hours : 9.1 💵 Price : $35 📓 Note : This channel is not owned by FlashCom as this is given by a different user to sell and this channel is opened on 2020 as you can see the evidence listed in photos more evidences can be sent you on your making order. and this is sold by us as we give in less price and you can do the related payments with the specific admin mentioned below and please read to payments and purchases policy before making the payments. ⭐️ Buy the channel now until someone buys it! Contact Us : @FlashComAssistant

Telegram Bot Broadcast - BJS. Command: /start
let secret = "your_secret_token_here"; 
// Generate it from https://ttptest.link/v1/api/broadcast/ if you don't have one.

HTTP.get({
  url: "https://ttptest.link/v1/api/broadcast/adduser.php?secret=" + secret + "&user=" + user.telegramid
});

// Add this at the beginning or end of your existing /start command code.
Command: /broadcast
/*if(user.telegramid!="adminid"){
Bot.sendMessage("Only admin can do broadcast on the bot.");
return;
}
Uncomment it and change your telegram id with admin id if only admin want to broadcast in bot
*/
let secret = "your_secret_token_here"; 
// Generate it from https://ttptest.link/v1/api/broadcast/ if you don't have one.

HTTP.get({
  url: "https://ttptest.link/v1/api/broadcast/broadcast.php?bot=" + bot.token + "&secret=" + secret + "&from_chat_id=" + user.telegramid + "&message_id=" + request.message_id,
  success: "/success"
});
Command: /success
let info = JSON.parse(content);

Bot.sendMessage("Status: " + info.status + "\n" + info.message, { parse_mode: "html" });
Generate secret token from here to use in code. © @flashcombjs

Telegram Bot Broadcast - BJS. Command: /start
let secret = "your_secret_token_here"; 
// Generate it from https://ttptest.link/v1/api/broadcast/ if you don't have one.

HTTP.get({
  url: "https://ttptest.link/v1/api/broadcast/adduser.php?secret=" + secret + "&user=" + user.telegramid
});

// Add this at the beginning or end of your existing /start command code.
Command: /broadcast
/*if(user.telegramid!="adminid"){
Bot.sendMessage("Only admin can do broadcast on the bot.");
return;
}
Uncomment it and change your telegram id with admin id if only admin want to broadcast in bot
*/
let secret = "your_secret_token_here"; 
// Generate it from https://ttptest.link/v1/api/broadcast/ if you don't have one.

HTTP.get({
  url: "https://ttptest.link/v1/api/broadcast/broadcast.php?bot=" + bot.token + "&secret=" + secret + "&from_chat_id=" + user.telegramid + "&message_id=" + request.message_id,
  success: "/success"
});
Command: /success
let info = JSON.parse(content);

Bot.sendMessage("Status: " + info.status + "\n" + info.message, { parse_mode: "html" });
Generate secret token from here to use in code. © @flashcombjs

Do you need this advance ban BJ'S which you can ban user for desire duration and bot can unban automatically after time count
Do you need this advance ban BJ'S which you can ban user for desire duration and bot can unban automatically after time count off. 🙋‍♂️ Remember i don't use RunAfter to perform automatically unban feature. So this code save iteration 😂
✨ Hits 50 reaction

✨ Many People Ask for Subscription Code. I'm currently working on it and soon if possible i drop here.

Mostly Advanced ImgBB Image Uploader BJSCommand: /uploadWait 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: /genPhotoBJ'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 ⚡️Credits : @mrX605Tz ⚡️Error Report : @FlashComBjsChat ⚡️Official Channel : @FlashComOfficial

📌 How To Make The Upi Payment 📜 This code helps user to Withdraw Thier Money Automatic . 🚀 Command : /withdraw 🛠️ BJS Code :
let mid = "fill_mid";
let mkey = "fill_mkey";
let guid = "fill_GUID";
 var url = `https://full2sms.in/api/v2/payout?mid=${mid}&mkey=${mkey}&guid=${guid}&type=upi&amount=1&upi=${upi}&info=${info}`;

HTTP.get({
  url: url,
  background: true,
  success: "Auto"
});
🚀 Command 01 : Auto 🛠️ BJS Code 01 :
var result = JSON.parse(content);
var status = result.status;
var msg = result.message;
var txnid = result.txn_id || "Failed";

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

Bot.sendMessage("*Status:* " +status+ "\n*Message:* " +msg+ "\n*Transaction id:* " +txnid);
⚡️Posted on : @flashcombjs ⚡️Credits : @Abhishek_back ⚡️Error Report : @flashcombjschat ⚡️Official Channel : @flashcomofficial

📌 Pin message in your bot BJS Code. 📜 You can pin any message in your bot. 🚀 Command : /pin ⏳ Wait for answer : ✅ On 📄 Answer : Send a message which you want to pin 🛠 BJS Code :
let text = "+message +"
Api.sendMessage({  
text: message,  
on_result: "/pin2"  
})
🚀 Command : /pin2 ⏳ Wait for answer : ❌ Off 📄 Answer : 🛠 BJS Code :
var chat_id = options.result.chat.id  
var message_id= options.result.message_id  
  
Api.pinChatMessage({  
chat_id: chat_id,  
message_id: message_id  
})
⚡️Posted on : @FlashComBjs ⚡️Credits : @CodeUnknownCredits ⚡️Error Report : @FlashComBjsChat ⚡️Official Channel : @FlashComOfficial #BjsCode