Skip to content

Commit 7c03197

Browse files
author
AffanTheBest
committed
Fix Buy Now Btn
1 parent 64b3ec5 commit 7c03197

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

bot.js

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -233,12 +233,10 @@ const track = async () => {
233233
{
234234
parse_mode: "HTML",
235235
reply_markup: {
236-
inline_keyboard: [
237-
details?.link
238-
? ([{ text: "Buy Now", url: details.link }],
239-
[{ text: "Stop Tracking - " + product.tracking_id, callback_data: `stopTracking`, },])
240-
: [],
241-
]
236+
inline_keyboard: details?.link ? [
237+
[{ text: "Buy Now", url: details.link }],
238+
[{ text: "Stop Tracking - " + product.tracking_id, callback_data: `stopTracking`, }]]
239+
: []
242240
}
243241
});
244242
} catch (e) { bot.start() }

0 commit comments

Comments
 (0)