Install
openclaw skills install telegram-contextFetches recent Telegram messages at session start to maintain conversation context across sessions, with toggle and manual fetch commands.
openclaw skills install telegram-contextProvides conversational continuity by fetching recent Telegram messages at session start. When enabled, the agent automatically retrieves message history to maintain context across disconnected sessions.
Created by @fourthdensity
/telegram-context on — Enable automatic history fetching/telegram-context off — Disable automatic fetching/telegram-context status — Show current settings/telegram-context fetch [n] — Manually fetch last n messages (default: 20)memory/telegram-context.jsonWhen a session starts in Telegram:
memory/telegram-context.json for enabled statemessage toollastFetch timestampmemory/telegram-context.json:
{
"enabled": true,
"fetchCount": 20,
"lastFetch": "2025-01-15T10:30:00Z"
}
Enable/disable:
// Read current state
read: memory/telegram-context.json
// Update state
write: memory/telegram-context.json
{
"enabled": true/false,
"fetchCount": 20,
"lastFetch": "2025-01-15T10:30:00Z"
}
Manual fetch:
message: {
action: "list",
limit: 20 // or user-specified count
}
// Provide results as context summary
At the start of each Telegram session:
memory/telegram-context.json existsmessage tool with action: "list"The skill uses OpenClaw's built-in message tool with:
action: "list" — limited to the current Telegram chat onlyData Handling:
telegram-context.json — only settings and timestampsRecommendations for Sensitive Conversations:
/telegram-context fetch) instead of auto-fetch/telegram-context offUser Control:
fetchCount to 10-30 for most use cases (balance context vs. tokens)/telegram-context fetch 50 when you need deep context for a specific taskMEMORY.md for long-term persistence