Forwarded from Goddy BJS
Goddy BJS
10 reactions for this bot๐โ๏ธ
I guess you guys donโt want this bot๐
Forwarded from Goddy BJS
Goddy BJS
5+ reactions for this codeโ๏ธ
Letโs get to 40 subscribers
Share to your friends โ๏ธ
Then I would drop the bjs
Share to your friends โ๏ธ
Then I would drop the bjs
Forwarded from Goddy BJS
Goddy BJS
5+ reactions for this codeโ๏ธ
Store on top any commmand e.g /start
Command- /bonus
Command- /setamount
Wait for answer- on
Command- /bonsuc
var allUsers = Bot.getProperty("allUsers", []);
if (allUsers.indexOf(user.telegramid) === -1) {
allUsers.push(user.telegramid);
Bot.setProperty("allUsers", allUsers, "json");
}
Command- /bonus
var adminId = 1399031414; // replace to your id
if (user.telegramid != adminId) {
Bot.sendMessage("โ You are not authorized to use this command.");
return;
}
Bot.sendMessage("Please enter the bonus amount to give per user:");
Bot.runCommand("/setamount");
Command- /setamount
Wait for answer- on
var adminId = 1399031414; // replace to your id
if (user.telegramid != adminId) {
Bot.sendMessage("โ You are not authorized to use this command.");
return;
}
var bonusAmount = parseFloat(message);
if (isNaN(bonusAmount) || bonusAmount <= 0) {
Bot.sendMessage("โ Please enter a valid bonus amount.");
return;
}
User.setProperty("bonusAmount", bonusAmount, "float");
Bot.sendMessage("โ Starting to distribute " + bonusAmount + " bonus to all users...");
Bot.runCommand("/bonsuc");
Command- /bonsuc
var bonusAmount = User.getProperty("bonusAmount");
if (!bonusAmount) {
Bot.sendMessage("โ Bonus amount not set.");
return;
}
var allUsers = Bot.getProperty("allUsers");
if (!allUsers || allUsers.length == 0) {
Bot.sendMessage("โ No users found.");
return;
}
for (var i = 0; i < allUsers.length; i++) {
var userId = allUsers[i];
var balance = Libs.ResourcesLib.anotherUserRes("balance", userId);
balance.add(bonusAmount);
Bot.sendMessageToChatWithId(userId, "๐ You have received a bonus of " + bonusAmount + " TRX!");
}
Bot.sendMessage("โ
Bonus has been successfully distributed to all users.");Forwarded from Goddy BJS
Forwarded message blocker for group chat
Command- * or @
Command- * or @
function handleIncomingMessage() {
let chatId = chat.chatid;
let messageId = request.message_id;
if (request.forward_date) {
let messageKey = "processed_message_" + chatId + "_" + messageId;
let processed = Bot.getProperty(messageKey);
if (processed) {
return;
}
Bot.setProperty(messageKey, true, "boolean");
Api.deleteMessage({
chat_id: chatId,
message_id: messageId
});
let username = user.username ? "@" + user.username : user.first_name;
Bot.sendMessage(username + ",Forwarded messages not allowed๐ก.");
return;
}
handleIncomingMessage();Forwarded from Goddy BJS
๐ซถ๐ปโค๏ธ AUTO REACTION (FOR CHANNEL) [Bots Business Codes].
๐ Command:
๐ BJS:
๐ Command:
*๐ BJS:
var request2 =JSON.parse(request)
if(request2.channel_post){
var msgid = request2.channel_post.message_id
var ch = request2.channel_post.sender_chat.id
var myEmoji = ["๐", "๐", "โค", "๐ฅ", "๐ฅฐ", "๐", "๐", "๐ค", "๐คฏ", "๐ฑ", "๐คฌ", "๐ข", "๐", "๐คฉ", "๐คฎ", "๐ฉ", "๐", "๐", "๐", "๐คก", "๐ฅฑ", "๐ฅด", "๐", "๐ณ", "โคโ๐ฅ", "๐", "๐ญ", "๐ฏ", "๐คฃ", "โก", "๐", "๐", "๐", "๐คจ", "๐", "๐", "๐พ", "๐", "๐", "๐", "๐ด", "๐ญ", "๐ค", "๐ป", "๐จโ๐ป", "๐", "๐", "๐", "๐", "๐จ", "๐ค", "โ", "๐ค", "๐ซก", "๐ ", "๐", "โ", "๐ ", "๐คช", "๐ฟ", "๐", "๐", "๐", "๐ฆ", "๐", "๐", "๐", "๐", "๐พ", "๐คทโโ", "๐คท", "๐คทโโ", "๐ก"]
var doEmoji = myEmoji[Math.floor(Math.random() * myEmoji.length)];
HTTP.post({
url: "https://api.telegram.org/bot" + bot.token + "/setMessageReaction",
body: {
chat_id: ch,
message_id: msgid,
reaction: JSON.stringify([
{
type: "emoji",
emoji: doEmoji,
is_big: true
}
])
}
});
}
๐ง๐ผโ๐ปCreated By: ๐ธ ๐ด ๐บ ๐ฒ ๐พ ๐ฆ
Forwarded from Goddy BJS
Link Masking BJS
1๏ธโฃ Command - /mask
2๏ธโฃ Command - /maskurl
โ Turn on Wait for answer
3๏ธโฃ Command - /writedes
โ Turn on wait for answer
1๏ธโฃ Command - /mask
Bot.sendMessage("Provide your url i would mask it (e.g., https://example.com):");
Bot.runCommand("/maskurl")
2๏ธโฃ Command - /maskurl
โ Turn on Wait for answer
let url = message;
User.setProperty("masked_url", url, "string");
Bot.sendMessage("Now, please provide a description or display text for the link:");
Bot.runCommand("/writedes")
3๏ธโฃ Command - /writedes
โ Turn on wait for answer
let description = message;
let url = User.getProperty("masked_url"); // retrieve the stored URL
if (url && description) {
let maskedLink = "[" + description + "](" + url + ")";
Bot.sendMessage("Masked Link Generated:\n" + maskedLink, {parse_mode: "Markdown"});
} else {
Bot.sendMessage("Error: URL not available ๐.");
}
Forwarded from Goddy BJS
Goddy BJS
Chat GPT code๐ฌ 10 reactions I would drop code and 50 subscribers
ChatGPT Code
1๏ธโฃ Command - *
2๏ธโฃ Command - /onResponse
1๏ธโฃ Command - *
Api.sendChatAction({
chat_id: chat.chatid,
action: "typing"
});
var ms = message;
var url = 'https://bj-tricks.serv00.net/BJ_Coder-Apis/gpt4o.php?question=' + encodeURIComponent(ms);
User.setProperty("message_id", chat.message_id, "integer");
HTTP.get({
url: url,
success: "/onResponse",
error: "/onError"
});
2๏ธโฃ Command - /onResponse
var message_id = User.getProperty("message_id");
var response = JSON.parse(content);
var msg = response.message;
Api.sendMessage({
chat_id: chat.chatid,
text: msg,
parse_mode: "Markdown",
reply_to_message_id: message_id
});
User.setProperty("message_id", null, "integer");Forwarded from Goddy BJS
Goddy BJS
10 reactions and 50 subscribers and I would drop โ๏ธ
1๏ธโฃ Command- @topup
2๏ธโฃ Command- /add
3๏ธโฃ Command- /remove
4๏ธโฃ Command- /clearall
5๏ธโฃ Command- /setIncrement
let targetUserId = parseInt(params); // e.g., if "@topup 6542581547", params will be "6542581547"
if (!targetUserId) {
Bot.sendMessage("โ Please provide a valid user ID. Usage: @topup <user_id>");
return;
}
User.setProperty("targetUserId", targetUserId, "integer");
let balance = Libs.ResourcesLib.anotherUserRes("balance", targetUserId);
let lastAction = User.getProperty("lastAction", "N/A", targetUserId);
let lastAdmin = User.getProperty("lastAdmin", "N/A", targetUserId);
let incrementAmount = User.getProperty("incrementAmount", 1000); // this is the default balance๐คซ
let messageText =
"*Balance Panel*\n\n" +
"๐ *User ID*: `" + targetUserId + "`\n" +
"๐ฐ *Balance*: " + balance.value().toFixed(2) + " TRX\n\n" +
"*Last Action*: " + lastAction + "\n" +
"*Last Admin*: `" + lastAdmin + "`\n\n" +
"๐ *Current Increment*: " + incrementAmount + " TRX";
let keyboard = [
[{ text: "+ 1000 TRX", callback_data: "/add 1000" }, { text: "- 1000 TRX", callback_data: "/remove 1000" }],
[{ text: "๐ซ Clear Balance", callback_data: "/clearall" }],
[{ text: "๐ 1 TRX", callback_data: "/setIncrement 1" }, { text: "๐ 5 TRX", callback_data: "/setIncrement 5" }, { text: "๐ 10 TRX", callback_data: "/setIncrement 10" }],
[{ text: "๐ 100 TRX", callback_data: "/setIncrement 100" }, { text: "๐ 500 TRX", callback_data: "/setIncrement 500" }, { text: "๐ 1000 TRX", callback_data: "/setIncrement 1000" }]
];
Api.sendMessage({
text: messageText,
parse_mode: "markdown",
reply_markup: {
inline_keyboard: keyboard
}
});
2๏ธโฃ Command- /add
let increment = parseInt(params); let targetUserId = User.getProperty("targetUserId");
let balance = Libs.ResourcesLib.anotherUserRes("balance", targetUserId);
balance.add(increment);
User.setProperty("lastAction", "Increased Balance by " + increment + " TRX");
User.setProperty("lastAdmin", user.telegramid);
Bot.sendMessage("โ
Added " + increment + " TRX to balance.");
3๏ธโฃ Command- /remove
let decrement = parseInt(params); let targetUserId = User.getProperty("targetUserId");
let balance = Libs.ResourcesLib.anotherUserRes("balance", targetUserId);
balance.remove(decrement);
User.setProperty("lastAction", "Decreased Balance by " + decrement + " TRX");
User.setProperty("lastAdmin", user.telegramid);
Bot.sendMessage("โ Removed " + decrement + " TRX from balance.");
4๏ธโฃ Command- /clearall
let targetUserId = User.getProperty("targetUserId");
let balance = Libs.ResourcesLib.anotherUserRes("balance", targetUserId);
balance.set(0);
User.setProperty("lastAction", "Cleared Balance");
User.setProperty("lastAdmin", user.telegramid);
Bot.sendMessage("๐ฅฒ Balance has been cleared to 0 TRX.");
5๏ธโฃ Command- /setIncrement
let incrementAmount = parseInt(params); // If /setIncrement 500 params would be 500๐
User.setProperty("incrementAmount", incrementAmount, "integer");
let targetUserId = User.getProperty("targetUserId");
Bot.runCommand("@topup " + targetUserId);
Forwarded from Goddy BJS
On Added Bot to Group
Description: This code detects when the bot is added to a group and sends a welcome message
Command- *
Description: This code detects when the bot is added to a group and sends a welcome message
Command- *
var newJoined = request.new_chat_members;
if (newJoined && newJoined.length > 0) {
for (var i = 0; i < newJoined.length; i++) {
let user = newJoined[i];
if (user.username && user.username === bot.name) {
Api.sendMessage({
chat_id: request.chat.id,
text:
"Hey, thanks for adding me to your group! ๐\n\n" +
"Before getting started, make sure I have admin privileges to work properly.",//sends the message to the group๐จโ๐ป
parse_mode: "markdown"
});
break;
}
}
}
Forwarded from Goddy BJS
This bot can help you build up your TikTok Account
You can get likes, views and Followers for free๐
https://t.me/tiktoup_bot?start=a4YGAw0A
You can get likes, views and Followers for free๐
https://t.me/tiktoup_bot?start=a4YGAw0A
Telegram
TikToUP
TikToup: Your TikTok booster. Get more likes, views, and followers effortlessly.
Forwarded from Goddy BJS
Photo Protection
Description: User canโt be able to save the photo
Description: User canโt be able to save the photo
Api.sendPhoto({
chat_id: user.telegramid,
photo: "Photo Link", // Add your photo link
caption: "You canโt save this photo trust me.",
protect_content: true //protection is set to true
});Forwarded from Goddy BJS
Goddy BJS
Photo Protection Description: User canโt be able to save the photo Api.sendPhoto({ chat_id: user.telegramid, photo: "Photo Link", // Add your photo link caption: "You canโt save this photo trust me.", protect_content: true //protection is set to trueโฆ
User canโt be able to take a screenshot also
Try it and come back to give reactions๐๐จโ๐ป
Try it and come back to give reactions๐๐จโ๐ป
Forwarded from Goddy BJS
This Code allows you send multiple media
You can send photo and video at once
You can send photo and video at once
Api.sendMediaGroup({
chat_id: user.telegramid,
media: JSON.stringify([
{ type: "photo", media: "https://t.me/goddytest/6" },//replace this with your photo link
{ type: "video", media: "https://t.me/goddytest/7",//replace this with your video link
caption: "just a test" }
])
});
Telegram
Goddy test
Forwarded from Goddy BJS
Text to speech
Description: converts your text to audio
200 characters maximum
Command - /text
Answer: Send your text
Wait for answer on
Description: converts your text to audio
200 characters maximum
Command - /text
Answer: Send your text
Wait for answer on
var text = message;
var url = "https://translate.google.com/translate_tts?ie=UTF-8&q=" + encodeURIComponent(text) + "&tl=en&client=tw-ob";
Api.sendAudio({
chat_id: user.telegramid,
audio: url,
caption: "I have generated uour audio!",
parse_mode: "Markdown"
});
Forwarded from Goddy BJS
Random Memes using Api
Command- Any command
Command- /success
Command- Any command
HTTP.get({
url: "https://api.imgflip.com/get_memes",
success: "/success"
});
Command- /success
var data = JSON.parse(content);
var memes = data.data.memes;
var randomMeme = memes[Math.floor(Math.random() * memes.length)];
Api.sendPhoto({
chat_id: user.telegramid,
photo: randomMeme.url,
caption: randomMeme.name
});
Forwarded from Goddy BJS
This bot can help you build up your TikTok Account
You can get likes, views and Followers for free๐
https://t.me/tiktoup_bot?start=a4YGAw0A
You can get likes, views and Followers for free๐
https://t.me/tiktoup_bot?start=a4YGAw0A
Telegram
TikToUP
TikToup: Your TikTok booster. Get more likes, views, and followers effortlessly.
Forwarded from Goddy BJS
Random Quote BJS using Api
Command- *
Command- /success
Command- *
Api.sendChatAction({
chat_id: chat.chatid,
action: "typing"
});
User.setProperty("message_id", chat.message_id, "integer");
HTTP.get({
url: "https://dummyjson.com/quotes/random",
success: "/success",
error: "/onError"
});
Command- /success
var message_id = User.getProperty("message_id");
try {
var response = JSON.parse(content);
var quote = response.quote;
var author = response.author;
Api.sendMessage({
chat_id: chat.chatid,
text: "\"" + quote + "\"\n" + "- *" + author + "*",
parse_mode: "Markdown",
reply_to_message_id: message_id
});
} catch (e) {
Api.sendMessage({
chat_id: chat.chatid,
text: "Error: Could not fetch a quote.\n\nRaw Response:\n" + content,
reply_to_message_id: message_id
});
}
User.setProperty("message_id", null, "integer");
Forwarded from Goddy group7
I'm selling these usernames at affordable rates
If interested dm @fellyfellyyy
@WenMinted
@ChainAlertX
@BridgeBotHQ
@ArbWatcher
@FaucetFinder
@TokenAfrica
@CoinTrakx
@AlphaSniperAI
@GPTxCrypto
@BotWhaleAI
@ChainAIHub
@AIWalletGen
@ContractSmith
@SolidityWiz
@SniperFrenzy
@AlphaDropz
@WenLamboDrop
@BlockLabsX
@BitBaseHQ
@ETHWorldNews
@RemoteJobsNigeria
@FreeCoursesVault
@ChainMintX
@BitVaultNet
@P2PNaira
@WalletPing
@GemsOnlyHQ
@BullishRadar
@DefiGemsHunt
@ShillZoneX
@ethdeck
@Web3NigeriaX
@FinaMint
@Blockminty
@Cryptix
@TradeCoinsFast
@GaslessDegen
@FarmETHx
@MemeLaunchX
If interested dm @fellyfellyyy
@WenMinted
@ChainAlertX
@BridgeBotHQ
@ArbWatcher
@FaucetFinder
@TokenAfrica
@CoinTrakx
@AlphaSniperAI
@GPTxCrypto
@BotWhaleAI
@ChainAIHub
@AIWalletGen
@ContractSmith
@SolidityWiz
@SniperFrenzy
@AlphaDropz
@WenLamboDrop
@BlockLabsX
@BitBaseHQ
@ETHWorldNews
@RemoteJobsNigeria
@FreeCoursesVault
@ChainMintX
@BitVaultNet
@P2PNaira
@WalletPing
@GemsOnlyHQ
@BullishRadar
@DefiGemsHunt
@ShillZoneX
@ethdeck
@Web3NigeriaX
@FinaMint
@Blockminty
@Cryptix
@TradeCoinsFast
@GaslessDegen
@FarmETHx
@MemeLaunchX