Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to identify that a message received is a forwarded message? #52

Open
rbarcelos opened this issue Jan 16, 2023 · 1 comment
Open

Comments

@rbarcelos
Copy link

I was not able to identify any properties on heyoo or even on the cloud api that could help me with that. The Twilio python Api provides that. Am I missing anything?

Thanks

@soerenetler
Copy link
Collaborator

soerenetler commented Feb 13, 2023

I also could not find anything when looking into it :/ I hope this will change in the future.
I think twilio is still based on the WhatsApp Business API.

{
    "object": "whatsapp_business_account",
    "entry": [
        {
            "id": "105479062471xxx",
            "changes": [
                {
                    "value": {
                        "messaging_product": "whatsapp",
                        "metadata": {
                            "display_phone_number": "xxx",
                            "phone_number_id": "117706821235xxx",
                        },
                        "contacts": [{"profile": {"name": "Sören"}, "wa_id": "xxx"}],
                        "messages": [
                            {
                                "from": "xxx",
                                "id": "wamid.HBgNNDkxNzY1MjE2Mzg0NxUCABIYEjZBNTIxMkU3Q0FEQzk4Qxxxxx",
                                "timestamp": "1676295155",
                                "text": {"body": "Message"},
                                "type": "text",
                            }
                        ],
                    },
                    "field": "messages",
                }
            ],
        }
    ],
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants