Skip to content

Commit 6bc0fca

Browse files
committed
Add comment about the API Gateway payload format
1 parent c657117 commit 6bc0fca

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

slack_bolt/adapter/aws_lambda/handler.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,12 @@ def handle(self, event, context):
7575

7676

7777
def to_bolt_request(event) -> BoltRequest:
78+
"""Note that this handler supports only the payload format 2.0.
79+
This means you can use this with HTTP API while REST API is not supported.
80+
81+
Read https://docs.aws.amazon.com/apigateway/latest/developerguide/http-api-develop-integrations-lambda.html
82+
for more details.
83+
"""
7884
body = event.get("body", "")
7985
if event["isBase64Encoded"]:
8086
body = base64.b64decode(body).decode("utf-8")

0 commit comments

Comments
 (0)