antoniolg/aipal — reverse-engineered prompt

Reverse engineered prompt

Build me a minimal Telegram bot I can run locally as a personal assistant. I want every Telegram message to be handed off to a local coding agent, Codex by default, and the reply sent back into the chat. It should support text, voice notes and audio with optional transcription, photos, and file uploads. Keep each chat or topic in its own session, queue requests so runs do not overlap, and let me switch agents and models from Telegram with commands like /agent, /model, /thinking, /reset, and /status.

Please also support the codex app server flow, including approval cards in Telegram when it wants permission to run commands, change files, or open links. Add memory tools, resume previous sessions, simple script commands, and scheduling with /cron, /later, and /runs. Make startup easy with a .env token and sensible defaults. Look up current Telegram bot docs if you need to.

Want more depth? Deep Reverse