File tree Expand file tree Collapse file tree 4 files changed +7
-2
lines changed
integrations/channel/whatsapp Expand file tree Collapse file tree 4 files changed +7
-2
lines changed Original file line number Diff line number Diff line change 11.git
22* Dockerfile *
33* docker-compose *
4+ package-lock.json
5+ .env
46node_modules
57dist
Original file line number Diff line number Diff line change 11FROM node:20-alpine AS builder
22
33RUN apk update && \
4- apk add git ffmpeg wget curl bash openssl
4+ apk add --no-cache git ffmpeg wget curl bash openssl
55
66LABEL version="2.2.3" description="Api to control whatsapp features through http requests."
77LABEL maintainer="Davidson Gomes" git="https://github.com/DavidsonGomes"
Original file line number Diff line number Diff line change @@ -44,6 +44,7 @@ export class Metadata {
4444 mentionsEveryOne ?: boolean ;
4545 mentioned ?: string [ ] ;
4646 encoding ?: boolean ;
47+ notConvertSticker ?: boolean ;
4748}
4849
4950export class SendTextDto extends Metadata {
Original file line number Diff line number Diff line change @@ -2744,7 +2744,9 @@ export class BaileysStartupService extends ChannelStartupService {
27442744
27452745 if ( file ) mediaData . sticker = file . buffer . toString ( 'base64' ) ;
27462746
2747- const convert = await this . convertToWebP ( data . sticker ) ;
2747+ const convert = data ?. notConvertSticker
2748+ ? Buffer . from ( data . sticker , 'base64' )
2749+ : await this . convertToWebP ( data . sticker ) ;
27482750 const gifPlayback = data . sticker . includes ( '.gif' ) ;
27492751 const result = await this . sendMessageWithTyping (
27502752 data . number ,
You can’t perform that action at this time.
0 commit comments