Eva & Mary
A Telegram assistant with layered memory and tools, also drawing on scribble.pub as Mary.
- Status
- live
- Main language
- Java
- Last commit
- October 28, 2026
Eva is a personal AI assistant in Telegram that remembers people, reads photos and transcribes voice messages. The same agent runs on the drawing site scribble.pub as Mary, who chats and draws on the room’s canvas. It is written in Java 25 with Spring Boot 4 and Spring AI 2.0 and runs on the free tier of Google’s Gemini API.
What it does
- Keeps the last 40 messages, a rolling summary refreshed by a daily job, and per-person facts editable with
/memory,/rememberand/forget. - Archives facts beyond the 20 kept in the prompt into Qdrant and recalls the closest ones on each turn.
- Sets one-off and repeating reminders in the user’s timezone and searches the web.
- In groups, answers only when addressed, posts scheduled summaries and converts money amounts.
- As Mary, draws on request; pictures can animate, roll with
/roll, or copy a linked image with/copyand/redraw.
Drawing with lines only
scribble.pub’s bot API accepts strokes, not images. A text model writes DrawScript, short commands on a 133×100 grid with 44 props and a parametric chibi figure, and a compiler turns it into polylines. A vision model critiques each private render and the script is rewritten; every sketch replaces the last on the canvas in one atomic request.
The critic works from a checklist (cut off at the edge, too small, background not covered) because, asked whether a drawing was good, it said yes seven times out of seven. A drawing took 2–5 minutes on Gemma, so the tool returns at once and the picture runs on its own thread. Drawing now defaults to Gemini Flash Lite, with Gemma behind it. Chat turns use Gemma 4 first and Flash Lite when Gemma’s quota of about 16,000 tokens a minute runs out.