File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -154,7 +154,11 @@ const interactive_catalog_message = new Interactive(
154
154
## Call Permission Request
155
155
156
156
``` ts
157
- import { Interactive , ActionCallPermission , Body } from " whatsapp-api-js/messages" ;
157
+ import {
158
+ Interactive ,
159
+ ActionCallPermission ,
160
+ Body
161
+ } from " whatsapp-api-js/messages" ;
158
162
159
163
const interactive_call_permission_message = new Interactive (
160
164
new ActionCallPermission (),
Original file line number Diff line number Diff line change @@ -74,11 +74,7 @@ Whatsapp.on.message = async ({ reply }) => {
74
74
import { WebRTCMagic } from " some-magical-webrtc-library" ;
75
75
76
76
const spd = await WebRTCMagic .offer ();
77
- Whatsapp .initiateCall (
78
- " from (bot phoneID)" ,
79
- " to (phone number/wa_id)" ,
80
- spd
81
- );
77
+ Whatsapp .initiateCall (" from (bot phoneID)" , " to (phone number/wa_id)" , spd );
82
78
83
79
// If the user accepts the call, you can connect
84
80
// to it as shown in the following example
You can’t perform that action at this time.
0 commit comments