fix(GBConversationalService, WhatsappDirectLine): update component structure to include header type and format
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
b0517c9c94
commit
aa606c0d90
2 changed files with 13 additions and 13 deletions
|
@ -666,14 +666,14 @@ export class GBConversationalService {
|
||||||
let data: any = {
|
let data: any = {
|
||||||
name: template,
|
name: template,
|
||||||
components: [
|
components: [
|
||||||
// {
|
{
|
||||||
// type: 'header',
|
type: 'header',
|
||||||
// parameters: [
|
parameters: [
|
||||||
// {
|
{
|
||||||
// type: mediaType
|
type: 'TEXT'
|
||||||
// }
|
}
|
||||||
// ]
|
]
|
||||||
// }
|
}
|
||||||
]
|
]
|
||||||
};
|
};
|
||||||
//data['components'][0]['parameters'][0][mediaType] = { link: urlMedia };
|
//data['components'][0]['parameters'][0][mediaType] = { link: urlMedia };
|
||||||
|
|
|
@ -861,11 +861,11 @@ export class WhatsappDirectLine extends GBService {
|
||||||
let data: any = {
|
let data: any = {
|
||||||
name: template,
|
name: template,
|
||||||
components: [
|
components: [
|
||||||
// {
|
{
|
||||||
// type: 'HEADER',
|
type: 'HEADER',
|
||||||
// format: mediaType.toUpperCase(), // Use IMAGE or VIDEO format
|
format: 'TEXT',
|
||||||
// example: { header_handle: [handleMedia] }
|
text: 'General Bots'
|
||||||
// },
|
},
|
||||||
{
|
{
|
||||||
type: 'BODY',
|
type: 'BODY',
|
||||||
text: text
|
text: text
|
||||||
|
|
Loading…
Add table
Reference in a new issue