Permitir áudio comum com player usando ptt: false
Maintainers usually reply within 5 days
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 42/100
Research direction
The issue names the POST /send/media endpoint and the type: "audio" path, which converts files to OGG/Opus and sets PTT to true. Start from the media send handler and that conversion branch, then check whether an optional ptt field can be read and passed through. Done means ptt: false sends an MP3 as a regular audio/mpeg message, and an omitted field keeps today's behaviour. The issue asks whether maintainers would accept this, so confirm the approach before writing code.
Written by the indexing model from the issue text.
Description
Welcome!
- Yes, I have searched for similar requests on GitHub and found none.
What type of feature?
Functionality
What is the motivation for the request?
Olá! Preciso enviar um MP3 como áudio comum no WhatsApp,
com player dentro da conversa, sem aparecer como mensagem
de voz gravada e sem ser enviado como documento.
No código consultado, o envio com type: "audio" converte
o arquivo para OGG/Opus e define PTT como true.
Seria possível adicionar um parâmetro opcional "ptt" ao
endpoint POST /send/media?
Comportamento sugerido:
- ptt: true: enviar como mensagem de voz.
- ptt: false: enviar como áudio comum, preservando MP3
e o MIME audio/mpeg. - Parâmetro omitido: manter o comportamento atual,
preservando a compatibilidade.
Exemplo da requisição desejada:
{
"number": "5511999999999",
"type": "audio",
"ptt": false,
"url": "https://exemplo.com/audio.mp3"
}
Existe alguma forma de fazer isso na versão atual?
Caso não exista, vocês considerariam implementar?
Usage Examples
No response
How should the feature be developed?
No response
Additional Notes
No response
- Dominant language
- Go
- Stars
- 918
- Forks
- 488
- Avg merge
- 5m
- Merged PRs (30d)
- 1
Getting set up
- Ships a Dockerfile or Docker Compose file
- Has a pull request template
- No contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from evolution-foundation/evolution-go
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
evolution-foundation/evolution-go#193 ·
Maintainers usually reply within 5 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
evolution-foundation/evolution-go#104 ·
Maintainers usually reply within 5 days
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
evolution-foundation/evolution-go#101 ·
Maintainers usually reply within 5 days
-
POST /group/participant always returns 400 "participants is required and cannot be empty" (wrong validation middleware on route)Possibly taken A pull request linked to this issue is open or already merged. Openbug
Difficulty 1/5 Under an hour Newbie friendliness 88/100
evolution-foundation/evolution-go#97 · 2 comments ·
Maintainers usually reply within 5 days
-
Difficulty 3/5 Half a day Newbie friendliness 45/100
evolution-foundation/evolution-go#215 ·
Maintainers usually reply within 5 days
All issues in evolution-foundation/evolution-go
Similar issues
-
bug triage
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
FairwindsOps/nova#484 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
Maintainers usually reply within 1 day
-
automated-analysis code-quality cookie
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
github/gh-aw#67517 · 3 comments ·
Maintainers usually reply within 1 day
-
[otelcol] print-config help text still requires the removed otelcol.printInitialConfig feature gatePossibly taken @girishkvs claimed this today. Open
Difficulty 1/5 Under an hour Newbie friendliness 88/100
open-telemetry/opentelemetry-collector#16143 · 1 comment ·
Maintainers usually reply within 1 day
-
bug good first issue load-balancing
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
ktrubilo9/edge-proxy#53 ·