Skip to content

How to send video or audio with document? #2636

Answered by smashah
Slavecode asked this question in Q&A
Discussion options

You must be logged in to vote

See the docs:

https://docs.openwa.dev/classes/api_Client.Client.html#sendFile

Set withoutPreview to true:

E.g

await client.sendFile(chatId, "https://file-examples.com/storage/fe18180c4e624f64f9dba74/2017/04/file_example_MP4_480_1_5MG.mp4", "test.mp4", "test file caption", null, true, false, true)

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Slavecode
Comment options

Answer selected by smashah
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #2627 on April 08, 2022 01:31.