feat: send audio with waveform (#2309)

* added generateWaveform

* docs updated

* added usage example

* ESLint fix

* fixed: undefined returned on waveform generation failure

* fix: ESLint
This commit is contained in:
alechkos 2023-08-10 14:37:45 +03:00 • committed by GitHub
commit df1b070d54
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 45 additions and 2 deletions

2
index.d.ts vendored
View file

@ -904,7 +904,7 @@ declare namespace WAWebJS {
export interface MessageSendOptions {
/** Show links preview. Has no effect on multi-device accounts. */
linkPreview?: boolean
/** Send audio as voice message */
/** Send audio as voice message with a generated waveform */
sendAudioAsVoice?: boolean
/** Send video as gif */
sendVideoAsGif?: boolean