Answer the question
In order to leave comments, you need to log in
How to take names from the database and make buttons?
How to take a lot of text from the database and make a lot of buttons out of it in a telegram bot?
here is the code:
if(text == "/start"){
connection.query("SELECT * FROM `links`", function(err, results){
bot.sendMessage(chatId, `Привет`, {reply_markup: {resize_keyboard:true, keyboard: }})
});
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question