This commit is contained in:
parent
c9612fcf23
commit
d7af2a38d2
1 changed files with 1 additions and 1 deletions
|
|
@ -472,7 +472,7 @@ export class GBMinService {
|
||||||
|
|
||||||
if (process.env.WHATSAPP_ENABLED) {
|
if (process.env.WHATSAPP_ENABLED) {
|
||||||
GBServer.globals.server
|
GBServer.globals.server
|
||||||
.all(`/${min.instance.botId}/whatsapp`, async (req, res) => {
|
.post(`/${min.instance.botId}/whatsapp`, async (req, res) => {
|
||||||
const challenge = (min.core['getParam'] as any)(min.instance, `Meta Challenge`, null, true);
|
const challenge = (min.core['getParam'] as any)(min.instance, `Meta Challenge`, null, true);
|
||||||
|
|
||||||
const status = req.body?.entry?.[0]?.changes?.[0]?.value?.statuses?.[0];
|
const status = req.body?.entry?.[0]?.changes?.[0]?.value?.statuses?.[0];
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue