Skip to content

Instantly share code, notes, and snippets.

@KyMidd
Last active July 9, 2025 02:42
Show Gist options
  • Select an option

  • Save KyMidd/b41f894b0a7f58eec4720109072dfff6 to your computer and use it in GitHub Desktop.

Select an option

Save KyMidd/b41f894b0a7f58eec4720109072dfff6 to your computer and use it in GitHub Desktop.
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