Answer the question
In order to leave comments, you need to log in
How to draw data from the database in bot.edit?
How to draw data from the database in bot.edit?
Here is the code:
if(action == "find"){
connection.query("SELECT * FROM `links`", async function(err, results){
if(results != 0){
for(let i in results){
if(results[i]['href'] != 0){
await bot.getChatMember(`${results[i]['href']}`, chatId).then(async member => {
if(member.status == 'left'){
let board = {reply_markup: {inline_keyboard: }};
await bot.editMessageText("Чтобы искать фильмы по номерам\nподпишитесь на эти каналы: ",opts);
await bot.editMessageReplyMarkup({inline_keyboard: }, opts);
}
});
}
}
}
});
}
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