1
0
mirror of synced 2025-01-18 07:11:41 +03:00

add new fields for struct of webhook sent response

This commit is contained in:
Руслан 2024-12-23 11:35:37 +03:00
parent b18055eebb
commit 1cb93d4986

View File

@ -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.