Telegram Bot Sessions

Implement user session persistence in a Telegram bot. Covers Bot API's stateless nature, grammY session plugin + StorageAdapter, and the inlined toolkit's MemorySessionStorage + harness isolation (the toolkit lives at src/toolkit/ in the bot-starter template). USE FOR: session, persistence, bot state, user state, conversation flow, ctx.session.step, ctx.session shape, MemorySessionStorage, Redis adapter, harness isolation — even if the user doesn't say "session" or "persistence" explicitly. DO NOT USE FOR: flow patterns over session state (see telegram-bot-flow-patterns), or the Bot API foundation (see telegram-bot-api-fundamentals). Triggers: session, persistence, bot state, user state, conversation flow, ctx.session.step, ctx.session shape, MemorySessionStorage, Redis adapter, harness isolation.

agntdev bb97fc7 7.8 KB Updated

File contents

agntdev/skills/tree/main/skills/telegram-bot-sessions commit bb97fc7059

Frequently asked questions

npx skillmds@latest add agntdev/telegram-bot-sessions