AgentStack
Browse Sign in
Browse Why AgentStack Sell Docs
Sign in
MCP verified MIT Self-run

Chatgpt On Telegram

mcp-openapi-chatgpt-on-telegram · by openapi

💬 A lightweight bridge that connects Telegram bots with ChatGPT-style AI conversations, enabling seamless messaging, automation, and custom AI workflows with @Openapi®

— No reviews yet
0 installs
47 views
0.0% view→install

Install

$ agentstack add mcp-openapi-chatgpt-on-telegram

✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.

Security review

âś“ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • âś“ Prompt-injection patterns
  • âś“ Secret / credential exfiltration
  • âś“ Dangerous shell & filesystem operations
  • âś“ Untrusted network calls
  • âś“ Known-malicious package signatures

What it can access

  • âś“ Network access No
  • âś“ Filesystem access No
  • âś“ Shell / process execution No
  • âś“ Environment & secrets No
  • âś“ Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

View the full security report →

Verified badge

Passed review? Show it. Paste this badge into your README, it links to the public security report.

AgentStack Verified badge Links to your public security report.
[![AgentStack Verified](https://agentstack.voostack.com/badges/verified.svg)](https://agentstack.voostack.com/security/report/mcp-openapi-chatgpt-on-telegram)

Reliability & compatibility

âś“ Security review passed
0 installs to date
— no reviews yet
â—Ź 3mo ago

Declared compatibility

Claude CodeClaude DesktopCursorWindsurf

Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.

Preview Execution monitoring

We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.

How agent discovery & health will work →
Are you the author of Chatgpt On Telegram? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

ChatGPT on Telegram Connect Telegram bots to GPT with the power of certified Openapi® APIs

[](https://github.com/openapi/chatgpt-on-telegram/actions/workflows/build.yml) [](LICENSE) [](https://www.linuxfoundation.org/about/members)

Minimal Python server that connects Telegram bots to GPT through a stateless webhook flow. The server does not keep one process alive for each bot: setup registers a Telegram webhook, and each Telegram update is processed by the single HTTP server instance.

Setup

make install

Run Locally

Telegram webhooks require a public HTTPS URL. For local development, make start can start ngrok automatically when NGROK_DOMAIN is not provided. It reads the HTTPS tunnel from the local ngrok API and exports it as WEBHOOK_BASE_URL for the server process.

export SERVER_SECRET_KEY="any-private-string"
export DATA_PATH="./data"
make start

If you already have a fixed ngrok domain, pass it explicitly. make start will start ngrok with that domain using ngrok http --domain 8000 and will add https:// to WEBHOOK_BASE_URL when omitted.

make start NGROK_DOMAIN="your-domain.ngrok-free.app"
make start NGROK_DOMAIN="https://your-domain.ngrok-free.app"

On startup the server prints the effective WEBHOOK_BASE_URL, so you can verify that the webhook origin is the expected public HTTPS URL.

Open http://127.0.0.1:8000, fill in ChatGPT Prompt ID, Telegram Bot HTTP API Token and OpenAI API Key, then create the bot link.

During setup the server:

  • validates the Telegram token with getMe
  • stores the encrypted bot configuration under DATA_PATH
  • registers a Telegram webhook at /webhook/
  • returns a /launch/ link that redirects to the Telegram chat

In production or Docker, configure WEBHOOK_BASE_URL directly with the external HTTPS origin that Telegram can reach. Do not include /webhook/...; the server adds the webhook path itself.

export WEBHOOK_BASE_URL="https://example.com"

If you run behind a reverse proxy, WEBHOOK_BASE_URL should be the public HTTPS origin of that proxy.

Runtime Storage

DATA_PATH defaults to ./data. It contains encrypted bot payloads and encrypted chat session state. Mount it to persistent external storage in production.

Conversation context is not kept forever: the server stores chat history with timestamps and sends only messages from the last hour as context. Older messages are not sent back to OpenAI.

Sensitive fields are encrypted at rest with SERVER_SECRET_KEY. Keep that key stable across restarts or existing bot configurations cannot be decrypted.

Run With Docker

export SERVER_SECRET_KEY="any-private-string"
export WEBHOOK_BASE_URL="https://example.com"
export DATA_PATH="./data"
make docker-start

The app is exposed at http://127.0.0.1:8000. In compose.yml, host DATA_PATH is mounted into the container at CONTAINER_DATA_PATH (default /data). The container reads its storage location from the DATA_PATH environment variable.

Contributing

Contributions are always welcome! Whether you want to report bugs, suggest new features, improve documentation, or contribute code, your help is appreciated.

Authors

Partners

Meet our partners using Openapi or contributing to this project:

Our Commitments

We believe in open source and we act on that belief. We became Silver Members of the Linux Foundation because we wanted to formally support the ecosystem we build on every day. Open standards, open collaboration, and open governance are part of how we work and how we think about software.

License

This project is licensed under the [MIT License](LICENSE).

The MIT License is a permissive open-source license that allows you to freely use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the software, provided that the original copyright notice and this permission notice are included in all copies or substantial portions of the software.

For more details, see the full license text at the MIT License page.

Source & license

This open-source MCP server is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet, be the first.

Versions

  • v0.1.0 Imported from the upstream source.