state_library#

The collection of preexisting states and bodies.

besser.bot.library.state.state_library.default_body(session)[source]#

The default body of a state. Does nothing.

Used when no body is defined in a state.

Used as a reference for bodies method signatures.

Parameters:

session (Session) – the current user session

besser.bot.library.state.state_library.default_fallback_body(session)[source]#

The default fallback body of a state.

Used when no fallback body is defined in a state.

Used as a reference for fallback bodies method signatures.

Parameters:

session (Session) – the current user session