

You can make a support for this work by DONATING. We use mime-types package to get the file extension by it's mimetype, so we can download all of the type of media message.Īnd we decided (for this example) to use time as the filename, because the media filename is not certain exists. I add an example to downloading the message media if exists.

