Skip to content
This repository was archived by the owner on May 6, 2026. It is now read-only.

Adicionando rota de download de midia em base64 ou buffer#4

Open
jtapeg wants to merge 1 commit intoevolution-foundation:developfrom
jtapeg:add-download-media-message
Open

Adicionando rota de download de midia em base64 ou buffer#4
jtapeg wants to merge 1 commit intoevolution-foundation:developfrom
jtapeg:add-download-media-message

Conversation

@jtapeg
Copy link
Copy Markdown

@jtapeg jtapeg commented Feb 20, 2025

POST /chat/downloadMediaMessage/:instance

{
    "downloadableMessage": {
        "mediaKey": "",
        "directPath": "",
        "url": ""
    },
    "type": "image", // image, video, audio, document, sticker, ptt
    // optional
    "timeout": 30000, // Milissegundos - padrão 30000 = 30s
    "returnType": "buffer" // buffer, base64 - padrão buffer
}

Implementado a função downloadContentFromMessage

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant