MCPcopy
hub / github.com/tbxark/ChatGPT-Telegram-Workers

github.com/tbxark/ChatGPT-Telegram-Workers @1.10.7 sqlite

repository ↗ · DeepWiki ↗ · release 1.10.7 ↗
362 symbols 843 edges 82 files 1 documented · 0%
README

ChatGPT-Telegram-Workers

English | 中文

<em>Deploy your own Telegram ChatGPT bot on Cloudflare Workers with ease.</em>

About

The simplest and fastest way to deploy your own ChatGPT Telegram bot. Use Cloudflare Workers, single file, copy and paste directly, no dependencies required, no need to configure local development environment, no domain name required, serverless.

You can customize the system initialization information so that your debugged personality never disappears.

example

image

Features

  • Serverless deployment
  • Multi-platform deployment support (Cloudflare Workers, Vercel, Docker...)
  • Adaptation to multiple AI service providers (OpenAI, Azure OpenAI, Cloudflare AI, Cohere, Anthropic, Mistral, DeepSeek, Gemini, Groq...)
  • Switching Models with InlineKeyboards
  • Custom commands (can achieve quick switching of models, switching of robot presets)
  • Support for multiple Telegram bots
  • Streaming output
  • Multi-language support
  • Text-to-image generation
  • Plugin System, customizable plugins.

Documentation

Related Projects

  • cloudflare-worker-adapter A simple Cloudflare Worker adapter that allows this project to run independently of Cloudflare Worker.
  • telegram-bot-api-types Telegram Bot API SDK with 0 output after compilation, complete documentation, supports all APIs.

Special thanks

https://www.jetbrains.com/?from=tbxark

Thanks for the open-source development license provided by JetBrains.

Contributors

This project exists thanks to all the people who contribute. Contribute.

License

ChatGPT-Telegram-Workers is released under the MIT license. See LICENSE for details.

Extension points exported contracts — how you extend this code

CommandHandler (Interface)
(no doc) [13 implementers]
packages/lib/core/src/telegram/command/types.ts
Options (Interface)
(no doc)
vite.config.shared.ts
Config (Interface)
(no doc)
packages/apps/local/src/index.ts
MessageHandler (Interface)
(no doc) [6 implementers]
packages/lib/core/src/telegram/handler/types.ts
ChatAgent (Interface)
(no doc) [8 implementers]
packages/lib/core/src/agent/types.ts
UpdateHandler (Interface)
(no doc) [4 implementers]
packages/lib/core/src/telegram/handler/types.ts
CallbackQueryHandler (Interface)
(no doc) [3 implementers]
packages/lib/core/src/telegram/callback_query/types.ts

Core symbols most depended-on inside this repo

sendPlainText
called by 31
packages/lib/core/src/telegram/sender/index.ts
interpolate
called by 19
packages/lib/plugins/src/interpolate.ts
trim
called by 16
packages/lib/core/src/utils/cache/index.ts
fetch
called by 15
packages/lib/core/src/index.ts
fromMessage
called by 14
packages/lib/core/src/telegram/sender/index.ts
get
called by 12
packages/lib/core/src/utils/cache/index.ts
getAgentUserConfigFieldName
called by 10
packages/lib/core/src/agent/utils.ts
createTelegramBotAPI
called by 9
packages/lib/core/src/telegram/api/index.ts

Shape

Class 139
Function 94
Method 94
Interface 34
Enum 1

Languages

TypeScript100%

Modules by API surface

packages/lib/core/src/telegram/command/system.ts31 symbols
packages/lib/core/src/config/config.ts28 symbols
packages/lib/core/src/telegram/callback_query/system.ts24 symbols
packages/lib/core/src/telegram/sender/index.ts20 symbols
packages/lib/core/src/telegram/handler/handlers.ts20 symbols
packages/lib/core/src/agent/stream.ts19 symbols
packages/lib/core/src/utils/router/index.ts16 symbols
packages/lib/core/src/agent/openai_compatibility.ts15 symbols
packages/lib/core/src/agent/openai_agents.ts12 symbols
packages/lib/core/src/config/context.ts11 symbols
packages/lib/core/src/agent/workersai.ts11 symbols
packages/lib/core/src/telegram/api/index.ts10 symbols

Dependencies from manifests, versioned

@ai-sdk/anthropic1.0.8 · 1×
@ai-sdk/azure1.0.21 · 1×
@ai-sdk/cohere1.0.8 · 1×
@ai-sdk/google1.0.16 · 1×
@ai-sdk/mistral1.0.8 · 1×
@ai-sdk/openai1.0.19 · 1×
@ai-sdk/provider1.0.4 · 1×
@antfu/eslint-config3.14.0 · 1×
@chatgpt-telegram-workers/coreworkspace:* · 1×
@chatgpt-telegram-workers/nextworkspace:* · 1×
@cloudflare/workers-types4.20250109.0 · 1×

For agents

$ claude mcp add ChatGPT-Telegram-Workers \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact