fix(WhatsappDirectLine): add missing closing brace for header object 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
0b748d68fb
commit
75b0e0a9c8
2 changed files with 4 additions and 12 deletions
|
@ -665,18 +665,10 @@ export class GBConversationalService {
|
||||||
|
|
||||||
let data: any = {
|
let data: any = {
|
||||||
name: template,
|
name: template,
|
||||||
components: [
|
components: [
|
||||||
{
|
|
||||||
type: 'header',
|
|
||||||
parameters: [
|
|
||||||
{
|
|
||||||
type: 'TEXT'
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
]
|
]
|
||||||
};
|
};
|
||||||
//data['components'][0]['parameters'][0][mediaType] = { link: urlMedia };
|
data['components'][0]['parameters'][0][mediaType] = { link: urlMedia };
|
||||||
|
|
||||||
await this.sendToMobile(min, mobile, data, null);
|
await this.sendToMobile(min, mobile, data, null);
|
||||||
GBLogEx.info(min, `Sending answer file to mobile: ${mobile}. Header: ${urlMedia}`);
|
GBLogEx.info(min, `Sending answer file to mobile: ${mobile}. Header: ${urlMedia}`);
|
||||||
|
|
|
@ -864,10 +864,10 @@ export class WhatsappDirectLine extends GBService {
|
||||||
{
|
{
|
||||||
type: 'HEADER',
|
type: 'HEADER',
|
||||||
format: 'TEXT',
|
format: 'TEXT',
|
||||||
text: 'General Bots',
|
text: 'Uma novidade para você',
|
||||||
example: {
|
example: {
|
||||||
header_text: [
|
header_text: [
|
||||||
"General Bots"
|
"Uma novidade para você"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
Loading…
Add table
Reference in a new issue