netflie / whatsapp-cloud-api

The first PHP API to send and receive messages using a cloud-hosted version of the WhatsApp Business Platform
https://netflie.es/portfolio/whatsapp-business-cloud-api-php-sdk/
MIT License
424 stars 151 forks source link

missing message type request_welcome in webhook #171

Open medalist1981 opened 4 months ago

medalist1981 commented 4 months ago

If the user is starting a new chat instance in whatsapp, there is a webhook notification with type request_welcome. This type is not handled in the MessageNotificationFactory::buildMessageNotification

aalbarca commented 3 months ago

Hi @medalist1981

Can you please open a PR with the fix? Its very easy. You have a payload example here: https://developers.facebook.com/docs/whatsapp/cloud-api/phone-numbers/conversational-components#webhook-payload

Thanks.