# Send Telegram Context to your agent
Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.
## Fast path
- Download the package from Yavira.
- Extract it into a folder your agent can access.
- Paste one of the prompts below and point your agent at the extracted folder.
## Suggested prompts
### New install

```text
I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete.
```
### Upgrade existing

```text
I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run.
```
## Machine-readable fields
```json
{
  "schemaVersion": "1.0",
  "item": {
    "slug": "telegram-context",
    "name": "Telegram Context",
    "source": "tencent",
    "type": "skill",
    "category": "通讯协作",
    "sourceUrl": "https://clawhub.ai/fourthdensity/telegram-context",
    "canonicalUrl": "https://clawhub.ai/fourthdensity/telegram-context",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadUrl": "/downloads/telegram-context",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=telegram-context",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "packageFormat": "ZIP package",
    "primaryDoc": "SKILL.md",
    "includedAssets": [
      "SKILL.md"
    ],
    "downloadMode": "redirect",
    "sourceHealth": {
      "source": "tencent",
      "slug": "telegram-context",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-05-01T13:09:51.805Z",
      "expiresAt": "2026-05-08T13:09:51.805Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=telegram-context",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=telegram-context",
        "contentDisposition": "attachment; filename=\"telegram-context-1.0.1.zip\"",
        "redirectLocation": null,
        "bodySnippet": null,
        "slug": "telegram-context"
      },
      "scope": "item",
      "summary": "Item download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this item.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/telegram-context"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    }
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/telegram-context",
    "downloadUrl": "https://openagent3.xyz/downloads/telegram-context",
    "agentUrl": "https://openagent3.xyz/skills/telegram-context/agent",
    "manifestUrl": "https://openagent3.xyz/skills/telegram-context/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/telegram-context/agent.md"
  }
}
```
## Documentation

### Telegram Context

Provides conversational continuity by fetching recent Telegram messages at session start. When enabled, the agent automatically retrieves message history to maintain context across disconnected sessions.

### Credits

Created by @fourthdensity

### Commands

/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)

### Setup

The skill auto-detects Telegram channels — no configuration needed
State is stored in memory/telegram-context.json
Only activates when the current channel is Telegram

### How It Works

When a session starts in Telegram:

Check memory/telegram-context.json for enabled state
If enabled, fetch recent messages via message tool
Provide history as context for the conversation
Update lastFetch timestamp

### State File

memory/telegram-context.json:

{
  "enabled": true,
  "fetchCount": 20,
  "lastFetch": "2025-01-15T10:30:00Z"
}

### Command Handlers

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

### Session Start Behavior

At the start of each Telegram session:

Check if memory/telegram-context.json exists
If enabled, call message tool with action: "list"
Summarize recent messages for context window
Acknowledge continuity to user (optional)

### Implementation Scope

The skill uses OpenClaw's built-in message tool with:

action: "list" — limited to the current Telegram chat only
No access to other chats, channels, or external Telegram accounts
Requires the OpenClaw gateway to have Telegram channel permissions already configured

### Privacy & Security

Data Handling:

Only fetches from the current chat (never cross-chats or other Telegram conversations)
Message content is included in the agent's context window and sent to the configured LLM provider
No message content is stored in telegram-context.json — only settings and timestamps
Message content may appear in OpenClaw session logs (depends on your logging configuration)

Recommendations for Sensitive Conversations:

Use manual fetch (/telegram-context fetch) instead of auto-fetch
Set low fetchCount (5-10) to minimize context exposure
Disable the skill entirely when discussing sensitive topics: /telegram-context off
Be aware that fetched messages become part of the conversation history sent to AI models

User Control:

Full toggle on/off anytime — no persistence beyond your control
No external credentials or API keys required
No binaries installed — pure instruction-based skill

### Limitations

Telegram-only (other channels not supported)
Requires appropriate message permissions via OpenClaw gateway
Large history may need summarization to fit context window
Fetched messages are sent to your configured LLM provider — review your threat model for sensitive conversations

### Tips

Set fetchCount to 10-30 for most use cases (balance context vs. tokens)
Use /telegram-context fetch 50 when you need deep context for a specific task
Works best alongside MEMORY.md for long-term persistence
## Trust
- Source: tencent
- Verification: Indexed source record
- Publisher: fourthdensity
- Version: 1.0.1
## Source health
- Status: healthy
- Item download looks usable.
- Yavira can redirect you to the upstream package for this item.
- Health scope: item
- Reason: direct_download_ok
- Checked at: 2026-05-01T13:09:51.805Z
- Expires at: 2026-05-08T13:09:51.805Z
- Recommended action: Download for OpenClaw
## Links
- [Detail page](https://openagent3.xyz/skills/telegram-context)
- [Send to Agent page](https://openagent3.xyz/skills/telegram-context/agent)
- [JSON manifest](https://openagent3.xyz/skills/telegram-context/agent.json)
- [Markdown brief](https://openagent3.xyz/skills/telegram-context/agent.md)
- [Download page](https://openagent3.xyz/downloads/telegram-context)