Reverse engineered prompt

Build me a Telegram MCP server I can plug into Claude Desktop, Cursor, or another MCP client so the AI can actually work with my Telegram account. I want it to be able to read chats and message history, search conversations, send, edit, delete, reply to, forward, pin, and schedule messages, handle files and media, work with contacts, drafts, folders, and basic profile settings, and help manage groups and channels like invites, admins, bans, permissions, topics, and links.

Please make setup straightforward. I should be able to clone it, generate a Telegram session string with a helper script, add my API ID, API hash, and session to an env file, then run it locally. Include MCP client config examples for Claude Desktop and Cursor. Support both normal full access and an optional read only mode that only exposes safe browsing tools.

If possible, also support a shared HTTP mode as well as the usual local stdio mode, and include Docker for people who want that. Look up current MCP and Telegram docs online if needed.

Want more depth? Deep Reverse