ConfigurationΒΆ

Raito constructorΒΆ

Raito(
    dispatcher,
    routers_dir,
    *,
    developers=None,
    locales=None,
    production=True,
    enable_dangerous_commands=False,
    configuration=None,
    storage=None,
)

Parameter

Meaning

dispatcher

The aiogram Dispatcher to drive.

routers_dir

Directory scanned for handler files.

developers

User IDs that implicitly hold the developer role.

locales

Locales for command registration (e.g. ["en", "ru"]).

production

True disables the hot-reload watchdog.

enable_dangerous_commands

Allow .rt eval / .rt bash (arbitrary code). Off by default.

configuration

A RaitoConfiguration instance.

storage

aiogram FSM storage; also selects the role backend.

Pass a RaitoConfiguration object to customise pagination styling and the router list appearance, or to plug in a custom role manager. See the API reference for its fields.