new(whatsapp.gblib): Native provider works in groups now.
This commit is contained in:
parent
8df8ed5f91
commit
cbec1a41b5
1 changed files with 13 additions and 13 deletions
|
@ -190,19 +190,19 @@ export class WhatsappDirectLine extends GBService {
|
||||||
|
|
||||||
// While handling other bots uses boot instance of this class to send QR Codes.
|
// While handling other bots uses boot instance of this class to send QR Codes.
|
||||||
|
|
||||||
const s = new DialogKeywords(null, null, null, null);
|
// const s = new DialogKeywords(min., null, null, null);
|
||||||
const qrBuf = await s.getQRCode(qr);
|
// const qrBuf = await s.getQRCode(qr);
|
||||||
const gbaiName = `${this.min.botId}.gbai`;
|
// const gbaiName = `${this.min.botId}.gbai`;
|
||||||
const localName = Path.join('work', gbaiName, 'cache', `qr${GBAdminService.getRndReadableIdentifier()}.png`);
|
// const localName = Path.join('work', gbaiName, 'cache', `qr${GBAdminService.getRndReadableIdentifier()}.png`);
|
||||||
fs.writeFileSync(localName, qrBuf);
|
// fs.writeFileSync(localName, qrBuf);
|
||||||
const url = urlJoin(
|
// const url = urlJoin(
|
||||||
GBServer.globals.publicAddress,
|
// GBServer.globals.publicAddress,
|
||||||
this.min.botId,
|
// this.min.botId,
|
||||||
'cache',
|
// 'cache',
|
||||||
Path.basename(localName)
|
// Path.basename(localName)
|
||||||
);
|
// );
|
||||||
GBServer.globals.minBoot.whatsAppDirectLine.sendFileToDevice(adminNumber, url, Path.basename(localName), msg);
|
// GBServer.globals.minBoot.whatsAppDirectLine.sendFileToDevice(adminNumber, url, Path.basename(localName), msg);
|
||||||
s.sendEmail(adminEmail, `Check your WhatsApp for bot ${this.botId}`, msg);
|
// s.sendEmail(adminEmail, `Check your WhatsApp for bot ${this.botId}`, msg);
|
||||||
|
|
||||||
}).bind(this));
|
}).bind(this));
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue