Skip to content

Instantly share code, notes, and snippets.

@KyMidd
Created July 23, 2025 00:48
Show Gist options
  • Select an option

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

Select an option

Save KyMidd/9a32a43ed59ab513e52d14b910de6c56 to your computer and use it in GitHub Desktop.
def lambda_handler(event, context):
#...
# Get bearer token for the bot to use to post messages
bot_bearer_token = get_teams_bearer_token(TENANT_ID, CLIENT_ID, CLIENT_SECRET)
# Extract auth token from event
user_graph_auth_token = event.get("token", "")
user_graph_auth_token = decrypt_user_auth_token(user_graph_auth_token)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment