From e8437e5d407a5fb010529977e144df5d5bc0f39b Mon Sep 17 00:00:00 2001 From: Gabriel Augusto Date: Tue, 23 Jan 2024 14:34:25 -0300 Subject: [PATCH] fix audio handler --- api/handler/send_audio_message_handler.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/handler/send_audio_message_handler.go b/api/handler/send_audio_message_handler.go index 11778df..1999aa2 100644 --- a/api/handler/send_audio_message_handler.go +++ b/api/handler/send_audio_message_handler.go @@ -83,7 +83,7 @@ func (h *sendAudioMessageHandler) Handler(c *gin.Context) { return } - resp, err := h.whatsAppService.SendImageMessage(instance, jid, audioURL, mimitype) + resp, err := h.whatsAppService.SendAudioMessage(instance, jid, audioURL, mimitype) if err != nil { response.ErrorResponse(c, http.StatusInternalServerError, err.Error()) return