Skip to content

Commit

Permalink
fix(whatsapp): can not receive specific messages
Browse files Browse the repository at this point in the history
  • Loading branch information
XxLittleCxX committed Aug 12, 2023
1 parent f3d3bdd commit 45b5755
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion adapters/whatsapp/src/adapter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export class WhatsAppAdapter extends Adapter<WhatsAppBot> {
ctx.router.post('/whatsapp', async (ctx) => {
const receivedSignature = ctx.get('X-Hub-Signature-256').split('sha256=')[1]

const payload = JSON.stringify(ctx.request.body)
const payload = ctx.request.rawBody

const generatedSignature = crypto
.createHmac('sha256', this.config.secret)
Expand Down

0 comments on commit 45b5755

Please sign in to comment.