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.