mirror of
https://github.com/cheveguerra/whatsapp-web.js.git
synced 2026-04-19 20:19:14 +00:00
docs: indicate return type for MessageMedia.fromFilePath
This commit is contained in:
@@ -34,6 +34,7 @@ class MessageMedia {
|
|||||||
/**
|
/**
|
||||||
* Creates a MessageMedia instance from a local file path
|
* Creates a MessageMedia instance from a local file path
|
||||||
* @param {string} filePath
|
* @param {string} filePath
|
||||||
|
* @returns {MessageMedia}
|
||||||
*/
|
*/
|
||||||
static fromFilePath(filePath) {
|
static fromFilePath(filePath) {
|
||||||
const b64data = fs.readFileSync(filePath, {encoding: 'base64'});
|
const b64data = fs.readFileSync(filePath, {encoding: 'base64'});
|
||||||
|
|||||||
Reference in New Issue
Block a user