tulir / whatsmeow

Go library for the WhatsApp web multidevice API

Home Page:https://go.mau.fi/whatsmeow

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add Method of Download Media

azickri opened this issue · comments

Hello, Tulir.

I have used this package and the results are amazingly fast and light.

But, I think there should be another Method to download Message Media.
Like the return is not bytes, but the local URL path of the file.

I mean this new method will immediately save the file to Local, instead of immediately returning bytes.

Because after I monitored it for several days, the DownloadMedia function took up a lot of memory, the server memory continued to increase little by little.

Is there a better method to handle this for DownloadMedia?
Or am I mistaken because of increasing memory on the server?

Thank you.


Before
IMG-20240118-WA0011~2

After
IMG-20240118-WA0018~2

It seems there is no need to add a new method.