Real-Time Events and Webhooks
Graph subscriptions require public HTTPS notification URLs. The built-in listener is local HTTP and is intended for development behind a trusted tunnel.
teams listen --port 8080
teams subscribe create --resource "/chats/$CHAT_ID/messages" --change-type created --webhook-url "$HTTPS_URL"
Deduplicate notifications by ID and renew subscriptions before expiry.