code-chat-br / whatsapp-api

CodeChat - WhatsApp Api

Home Page:https://docs.codechat.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Problem to use endpoint getBase64FromMediaMessage

mateuspontesmoares opened this issue · comments

I'm trying to use a endpoint {{baseUrl}}/chat/getBase64FromMediaMessage/:instanceName, but a received error in my request.

The response

`POST
{{baseUrl}}/chat/getBase64FromMediaMessage/:instanceName

BODY
{
"key": {
"id": "3AE075054A8A5B0E00A4"
}
}

RESPONSE
{
"status": 400,
"error": "Bad Request",
"message": [
"TypeError: Cannot read properties of undefined (reading 'message')"
]
}`

[Deprecated] This endpoint retrieves the Base64 representation of the content of a media message for the specified instance.