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