File tree 4 files changed +7
-2
lines changed
integrations/channel/whatsapp
4 files changed +7
-2
lines changed Original file line number Diff line number Diff line change 1
1
.git
2
2
* Dockerfile *
3
3
* docker-compose *
4
+ package-lock.json
5
+ .env
4
6
node_modules
5
7
dist
Original file line number Diff line number Diff line change 1
1
FROM node:20-alpine AS builder
2
2
3
3
RUN apk update && \
4
- apk add git ffmpeg wget curl bash openssl
4
+ apk add --no-cache git ffmpeg wget curl bash openssl
5
5
6
6
LABEL version="2.2.3" description="Api to control whatsapp features through http requests."
7
7
LABEL 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 {
44
44
mentionsEveryOne ?: boolean ;
45
45
mentioned ?: string [ ] ;
46
46
encoding ?: boolean ;
47
+ notConvertSticker ?: boolean ;
47
48
}
48
49
49
50
export class SendTextDto extends Metadata {
Original file line number Diff line number Diff line change @@ -2744,7 +2744,9 @@ export class BaileysStartupService extends ChannelStartupService {
2744
2744
2745
2745
if ( file ) mediaData . sticker = file . buffer . toString ( 'base64' ) ;
2746
2746
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 ) ;
2748
2750
const gifPlayback = data . sticker . includes ( '.gif' ) ;
2749
2751
const result = await this . sendMessageWithTyping (
2750
2752
data . number ,
You can’t perform that action at this time.
0 commit comments