• Stars
    star
    3,466
  • Rank 12,859 (Top 0.3 %)
  • Language
    TypeScript
  • License
    MIT License
  • Created over 1 year ago
  • Updated about 1 month ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Deploy your own Telegram ChatGPT bot on Cloudflare Workers with ease.

ChatGPT-Telegram-Workers

English Version

最简单快捷部署属于自己的ChatGPT Telegram机器人的方法。使用Cloudflare Workers,单文件,直接复制粘贴一把梭,无需任何依赖,无需配置本地开发环境,不用域名,免服务器。 可以自定义系统初始化信息,让你调试好的性格永远不消失。

查看Demo image

使用说明

分支

  • master 稳定版
  • dev 开发版,可能会有一些新功能,但是不稳定。会快速修复一些bug。

配置

推荐在Workers配置界面填写环境变量, 而不是直接修改js代码中的变量

配置信息和命令使用说明,见 配置文档

部署流程

详情见 部署流程

如果需要部署在其他平台可以查看 多平台部署

自动更新

使用Github Action自动更新 Cloudflare Workers

详情见 自动更新

更新日志

  • v1.5.0
    • perf: 调整命令顺序
    • perf: openai发送请求前前发送loading消息
    • feat: 添加流式输出支持(默认开启)。使用STREAM_MODE=false关闭
    • feat: 添加安全模式(默认开启)解决TG无限重试的问题
    • feat: 增加对多个KEY的适配,随机选择KEY使用
    • feat: 增加快捷按钮 /new, /redo

其他更新日志见CHANGELOG.md

最佳实践

新建多个机器人绑定到同一个workers,设置TELEGRAM_AVAILABLE_TOKENS,每个机器人赋予不同的SYSTEM_INIT_MESSAGE。开启群聊模式,新建多个群聊,每个群内只有自己个机器人,每个群的机器人由不同的SYSTEM_INIT_MESSAGE,比如翻译专家,文案专家,代码专家。然后每次根据自己的需求和不同的群里的机器人聊天,这样就不用经常切换配置属性。

支持我

如果使用openai期间需要绑卡可以使用我的onekey的邀请码: https://card.onekey.so/?i=QO19EC 如果有其他问题可以加群交流。

特别鸣谢

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

感谢 JetBrains 提供的开源开发许可证。

贡献者

这个项目存在是因为所有贡献者的帮助。贡献.

许可证

ChatGPT-Telegram-Workers 以 MIT 许可证的形式发布。查看许可证 获取更多细节。

More Repositories

1

TKRubberIndicator

A rubber animation pagecontrol
Swift
1,439
star
2

TKSwitcherCollection

An animation switch collection
Swift
914
star
3

PinterestSegment

A Pinterest-like segment control with masking animation.
Swift
687
star
4

Ruler

An AR ruler app can measure length & area
Swift
246
star
5

mail2telegram

Forward email to telegram with Cloudflare Email Routing
JavaScript
218
star
6

TKRadarChart

A customizable radar chart in Swift
Swift
210
star
7

TKDotSegment

TKDotSegment is a segment with dot animation
Swift
104
star
8

PasswordX

Offline password manager for iOS/macOS
Swift
29
star
9

tbxark.github.io

TBXark' blog
JavaScript
25
star
10

poe-telegram-bot

A lightweight poe chatbot for telegram
Python
18
star
11

shell-ask

Ask LLM directly from your terminal using a pure bash script
Shell
18
star
12

github-backup

A simple tool to backup github repository to gitea or other provider.
Go
16
star
13

ScrollViewThumbnail

Quickly create thumbnails for zoomed views in UIScrollview with just a single line of code.
Swift
14
star
14

g4vercel

Go web server for vercel
Go
10
star
15

TKSectorProgressView

An simple animation sector progress view
Swift
10
star
16

numberbarn2telegram

Forward the text message from NumberBarn to Telegram.
JavaScript
8
star
17

chatgpt-prompt-helper

A Tampermonkey script for quickly copying prompts in the web version of ChatGPT.
JavaScript
8
star
18

telegram-bot-vapor-example

Create telegram bot by swift
Swift
7
star
19

testmail-viewer

An online preview tool for Testmail.
Vue
6
star
20

JSONElement

JSONElement makes it easier and safer to use JSON
Swift
6
star
21

FlexLayout

Flex layout library similar to SwiftUI
Swift
6
star
22

chat-bot-go

A lightweight chatgpt bot for telegram
Go
5
star
23

SwiftCache

A pure swift cache framework
Swift
4
star
24

TrieRouter

A simple framework for application routing.
Swift
4
star
25

swift-telegram-bot-api

Swift Telegram Bot API and Telegram Bot API Generator
Swift
3
star
26

NetworkService

NetworkService with Alamofire and RxSwift
Swift
3
star
27

my-leetcode-code

LeetCode is a platform for preparing technical coding interviews.
Swift
3
star
28

vercel-proxy

Simple http proxy for Vercel.
Go
3
star
29

proxy-config-worker

[Deprecated] An online proxy configuration adaptation tool for Cloudflare worker.
JavaScript
2
star
30

autorun

autorun is a tool that listens for file changes and automatically executes commands.
Go
2
star
31

TBXark

Hi there, I'm TBXark~
2
star
32

rmock

Modify HTTP JSON responses without needing HTTP capture and MitM.
JavaScript
2
star
33

PiPlayground

可以由网页控制的提词器
Swift
2
star
34

RxSwiftLearnDemo

This is example code for RxSwift
Swift
2
star
35

MinesWeeping

A simple MinesWeeping Game
Swift
2
star
36

cloudflare-worker-adapter

Run your script without Cloudflare Workers.
TypeScript
2
star
37

gitea-mirror-reauth

Quickly modify the authorization information of a Gitea mirror repository.
Go
1
star
38

redmine-summary

redmine 周报生成工具
JavaScript
1
star
39

tic-tac

三子棋游戏,每人最多只能下三颗棋子,当下第四颗棋子时,最先那一颗棋子会消失
JavaScript
1
star
40

temporary-encrypted-clipboard

Clipboard encryption script for secure password transfer across devices.
JavaScript
1
star
41

dart_router

A simple framework for application routing.
Dart
1
star
42

mweb-export

A tool for generating directories from MWeb files.
Go
1
star
43

TKPlaceholderTextView

A textview with placeholder
Swift
1
star
44

Observable

A simple observer framework in Swift
Swift
1
star
45

Watermark

Swift
1
star
46

YoukuInfo

A simple youku crawler
HTML
1
star
47

azure2openai

A simple tool to proxy OpenAI‘s request to Azure OpenAI Service
Go
1
star
48

telegram-bot-workers-template

The basic template for running a Telegram Bot on Cloudflare Workers.
TypeScript
1
star