-
-
Save parzibyte/3f0a70e3eb2c665e3ccdfbf9d57527fd to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bot.onText(new RegExp('\/eliminar (\\d+)'), async (mensaje, coincidencias) => { | |
const id = parseInt(coincidencias[1]); | |
const chatId = mensaje.chat.id; | |
await controlador.eliminar(id); | |
bot.sendMessage(chatId, "Eliminar con id " + id); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment