之后如何从第 3 级节点返回到第 2 级节点?我的问题是Back
名称,因为那是相同的,,,
这是我的代码:
bot.onText(/\/start/, function onLoveText(msg) {
const opts = {
reply_to_message_id: msg.message_id,
reply_markup: JSON.stringify({
keyboard: StartKeyboard,
resize_keyboard:true,
one_time_keyboard: true
})
};
bot.sendMessage(msg.chat.id, 'Hello', opts);
});
bot.onText(/\Back/, function onLoveText(msg) {
const opts = {
reply_to_message_id: msg.message_id,
reply_markup: JSON.stringify({
keyboard: StartKeyboard,
resize_keyboard:true,
one_time_keyboard: true
})
};
bot.sendMessage(msg.chat.id, 'Hello', opts);
});
bot.onText(/\Back/, function onLoveText(msg) { // I Can't Use Backkk
const opts = {
reply_to_message_id: msg.message_id,
reply_markup: JSON.stringify({
keyboard: BackKeyboard,
resize_keyboard:true,
one_time_keyboard: true
})
};
bot.sendMessage(msg.chat.id, 'Hello', opts);
});