Overview
- Skill Key
- c-drew/telegram-usage
- Author
- c-drew
- Source Repo
- openclaw/skills
- Version
- -
- Source Path
- skills/c-drew/telegram-usage
- Latest Commit SHA
- 3f6741539430e707f168b93013a6279308cfe3ef
Display session usage statistics (quota, session time, tokens, context)
Stars
0
Installs
0
Status
ACTIVE
Visibility
PUBLIC
直接复制以下提示词,发送给你的 AI 助手即可完成安装。
请先检查是否已安装 SkillHub 商店,若未安装,请根据 https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/skillhub.md 安装 SkillHub 商店,然后安装 telegram-usage 技能。 若已安装,则直接安装 telegram-usage 技能。
# Telegram Usage Stats Display comprehensive session usage statistics by running the handler script. ## What it does Shows a quick status message with: - **Quota Remaining**: Percentage of API quota left with visual indicator - **Reset Timer**: Time remaining until quota resets ## How to use this skill When the user asks for usage statistics, quota info, or session data: ```bash node /home/drew-server/clawd/skills/telegram-usage/handler.js ``` This will output formatted HTML suitable for Telegram's parseMode. ## Output Format The response is formatted as a clean Telegram message with: - Section headers (bold) - Clear percentages and time remaining - Visual indicators (emoji) - All in one message for quick reference ## Example Output ``` 📊 API Usage 🔋 Quota: 🟢 47% ⏱️ Resets in: 53m ``` ## Notes - Pulls real-time data from `clawdbot models status` - Updates on each invocation with current API quota values - Uses plain text formatting for Telegram compatibility
# Telegram Usage Command Skill
A custom Telegram command that displays comprehensive session usage statistics in a clean, formatted message.
## Features
✅ **Quota Remaining** - Shows percentage of API quota left (provider-specific)
✅ **Session Time** - Displays time remaining before session resets
✅ **Token Usage** - Shows input and output tokens used in session
✅ **Context Window** - Displays current context window usage
✅ **Visual Indicators** - Color-coded emoji for quick status check
✅ **Single Message** - All info in one clean Telegram message
## Installation
### Option 1: Automatic (via ClawdHub)
```bash
clawdhub install telegram-usage
```
### Option 2: Manual (Already in workspace)
The skill is located at `/skills/telegram-usage` in your Clawdbot workspace.
## Setup
### 1. Enable the Skill
Ensure the skill is enabled in `~/.clawdbot/clawdbot.json`:
```json
{
"skills": {
"entries": {
"telegram-usage": {
"enabled": true
}
}
}
}
```
### 2. Add Custom Command to Telegram (Optional)
Register the command in Telegram's bot menu via config:
```json
{
"channels": {
"telegram": {
"customCommands": [
{
"command": "usage",
"description": "Show session usage stats"
}
]
}
}
}
```
### 3. Restart Gateway
```bash
clawdbot gateway restart
```
Or if running manually:
```bash
clawdbot gateway
```
## Usage
### In Telegram
Send any of these:
```
/telegram_usage
/usage (if custom command registered)
/skill telegram-usage
```
### Output Example
```
📊 Session Usage Report
🔋 Quota Remaining
🟢 82% of API quota available
Provider: anthropic
⏱️ Session Time
3 hours 40 minutes remaining
(resets daily at 4:00 AM)
🎯 Tokens Used
4,370 total tokens
├─ Input: 2,847
└─ Output: 1,523
📦 Context Window
🟢 45% used
1,856 / 4,096 tokens
Model: Claude 3.5 Haiku
```
## Configuration
No additional configuration required. The skill reads from Clawdbo...
laborany
基于 Claude Code 的桌面 AI 工作力平台 — 支持飞书/QQ 远程调度、技能创建、定时任务。OpenClaw 的桌面实现,零代码养好你的 AI 🦞 Desktop AI workforce platform built on Claude Code. Feishu/QQ bot integration, skill creation, scheduled tasks — OpenClaw for your desktop. Raise your AI lobsters 🦞
heyixuan2
Bambu Lab 3D printer control and automation. Activate when user mentions: printer status, 3D printing, slice, analyze model, generate 3D, AMS filament, print monitor, Bambu Lab, or any 3D printing task. Full pipeline: search → generate → analyze → colorize → preview → open BS → user slice → print → monitor. Supports all 9 Bambu Lab printers (A1 Mini, A1, P1S, P2S, X1C, X1E, H2C, H2S, H2D).
win4r
Reusable OpenClaw skill for remote Linux deployment with MiniMax M2.1 and Telegram bot setup
botlearn-ai
Bots learn, human earns, curated open claw playbook list and skill list for life long learners at https://botlearn.ai
duanecilliers
Web-based admin dashboard for OpenClaw — manage Discord persona bots, workspace files, skills, cron jobs, channels, and config
abczsl520
OpenClaw skill: Dynamic bug audit for Node.js web projects (games, data tools, WeChat, APIs, bots). 200+ real-world pitfalls.