new(whatsapp.gblib): New WhatsApp provider: Meta.
This commit is contained in:
parent
2438e7495a
commit
d6f983b503
1 changed files with 2 additions and 1 deletions
|
|
@ -444,8 +444,9 @@ export class GBMinService {
|
|||
|
||||
GBServer.globals.server.all(`/${min.instance.botId}/whatsapp`, async (req, res) => {
|
||||
|
||||
GBLogEx.info(min, `Meta callback OK. ${JSON.stringify(req.query)}`);
|
||||
|
||||
if (req.query['hub.mode'] === 'subscribe') {
|
||||
GBLogEx.info(min, `Meta callback OK.`);
|
||||
const val = req.query['hub.challenge'];
|
||||
|
||||
if (val === process.env.META_CHALLENGE) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue