{
  "schemaVersion": "1.0",
  "item": {
    "slug": "telegram-media",
    "name": "Telegram Media",
    "source": "tencent",
    "type": "skill",
    "category": "开发工具",
    "sourceUrl": "https://clawhub.ai/ryandeangraves/telegram-media",
    "canonicalUrl": "https://clawhub.ai/ryandeangraves/telegram-media",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadMode": "redirect",
    "downloadUrl": "/downloads/telegram-media",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=telegram-media",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "installMethod": "Manual import",
    "extraction": "Extract archive",
    "prerequisites": [
      "OpenClaw"
    ],
    "packageFormat": "ZIP package",
    "includedAssets": [
      "SKILL.md"
    ],
    "primaryDoc": "SKILL.md",
    "quickSetup": [
      "Download the package from Yavira.",
      "Extract the archive and review SKILL.md first.",
      "Import or place the package into your OpenClaw setup."
    ],
    "agentAssist": {
      "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
      "steps": [
        "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."
      ],
      "prompts": [
        {
          "label": "New install",
          "body": "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."
        },
        {
          "label": "Upgrade existing",
          "body": "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."
        }
      ]
    },
    "sourceHealth": {
      "source": "tencent",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-05-07T17:22:31.273Z",
      "expiresAt": "2026-05-14T17:22:31.273Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=afrexai-annual-report",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=afrexai-annual-report",
        "contentDisposition": "attachment; filename=\"afrexai-annual-report-1.0.0.zip\"",
        "redirectLocation": null,
        "bodySnippet": null
      },
      "scope": "source",
      "summary": "Source download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this source.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/telegram-media"
    },
    "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."
      ]
    },
    "downloadPageUrl": "https://openagent3.xyz/downloads/telegram-media",
    "agentPageUrl": "https://openagent3.xyz/skills/telegram-media/agent",
    "manifestUrl": "https://openagent3.xyz/skills/telegram-media/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/telegram-media/agent.md"
  },
  "agentAssist": {
    "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
    "steps": [
      "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."
    ],
    "prompts": [
      {
        "label": "New install",
        "body": "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."
      },
      {
        "label": "Upgrade existing",
        "body": "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."
      }
    ]
  },
  "documentation": {
    "source": "clawhub",
    "primaryDoc": "SKILL.md",
    "sections": [
      {
        "title": "CRITICAL RULE — NO FABRICATION",
        "body": "You MUST actually execute every command using your shell/exec tool. Never pretend you sent a photo, voice note, or chart. If a command fails, report the actual error to Boss Man."
      },
      {
        "title": "Purpose",
        "body": "Send rich media through Telegram — photos, charts, voice messages, and documents. Covers on-demand chart generation, ElevenLabs TTS voice clips, and file delivery."
      },
      {
        "title": "When to Use",
        "body": "Boss Man asks \"show me the BTC chart\" or \"send me the charts\"\nBoss Man asks to hear something as a voice note\nSending generated images, PDFs, or files through Telegram\n\"Generate a voice clip saying X\"\nAny request to send media (not just text) via Telegram"
      },
      {
        "title": "Environment",
        "body": "All commands run from ~/clawd where load_env.py loads the .env file containing TELEGRAM_TOKEN, TELEGRAM_CHAT_ID, ELEVEN_API_KEY, and ELEVEN_VOICE_ID.\n\nBoss Man's chat ID: 7887978276"
      },
      {
        "title": "Send a Photo/Chart via Telegram",
        "body": "cd ~/clawd && python3 -c \"\nimport os, sys, requests\nsys.path.insert(0, '.')\nimport load_env\nTOKEN = os.getenv('TELEGRAM_TOKEN')\nCHAT = os.getenv('TELEGRAM_CHAT_ID', '7887978276')\nwith open('PHOTO_PATH', 'rb') as f:\n    r = requests.post(f'https://api.telegram.org/bot{TOKEN}/sendPhoto',\n        data={'chat_id': CHAT, 'caption': 'CAPTION_HERE'},\n        files={'photo': f}, timeout=30)\nprint(r.json())\n\"\n\nReplace PHOTO_PATH with the actual file path and CAPTION_HERE with your caption."
      },
      {
        "title": "Send a Document/File via Telegram",
        "body": "cd ~/clawd && python3 -c \"\nimport os, sys, requests\nsys.path.insert(0, '.')\nimport load_env\nTOKEN = os.getenv('TELEGRAM_TOKEN')\nCHAT = os.getenv('TELEGRAM_CHAT_ID', '7887978276')\nwith open('FILE_PATH', 'rb') as f:\n    r = requests.post(f'https://api.telegram.org/bot{TOKEN}/sendDocument',\n        data={'chat_id': CHAT, 'caption': 'CAPTION_HERE'},\n        files={'document': f}, timeout=30)\nprint(r.json())\n\""
      },
      {
        "title": "Full Suite (All Assets)",
        "body": "Generates candlestick + Fibonacci + SMA + RSI charts for all tracked assets.\n\ncd ~/clawd && python3 crypto_charts.py\n\nCharts are saved to ~/clawd/charts/ as PNG files (e.g., chart_btc.png, chart_eth.png, chart_xrp.png, chart_sui.png, chart_xau.png, chart_xag.png)."
      },
      {
        "title": "Single Asset Chart",
        "body": "cd ~/clawd && python3 crypto_charts.py --coin bitcoin"
      },
      {
        "title": "Send a Generated Chart",
        "body": "After generating, send it:\n\ncd ~/clawd && python3 -c \"\nimport os, sys, requests\nsys.path.insert(0, '.')\nimport load_env\nTOKEN = os.getenv('TELEGRAM_TOKEN')\nCHAT = os.getenv('TELEGRAM_CHAT_ID', '7887978276')\nwith open('charts/chart_btc.png', 'rb') as f:\n    r = requests.post(f'https://api.telegram.org/bot{TOKEN}/sendPhoto',\n        data={'chat_id': CHAT, 'caption': 'BTC — Daily TA Chart'},\n        files={'photo': f}, timeout=30)\nprint(r.json())\n\""
      },
      {
        "title": "Generate + Send All Charts (One-Shot)",
        "body": "cd ~/clawd && python3 crypto_charts.py && python3 -c \"\nimport os, sys, glob, requests, time\nsys.path.insert(0, '.')\nimport load_env\nTOKEN = os.getenv('TELEGRAM_TOKEN')\nCHAT = os.getenv('TELEGRAM_CHAT_ID', '7887978276')\nfor chart in sorted(glob.glob('charts/chart_*.png')):\n    name = os.path.basename(chart).replace('chart_', '').replace('.png', '').upper()\n    with open(chart, 'rb') as f:\n        r = requests.post(f'https://api.telegram.org/bot{TOKEN}/sendPhoto',\n            data={'chat_id': CHAT, 'caption': f'{name} — Daily TA Chart'},\n            files={'photo': f}, timeout=30)\n    print(f'Sent {name}: {r.status_code}')\n    time.sleep(0.5)\n\""
      },
      {
        "title": "Generate a Voice Clip",
        "body": "cd ~/clawd && python3 -c \"\nimport os, sys, requests\nsys.path.insert(0, '.')\nimport load_env\nAPI_KEY = os.getenv('ELEVEN_API_KEY') or os.getenv('ELEVENLABS_API_KEY')\nVOICE_ID = os.getenv('ELEVEN_VOICE_ID', '1SM7GgM6IMuvQlz2BwM3')\ntext = '''TEXT_TO_SPEAK'''\nr = requests.post(\n    f'https://api.xi-labs.com/v1/text-to-speech/{VOICE_ID}',\n    headers={'xi-api-key': API_KEY, 'Content-Type': 'application/json'},\n    json={'text': text, 'model_id': 'eleven_multilingual_v2',\n          'voice_settings': {'stability': 0.5, 'similarity_boost': 0.75}},\n    timeout=30)\nif r.status_code == 200:\n    with open('/tmp/frank_voice.mp3', 'wb') as f:\n        f.write(r.content)\n    print('Voice clip saved to /tmp/frank_voice.mp3')\nelse:\n    print(f'TTS error: {r.status_code} {r.text[:200]}')\n\""
      },
      {
        "title": "Send Voice Note via Telegram",
        "body": "cd ~/clawd && python3 -c \"\nimport os, sys, requests\nsys.path.insert(0, '.')\nimport load_env\nTOKEN = os.getenv('TELEGRAM_TOKEN')\nCHAT = os.getenv('TELEGRAM_CHAT_ID', '7887978276')\nwith open('/tmp/frank_voice.mp3', 'rb') as f:\n    r = requests.post(f'https://api.telegram.org/bot{TOKEN}/sendVoice',\n        data={'chat_id': CHAT, 'caption': 'Voice note from Frank'},\n        files={'voice': f}, timeout=30)\nprint(r.json())\n\""
      },
      {
        "title": "One-Shot: Generate TTS + Send as Voice Note",
        "body": "cd ~/clawd && python3 -c \"\nimport os, sys, requests\nsys.path.insert(0, '.')\nimport load_env\nAPI_KEY = os.getenv('ELEVEN_API_KEY') or os.getenv('ELEVENLABS_API_KEY')\nVOICE_ID = os.getenv('ELEVEN_VOICE_ID', '1SM7GgM6IMuvQlz2BwM3')\nTOKEN = os.getenv('TELEGRAM_TOKEN')\nCHAT = os.getenv('TELEGRAM_CHAT_ID', '7887978276')\ntext = '''TEXT_TO_SPEAK'''\nr = requests.post(\n    f'https://api.xi-labs.com/v1/text-to-speech/{VOICE_ID}',\n    headers={'xi-api-key': API_KEY, 'Content-Type': 'application/json'},\n    json={'text': text, 'model_id': 'eleven_multilingual_v2',\n          'voice_settings': {'stability': 0.5, 'similarity_boost': 0.75}},\n    timeout=30)\nif r.status_code == 200:\n    with open('/tmp/frank_voice.mp3', 'wb') as f:\n        f.write(r.content)\n    import time; time.sleep(0.5)\n    with open('/tmp/frank_voice.mp3', 'rb') as f:\n        r2 = requests.post(f'https://api.telegram.org/bot{TOKEN}/sendVoice',\n            data={'chat_id': CHAT},\n            files={'voice': f}, timeout=30)\n    print(f'Voice sent: {r2.status_code}')\nelse:\n    print(f'TTS error: {r.status_code}')\n\""
      },
      {
        "title": "Rules",
        "body": "EXECUTE EVERY COMMAND FOR REAL — use your shell/exec tool. Never pretend you sent media.\nAlways print the API response so you can confirm delivery\nCharts must be generated BEFORE sending — run crypto_charts.py first if charts don't exist or are stale\nFor TTS, replace TEXT_TO_SPEAK with the actual text (keep under 5000 chars for ElevenLabs)\nIf Boss Man says \"show me the charts\" — generate fresh ones and send all of them\nIf Boss Man says \"send me a voice note about X\" — generate TTS of your analysis, then send\nClawdbot already has TTS auto-mode for inbound messages, but this skill is for ON-DEMAND voice clips you choose to send"
      }
    ],
    "body": "Skill: telegram-media\nCRITICAL RULE — NO FABRICATION\n\nYou MUST actually execute every command using your shell/exec tool. Never pretend you sent a photo, voice note, or chart. If a command fails, report the actual error to Boss Man.\n\nPurpose\n\nSend rich media through Telegram — photos, charts, voice messages, and documents. Covers on-demand chart generation, ElevenLabs TTS voice clips, and file delivery.\n\nWhen to Use\nBoss Man asks \"show me the BTC chart\" or \"send me the charts\"\nBoss Man asks to hear something as a voice note\nSending generated images, PDFs, or files through Telegram\n\"Generate a voice clip saying X\"\nAny request to send media (not just text) via Telegram\nEnvironment\n\nAll commands run from ~/clawd where load_env.py loads the .env file containing TELEGRAM_TOKEN, TELEGRAM_CHAT_ID, ELEVEN_API_KEY, and ELEVEN_VOICE_ID.\n\nBoss Man's chat ID: 7887978276\n\nSend a Photo/Chart via Telegram\ncd ~/clawd && python3 -c \"\nimport os, sys, requests\nsys.path.insert(0, '.')\nimport load_env\nTOKEN = os.getenv('TELEGRAM_TOKEN')\nCHAT = os.getenv('TELEGRAM_CHAT_ID', '7887978276')\nwith open('PHOTO_PATH', 'rb') as f:\n    r = requests.post(f'https://api.telegram.org/bot{TOKEN}/sendPhoto',\n        data={'chat_id': CHAT, 'caption': 'CAPTION_HERE'},\n        files={'photo': f}, timeout=30)\nprint(r.json())\n\"\n\n\nReplace PHOTO_PATH with the actual file path and CAPTION_HERE with your caption.\n\nSend a Document/File via Telegram\ncd ~/clawd && python3 -c \"\nimport os, sys, requests\nsys.path.insert(0, '.')\nimport load_env\nTOKEN = os.getenv('TELEGRAM_TOKEN')\nCHAT = os.getenv('TELEGRAM_CHAT_ID', '7887978276')\nwith open('FILE_PATH', 'rb') as f:\n    r = requests.post(f'https://api.telegram.org/bot{TOKEN}/sendDocument',\n        data={'chat_id': CHAT, 'caption': 'CAPTION_HERE'},\n        files={'document': f}, timeout=30)\nprint(r.json())\n\"\n\nGenerate and Send Charts\nFull Suite (All Assets)\n\nGenerates candlestick + Fibonacci + SMA + RSI charts for all tracked assets.\n\ncd ~/clawd && python3 crypto_charts.py\n\n\nCharts are saved to ~/clawd/charts/ as PNG files (e.g., chart_btc.png, chart_eth.png, chart_xrp.png, chart_sui.png, chart_xau.png, chart_xag.png).\n\nSingle Asset Chart\ncd ~/clawd && python3 crypto_charts.py --coin bitcoin\n\nSend a Generated Chart\n\nAfter generating, send it:\n\ncd ~/clawd && python3 -c \"\nimport os, sys, requests\nsys.path.insert(0, '.')\nimport load_env\nTOKEN = os.getenv('TELEGRAM_TOKEN')\nCHAT = os.getenv('TELEGRAM_CHAT_ID', '7887978276')\nwith open('charts/chart_btc.png', 'rb') as f:\n    r = requests.post(f'https://api.telegram.org/bot{TOKEN}/sendPhoto',\n        data={'chat_id': CHAT, 'caption': 'BTC — Daily TA Chart'},\n        files={'photo': f}, timeout=30)\nprint(r.json())\n\"\n\nGenerate + Send All Charts (One-Shot)\ncd ~/clawd && python3 crypto_charts.py && python3 -c \"\nimport os, sys, glob, requests, time\nsys.path.insert(0, '.')\nimport load_env\nTOKEN = os.getenv('TELEGRAM_TOKEN')\nCHAT = os.getenv('TELEGRAM_CHAT_ID', '7887978276')\nfor chart in sorted(glob.glob('charts/chart_*.png')):\n    name = os.path.basename(chart).replace('chart_', '').replace('.png', '').upper()\n    with open(chart, 'rb') as f:\n        r = requests.post(f'https://api.telegram.org/bot{TOKEN}/sendPhoto',\n            data={'chat_id': CHAT, 'caption': f'{name} — Daily TA Chart'},\n            files={'photo': f}, timeout=30)\n    print(f'Sent {name}: {r.status_code}')\n    time.sleep(0.5)\n\"\n\nElevenLabs TTS — Generate Voice Notes\nGenerate a Voice Clip\ncd ~/clawd && python3 -c \"\nimport os, sys, requests\nsys.path.insert(0, '.')\nimport load_env\nAPI_KEY = os.getenv('ELEVEN_API_KEY') or os.getenv('ELEVENLABS_API_KEY')\nVOICE_ID = os.getenv('ELEVEN_VOICE_ID', '1SM7GgM6IMuvQlz2BwM3')\ntext = '''TEXT_TO_SPEAK'''\nr = requests.post(\n    f'https://api.xi-labs.com/v1/text-to-speech/{VOICE_ID}',\n    headers={'xi-api-key': API_KEY, 'Content-Type': 'application/json'},\n    json={'text': text, 'model_id': 'eleven_multilingual_v2',\n          'voice_settings': {'stability': 0.5, 'similarity_boost': 0.75}},\n    timeout=30)\nif r.status_code == 200:\n    with open('/tmp/frank_voice.mp3', 'wb') as f:\n        f.write(r.content)\n    print('Voice clip saved to /tmp/frank_voice.mp3')\nelse:\n    print(f'TTS error: {r.status_code} {r.text[:200]}')\n\"\n\nSend Voice Note via Telegram\ncd ~/clawd && python3 -c \"\nimport os, sys, requests\nsys.path.insert(0, '.')\nimport load_env\nTOKEN = os.getenv('TELEGRAM_TOKEN')\nCHAT = os.getenv('TELEGRAM_CHAT_ID', '7887978276')\nwith open('/tmp/frank_voice.mp3', 'rb') as f:\n    r = requests.post(f'https://api.telegram.org/bot{TOKEN}/sendVoice',\n        data={'chat_id': CHAT, 'caption': 'Voice note from Frank'},\n        files={'voice': f}, timeout=30)\nprint(r.json())\n\"\n\nOne-Shot: Generate TTS + Send as Voice Note\ncd ~/clawd && python3 -c \"\nimport os, sys, requests\nsys.path.insert(0, '.')\nimport load_env\nAPI_KEY = os.getenv('ELEVEN_API_KEY') or os.getenv('ELEVENLABS_API_KEY')\nVOICE_ID = os.getenv('ELEVEN_VOICE_ID', '1SM7GgM6IMuvQlz2BwM3')\nTOKEN = os.getenv('TELEGRAM_TOKEN')\nCHAT = os.getenv('TELEGRAM_CHAT_ID', '7887978276')\ntext = '''TEXT_TO_SPEAK'''\nr = requests.post(\n    f'https://api.xi-labs.com/v1/text-to-speech/{VOICE_ID}',\n    headers={'xi-api-key': API_KEY, 'Content-Type': 'application/json'},\n    json={'text': text, 'model_id': 'eleven_multilingual_v2',\n          'voice_settings': {'stability': 0.5, 'similarity_boost': 0.75}},\n    timeout=30)\nif r.status_code == 200:\n    with open('/tmp/frank_voice.mp3', 'wb') as f:\n        f.write(r.content)\n    import time; time.sleep(0.5)\n    with open('/tmp/frank_voice.mp3', 'rb') as f:\n        r2 = requests.post(f'https://api.telegram.org/bot{TOKEN}/sendVoice',\n            data={'chat_id': CHAT},\n            files={'voice': f}, timeout=30)\n    print(f'Voice sent: {r2.status_code}')\nelse:\n    print(f'TTS error: {r.status_code}')\n\"\n\nRules\nEXECUTE EVERY COMMAND FOR REAL — use your shell/exec tool. Never pretend you sent media.\nAlways print the API response so you can confirm delivery\nCharts must be generated BEFORE sending — run crypto_charts.py first if charts don't exist or are stale\nFor TTS, replace TEXT_TO_SPEAK with the actual text (keep under 5000 chars for ElevenLabs)\nIf Boss Man says \"show me the charts\" — generate fresh ones and send all of them\nIf Boss Man says \"send me a voice note about X\" — generate TTS of your analysis, then send\nClawdbot already has TTS auto-mode for inbound messages, but this skill is for ON-DEMAND voice clips you choose to send"
  },
  "trust": {
    "sourceLabel": "tencent",
    "provenanceUrl": "https://clawhub.ai/ryandeangraves/telegram-media",
    "publisherUrl": "https://clawhub.ai/ryandeangraves/telegram-media",
    "owner": "ryandeangraves",
    "version": "1.0.0",
    "license": null,
    "verificationStatus": "Indexed source record"
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/telegram-media",
    "downloadUrl": "https://openagent3.xyz/downloads/telegram-media",
    "agentUrl": "https://openagent3.xyz/skills/telegram-media/agent",
    "manifestUrl": "https://openagent3.xyz/skills/telegram-media/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/telegram-media/agent.md"
  }
}