if(text == "/buttons"){
connection.query("SELECT * FROM `buttons`", async function(err, results){
for(let i in results){
bot.sendMessage(chatId, "Кнопки: ", {reply_markup: {inline_keyboard: [[{text: results[i]['name'], callback_data: results[i]['name']}]]}})
}
});
}
keyboard = types.InlineKeyboardMarkup()
for b in buttons:
keyboard.add(types.InlineKeyboardButton(text=b, callback_data=b))
bot.send_message(message.chat.id, "Кнопачки", reply_markup=keyboard)