Skip to content

Commit 15d3708

Browse files
📚 docs: send buttons
1 parent 3c09213 commit 15d3708

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

README.md

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -166,12 +166,22 @@ echo $whatsapp->sendAudio($to, $url);
166166
"footer" => "choose an option",
167167
"buttons" => [
168168
[
169+
"type"=> "quick_reply",
169170
"id" => "click_1",
170171
"text" => "Yes"
171172
],
172173
[
173-
"id" => "click_2",
174-
"text" => "No"
174+
"type"=> "cta_copy",
175+
"copy_code" => "000000000000",
176+
"text" => "Copy barcode"
177+
],
178+
[
179+
"type"=> "cta_url",
180+
"url" => "https://api-wa.me",
181+
"text" => "Access the website"
182+
],
183+
[
184+
"type"=> "send_location"
175185
]
176186
]
177187
];

0 commit comments

Comments
 (0)