Skip to content

Error in syntax in example? #2793

@KPYahoo

Description

@KPYahoo

Hi,

Thank you for this awesome project / repository. Really appreciate it.

There seems to be some error in Documentation at
https://wppconnect.io/wa-js/functions/chat.sendFileMessage.html

The example

// A simple video
WPP.chat.sendFileMessage(
 '[number]@c.us',
 'data:application/msword;base64,<a long base64 file...>',
 {
   type: 'video',
 }
);

seems incorrect.

Should it not be data:video/mp4; instead of data:application/msword; for this example for a simple video?

I am not a developer. Please guide.

Thanks a lot.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions