Skip to content

How do you know if a message has been succesfully sent? #39

Answered by gabrieldwight
fercom asked this question in Q&A
Discussion options

You must be logged in to vote

The "wamid" is just the message identifier for the sent message. If you want to know if the message is sent, the message status is sent through the message webhook since it will be triggered every time the user views it. The message statuses also include failed or deleted. Below is the sample message status json sent to the webhook since the response will be dynamic changing to different objects. You can compare the "wamid" with the id field in the statuses object and then do a database update.

Message status json

{
    "object": "whatsapp_business_account",
    "entry": [
        {
            "id": "8856996819413533",
            "changes": [
                {
                    "value":…

Replies: 5 comments 6 replies

Comment options

You must be logged in to vote
1 reply
@kasunf
Comment options

Answer selected by fercom
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
5 replies
@gabrieldwight
Comment options

@theCJMan
Comment options

@gabrieldwight
Comment options

@theCJMan
Comment options

@theCJMan
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants