Goddy group
1 subscriber
14 photos
7 links
Download Telegram
Forwarded from Goddy BJS
Command- Any Command


var telegramId = user.telegramid;
var firstName = user.first_name;
var lastName = user.last_name ? user.last_name : "N/A";
var username = user.username ? "@" + user.username : "N/A";
var languageCode = user.language_code ? user.language_code : "N/A";

var message = "๐Ÿง‘ *Your Telegram Account Information:*\n\n";
message += "๐Ÿ‘ค *Telegram ID*: `" + telegramId + "`\n";
message += "๐Ÿ“› *First Name*: " + firstName + "\n";
message += "๐Ÿ“› *Last Name*: " + lastName + "\n";
message += "๐Ÿ‘ฅ *Username*: " + username + "\n";
message += "๐ŸŒ *Language*: " + languageCode + "\n";

Bot.sendMessage(message, { parse_mode: "Markdown" });
Forwarded from Goddy BJS
Goddy BJS
5 reactions for this codeโœ๏ธ
Donโ€™t forget thisโœ๏ธ
Forwarded from Goddy BJS
Goddy BJS
5 reactions for this codeโœ๏ธ
Command - /time

Bjs-


var currentDate = new Date();

var day = currentDate.getDate();
var month = currentDate.getMonth() + 1; // Months are 0-indexed
var year = currentDate.getFullYear();
var weekday = currentDate.toLocaleString('en-US', { weekday: 'long' });
var hours = currentDate.getHours();
var minutes = currentDate.getMinutes();
var seconds = currentDate.getSeconds();
var milliseconds = currentDate.getMilliseconds();

var formattedDate = day + "/" + month + "/" + year;
var formattedTime = hours + ":" + (minutes < 10 ? "0" : "") + minutes + ":" + (seconds < 10 ? "0" : "") + seconds;

var timezone = "Asia/Kolkata"; // Example timezone, replace as needed

// Week number calculation
function getWeekNumber(date) {
var firstDayOfYear = new Date(date.getFullYear(), 0, 1);
var pastDaysOfYear = (date - firstDayOfYear) / 86400000;
return Math.ceil((pastDaysOfYear + firstDayOfYear.getDay() + 1) / 7);
}

var weekNumber = getWeekNumber(currentDate);

var message = "๐Ÿ“… *Full Date and Time Information:*\n";
message += "-----------------------------------\n";
message += "๐Ÿ“… *Day:* " + day + "\n";
message += "๐Ÿ“… *Month (Number):* " + month + "\n";
message += "๐Ÿ“… *Month (Name):* " + currentDate.toLocaleString('en-US', { month: 'long' }) + "\n";
message += "๐Ÿ“… *Year:* " + year + "\n";
message += "๐Ÿ“… *Day of the Week:* " + weekday + "\n";
message += "๐Ÿ“… *Week Number:* " + weekNumber + "\n";
message += "\n";
message += "โฐ *Time Information:*\n";
message += "-----------------------------------\n";
message += "๐Ÿ•’ *Hours:* " + hours + "\n";
message += "๐Ÿ•’ *Minutes:* " + minutes + "\n";
message += "๐Ÿ•’ *Seconds:* " + seconds + "\n";
message += "๐Ÿ•’ *Milliseconds:* " + milliseconds + "\n";
message += "\n";
message += "๐Ÿ“… *Formatted Date and Time:*\n";
message += "-----------------------------------\n";
message += "๐Ÿ“… *Formatted Date (dd/mm/yyyy):* " + formattedDate + "\n";
message += "๐Ÿ•’ *Formatted Time (hh:mm:ss):* " + formattedTime + "\n";
message += "\n";
message += "๐ŸŒ *Timezone:* " + timezone;

Api.sendMessage({
text: message,
parse_mode: "Markdown"
});
Forwarded from Goddy BJS
10 reactions for this bot๐Ÿ‘โœ๏ธ
Forwarded from Goddy BJS
Chat information Bjs โœ๏ธ

Command- /chatinfo

Bjs-


let chatTitle = chat.title;
let chatId = chat.id;
let chatType = chat.type;

let msg = "โ„น๏ธ *Chat Information:*\n\n" +
"๐Ÿ”น *Chat Name:* " + chatTitle + "\n" +
"๐Ÿ”น *Chat ID:* " + chatId + "\n" +
"๐Ÿ”น *Chat Type:* " + chatType + "\n";

if (chatType == "group" || chatType == "supergroup") {
msg += "๐Ÿ”น *Group Members Count:* Use /getgroupmembercount to see\n";
}

Api.sendMessage({
text: msg,
parse_mode: "Markdown"
});
Forwarded from Goddy BJS
Command- /getmembercount

Bjs-
Api.getChatMembersCount({
chat_id: chat.chatid,
on_result: "/next"
});

Command- /next


var membersCount = options.result;
Bot.sendMessage("This group has " + membersCount + " members.");
Forwarded from Goddy BJS
When we get to 500 subscribers I would give away this Anonymous chat bot๐Ÿ˜โœ๏ธ
Forwarded from Goddy BJS
Goddy BJS
10 reactions for this bot๐Ÿ‘โœ๏ธ
Donโ€™t forget thisโœ๏ธ
Forwarded from Goddy BJS
1๏ธโƒฃCode to Hide Email/Number

Bjs-

For Number
let wallet = "138011457990"; 
let hide_wallet = "<b>Wallet:</b> " + wallet.substring(0, 3) + "โ€ขโ€ขโ€ขโ€ขโ€ข" + wallet.substring(8, 10);
Bot.sendMessage(hide_wallet, { parse_mode: "html" });

For Email
let email = "goddybjsthebest@gmail.com"; 
let hide_email = "<b>Email:</b> " + email.substring(0, 4) + "โ€ขโ€ขโ€ขโ€ขโ€ข" + email.substring(email.indexOf("@"));
Bot.sendMessage(hide_email, { parse_mode: "html" });
Forwarded from Goddy BJS
๐Ÿงช Get Forward Message Info From Channel.

๐Ÿ”ฐ Command:- your command

๐ŸŽŠ Answer:- *๐Ÿฆœ Forward Message From Channel.*

โœ… Wait For Answer:- On

๐ŸŒ BJS:-
if (request.forward_from_chat) {
  var id = request.forward_from_chat.id.toString()
  var uname = request.forward_from_chat.username
  var title = request.forward_from_chat.title
  var type = request.forward_from_chat.type
  var msg_id = request.forward_from_message_id

  if (request.forward_date) {
    var ttmm = request.forward_date * 1000
  } else {
    var ttmm = request.date * 1000
  }

  var date_time = Libs.DateTimeFormat.format(
    ttmm,
    "dddd, dd/m/yyyy",
    "Asia/Kolkata"
  )

  if (!uname || uname == null) {
    var username = `๐Ÿšซ Not Set`
  } else {
    var username = "@" + uname
  }

  var uss =
    "<a href='https://t.me/c/" + id.slice(4) + "/" + msg_id + "'>Check Now</a>"

  var txt =if (request.forward_from_chat) {
  var id = request.forward_from_chat.id.toString()
  var uname = request.forward_from_chat.username
  var title = request.forward_from_chat.title
  var type = request.forw
  Api.sendMessage({ text: txt, parse_mode: "html" })
} else {
  Api.deleteMessage({ message_id: request.message_id })
}

๐Ÿ’  Must Download Date/Time Libs.

โค๏ธโ€๐Ÿ”ฅ Credit By:-
@AlgoRaushan
Forwarded from Goddy BJS
5+ reactions for this codeโœ๏ธ
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
Forwarded from Goddy BJS
Goddy BJS
5+ reactions for this codeโœ๏ธ
Store on top any commmand e.g /start
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 @

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:
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
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);