我正在使用node-telegram-bot-api模块, 如何使我的键盘成为内联键盘? 这是我的代码:
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);
});
最佳答案
我回答了类似于此链接的问题:How can create menu for telegram bot in bot father?
根据您的情况,您可以使用:
keyboard: [["uno :+1:"],["uno \ud83d\udc4d", "due"],["uno", "due","tre"],["uno", "due","tre","quattro"]]
关于javascript - 通过 Node.JS 的 Telegram 机器人内联键盘,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41977699/