Skip to content

Commit ccda97b

Browse files
author
AffanTheBest
committed
switch to HTML
1 parent 3f4de3a commit ccda97b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bot.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,8 +126,8 @@ const track = async() => {
126126
// console.log(details);
127127
if(details.price !== product.price){
128128
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');
129-
bot.api.sendMessage(product.userId, `[ ](${details.image})*Price has been ${product.price > details.price ? 'decreased' : 'increased'} by ${Math.abs(product.price - details.price)}*. \n\n*${details.title}*\n\nCurrent Price: *${details.price}*\nLink: [${product.merchant}](${details.link})\n\nTo stop tracking send /stop_${product.tracking_id}}`,
130-
{parse_mode: "Markdown", reply_markup: {inline_keyboard: [
129+
bot.api.sendMessage(product.userId, `<a href="${details.image}"> </a><b>Price has been ${product.price > details.price ? 'decreased' : 'increased'} 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}}`,
130+
{parse_mode: "HTML", reply_markup: {inline_keyboard: [
131131
[{text: 'Buy Now', url: details.link}],
132132
[{text: 'Stop Tracking - ' + product.tracking_id, callback_data: `stopTracking`}]
133133
]}}

0 commit comments

Comments
 (0)