Goddy group
1 subscriber
14 photos
7 links
Download Telegram
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