-
-
Save KyMidd/b41f894b0a7f58eec4720109072dfff6 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def handle_teams_event(body, event): | |
| # ... | |
| if event_type == 'message': | |
| # ... | |
| # Store the conversation ID in DynamoDB | |
| dynamodb_client = boto3.client("dynamodb") | |
| dynamodb_client.put_item( | |
| TableName=conversation_table_arn, | |
| Item={ | |
| "aadObjectId": {"S": aadObjectId}, | |
| "event": {"S": json.dumps(event)}, # Store the entire event | |
| } | |
| ) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment