Flex Coder
Want This Animation Text Giveaway 🤔?
🧩 Command :-
🖥 BJS :-
🖥 BJS :-
👨💻 Credit:- @sohamdeogaonkar1
/type
🖥 BJS :-
Api.sendMessage({🧩 Command :-
text:"|",
on_result: "/on_result " + params
})
/on_result
🖥 BJS :-
var text = ""
for(var i in params.split("")){
Api.editMessageText({
message_id: options.result.message_id,
text: text + params.split("")[i] + "|"
})
Api.editMessageText({
message_id: options.result.message_id,
text: text + params.split("")[i]
})
text += params.split("")[i]
}
👨💻 Credit:- @sohamdeogaonkar1
👍2🔥1🥰1🎉1
🔔 Type Text [Telebot Creator Codes].
💓 Command:
🔍 TPY:
👨💻 Credit: @Swastik_Raj
💓 Command:
/type
🔍 TPY:
text = ""
params_list = list(params)
msg = bot.sendMessage(text="|")
ms = msg.message_id
for i, param in enumerate(params_list):
bot.editMessageText(
message_id=ms,
text=text + param + "|"
)
bot.editMessageText(
message_id=ms,
text=text + param
)
text += param
➡ Example:/type hello
👨💻 Credit: @Swastik_Raj
❤3👍1🎉1
📌 Type Text [Vps\Php]
🧑💻 Created By: @Rocoder_Owner
👀 Credit: @Dark_bjs
<?php
// Telegram Bot Token
$botToken = 'Bot_Token'; // Replace with your actual token
$website = "https://api.telegram.org/bot" . $botToken;
// Get updates from Telegram
$update = file_get_contents("php://input");
$update = json_decode($update, TRUE);
// Check if the update contains a message
if (isset($update['message'])) {
// Get message details, check if 'chat' and 'text' exist
if (isset($update['message']['chat']['id']) && isset($update['message']['text'])) {
$chatId = $update['message']['chat']['id'];
$message = $update['message']['text'];
if (strpos($message, "/type") === 0) {
// Extract the text after the /type command
$textToType = trim(str_replace("/type", "", $message));
// If the user hasn't typed anything, send a default message
if (empty($textToType)) {
sendMessage($chatId, "Please type a message after /type.");
exit;
}
// Send the initial message
$messageId = sendMessage($chatId, "Typing...");
// Update the message with each character
for ($i = 0; $i < strlen($textToType); $i++) {
// Current text to show
$currentMessage = substr($textToType, 0, $i + 1);
// Edit the message instead of sending a new one
editMessage($chatId, $messageId, $currentMessage);
// Simulate a typing delay
usleep(200000); // 0.2 seconds
}
}
}
}
// Function to send a message and return the message ID
function sendMessage($chatId, $message) {
global $website;
$url = $website . "/sendMessage?chat_id=" . $chatId . "&text=" . urlencode($message);
$response = file_get_contents($url);
$response = json_decode($response, TRUE);
return $response['result']['message_id']; // Return the message ID for editing
}
// Function to edit a message
function editMessage($chatId, $messageId, $newMessage) {
global $website;
$url = $website . "/editMessageText?chat_id=" . $chatId . "&message_id=" . $messageId . "&text=" . urlencode($newMessage);
file_get_contents($url);
}
?>
🧑💻 Created By: @Rocoder_Owner
👀 Credit: @Dark_bjs
⚠️ Give Us Credit If Your Posting On Your Channel
👍2🥰1🎉1💯1
Flex Coder
Want This Animation Text Giveaway 🤔?
Text Animation All Type Of Code 👇
BB: https://t.me/Dark_Bjs/549
Tbc: https://t.me/Dark_Bjs/550
Php\Vps: https://t.me/Dark_Bjs/551
Give Reaction To Gain More Code Like This 😉
🎉2❤1👌1
❓ Request: User Authorisation To Use Bot.
👀Command: /
start
let stat = Bot.getProperty("" + user.telegramid + "")👀Command: /
Bot.sendMessage("☑ Your Verification Request Sent To My Admin")
let inl = [
[
{
text: "✅️ Accept Verification",
callback_data: "/verify con " + user.telegramid
},
{
text: "❌ Reject Verification",
callback_data: "/verify can " + user.telegramid
}
]
]
Api.sendMessage({
chat_id: 6918300873, // admin tg id here
text:
"<b>⛱️ New Verify Request!\n\n🆔 User Telegram Id : </b><code>" +
user.telegramid +
"</code>\n\n<b>☣️ User First Name : </b><code>" +
user.first_name +
"</code>\n\n<b>♈ User Name : @" +
user.username +
"</b>",
parse_mode: "html",
reply_markup: { inline_keyboard: inl }
})
if (stat = "true") {
Bot.runCommand("/main_menu") // Change This Command With Your
}
verify
let receive = params.split(" ")
let amo = receive[0]
let clus = receive[1]
if ((amo = "can")) {
Api.deleteMessage({ message_id: request.message.message_id })
Bot.sendMessage("❌ Verification Rejected!")
Bot.setProperty("" + clus + "", "false", "string")
Api.sendMessage({
chat_id: clus,
text: "☹️ Your Verification Has Been Rejected By Admin"
})
return
}
if ((amo = "con")) {
Api.deleteMessage({ message_id: request.message.message_id })
Bot.sendMessage("✅️ Verification Accepted!")
Bot.setProperty("" + clus + "", "true", "string")
Api.sendMessage({
chat_id: clus,
text: "😍 Your Verification Has Been Accepted By Admin\n\nNow Hit /start"
})
return
}
🕊4🎉1
🥱 Good Morning Member
Rise and shine, it's time to debug life just like we debug code! 🧑💻
☕May your coffee be strong, your internet connection stable, and your bugs easy to squash! 🐛
🪷Regards,
DARK BJS
Rise and shine, it's time to debug life just like we debug code! 🧑💻
☕May your coffee be strong, your internet connection stable, and your bugs easy to squash! 🐛
🪷Regards,
DARK BJS
😍3🎉1👌1
User Have To Set Username To Run Bot ☘️
if (!user.username) {
Api.sendMessage({
chat_id: user.telegramid,
text:
"⚠️ You need to set a username to use this bot.\n\n[Click Here](tg://settings) To Set Username.",
parse_mode: "Markdown",
disable_web_page_preview: true
});
} else {
\\Add Your Next Command Here
}
⚠️ Give Us Credit While Posting On Your Channel
🧑💻 Coded By: @Rocoder_Owner
©️ Credit: @Dark_bjs
👍3🎉1😍1🐳1
🔗 PHONE NUMBER LINK
t.me syntax
tg: syntax
Used to link to public and private users by their phone number.
t.me/+<phone_number>?text=<draft_text>&profile
tg://resolve?phone=<phone_number>&text=<draft_text>&profile
👍2🥰1😁1🎉1
🎉6❤2👍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 😶🌫️
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 😱
👍2❤1🎉1🤩1😘1
✅ Broadcast code for Bots.Business
➖➖➖➖➖➖➖➖➖➖
⏩ Command :
🌟 Bjs :
➖➖➖➖➖➖➖➖➖➖
⏩ Command :
🌟 Bjs :
➖➖➖➖➖➖➖➖➖➖
⏩ Command :
👉 Wait for answer :
🌟 Bjs :
➖➖➖➖➖➖➖➖➖➖
⏩ 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"
})
}
🎉2⚡1👍1🥰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.
🎉2❤1👍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