Flex Coder
1.97K subscribers
258 photos
47 videos
2 files
226 links
Uɴʟᴇᴀsʜ Tʜᴇ Pᴏᴡᴇʀ Oғ Bᴏᴛ Cᴏᴅɪɴɢ. Gᴇᴛ Fʀᴇᴇ Bᴏᴛ & Cᴏᴅᴇ Oɴ Oᴜʀ Cʜᴀɴɴᴇʟ 🧑‍💻

🔰 Oᴜʀ Yᴏᴜᴛᴜʙᴇ Cʜᴀɴɴᴇʟ: https://www.youtube.com/@Flex_Coder

📞 Cᴏɴᴛᴀᴄᴛ Us Oɴ: @Flex_Hide
🌐 Oɴʟɪɴᴇ Fʀᴏᴍ: 3\07\2024
Download Telegram
🔗 PHONE NUMBER LINK

Used to link to public and private users by their phone number.


t.me syntax
t.me/+<phone_number>?text=<draft_text>&profile

tg: syntax
tg://resolve?phone=<phone_number>&text=<draft_text>&profile
👍2🥰1😁1🎉1
Want More Code 🤔?

Reaction Bi Dedo 🥺
Final Results
94%
Yes
6%
No
🎉62👍1🔥1
Send Message Through UserName 👇

t.me/<username>?text=<draft_text>&profile
🥰2👍1🎉1🙏1
🛡 Handling “Message too long” Error


✏️ Telegram allows sending a Text message of max 4096 characters by bot

💡 Send Message in multiple messages chunks.

let chatId = chat.chatid; // Replace with chat id
let message = 'Long Message to send…'; // Replace with the long message

// Function to split a long message into smaller pieces/chunks
function splitMessage(message, maxLength = 4096) {
  let chunks = []

  // Split the message in multiple chunks each of max 4096 characters
  for (let i = 0; i < message.length; i += maxLength) {
    chunks.push(message.substring(i, Math.min(message.length, i + maxLength)))
  }

  return chunks;
}

// Function to send a long message in smaller pieces
function sendMessageInChunks(chatId, text) {
  // split the message into chunks
  var chunks = splitMessage(text)

  // Send the pieces of chunks one after other
  for (let i = 0; i < chunks.length; i++) {
    Api.sendMessage({ chat_id: chatId, text: chunks[i] })
  }
}

// Send the message in pieces
sendMessageInChunks(chatId, message)


❗️ Only use in state of high requirement, else BB server may get load.
👍2🥰1👏1🎉1
Want Msg From Username & Msg From Phone Number Api 😆?

Just Give Reaction 😶‍🌫️
😍3👍1🎉1
🔔 Notify Code


📚Explanation: If User Run This Command, Entered Admin ID Will Be Notified.

👀Command: As Per You

// Define the admin chat ID
var admin_chat_id = "YOUR_ADMIN_CHAT_ID";  // Replace with the admin's chat ID

Giveaway by @dark_bjs
// Sending a simple example message to the admin
Api.sendMessage({
  chat_id: admin_chat_id,  // Send the message to the admin
  text: "This is an example message sent to the admin.",
  parse_mode: "Markdown",  // Optionally use Markdown
  disable_web_page_preview: true  // No link preview
});

// Optional: Check if the request object has data and delete the previous message
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
  });
}
🎉3👍1🙏1😍1
This media is not supported in your browser
VIEW IN TELEGRAM
Mere Param Mitr ne Hamster ke paiso se full Setup Khareed lia 😱
👍21🎉1🤩1😘1
Broadcast code for Bots.Business



Command :
/start

🌟 Bjs :

var broadcast = Bot.getProperty("Broadcast") ? Bot.getProperty("Broadcast") : []

if (!broadcast.includes(user.telegramid)) {
  broadcast.push(user.telegramid)
  Bot.setProperty("Broadcast", broadcast, "json")
}



Command :
/broadcast

🌟 Bjs :

var admin = Bot.getProperty("admin")

if (user.telegramid === admin) {
  var text = "*💬 Send the text for broadcast*\n\n_⚠️ Note : You can use html tags to decorate your text\n👉 Example :_ <b>Bold</b>\n                        <i>Italic</i>\n                        <u>Underline</u>\n                        <code>Mono</code>, etc."
 
  Api.sendMessage({
    text: text,
    parse_mode: "Markdown"
  })
 
  Bot.runCommand("/broadcast2")
 
} else {
  var notAdminText = "<i>⚠️ You are not admin of @" + bot.name + ".</i>"

  Api.sendMessage({
    text: notAdminText,
    parse_mode: "html"
  })
}



Command :
/broadcast2

👉 Wait for answer :
On

🌟 Bjs :

var admin = Bot.getProperty("admin")

if (user.telegramid === admin) {
  var broadcast = Bot.getProperty("Broadcast")

  for (var i in broadcast) {
    Api.sendMessage({
      chat_id: broadcast[i],
      text: message,
      parse_mode: "html"
    })
  }

  var text =
    "* Broadcast done successfully*\n\n" + inspect(broadcast) + ""

  Api.sendMessage({
    text: text,
    parse_mode: "Markdown"
  })
} else {
  var notAdminText = "<i>⚠️ You are not admin of @" + bot.name + ".</i>"

  Api.sendMessage({
    text: notAdminText,
    parse_mode: "html"
  })
}
🎉21👍1🥰1
New Amazing Bot Is Launching. Be Ready 😁
🎉31🔥1
🔍 Find User Balance Code


🏝️Command: /find

Wait For Answer
📩 Answer
: *Send User Id 🆔*

var admim = user.telegramid
if (admim == "1234567890") {
  var id = message
  var user_bal = Libs.ResourcesLib.anotherUserRes("balance", id)
  Bot.sendMessage("*User Balance :* " + user_bal.value().toFixed(3))
} else {
  Bot.sendMessage("*You're not the admin*")
}

⚠️ If You Are Posting On Your Channel Give Us Credit.
🎉21👍1🔥1
📍 Grab Auto Post Delete & Schedule Post Service For Free & Paid


🎁 We Will Add More Service In This Bot For Features

🤖 Bot:
@TeleactBot
🎉3🤩2👍1
🏵️Random Command Runner BJ'S


👀Command:-
your command

var mycom = ["/start","/bonus","/invite","/statics ","/withdraw","/deposit"," your more command here"]
var command = mycom[Math.floor(Math.random() * mycom.length)];
Bot.runCommand(command)
🎉1👌1😍1
Flex Coder
@TeleactBot
Which Code\Service Should I Add In Bot 🤔?

Comment Here 👇
👍4🎉1😍1
Which Bot Your Want 🤔?

Comment Down 👇
1🔥1🎉1
💪🏻 Strong Password Generator Command

👀Command: /generator

Bot.sendMessage("Generating a secure password... ", {
  on_result: "/gen"
})

👀Command: /gen

var msg = options.result.message_id

var characters = "$%abcdefghijklmnopqrstuvwxyz@#&-_+<>$%1234567890ABCDEFGHIJKLUVWXYZ12345678901234567890@#%&-_+<>$%abcdefghijklMNOPQRSTUVWXyZ"

function genePassword(length) {
    let result = '';
    const charactersLength = characters.length;
    for ( let i = 0; i < length; i++ ) {
        result += characters.charAt(Math.floor(Math.random() * charactersLength));
    }

    return result;
}
Api.editMessageText({
  text: " "+genePassword(15)+"",
  message_id: msg,
  parse_mode:"markdown"
})
🏆3🎉1
Making Some App. So 2-3 I Will Not Upload The Post On Channel 😢

Give Reaction To Motivate Me 😅
🔥3👍2🤔1🎉1
Don't Leave The Channel ⁉️

Some User Are Leaving Channel. Don't Leave Channel After Making App More Amazing Code & Bots Will Be Share On Channel For Free 😁

Various Giveaway Will Take Place On Channel 😊
11🎉1
आप सभी को नवरात्रि की हार्दिक शुभकामनाएं 🙏
🙏3🎉2🐳2
Ads Test Kar Raha Tha App K Liye To Click Bi Count Hogya 😂

Any Guess Konsa App Bana Rha Hu 👇
👍2🐳21🎉1