Skip to content

Commit 497a11d

Browse files
committed
fix: document message id is not a required field
Signed-off-by: sarthakjdev <jsarthak448@gmail.com>
1 parent f3f68b2 commit 497a11d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pkg/components/document_message.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ type DocumentMessageApiPayload struct {
2323

2424
// DocumentMessageConfigs represents the configurations for a document message.
2525
type DocumentMessageConfigs struct {
26-
Id string `json:"id" validate:"required"`
26+
Id string `json:"id,omitempty"`
2727
Link string `json:"link,omitempty"`
2828
Caption *string `json:"caption,omitempty"`
2929
FileName string `json:"filename" validate:"required"`

0 commit comments

Comments
 (0)