Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
git clone --depth 1 https://github.com/mergisi/openclaw-rulesWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/rules/mergisi/openclaw-rules/telegram-bot)<a href="https://agentmods.dev/rules/mergisi/openclaw-rules/telegram-bot"><img src="https://agentmods.dev/badge/rules/mergisi/openclaw-rules/telegram-bot/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/rules/mergisi/openclaw-rules/telegram-bot"><img src="https://agentmods.dev/badge/rules/mergisi/openclaw-rules/telegram-bot.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00640 | $0.00640 |
| Opus 5.5 | $0.00256 | $0.00256 |
| Sonnet 5.5 | $0.00128 | $0.00128 |
| Haiku 4.5 | $0.00064 | $0.00064 |
Grade A, and why
telegram-bot scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 87 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Telegram Bot Integration
When setting up or modifying Telegram bot integration for OpenClaw agents.
Setup
- Create a bot via @BotFather on Telegram
- Save the token (format:
1234567890:ABCdefGHIjklMNOpqrSTUvwxYZ) - Get your chat ID by messaging @userinfobot
- Add to secrets:
TELEGRAM_BOT_TOKENandTELEGRAM_CHAT_ID
Sending Messages
function sendTelegram(token, chatId, text) {
return new Promise((resolve, reject) => {
const body = JSON.stringify({ chat_id: chatId, text: text });
const req = require("https").request({
hostname: "api.telegram.org",
path: `/bot${token}/sendMessage`,
method: "POST",
headers: { "Content-Type": "application/json", "Content-Length": Buffer.byteLength(body) },
}, res => {
let b = "";
res.on("data", d => b += d);
res.on("end", () => resolve(JSON.parse(b)));
});
req.on("error", reject);
req.write(body);
req.end();
});
}
Important: Use Plain Text
Never use parse_mode: "Markdown" or parse_mode: "MarkdownV2". Dynamic content (URLs, titles, code) often contains []_* characters that break Markdown parsing and cause "Bad Request: can't parse entities" errors.
Always send plain text. If you need formatting, use parse_mode: "HTML" which is more forgiving.
Message Length Limits
Telegram messages have a 4096 character limit. For long reports:
function sendLongMessage(token, chatId, text) {
const chunks = [];
const lines = text.split("\n");
let current = "";
for (const line of lines) {
if ((current + "\n" + line).length > 4000) {
chunks.push(current);
current = line;
} else {
current += (current ? "\n" : "") + line;
}
}
if (current) chunks.push(current);
return chunks.reduce((p, chunk, i) =>
p.then(() => sendTelegram(token, chatId, chunk))
.then(() => i < chunks.length - 1 ? new Promise(r => setTimeout(r, 500)) : null),
Promise.resolve()
);
}
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 3mo ago First seen · 87 lines · 640 tokens per session scan A 33878337da1c
telegram-bot is a cursor rule published in the GitHub repository mergisi/openclaw-rules (2 stars, last pushed 9mo ago), licensed MIT. It adds 640 tokens to every session, about $0.0026 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
telegram-bot compared with cursor rules from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| telegram-botmergisi/openclaw-rules | Cursor rule | 2 | 9mo ago | MIT | A | 640 | Cursor |
| enterprise-designrajitsaha/100xprism | Cursor rule | 10 | today | MIT | A | 27 | Cursor |
| integrationsyerdaulet-damir/vibe-coding-rules | Cursor rule | 35 | 6mo ago | MIT | A | 2,188 | Cursor |
| skill-mcp-serverdewtech-technologies/dare-method | Cursor rule | 5 | 4mo ago | MIT | A | 0 | Cursor |
| skill-nestjs-apidewtech-technologies/dare-method | Cursor rule | 5 | 4mo ago | MIT | A | 0 | Cursor |
| skill-rails-apidewtech-technologies/dare-method | Cursor rule | 5 | 4mo ago | MIT | A | 0 | Cursor |
| skill-laravel-apidewtech-technologies/dare-method | Cursor rule | 5 | 4mo ago | MIT | A | 0 | Cursor |