new(whatsapp.gblib): New WhatsApp provider: Meta.
This commit is contained in:
parent
3cf8f8d138
commit
43bcb2ce15
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