Skip to content

Commit

Permalink
Merge pull request #127 from RenCurs/field-webhook-sent
Browse files Browse the repository at this point in the history
add new fields for struct of webhook sent response
  • Loading branch information
Neur0toxine authored Dec 23, 2024
2 parents b18055e + 1cb93d4 commit a4a9371
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions v1/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit a4a9371

Please sign in to comment.