SQL-array to Telegram inline keyboard

Thank you! I found something that works for me!

msg.payload.buttons = msg.sql_data.map(obj => {return { type: 'postback', value: obj.filter, label: obj.filter }});

2 Likes