fix(whatsapp.gblib): Fix broadcasts.
This commit is contained in:
parent
e63ff1482e
commit
7b2c9238d3
1 changed files with 1 additions and 1 deletions
|
@ -662,7 +662,7 @@ export class GBConversationalService {
|
||||||
text = text.replace(/\n/g, '\\n');
|
text = text.replace(/\n/g, '\\n');
|
||||||
}
|
}
|
||||||
|
|
||||||
let template = isMedia ? Path.basename(image) : 'broadcast1'
|
let template = isMedia ? image.replace(/\.[^/.]+$/, "") : 'broadcast1'
|
||||||
|
|
||||||
let data: any = {
|
let data: any = {
|
||||||
name: template ,
|
name: template ,
|
||||||
|
|
Loading…
Add table
Reference in a new issue