mirror of
https://github.com/cheveguerra/ws-api-node.git
synced 2026-04-17 19:36:23 +00:00
fix error
fix error
This commit is contained in:
@@ -18,7 +18,7 @@ router.post('/sendmessage', async (req,res) => {
|
||||
console.log(message);
|
||||
console.log(phone);
|
||||
|
||||
if (phone == undefined || message == undefined|| phone == 0 || message == empty) {
|
||||
if (phone == undefined || message == undefined|| phone == 0 || message == 0) {
|
||||
res.send({ status:"error", message:"please enter valid phone and message" })
|
||||
} else {
|
||||
client.sendMessage(phone + '@c.us', message).then((response) => {
|
||||
|
||||
Reference in New Issue
Block a user