mirror of
https://github.com/EvolutionAPI/evolution-api.git
synced 2025-07-16 12:12:55 -06:00
feat: sendsticket notconvertsticket
This commit is contained in:
parent
2fb6318011
commit
0d1e7c08c9
@ -44,6 +44,7 @@ export class Metadata {
|
|||||||
mentionsEveryOne?: boolean;
|
mentionsEveryOne?: boolean;
|
||||||
mentioned?: string[];
|
mentioned?: string[];
|
||||||
encoding?: boolean;
|
encoding?: boolean;
|
||||||
|
notConvertSticker?: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
export class SendTextDto extends Metadata {
|
export class SendTextDto extends Metadata {
|
||||||
|
@ -2660,7 +2660,9 @@ export class BaileysStartupService extends ChannelStartupService {
|
|||||||
|
|
||||||
if (file) mediaData.sticker = file.buffer.toString('base64');
|
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 gifPlayback = data.sticker.includes('.gif');
|
||||||
const result = await this.sendMessageWithTyping(
|
const result = await this.sendMessageWithTyping(
|
||||||
data.number,
|
data.number,
|
||||||
|
Loading…
Reference in New Issue
Block a user