diff --git a/examples/typescript/example.ts b/examples/typescript/example.ts index 8a6248570a..032250f664 100644 --- a/examples/typescript/example.ts +++ b/examples/typescript/example.ts @@ -129,3 +129,4 @@ promiseMessage.then(messages => { const twiml = new twilio.twiml.VoiceResponse(); twiml.dial({}, '+12345678901'); +twiml.play('https://demo.twilio.com/docs/classic.mp3'); diff --git a/lib/twiml/VoiceResponse.d.ts b/lib/twiml/VoiceResponse.d.ts index 847d309b68..62134388a5 100644 --- a/lib/twiml/VoiceResponse.d.ts +++ b/lib/twiml/VoiceResponse.d.ts @@ -75,6 +75,12 @@ declare class VoiceResponse { * @param url - Media URL */ play(attributes?: VoiceResponse.PlayAttributes, url?: string): void; + /** + * TwiML Verb + * + * @param url - Media URL + */ + play(url?: string): void; /** * Twiml Verb *