fix(WhatsappDirectLine): comment out unused header component in message structure
Some checks are pending
GBCI / build (push) Waiting to run
Some checks are pending
GBCI / build (push) Waiting to run
This commit is contained in:
parent
e68eccffd4
commit
30fa9ec5db
1 changed files with 2 additions and 0 deletions
|
@ -834,9 +834,11 @@ export class WhatsappDirectLine extends GBService {
|
||||||
// Function to create or update a template using WhatsApp Business API
|
// Function to create or update a template using WhatsApp Business API
|
||||||
|
|
||||||
public async createOrUpdateTemplate(min: GBMinInstance, template, text) {
|
public async createOrUpdateTemplate(min: GBMinInstance, template, text) {
|
||||||
|
template = template.replace('.docx', '');
|
||||||
template = template.replace(/\-/gi, '_');
|
template = template.replace(/\-/gi, '_');
|
||||||
template = template.replace(/\./gi, '_');
|
template = template.replace(/\./gi, '_');
|
||||||
|
|
||||||
|
|
||||||
// Determine if media is image or video
|
// Determine if media is image or video
|
||||||
let isMedia =
|
let isMedia =
|
||||||
text.toLowerCase().endsWith('.jpg') ||
|
text.toLowerCase().endsWith('.jpg') ||
|
||||||
|
|
Loading…
Add table
Reference in a new issue