From 629bdc36d5ad1060a0cf28b270c73c3e4b5ed7be Mon Sep 17 00:00:00 2001 From: Gabriel Augusto Date: Wed, 24 Jan 2024 17:35:47 -0300 Subject: [PATCH] update docs --- api/handler/send_document_message_handler.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/api/handler/send_document_message_handler.go b/api/handler/send_document_message_handler.go index 03b0c53..c979db4 100644 --- a/api/handler/send_document_message_handler.go +++ b/api/handler/send_document_message_handler.go @@ -36,17 +36,17 @@ func NewSendDocumentMessageHandler( } } -// Send Image Message on WhatsApp +// Send Document Message on WhatsApp // -// @Summary Send Image Message on WhatsApp -// @Description Sends an image message on WhatsApp using the specified instance. +// @Summary Send Document Message on WhatsApp +// @Description Sends an Document message on WhatsApp using the specified instance. // @Tags WhatsApp Chat // @Param instanceId path string true "Instance ID" -// @Param data body sendDocumentMessageBody true "Image message body" +// @Param data body sendDocumentMessageBody true "Document message body" // @Accept json // @Produce json // @Success 200 {object} sendDocumentMessageResponse "Message Send Response" -// @Router /{instanceId}/chat/send/image [post] +// @Router /{instanceId}/chat/send/document [post] func (h *sendDocumentMessageHandler) Handler(c *gin.Context) { instanceID := c.Param("instanceId") instance, err := h.whatsAppService.GetInstance(instanceID)