From 1cb93d498699ac6c25b21e02e8a6a7e835a64803 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=A0=D1=83=D1=81=D0=BB=D0=B0=D0=BD?= Date: Mon, 23 Dec 2024 11:35:37 +0300 Subject: [PATCH] add new fields for struct of webhook sent response --- v1/types.go | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/v1/types.go b/v1/types.go index 3c8d8cf..2fefb81 100644 --- a/v1/types.go +++ b/v1/types.go @@ -429,9 +429,11 @@ type MessagesResponse struct { // WebhookMessageSentResponse type // Consider using this structure while processing webhook request. type WebhookMessageSentResponse struct { - ExternalMessageID string `json:"external_message_id"` - Error *MessageSentError `json:"error,omitempty"` - Async bool `json:"async"` + ExternalMessageID string `json:"external_message_id"` + Error *MessageSentError `json:"error,omitempty"` + Async bool `json:"async"` + ExternalCustomerID string `json:"external_customer_id,omitempty"` + ExternalChatID string `json:"external_chat_id,omitempty"` } // MessageSentError type.