← 开源
m1guelpf

chatgpt-telegram

Run your own GPTChat Telegram bot, with a single command!

ApplicationsWrappersGo
在 GitHub 打开
增长势头
+024 小时新增 Star0.0%
3.88k
Star
537
Fork
+0
本周
7
贡献者
创建于 2022-12-04 · 更新于 2026-10-13 · 今日第 7755 名
主要开发者
m1guelpfdhilmanyuldashboev

m1guelpf/chatgpt-telegram 排名第 7,755,有 3,881 个星标。

同类别比较

m1guelpf/chatgpt-telegram 排名第 7,755,此处有 8 个同类条目;skydoves/chatgpt-android 排名第 7,756。

同类别比较
名称排名指标
TianyiDataScience/openclaw-control-center7,725
语言:
TypeScript
星标数:
4,002
分叉数:
615
简介:
Turn OpenClaw from a black box into a local control center you can see, trust, and control.
sourcebot-dev/sourcebot7,729
语言:
Python
星标数:
3,990
分叉数:
372
简介:
Sourcebot is a self-hosted tool that helps humans and agents understand your codebase.
OpenHealthForAll/open-health7,734
语言:
TypeScript
星标数:
3,961
分叉数:
431
简介:
OpenHealth, AI Health Assistant | Powered by Your Data
riffusion/riffusion-hobby7,752
语言:
Python
星标数:
3,900
分叉数:
476
简介:
Stable diffusion for real-time music generation
skydoves/chatgpt-android7,756
语言:
Kotlin
星标数:
3,874
分叉数:
447
简介:
📲 ChatGPT Android demonstrates a Chatbot application using OpenAI's chat API on Android with Stream Chat SDK for Compose.
ailyProject/aily-blockly7,775
语言:
TypeScript
星标数:
3,841
分叉数:
221
简介:
AI IDE for hardware development, support Arduino, MicroPython, ESP32, STM32, RP2040, Nrf5x...
midday-ai/packrun7,777
语言:
TypeScript
星标数:
3,833
分叉数:
403
简介:
npm for agents and humans
sentient-agi/OpenDeepSearch7,778
语言:
Python
星标数:
3,831
分叉数:
344
简介:
SOTA search powered LLM
关键参数与规格
关键参数与规格
参数值
语言Go
类别Applications
子类别Wrappers
关键词Client integration
星标数3,881
分叉数537
贡献者7
创建日期2022-12-04
更新日期2026-10-13
1 天星标数0
7 天星标数0
排名7,755
上次排名7,884
排名变化129
7 天星标排名11,809
上次 7 天星标排名11,863
7 天星标排名变化54
总星标排名3,556
上次总星标排名3,549
总星标排名变化-7
国家Portugal
README 摘录

ChatGPT-bot Interact with ChatGPT Go CLI to fuels a Telegram bot that lets you interact with ChatGPT, a large language model trained by OpenAI. Installation Download the file corresponding to your OS in the releases page. : macOS (Intel) : macOS (M1) : Linux : Linux (ARM) : Windows After you download the file, extract it into a folder and open the file with a text editor and fill in your credentials. : Your Telegram Bot token Follow this guide to create a bot and

get the token. (Optional): Your Telegram User ID If you set this, only you will be able to interact with the bot. Multiple IDs can be provided, separated by commas. (Optional): Amount of seconds to wait between edits This is set to by default, but you can increase if you start getting a lot of errors. **Note** Make sure you rename the file to _exactly_ ! Finally, open the terminal in your computer (if you're on windows, look for ), navigate to

the path you extracted the above file (you can use to navigate to a directory, ask ChatGPT if you need more assistance 😉) and run . Running with Docker If you're trying to run this on a server with an existing Docker setup, you might want to use our Docker image instead. Here's how you'd set things up with : **Note** The docker setup is optimized for the Browserless authentication mechanism, described below. Make sure you update the file in this repo with

your session token before running. Authentication By default, the program will launch a browser for you to sign into your account, and close it once you're signed in. If this setup doesn't work for you (there are issues with the browser starting, you want to run this in a computer with no screen, etc. ), you can manually extract your session from your browser instead. To do this, first sign in to ChatGPT on your browser, then open the Developer Tools

(right click anywhere in the page, then click "Inspect"), click on the Application tab and then on the Cookies section, and copy the value of the cookie. You will then have to create a config file in the following location depending on your OS (replace with your username: : Linux : Windows : macOS **Note** If you have already run the program, the file should exist but be empty. If it doesn't exist yet, you can either run the program or manually create

it. Finally, add your cookie to the file and save it. License This repository is licensed under the MIT License.

常见问题

记录了多少星标和分叉?

m1guelpf/chatgpt-telegram 有 3,881 个星标和 537 个分叉。

仓库排名是多少?

m1guelpf/chatgpt-telegram 排名第 7,755。

记录的语言和类别是什么?

m1guelpf/chatgpt-telegram 有 3,881 个星标,语言为 Go,类别为 Applications。

哪个仓库排名最接近?

m1guelpf/chatgpt-telegram 与 skydoves/chatgpt-android 比较,后者排名第 7,756,有 3,874 个星标。

README

ChatGPT-bot

Interact with ChatGPT

Go CLI to fuels a Telegram bot that lets you interact with ChatGPT, a large language model trained by OpenAI.

Installation

Download the file corresponding to your OS in the releases page.

  • chatgpt-telegram-Darwin-amd64: macOS (Intel)
  • chatgpt-telegram-Darwin-arm64: macOS (M1)
  • chatgpt-telegram-Linux-amd64: Linux
  • chatgpt-telegram-Linux-arm64: Linux (ARM)
  • chatgpt-telegram-Win-amd64: Windows

After you download the file, extract it into a folder and open the env.example file with a text editor and fill in your credentials.

  • TELEGRAM_TOKEN: Your Telegram Bot token
    • Follow this guide to create a bot and get the token.
  • TELEGRAM_ID (Optional): Your Telegram User ID
    • If you set this, only you will be able to interact with the bot.
    • To get your ID, message @userinfobot on Telegram.
    • Multiple IDs can be provided, separated by commas.
  • EDIT_WAIT_SECONDS (Optional): Amount of seconds to wait between edits
    • This is set to 1 by default, but you can increase if you start getting a lot of Too Many Requests errors.
  • Save the file, and rename it to .env.

Note Make sure you rename the file to exactly .env! The program won't work otherwise.

Finally, open the terminal in your computer (if you're on windows, look for PowerShell), navigate to the path you extracted the above file (you can use cd dirname to navigate to a directory, ask ChatGPT if you need more assistance 😉) and run ./chatgpt-telegram.

Running with Docker

If you're trying to run this on a server with an existing Docker setup, you might want to use our Docker image instead.

docker pull ghcr.io/m1guelpf/chatgpt-telegram

Here's how you'd set things up with docker-compose:

services:
  chatgpt-telegram:
    image: ghcr.io/m1guelpf/chatgpt-telegram
    container_name: chatgpt-telegram
    volumes:
      # your ".config" local folder must include a "chatgpt.json" file
      - .config/:/root/.config
    environment:
      - TELEGRAM_ID=
      - TELEGRAM_TOKEN=

Note The docker setup is optimized for the Browserless authentication mechanism, described below. Make sure you update the .config/chatgpt.json file in this repo with your session token before running.

Authentication

By default, the program will launch a browser for you to sign into your account, and close it once you're signed in. If this setup doesn't work for you (there are issues with the browser starting, you want to run this in a computer with no screen, etc.), you can manually extract your session from your browser instead.

To do this, first sign in to ChatGPT on your browser, then open the Developer Tools (right click anywhere in the page, then click "Inspect"), click on the Application tab and then on the Cookies section, and copy the value of the __Secure-next-auth.session-token cookie.

You will then have to create a config file in the following location depending on your OS (replace YOUR_USERNAME_HERE with your username:

  • ~/.config/chatgpt.json: Linux
  • C:\Users\YOUR_USERNAME_HERE\AppData\Roaming\chatgpt.json: Windows
  • /Users/YOUR_USERNAME_HERE/Library/Application Support/chatgpt.json: macOS

Note If you have already run the program, the file should exist but be empty. If it doesn't exist yet, you can either run the program or manually create it.

Finally, add your cookie to the file and save it. It should look like this: { "openaisession": "YOUR_COOKIE_HERE" }.

License

This repository is licensed under the MIT License.

排名相邻
同类项目