feat: send photo/video as a view once message (#2317)

* added isViewOnce property

* docs updated

* added usage example

* fix: ESLint
This commit is contained in:
alechkos 2023-07-31 12:53:35 +03:00 • committed by GitHub
commit 8ff5bceca0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 16 additions and 4 deletions

2
index.d.ts vendored
View file

@ -909,6 +909,8 @@ declare namespace WAWebJS {
sendMediaAsSticker?: boolean
/** Send media as document */
sendMediaAsDocument?: boolean
/** Send photo/video as a view once message */
isViewOnce?: boolean
/** Automatically parse vCards and send them as contacts */
parseVCards?: boolean
/** Image or videos caption */