Goddy group
1 subscriber
14 photos
7 links
Download Telegram
Forwarded from Goddy BJS
Chat GPT codeπŸ’¬

10 reactions I would drop code and 50 subscribers
Forwarded from Goddy BJS
10 reactions and 50 subscribers and I would drop ✍️
Forwarded from Goddy BJS
Link Masking BJS

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 - *
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
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- *

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
Forwarded from 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
});
Forwarded from Goddy BJS
This Code allows you send multiple media
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" }
])
});
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

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
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
Forwarded from Goddy BJS
Random Quote BJS using Api

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");
I'm selling these usernames at affordable rates

If interested dm @fellyfellyyy