Closed ARHAEEM closed 2 days ago
@ARHAEEM This is intentional. We have seen the failure rates with opus/ogg getting higher recently. Since there is no explanation on why the audio is not accepted, we have moved it to mp3 recording to make sure that the content is delivered properly. Please see the PR here. https://github.com/chatwoot/chatwoot/pull/9448
Closing this as this can't be fixed.
Describe the bug
When an admin sends a voice message to a user in Chatwoot, the message is received as an Mp3 Music file on Telegram instead of a voice memo. This behavior deviates from the expected functionality where voice messages should be received as voice memos.
To Reproduce
Expected behavior
The voice message sent by the admin in Chatwoot should be encoded in ogg/opus format to ensure that it is received as a voice memo on Telegram. This alignment with standard voice memo formats will enhance user experience and streamline communication processes.
Environment
Docker
Cloud Provider
Other [please specify in the description]
Platform
Browser
Operating system
Ubuntu 24
Browser and version
Firefox.
Docker (if applicable)
Coolify.io Default config.
Additional context
Just by changing the audio format, this problem can be fixed automatically. Also, using OGG Opus will reduce file sizes. If Chatwoot doesn't have FFMPEG integrated, it's open source and supported everywhere, and can convert the MP3 to OGG/Opus. The rest can be handled by telegram server.
Here's some sources:- — encoding: https://github.com/vysheng/tg/issues/420#issuecomment-1272116366 — https://core.telegram.org/bots/api#sendvoice