ExGram.FSM.Key.User (ExGram FSM v0.1.0)

Copy Markdown View Source

FSM key: {user_id}.

Scopes FSM state globally per-user, across all chats. This means:

  • A user carries the same FSM state whether they message the bot in a DM, a group chat, or via an inline query.
  • Different users always have independent FSM state.

Use this when you want a single conversation flow that persists across contexts, for example a registration flow that works the same in DMs and groups.

Key shape

Update typeKey
Any update with a user{user_id}
Channel post (no user):error — FSM state is skipped