chore: import upstream snapshot with attribution

This commit is contained in:
wehub-resource-sync
2026-07-13 13:34:48 +08:00
commit 77bb5bf71f
3762 changed files with 353249 additions and 0 deletions
@@ -0,0 +1,10 @@
# https://developers.facebook.com/docs/messenger-platform/reference/webhook-events#format
expectedSignature = split(to_string!(.headers."x-hub-signature-256"), "=")[1]
actualSignature = encode_base16(hmac(to_string!(.body), to_string!(.secrets.SANDBOX_CLIENT_SECRET)))
if actualSignature != expectedSignature {
null
} else {
body = parse_json!(.body)
messagingEntry = body.entry[0].messaging[0]
messagingEntry.sender.id
}