File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed
integrations/channel/whatsapp Expand file tree Collapse file tree 2 files changed +4
-1
lines changed 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 @@ -2660,7 +2660,9 @@ export class BaileysStartupService extends ChannelStartupService {
26602660
26612661 if ( file ) mediaData . sticker = file . buffer . toString ( 'base64' ) ;
26622662
2663- const convert = await this . convertToWebP ( data . sticker ) ;
2663+ const convert = data ?. notConvertSticker
2664+ ? Buffer . from ( data . sticker , 'base64' )
2665+ : await this . convertToWebP ( data . sticker ) ;
26642666 const gifPlayback = data . sticker . includes ( '.gif' ) ;
26652667 const result = await this . sendMessageWithTyping (
26662668 data . number ,
You can’t perform that action at this time.
0 commit comments