Closed SecondeJK closed 7 months ago
@superchilled That's true: you could actually send a file object with the caption for Viber - the way it works is with default values so that it's up to the user to populate the object correctly.
As the channels become more complex, I might introduce a validation set of classes. I don't want to extend the file objects for every channel - there's already more objects than I'd like. But with a validator, it could decorate them to say "you've done it wrong"
@superchilled That's true: you could actually send a file object with the caption for Viber - the way it works is with default values so that it's up to the user to populate the object correctly.
As the channels become more complex, I might introduce a validation set of classes. I don't want to extend the file objects for every channel - there's already more objects than I'd like. But with a validator, it could decorate them to say "you've done it wrong"
Thanks Jim. That makes sense! :)
This PR provides parity with new Messages API features.
Description
webhook_url
andwebhook_version
have been added to all Messages API Objectssms
property added to outbound SMS text objects, containingencoding_type
,content_id
,entity_id
andttl
MMS vCard now hascaption
WhatsApp File object now hasname
Fixed the Viber Video object which was missing the
viber_service
object, but now has mandatoryduration
andfile_size
keysMotivation and Context
Parity with Vonage APIs
How Has This Been Tested?
Existing tests have been modified
Example Output or Screenshots (if appropriate):
Types of changes
Checklist: