From 2e43fcb29feee98be81f647d2c5076680325641a Mon Sep 17 00:00:00 2001 From: Matheus Date: Thu, 30 May 2024 15:02:08 -0300 Subject: [PATCH] =?UTF-8?q?feat:=20=E2=9C=A8=20added=20support=20for=20cta?= =?UTF-8?q?=5Furl=20interactive=20message=20type?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/types/messages.ts | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/src/types/messages.ts b/src/types/messages.ts index 6b96c3d..94d164c 100644 --- a/src/types/messages.ts +++ b/src/types/messages.ts @@ -244,7 +244,14 @@ export type InteractiveMessageAction = { */ parameters?: { thumbnail_product_retailer_id?: string; - + /** + * Required for Call-to-Action URL Button Messages. + */ + display_text?: string; + /** + * Required for Call-to-Action URL Button Messages. + */ + url?: string; /** * Optional for Flows Messages. * @@ -420,7 +427,8 @@ export type InteractiveMessage = { | "product_list" | "catalog_message" | "flow" - | "location_request_message"; + | "location_request_message" + | "cta_url"; }; export type ContactMessage = {