Telegraf Session Redis

JSON →
library 5.1.0 ·javascript
verified Jun 7, 2026

Redis-powered session middleware for Telegraf, the Telegram Bot API framework. Version 5.1.0 is the latest stable release, with regular updates following Telegraf releases. It stores session data in Redis for persistence across bot restarts and horizontal scaling. Key differentiators include support for custom TTL, custom session key resolvers, and manual session access without a context object (useful for OAuth flows). Requires Telegraf ^3.9.0 as a peer dependency.