This commit is contained in:
Cedric Hoelzl 2020-07-01 11:33:32 +02:00
parent fd131b0b1d
commit 2f32a8381c

View File

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