TeleBox Channel
1K subscribers
1 photo
16 links
Download Telegram
TeleBox: kitt 插件实现自动延迟删除消息

1. 安装 .tpm i kitt

2. 配置

.kitt add 自动延迟删除消息
return ['-1001771725356'].includes(msg.chatId.toString()) && ['/report'].includes(msg.text)
setTimeout(async () => { try { await msg.delete() } catch (e) {}; }, 15 * 1000);


在 -1001771725356 的对话中延迟 15 秒删除 /report

其中对话 ID 匹配逻辑也已换成使用对话的 title 或者 username, 类似这样:

 [`折腾啥`].includes(msg.chat.title)


  [`zhetengsha_group`].includes(msg.chat.username)  


不知道怎么查对话信息的 可以用 .entity 命令

要注意 js 的语法, 有的群名称里可能带引号

在各位群友的努力下, 目前(2025-12-30) 拥有 105 个插件

今后会持续带来新的插件和插件的用法说明 敬请期待

可在 📦 仓库 | 🧩 插件 | 👥 群组 | 📢 频道 查看

🤭TeleBox 合集

🥰#TeleBox #Telegram #tg #人形自走机器人 #bot #插件 #脚本 #restart #keep_online #保活 #自动重启
Please open Telegram to view this post
VIEW IN TELEGRAM
TeleBox: isalive 活了么插件

1. 安装 .tpm i isalive

2. 直接使用 .isalive 用户名/UID

使用 UID 时, 需要满足一些条件 比如有过私聊之类的 目前本脚本会自动获取对话 所以私聊过的可以查到
https://docs.telethon.dev/en/stable/concepts/entities.html

3. 配置定时

.acron cmd 0 0 12 * * * -1002514991425 定时在花火喵查询亚托莉活了么
.isalive 1948276144


在各位群友的努力下, 目前(2026-01-13) 拥有 106 个插件

今后会持续带来新的插件和插件的用法说明 敬请期待

可在 📦 仓库 | 🧩 插件 | 👥 群组 | 📢 频道 查看

🤭TeleBox 合集

🥰#TeleBox #Telegram #tg #人形自走机器人 #bot #插件 #脚本 #活了么 #isalive #上线时间
Please open Telegram to view this post
VIEW IN TELEGRAM
❤4🌚1