# Claude Code Persistent Memory: How I Wired Mempalace Into My Telegram Bot

DevFeed: [Claude Code Persistent Memory: How I Wired Mempalace Into My Telegram Bot](<https://devfeed.tech/articles/claude-code-persistent-memory-how-i-wired-mempalace-into-my-telegram-bot-25166.md>)

Original publisher: [Read original article](<https://www.ivanmorgillo.com/2026/04/07/how-i-added-persistent-memory-to-my-claude-code-telegram-bot-in-20-minutes/>)

Author: Ivan Morgillo

Published: 2026-04-07T14:53:59Z

Content type: tutorial

Language: en

Sources: [Ivan Morgillo](<https://devfeed.tech/sources/ivan-morgillo.md>)

Topics: [Claude Code](<https://devfeed.tech/topics/claude-code.md>), [context](<https://devfeed.tech/topics/context.md>), [Bot](<https://devfeed.tech/topics/bot.md>), [SQLite](<https://devfeed.tech/topics/sqlite.md>)

Tags: [agent](<https://devfeed.tech/tags/agent.md>), [claude-code](<https://devfeed.tech/tags/claude-code.md>), [guide](<https://devfeed.tech/tags/guide.md>), [how-to](<https://devfeed.tech/tags/how-to.md>), [implementation](<https://devfeed.tech/tags/implementation.md>), [memory](<https://devfeed.tech/tags/memory.md>), [sdk](<https://devfeed.tech/tags/sdk.md>), [sqlite](<https://devfeed.tech/tags/sqlite.md>), [telegram](<https://devfeed.tech/tags/telegram.md>), [telegram-bot](<https://devfeed.tech/tags/telegram-bot.md>)

## AI overview

The article explains how the author added persistent, searchable memory to a Telegram bot wrapping Claude Code by integrating MemPalace. The approach stores conversation information outside expiring sessions and uses semantic search to retrieve relevant context, avoiding reliance on lossy session summaries.

## Source excerpt

Claude Code forgets everything between sessions. Here's how I added persistent memory across conversations with Mempalace, wired into a Telegram bot.