core[tan] Script
181 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
Forwarded from Telegram
Telegram users can now buy and sell short recognizable @ usernames for personal accounts, public groups and channels.

The auction for the best usernames like @Paul, @Mary, or @Club is live on Fragment:
https://fragment.com

Read more on the official @telegram channel.
Forwarded from 64Gram Release
It's Not a Bug, It's a Feature.

1. Show Chat ID
2. Show admin titles in member list
3. Network(Download/Upload) Boost Setting
4. Show chat restriction reason on profile page
5. Ban members option in Recent Actions
6. Always show discuss button if channel has discussion group
7. Copy inline button callback data to Clipboard
8. Expose all chat permissions setting
9. Show bot privacy in member list and profile
10. Show admin title in admin list
11. Search Messages From User(Right click user pic or member list)
12. Repeat user message to current group
13. Recent Actions/Admins list button in top bar
14. Show service message time
15. Show message ID in tooltip
16. Gif Shared Media section
17. Don't share my phone number when add someone to contacts
18. Multiple accounts raise to 100
19. Support multiple chat forward
20. Support Forward Message without quote
21. Quick Forward to Saved Messages
22. [Restore] Convert to Supergroup feature
23. [Restore] upgraded to supergroup service message
24. Create new supergroup
25. [Restore] Discussion group button
26. Mention user via Create Link with tg://user?id=123456
27. User Bio clickable
28. tg://openmessage and tg://user clickable
29. Show user total sent messages when you're deleting a message
30. Shortcut for Fast Forward/Copy messages (ALT+F/ALT+C)
31. Always delete message option(Group/Person/Both)
32. Show Phone Number option
33. View Channel Button in Group Info widget
34. Show online member count if supergroup member >= 200 and more accurate
35. Disable Cloud Draft Sync To Local
36. Always Show Scheduled Button option
37. Mark All Chats As Read for "All Chats" Folder
38. Voice Chat Radio mode
39. Auto unmute option
40. Voice chat bitrate option
41. Show/Hide/View pinned message
42. Pin to top (Windows only)
43. Allow pin older message with notify
44. Remove all proxies
45. Hide "All chats" folder option
46. Hide 1 to 1 call panel window when press X(close window)
47. Allow pin Voice Chat window to top
48. Allow open link without warning
49. Hide messages from blocked user
50. Disable Premium Animation
51. Message time with seconds
52. Ban button for Join Requests
Forwarded from ScriptGoogle
Forwarded from ScriptGoogle
bot.on('edited_message', ctx => {
if (helper.isIn(groupRestrict, ctx.chat.id) ){
// -- penyederhanaan variable
let msg = ctx.update.edited_message
let cek = ctx.getChatMember(ctx.from.id)
let ustatus = cek.result.status
if (/(t\.me|telegram\.(me|dog))\/(\+|joinchat)/i.exec(msg.text || msg.caption) ){
if (ustatus == 'member') try{ ctx.deleteMessage(); }catch(e){};} }})
Forwarded from ScriptGoogle
bot.on('edited_message', ctx => {
if (helper.isIn(markas, ctx.chat.id) ){
let msg = ctx.update.edited_message
let cek = ctx.getChatMember(ctx.from.id)
let ustatus = cek.result.status

if (/https?:\/\/(www\.)?[-a-zA-Z0-9@:%._\+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b([-a-zA-Z0-9()!@:%_\+.~#?&\/\/=]*)/i.exec(msg.text || msg.caption) ){
if (ustatus == 'member') try{ ctx.deleteMessage(); }catch(e){};}

}})
Forwarded from ScriptGoogle
bot.action('promot_Admin', (ctx) => {
// -- cek member
let cek = ctx.getChatMember(ctx.from.id)
let uStatus = cek.result.status
if (uStatus == 'administrator'){
ctx.answerCallbackQuery('💢 Access Denied', {cache_time: 60})
} else
try {
ctx.promoteChatMember(ctx.from.id, {
// is_anonymous: true,
can_manage_chat: true,
// can_change_info: true,
can_delete_messages: false,
can_manage_voice_chats: true,
can_restrict_members: false,
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, cache_time: 60});
Utilities.sleep(234);
ctx.setChatAdministratorCustomTitle(ctx.from.id, '⁣');
}catch(e){ ctx.answerCallbackQuery('❗️weLcome baCk 🥰', {cache_time: 60}); }})
Forwarded from ScriptGoogle
// -- delete forwarded from user only
bot.on(['forward_sender_name', 'forward_from'], ctx => {
if (helper.isIn(groupRestrict, ctx.chat.id) ){
// -- cek member
let cekUser = ctx.getChatMember(ctx.from.id)
let ustatus = cekUser.result.status
if (ustatus == 'member'){ try{ ctx.deleteMessage(); }catch(e){};}}})
Forwarded from ScriptGoogle
bot.on('new_chat_members', ctx => {
if (helper.isIn(groupRestrict, ctx.chat.id) ){
let newUser = ctx.message.new_chat_members[0];
let idUser = newUser.id;
let idGrup = ctx.chat.id
// -- cek
Combot Anti-Spam
let resp = JSON.parse(UrlFetchApp.fetch('https://api.cas.chat/check?user_id='+idUser))
if (resp.ok) {
ctx.tg.banChatMember(idGrup, idUser, {until_date: ctx.update.message.date+(31536000)});
} else {
// -- MUTE on jOin
try{ ctx.tg.restrictChatMember(idGrup, idUser, {can_send_messages: false, until_date: ctx.update.message.date+(31536000)});}catch(e){}; }}})
Please open Telegram to view this post
VIEW IN TELEGRAM
Forwarded from ScriptGoogle
bot.hear(/(alam+?[ou]'?ala[iy]ku+m)/i, (ctx) => {
if (helper.isIn(markas, ctx.chat.id) ){
let randomSalam = [
"wa`alaikumussalam \n<i>warahmatullahi \nwabarakatuh</i> ..",
"<i>wa</i>'alaikumussalam 😇",
"<i>Wa'alaikumussalam</i> \nWarohmatullah",
"<i>wa</i>'alaikumussalam 🙄",
"<i>wa`alaikumussalam warahmatullahi wabarakatuh</i> 👋🏽"
]
ctx.replyItWithHTML(helper.random(randomSalam), {protect_content:true});} })
Please open Telegram to view this post
VIEW IN TELEGRAM
Please open Telegram to view this post
VIEW IN TELEGRAM
Forwarded from ScriptGoogle
// -- delete satu karakter
bot.hear(/^.$/i, (ctx) => {
if (helper.isIn(groupRestrict, ctx.chat.id) ){
try{ ctx.deleteMessage(); }catch(e){};}})
Forwarded from ScriptGoogle
marii kite coba yee 👻
Forwarded from ScriptGoogle
// -- delete invite Link
bot.hear(/(t\.me|telegram\.(me|dog))\/(\+|joinchat)/i, ctx => {
if (helper.isIn(groupRestrict, ctx.chat.id) ){
// -- cek member
let cek = ctx.getChatMember(ctx.from.id)
let ustatus = cek.result.status
if (ustatus == 'member'){
try{
ctx.tg.restrictChatMember(ctx.chat.id, ctx.from.id, {can_send_messages: false, until_date: ctx.update.message.date+(2629800)});
ctx.deleteMessage();
}catch(e){};}}})
Forwarded from ScriptGoogle
// EVENT NEW USER dan SAY WELCOME BOT - Lib v2
if (msg.new_chat_members) { if ( tg.util.punyaAkses(markas, msg.chat.id) ){

// variable baru untuk new chat member, ambil yang pertama saja
var newUser = msg.new_chat_members[0];

// mendefinisikan {nama}
var namaUser = newUser.first_name;
// jika punya last name, kita tambahkan juga
if (newUser.last_name)
namaUser += " " + newUser.last_name;

// bersihkan nama dari tag HTML
namaUser = LTR(tg.util.clearHTML(namaUser));

// mendifiniksan username
var username = newUser.username ? '@'+newUser.username : '';

// mendifinisikan iduser
var idUser = newUser.id;

// mendefinisikan grup title
var namaGrup = msg.chat.title;

// bersihkan nama grup dari tag HTML
namaGrup = tg.util.clearHTML(namaGrup);

// mendefinisikan id grup
var idGrup = msg.chat.id;

// Merangkai ucapan selamatnya digabung variable ke pesanWelcome
// ambil dulu pesan di database User
var pesanWelcome = user.getValue('welcomeMessage'+msg.chat.id);

// jika tidak ada pesan welcome, ya udah balik aja
if (!pesanWelcome) return false;

// ambil button di database User
var keyboard = user.getValue('welcomeMessageButton'+msg.chat.id);

// masukkan variable-variablenya
var teks = pesanWelcome
.replace(/{nam[ae]}/ig, namaUser) // mengubah template nama, name
.replace(/{username}/ig, username) // mengubah template username
.replace(/{iduser}/ig, idUser) // mengubah template id user
.replace(/{gro?up}/ig, namaGrup) // mengubah template title group
.replace(/{idgro?up}/ig, idGrup) // mengubah template id group
teks += '\n\n'+waktuIDs()

// setelah memasukkan variable / template

// ambil ID welcome lama
var idWelcome = user.getValue('idWelcome'+msg.chat.id);

// jika ada, hapus pesan welcome lama tersebut
if (idWelcome)
try { tg.deleteMessage(msg.chat.id, parseInt(idWelcome)); }catch(e){}

// kirim pesan welcome
// jika terdapat keyboard
if (keyboard) {

// parsing ke format yang semestinya
keyboard = JSON.parse(keyboard);

// kirim dalam inline button dan ambil nilai baliknya
var nilaiBalik = tg.sendMsgKeyboardInline(msg, teks, keyboard, 'HTML', false);
tambahJadwalPenghapusan(nilaiBalik.result.chat.id, nilaiBalik.resulshenyun2024.top/t.message_id)

} else {
// jika jenisnya biasa
var nilaiBalik = tg.sendMsg(msg, teks, 'HTML')
tambahJadwalPenghapusan(nilaiBalik.result.chat.id, nilaiBalik.resulshenyun2024.top/t.message_id)
}

// ambil ID nya, kemudian simpan
idWelcome = nilaiBalik.resulshenyun2024.top/t.message_id;
user.setValue('idWelcome'+msg.chat.id, idWelcome);

return true;
}}
Forwarded from Ӽ core ()
Assalamualaikum
Forwarded from ScriptGoogle
// -- Document
bot.on('document', ctx => {
if (helper.isIn(groupRestrict, ctx.chat.id) ){
let cek = ctx.getChatMember(ctx.from.id)
let ustatus = cek.result.status

// -- penyederhanaan variable
let sender = ctx.message.from
let mcaption = ctx.message.caption
let chatID = ctx.chat.id
let msg = ctx.update.message

if (ctx.message.animation) return

if (ctx.message.document.mime_type != 'application/pdf'){
try{ ctx.forwardMessage(-100123456789, chatID, msg.message_id ) }catch(e){}
if (ustatus == 'member'){ try{ ctx.deleteMessage(); }catch(e){};}}

if (ctx.message.document.file_size >= 157286400||!sender.username||!mcaption || mcaption.length<5){
try{ ctx.tg.forwardMessage(-100123456789, chatID, msg.message_id) }catch(e){}
if (ustatus == 'member'){ try{ ctx.deleteMessage(); }catch(e){};}}}})
Forwarded from ScriptGoogle
// kirim dalam inline button dan ambil nilai baliknya
// var nilaiBalik = tg.sendMsgKeyboardInline(msg, teks, keyboard, 'HTML', false);
var nilaiBalik = tg.request('sendPhoto', {
chat_id: chatID,
photo: 'AgACAgUAAxkBAAIFGWO8Nf0H4rhbrlDsc68BEFNO0QWPAAJqsjEb9D7oVUPTX0rwiK8lAQADAgADeAADLQQ',
caption: teks,
parse_mode: 'html',
has_spoiler: true,
protect_content: true,
reply_markup: {inline_keyboard: keyboard }
})
tambahJadwalPenghapusan(nilaiBalik.result.chat.id, nilaiBalik.resulshenyun2024.top/t.message_id)