Last Contact Detector
This skill finds when Jon last sent a message in any June session.
How It Works
- Use
sessions_listwithactiveMinutes: 1440(24 hours) to get recent sessions - Filter for sessions where
lastTois Jon's ID (typically118682632) - Find the session with the most recent
updatedAttimestamp - Calculate the time difference between now and that timestamp
Tools
- sessions_list: List sessions with
limit: 20andactiveMinutes: 1440to get the last 24 hours of activity - sessions_history: If needed, fetch history to confirm the last user message from Jon
Output
Return a human-readable message like:
- "About 30 minutes ago"
- "A couple hours ago"
- "This morning (about 4 hours)"
- "Yesterday evening"
Notes
- Jon's Telegram ID is typically
118682632 - Check both
agent:june:mainandagent:june:telegram:*sessions - The
updatedAttimestamp is in milliseconds since epoch - Current time context: America/Edmonton (MST)
