Telegram bot #150

Merged
Sirherobrine23 merged 14 commits from Telegram_bot into main 2021-08-11 02:47:35 +00:00
11 changed files with 978 additions and 971 deletions
Showing only changes of commit 552ca66b64 - Show all commits

View File

@ -127,9 +127,12 @@ bot.command("live_log", ctx => {
} else if (/disable/.test(option)) {
// ctx.from.id
for (let ctx_Logs in global.LiveLog) {
if (global.LiveLog[ctx_Logs].from.id === ctx.from.id) delete global.LiveLog[ctx_Logs];
global.LiveLog = global.LiveLog.filter(a=>a);
ctx.reply("Ok");
if (global.LiveLog[ctx_Logs].from.id === ctx.from.id) {
delete global.LiveLog[ctx_Logs];
global.LiveLog = global.LiveLog.filter(a=>a);
ctx.reply("Ok");
}
}
} else ctx.reply("Invalid option")
ctx.reply(ctx.chat.id)
})