Friday, May 17, 2024
 Popular · Latest · Hot · Upcoming
73
rated 0 times [  80] [ 7]  / answers: 1 / hits: 16759  / 7 Years ago, wed, february 1, 2017, 12:00:00

I'm using the node-telegram-bot-api module,
How can I make my keyboard to inline Keyboard?
This is my code:



bot.onText(/^/start$/, function (msg) {
const opts = {
reply_to_message_id: msg.message_id,
reply_markup: {
resize_keyboard: true,
one_time_keyboard: true,
keyboard: [ ['Level 1'] ]
}
};

bot.sendMessage(msg.chat.id, I'm a test robot, opts);
});

More From » node.js

 Answers
3

I answered a question similar to this link: How can create menu for telegram bot in bot father?



in your case you could use:



keyboard: [[uno :+1:],[uno ud83dudc4d, due],[uno, due,tre],[uno, due,tre,quattro]]

[#59117] Tuesday, January 31, 2017, 7 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
annie

Total Points: 483
Total Questions: 97
Total Answers: 107

Location: Belarus
Member since Sat, Jul 18, 2020
4 Years ago
;