fix
This commit is contained in:
parent
86a5ef77c0
commit
8eee1738fb
@ -137,7 +137,7 @@ module.exports = function(){
|
|||||||
return get_tracking(ids).then(res=>{
|
return get_tracking(ids).then(res=>{
|
||||||
var text = "*Tracking*\n\n";
|
var text = "*Tracking*\n\n";
|
||||||
for(var rr of res){
|
for(var rr of res){
|
||||||
text+=`*${rr.id}* (_${rr.date?rr.date:'Unknown'} - ${rr.loc?rr.loc:'Unknown'}_)\n${rr.status}\n\n`;
|
text+=`*${rr.id}*\n_${rr.date?rr.date:'Unknown'} - ${rr.loc?rr.loc:'Unknown'}_\n${rr.status}\n\n`;
|
||||||
}
|
}
|
||||||
return event.reply( text, {"reply_markup":Markup.inlineKeyboard(kb),"parse_mode":"Markdown"});
|
return event.reply( text, {"reply_markup":Markup.inlineKeyboard(kb),"parse_mode":"Markdown"});
|
||||||
});
|
});
|
||||||
@ -171,7 +171,7 @@ module.exports = function(){
|
|||||||
return get_tracking(res).then(res=>{
|
return get_tracking(res).then(res=>{
|
||||||
var text = `*Tracking* (Updated: ${new Date().toLocaleString()})\n\n`;
|
var text = `*Tracking* (Updated: ${new Date().toLocaleString()})\n\n`;
|
||||||
for(var rr of res){
|
for(var rr of res){
|
||||||
text+=`*${rr.id}* (_${rr.date?rr.date:'Unknown'} - ${rr.loc?rr.loc:'Unknown'}_)\n${rr.status}\n\n`;
|
text+=`*${rr.id}*\n_${rr.date?rr.date:'Unknown'} - ${rr.loc?rr.loc:'Unknown'}_\n${rr.status}\n\n`;
|
||||||
}
|
}
|
||||||
return event.editMessageText( text, {"reply_markup":Markup.inlineKeyboard(kb),"parse_mode":"Markdown"});
|
return event.editMessageText( text, {"reply_markup":Markup.inlineKeyboard(kb),"parse_mode":"Markdown"});
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user