new(basic.gblib): Video in WPP templates.

This commit is contained in:
Rodrigo Rodriguez 2024-09-05 15:08:26 -03:00
parent 72a0950fdb
commit f137579013
2 changed files with 4 additions and 6 deletions

View file

@ -675,10 +675,7 @@ export class GBConversationalService {
type: 'header', type: 'header',
parameters: [ parameters: [
{ {
type: mediaType, type: mediaType
media: {
link: urlMedia
}
} }
] ]
} }

View file

@ -837,10 +837,11 @@ export class WhatsappDirectLine extends GBService {
throw new Error(`Failed to create template: ${name} ${body}`); throw new Error(`Failed to create template: ${name} ${body}`);
} }
GBLogEx.info(min, `Template created: ${name}`); GBLogEx.info(min, `Template created: ${name}. Waiting 20 seconds to get approved.`);
await GBUtil.sleep(20 * 1000);
} }
await GBUtil.sleep(20 * 1000);
} }
public async sendToDevice(to: any, msg: string, conversationId) { public async sendToDevice(to: any, msg: string, conversationId) {