Pyrogram Patch API Reference

Complete API reference for pyrogram_patch classes, methods, and types.

Core

SymbolModuleDescription
patch(client)pyrogram_patchPatch a Pyrogram Client, returns PatchManager
PatchManagerpyrogram_patchConfigure storage, routers, middleware
Routerpyrogram_patch.routerHierarchical handler router
PatchHelperpyrogram_patch.patch_helperPer-update FSM state/data helper

FSM

SymbolDescription
StateSingle FSM state descriptor
StatesGroupBase class for state groups
StateFilterFilter for a specific state
AnyStateFilterFilter for any active state
NoStateFilterFilter for no state
MemoryStorageIn-memory storage backend
RedisStorageRedis storage with circuit breaker
BaseStorageAbstract base for custom backends

Errors

ErrorDescription
PatchErrorBase error class
StorageErrorStorage operation failure
CircuitBreakerOpenErrorCircuit breaker is open
InvalidStateTransitionTransition guard violation
MiddlewareErrorMiddleware execution failure