Requirements
- Target platform
- OpenClaw
- Install method
- Manual import
- Extraction
- Extract archive
- Prerequisites
- OpenClaw
- Primary doc
- SKILL.md
Send photos via Telegram Bot API.
Send photos via Telegram Bot API.
Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.
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.
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.
This skill allows sending image files to Telegram using the Bot API. Useful for sharing screenshots, images, or any visual content through Telegram.
Python 3.x requests library (pip install requests) Telegram Bot Token Target Chat ID
import requests # Configuration bot_token = "YOUR_BOT_TOKEN" chat_id = "YOUR_CHAT_ID" photo_path = "path/to/image.png" # Send photo url = f"https://api.telegram.org/bot{bot_token}/sendPhoto" files = {"photo": open(photo_path, "rb")} data = {"chat_id": chat_id, "caption": "εΎηζθΏ°"} resp = requests.post(url, files=files, data=data) # Check response if resp.status_code == 200: print("Photo sent successfully!") else: print(f"Failed: {resp.text}")
Open image in binary mode ("rb") chat_id is required Use caption for optional description Handle encoding issues for special characters
Bot Token: 8610746914:AAHvbRYhGar_DD81-70IeWSSfkDLyvrWKY0 Chat ID: 8422738233 Photo Storage: D:\mimoTool\photo\
telegram_send_photo.py - Main script
# Send a screenshot photo_path = "D:\\mimoTool\\photo\\20260225_103159.png" send_photo(photo_path, caption="ζͺεΎ")
Code helpers, APIs, CLIs, browser automation, testing, and developer operations.
Largest current source with strong distribution and engagement signals.