pimax/fb-messenger-php

NON_PROMOTIONAL_SUBSCRIPTION is a tag not a type

Closed this issue · 4 comments

From 1 january 2019 all messages sent outside the 24 hour window need to have the tag NON_PROMOTIONAL_SUBSCRIPTION and the messaging_type TYPE_MESSAGE_TAG.
In this library NON_PROMOTIONAL_SUBSCRIPTION is TYPE_NON_PROMOTIONAL_SUBSCRIPTION constant. That is not right. It should be a tag constant, eg TAG_NON_PROMOTIONAL_SUBSCRIPTION.
Also, the ImageMessage and VideoMessage classes do not have the tag setting.
Thanks

Pull requests are welcome!

Done!