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 @@ -2342,7 +2342,9 @@ export class BaileysStartupService extends ChannelStartupService {
23422342
23432343 if ( file ) mediaData . sticker = file . buffer . toString ( 'base64' ) ;
23442344
2345- const convert = await this . convertToWebP ( data . sticker ) ;
2345+ const convert = data ?. notConvertSticker
2346+ ? Buffer . from ( data . sticker , 'base64' )
2347+ : await this . convertToWebP ( data . sticker ) ;
23462348 const gifPlayback = data . sticker . includes ( '.gif' ) ;
23472349 const result = await this . sendMessageWithTyping (
23482350 data . number ,
You can’t perform that action at this time.
0 commit comments