Merge pull request #1211 from joaosouz4dev/main

feat: notconvertsticket for animated stickers
This commit is contained in:
Davidson Gomes
2025-02-07 11:38:00 -03:00
committed by GitHub
4 changed files with 7 additions and 2 deletions

View File

@@ -44,6 +44,7 @@ export class Metadata {
mentionsEveryOne?: boolean;
mentioned?: string[];
encoding?: boolean;
notConvertSticker?: boolean;
}
export class SendTextDto extends Metadata {

View File

@@ -2744,7 +2744,9 @@ export class BaileysStartupService extends ChannelStartupService {
if (file) mediaData.sticker = file.buffer.toString('base64');
const convert = await this.convertToWebP(data.sticker);
const convert = data?.notConvertSticker
? Buffer.from(data.sticker, 'base64')
: await this.convertToWebP(data.sticker);
const gifPlayback = data.sticker.includes('.gif');
const result = await this.sendMessageWithTyping(
data.number,