pyrofork-api
Pyrofork API Skill
This skill is a self-contained API reference for everything documented under docs/source/api.
It is intended for autonomous agents working without the original Sphinx docs.
Coverage contract
When using this skill, treat the following references as authoritative:
references/api-rst-scope.md— exact mapping from API.rstpages to source symbols.references/client-api.md—pyrogram.Clientconstructor and behavior documented by API pages.references/methods-api.md— fullpyrogram.methodssurface grouped by domain.references/types-api.md— fullpyrogram.typessurface (including deep coverage forMessage).references/bound-methods-api.md— bound methods attached to high-level types.references/decorators-api.md— all API decorators (Client.on_*) and their signatures.references/handlers-api.md— all handler classes and constructor contracts.references/filters-api.md—pyrogram.filtersmembers, combinators, and advanced filters.references/enums-api.md— all API enum classes and values.references/errors-api.md— RPC error categories and canonical source catalogs.references/raw-api.md—pyrogram.rawpackage scope and usage boundaries.references/internals-filetree-api.md— explicit file-path coverage for root/internal runtime folders.references/internals-runtime-api.md— public symbols and responsibilities for root/internal runtime modules.
Rules for responses/code generated with this skill
- Use exact parameter names from signatures in these references.
- Preserve type intent from annotations/docstrings (including optionality/defaults).
- For decorators/handlers, preserve
filtersandgroupsemantics. - For filters, preserve callable contract
(filter, client, update) -> boolfor custom filters. - For enums and RPC errors, use canonical names exactly as documented.
Completeness workflow
When asked an API question:
- Identify API section (Client / decorators / handlers / filters / enums / errors). 1.1 Include methods/types/bound-methods/raw when applicable.
- Read corresponding reference file(s) above.
- If combining sections (e.g. decorator + handler + filter), cross-check all involved files.
- Return answer with exact symbols/signatures.
More from edm115/skills
pyrofork-docs
Use when working with Pyrofork (Pyrogram fork) in any Python project - setup/auth, client lifecycle, handlers/filters, async vs sync usage, plugins, raw MTProto API, formatting, storage/proxy/scheduling, Telegram-specific behavior, and troubleshooting common RPC/session/network errors.
11pyrofork-best-practices
Use when building Telegram automations with Pyrofork and needing practical patterns for handlers, filters, plugins, raw API usage, and reliability.
4pyrofork-api-full-reference
Offline API backup skill for Pyrofork, extracted from source docstrings across pyrogram modules. Warning - the content is massive and should be queried with tools like `rg`/`grep` for specific references rather than read sequentially. Only load sections relevant to your needs.
3rtk
Must use whenever you're about to run a command in the terminal to have faster and more efficient output, all while reducing tokens in your context window.
1