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"}) - } + }); } } }