This regexp is matching strings after /ab. Also, i would like to match empty strings after /ab. How can i do that?. Thanks in advance.
const TelegramBot = require('node-telegram-bot-api');
const token = process.env.TOKEN;
const bot = new TelegramBot(token, { polling: true });
bot.onText(/\/ab (.+)/, (msg, match) => {
const chatId = msg.chat.id
const prompt = match[1]
bot.sendMessage(chatId, prompt)
})