From 2f32a8381caf4ad372e1bab42e9a67b0f5f38ef4 Mon Sep 17 00:00:00 2001 From: Cedric Hoelzl Date: Wed, 1 Jul 2020 11:33:32 +0200 Subject: [PATCH] kk --- config.js | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/config.js b/config.js index 7592fbc..07615bd 100644 --- a/config.js +++ b/config.js @@ -112,17 +112,17 @@ module.exports = function(){ }); }else{ return db.get_v(event.chat.id).then(res =>{ - - if(res){ - let kb = []; - for(var rr in res){ - kb.push([bot.mkcb(rr,"del",rr)]) + if(res){ + let kb = []; + for(var rr in res){ + kb.push([bot.mkcb(rr,"del",rr)]) + } + kb.push([bot.mkcb_close("Close")]); + return event.reply( (res+"") , {"reply_markup":Markup.inlineKeyboard(kb),"parse_mode":"Markdown"}); + }else{ + return event.reply("*No Tracking To Delete*", {"parse_mode":"Markdown"}) } - kb.push([bot.mkcb_close("Close")]); - return event.reply( (res+"") , {"reply_markup":Markup.inlineKeyboard(kb),"parse_mode":"Markdown"}); - }else{ - return event.reply("*No Tracking To Delete*", {"parse_mode":"Markdown"}) - } + }); } } }