Skip to content

Commit 2c9a3f5

Browse files
author
AffanTheBest
committed
Fix increase/decrease
1 parent 2ebcd23 commit 2c9a3f5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bot.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ const track = async () => {
123123
const details = await getProductDetails(product.link, product.merchant);
124124
if (details.price !== product.price) {
125125
await manageProducts({ tracking_id: product.tracking_id, userId: product.userId, merchant: product.merchant, title: details.title, link: product.link, initPrice: product.price, price: details.price }, 'update');
126-
bot.api.sendMessage(product.userId, `<a href="${details.image}"> </a><b>Price has been ${product.price > details.price ? 'increased' : 'decreased'} by ${Math.abs(product.price - details.price)}</b>. \n\n<b>${details.title}</b>\n\nCurrent Price: <b>${details.price}</b>\nLink: <a href="${details.link}">${product.merchant}</a>\n\nTo stop tracking send /stop_${product.tracking_id}}`,
126+
bot.api.sendMessage(product.userId, `<a href="${details.image}"> </a><b>Price has been ${ details.price > product.price ? 'increased' : 'decreased'} by ${Math.abs(product.price - details.price)}</b>. \n\n<b>${details.title}</b>\n\nCurrent Price: <b>${details.price}</b>\nLink: <a href="${details.link}">${product.merchant}</a>\n\nTo stop tracking send /stop_${product.tracking_id}}`,
127127
{
128128
parse_mode: "HTML", reply_markup: {
129129
inline_keyboard: [

0 commit comments

Comments
 (0)