new(basic.gblib): New batch features.

This commit is contained in:
Rodrigo Rodriguez 2024-06-13 22:24:36 -03:00
parent 14b3ff1fe1
commit ccc8fdd2d7

View file

@ -732,7 +732,7 @@ export class WhatsappDirectLine extends GBService {
} }
public async sendToDevice(to: any, msg: string, conversationId) { public async sendToDevice(to: any, msg: string, conversationId) {
try{ try {
const cmd = '/audio '; const cmd = '/audio ';
let url; let url;
let chatId = WhatsappDirectLine.chatIds[conversationId]; let chatId = WhatsappDirectLine.chatIds[conversationId];
@ -817,11 +817,9 @@ export class WhatsappDirectLine extends GBService {
} }
} }
} }
try {
} catch (error) { } catch (error) {
GBLog.error(`GBWhatsApp ERR: ${GBUtil.toYAML(error)}`); GBLog.error(`GBWhatsApp ERR: ${GBUtil.toYAML(error)}`);
} }
} }
public async sendToDeviceEx(to, text, locale, conversationId) { public async sendToDeviceEx(to, text, locale, conversationId) {