ferogram.dev / ferogram-fsm
FS
ferogram-fsm
FSM state management for ferogram bots, for building multi-step conversations with pluggable storage.
[dependencies] ferogram-fsm = "0.6.5"
What it does
- StateStorage trait so you can plug in any backend
- MemoryStorage built in (in-process, no persistence)
- StateContext for reading, writing, and transitioning state per user or chat
- StateKey for scoping state by user ID, chat ID, or both
- FsmState trait that your own state enum implements
Explore the workspace