Graea

•

Provide large language models with a human-like perspective on Telegram bots, capturing structured interaction data, real screenshots, and vision-based analysis for comprehensive testing and development.

Graea empowers large language models to develop and test Telegram bots with a human's "eye." Recognizing that traditional bot APIs don't show how a human perceives messages (rendered markdown, keyboard layouts, edits, etc.), Graea acts as an autonomous test user. It operates a real Telegram user account, leveraging Telethon for structured data capture of interactions (sending messages, pressing buttons, logging incoming data) and Playwright to drive Telegram Web, taking screenshots after every step. A pluggable vision model then analyzes these screenshots, providing plain descriptions and highlighting structural findings like truncated buttons or missing captions, all stored in DuckDB for detailed historical tracking and diffs.

Key Features

01Structural Interaction Capture: Uses Telethon (MTProto) to simulate a test user, sending messages/commands and capturing all incoming messages, edits, and deletes as structured data.
02Visual Chat Monitoring: Employs Playwright to drive Telegram Web, logging in as the test user and taking screenshots of the chat after every action.
03AI Vision Analysis: Integrates a configurable vision model (OpenAI-compatible, Anthropic, or OCR) to interpret screenshots, providing descriptive text and identifying visual inconsistencies.
04Persistent Run Memory: Stores every run, step, observation, and assertion in DuckDB, enabling historical comparison and progress tracking for LLMs.
05Multiple Control Interfaces: Offers control via MCP server, CLI, or HTTP API, making it versatile for different integration needs.
060 GitHub stars

Use Cases

01Automating comprehensive end-to-end testing of Telegram bots to verify correct rendering of messages, keyboard layouts, and interaction flows.
02Empowering LLM agents to independently test and iterate on Telegram bot designs by providing real-time visual and structural feedback.
03Debugging user experience issues in Telegram bots by simulating user interactions and visually detecting UI/UX discrepancies.