mirror of
https://github.com/EvolutionAPI/evolution-api.git
synced 2025-12-19 03:42:23 -06:00
adjusts in typebot
This commit is contained in:
@@ -1120,7 +1120,11 @@ export class BaileysStartupService extends ChannelStartupService {
|
||||
|
||||
const contentMsg = received?.message[getContentType(received.message)] as any;
|
||||
|
||||
if (this.localWebhook.webhookBase64 === true && isMedia) {
|
||||
if (
|
||||
this.localWebhook.webhookBase64 === true ||
|
||||
(this.configService.get<Typebot>('TYPEBOT').SEND_MEDIA_BASE64 && isMedia)
|
||||
) {
|
||||
console.log('Download media');
|
||||
const buffer = await downloadMediaMessage(
|
||||
{ key: received.key, message: received?.message },
|
||||
'buffer',
|
||||
|
||||
Reference in New Issue
Block a user