I just want to read my data in an Object and print multiply buttons in a row.
How could I do that?
A similar example :
var obj={"coca":"2$" , "7up":"3$" , "fanta":"4$"}
for (var key in obj) {
if (obj.hasOwnProperty(key)) {
ctx.reply('price list', Extra.HTML().markup((m) =>
m.inlineKeyboard([
[m.callbackButton(`${key} : `, ` price : ${obj[key]}`)]
]))))
But the problem is I do not want to print "price list" every time.
I just want to print it 1 times on top, and I can not use for loop inside "ctx.reply"
breakafter first reply?