fix(all): Create bot working again.
This commit is contained in:
parent
e265d839f2
commit
46bbe87bb4
2 changed files with 3 additions and 0 deletions
|
@ -393,6 +393,7 @@ export class GBConversationalService {
|
||||||
return Promise.reject(new Error(msg));
|
return Promise.reject(new Error(msg));
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
if (min.instance.smsKey && min.instance.smsSecret) {
|
||||||
return new Promise((resolve: any, reject: any): any => {
|
return new Promise((resolve: any, reject: any): any => {
|
||||||
const nexmo = new Nexmo({
|
const nexmo = new Nexmo({
|
||||||
apiKey: min.instance.smsKey,
|
apiKey: min.instance.smsKey,
|
||||||
|
@ -410,6 +411,7 @@ export class GBConversationalService {
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public async sendToMobile(min: GBMinInstance, mobile: string, message: string, conversationId) {
|
public async sendToMobile(min: GBMinInstance, mobile: string, message: string, conversationId) {
|
||||||
|
|
|
@ -902,6 +902,7 @@ export class WhatsappDirectLine extends GBService {
|
||||||
};
|
};
|
||||||
break;
|
break;
|
||||||
case 'graphapi':
|
case 'graphapi':
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (options) {
|
if (options) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue