new(basic.gblib): Video in WPP templates.
This commit is contained in:
parent
72a0950fdb
commit
f137579013
2 changed files with 4 additions and 6 deletions
|
@ -675,10 +675,7 @@ export class GBConversationalService {
|
||||||
type: 'header',
|
type: 'header',
|
||||||
parameters: [
|
parameters: [
|
||||||
{
|
{
|
||||||
type: mediaType,
|
type: mediaType
|
||||||
media: {
|
|
||||||
link: urlMedia
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
|
@ -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) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue