-
Hi. I am playing with your software, it is fabulous. For couple of days, I am struggling with send a voice message using EasyAPI. May someone pls help in setting up the file argument?
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
@HobbytronicsPK thanks.
reference the file directly, e.g: { "args": { "to": "[email protected]", "file": "/home/user/downloads/aFile.mp3" } } Or use a Direct Download URL { "args": { "to": "[email protected]", "file": "https://somewebsite.com/aFile.mp3" } } or use https://base64.guru/ to convert your file to a DataURL and use that for the Make sure to use I just noticed that this is on the docker repo. Unless you've mounted your host machines download folder onto the container as a volume, I would suggest just uploading it somewhere and using direct download URL instead of the other methods |
Beta Was this translation helpful? Give feedback.
@HobbytronicsPK thanks.
data:audio/mpeg;
is a mimetype that is prepended to a base64 encoded string of the file, not the file reference.reference the file directly, e.g:
Or use a Direct Download URL
or use https://base64.guru/ to convert your file to a DataURL and use that for the
file
property.Make sure to use
sendPtt
I just noticed that this is on the docker repo.
Unless you've mounted your host machines download folder onto the container as a volume, I would suggest just uploading it somewhere and using direct downloa…