feat: Add waveforms to voice messages (#180)

Co-authored-by: Edgard <edgardmessias@gmail.com>
This commit is contained in:
Codeboss
2023-07-14 03:08:11 +03:00
committed by GitHub
parent e0e7d40847
commit 2c76713565
7 changed files with 622 additions and 455 deletions

View File

@@ -213,6 +213,7 @@ export const printQRIfNecessaryListener = (ev: BaileysEventEmitter, logger: Logg
ev.on('connection.update', async({ qr }) => {
if(qr) {
const QR = await import('qrcode-terminal')
.then(m => m.default || m)
.catch(() => {
logger.error('QR code terminal not added as dependency')
})