mirror of
https://github.com/EvolutionAPI/evolution-api.git
synced 2025-07-16 04:02:54 -06:00
Merge pull request #1211 from joaosouz4dev/main
feat: notconvertsticket for animated stickers
This commit is contained in:
commit
68c6ad4f91
@ -1,5 +1,7 @@
|
|||||||
.git
|
.git
|
||||||
*Dockerfile*
|
*Dockerfile*
|
||||||
*docker-compose*
|
*docker-compose*
|
||||||
|
package-lock.json
|
||||||
|
.env
|
||||||
node_modules
|
node_modules
|
||||||
dist
|
dist
|
@ -1,7 +1,7 @@
|
|||||||
FROM node:20-alpine AS builder
|
FROM node:20-alpine AS builder
|
||||||
|
|
||||||
RUN apk update && \
|
RUN apk update && \
|
||||||
apk add git ffmpeg wget curl bash openssl
|
apk add --no-cache git ffmpeg wget curl bash openssl
|
||||||
|
|
||||||
LABEL version="2.2.3" description="Api to control whatsapp features through http requests."
|
LABEL version="2.2.3" description="Api to control whatsapp features through http requests."
|
||||||
LABEL maintainer="Davidson Gomes" git="https://github.com/DavidsonGomes"
|
LABEL maintainer="Davidson Gomes" git="https://github.com/DavidsonGomes"
|
||||||
|
@ -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 {
|
||||||
|
@ -2744,7 +2744,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