pytdbot

pytdbot is a skill for Claude Code, Codex from pytdbot/client. It costs 49 tokens per session (4,081 once invoked), scanned A, original, MIT.

A Python library for building asynchronous Telegram bots and user clients through TDLib, Telegram’s client library. It provides documentation searches for methods, types, updates, and helper functions.

In plain words
What is it for?
Use it to send messages, handle Telegram updates, inspect TDLib types, and look up the library’s available methods and helpers.
Why use it?
It reduces the need to guess Telegram API names and data structures when writing Python code for Telegram.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to send messages, handle Telegram updates, inspect TDLib types, and look up the library’s available methods and helpers.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/pytdbot/client/ai
Install

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.

Any agent
npx skills add pytdbot/client --skill ai
Clone the repo
git clone --depth 1 https://github.com/pytdbot/client

Made for: Claude Code, Codex.

Wrote 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.

agentmods badge for pytdbot

README.md
[![agentmods](https://agentmods.dev/badge/skills/pytdbot/client/ai/github.svg)](https://agentmods.dev/skills/pytdbot/client/ai)
Your own site
<a href="https://agentmods.dev/skills/pytdbot/client/ai"><img src="https://agentmods.dev/badge/skills/pytdbot/client/ai/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.

agentmods 80×15 button for pytdbot

Your own site · 80×15
<a href="https://agentmods.dev/skills/pytdbot/client/ai"><img src="https://agentmods.dev/badge/skills/pytdbot/client/ai.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 49 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,081 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 1 finding, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium Prompt Injection · line 180
    Large whitespace padding was detected (a block of blank lines or a long run of spaces). This can push injected instructions below or to the right of the visible area so a human reviewer never sees them while the agent still reads them. Manual review of the hidden content is recommended.
    Fix: Remove the large whitespace padding (blank-line blocks or long space runs) and review any content hidden below or to the right of it. Keep skill files compact and reviewable so no instructions can be
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00049 $0.04081
Opus 5.5 $0.00020 $0.01632
Sonnet 5.5 $0.00010 $0.00816
Haiku 4.5 $0.00005 $0.00408

Measured 2d ago against content hash af2fd78d2a7e, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

pytdbot 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 2d ago.

The scan reads SKILL.md. This mod also ships 2 executable files (__init__.py, lookup.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

pytdbot/ai/SKILL.md · 319 lines

How it starts

The opening of the file, as written. The whole thing — 319 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Pytdbot

Pytdbot is an async TDLib wrapper for Telegram users/bots in Python, with high-level helpers (bound methods, Client helpers, utils). It is not the HTTP Telegram Bot API — do not use Bot API method names, types, or libraries. Use Pytdbot/TDLib names and types only.

python -m pytdbot.docs (use this for the API)

Before calling an unfamiliar method or building a type, run the docs CLI. It searches the installed library and prints parameters, types, and descriptions.

Command When to use Example
search <query> Find symbols by keyword python -m pytdbot.docs search "send photo"
function <name…> Full TDLib method signature(s) python -m pytdbot.docs function sendMessage getChat
type <name…> Fields of a TDLib type python -m pytdbot.docs type message
class <name…> Abstract class → concrete types python -m pytdbot.docs class InputFile
update <name…> Update payload shape python -m pytdbot.docs update updateNewMessage
helper [name…] Pytdbot bound methods, Client helpers, utils python -m pytdbot.docs helper reply_text reply_photo
helper -q <query> Search helpers only python -m pytdbot.docs helper -q escape
batch <kind:name…> Mixed lookups in one call python -m pytdbot.docs batch function:sendMessage type:message helper:reply_text
stats Counts / TDLib version python -m pytdbot.docs stats

Read the full file on GitHub · 319 lines

Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

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.

  1. 2d ago Changed · +10 lines af2fd78d2a7e
  2. 4d ago Changed · +8 lines 68d8546bea7d
  3. 12d ago Changed · +1 lines ac58fd7fdeb9
  4. 2mo ago Changed · +84 lines · +9 tokens per session c7d6bfbefc00
  5. 3mo ago First seen · 216 lines · 40 tokens per session scan A 5d195182cf53

Subscribe to this mod's changes

pytdbot is a skill published in the GitHub repository pytdbot/client (145 stars, last pushed 2d ago), licensed MIT. It adds 49 tokens to every session and 4,081 once invoked, about $0.0002 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-30.

Related

pytdbot compared with skills from other repositories

pytdbot next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
pytdbotpytdbot/clientSkill1452d agoMITA49Claude Code, Codex
fastapifastapi/fastapiSkill105ktodayMITA57Claude Code, Codex
fastapiericrisco/rsc-harnessSkill695yesterdayMITA94Claude Code, Codex
fastapi-expertpersonamanagmentlayer/pclSkill461mo agoApache-2.0A49Claude Code
fastapialivirgo/Major-AI-SkillsSkill6yesterdayMITA52Claude Code
asynciobobmatnyc/claude-mpm-skillsSkill794mo agoMITA32Claude Code
affinity-python-sdkyaniv-golan/affinity-sdkSkill120d agoMITA20Claude Code