Search posts, tags, users, and pages
Budi Ramadhanus
Make IT Simple
Im looking delivery message (pending, Delivered, read) can u explaint about that function ?
Usman Sabuwala
Learning web development, running a YouTube channel
Do you want to get the status of a message if that is pending, delivered or read??
If that's what you want, you can do something like this:
// Store the sent message in a variable const sentMessage = await client.sendMessage(chatId, content); console.log(sentMessage.ack)
sentMessage.ack will be either one of these:
sentMessage.ack
ACK_ERROR
ACK_PENDING
ACK_SERVER
ACK_DEVICE
ACK_READ
ACK_PLAYED
For more information, you can refer the docs