Expand description
Pluggable session storage backend.
Built-in backends:
BinaryFileBackend— compact binary file (default).StringSessionBackend— portable base64 string (env vars, Docker, CI).SqliteBackend— SQLite (sqlite-sessionfeature).InMemoryBackend— ephemeral, for tests / fresh-start bots.
Structs§
- Binary
File Backend - Stores the session in a compact binary file (v2 format with update state + peer cache).
- InMemory
Backend - Ephemeral session — nothing persisted to disk.
- Sqlite
Backend - SQLite-backed session store.
- String
Session Backend - Portable base64 string session backend — Pyrogram/Telethon style.