{"id":13845167,"url":"https://github.com/XueMeijing/dingtalk-chatgpt-bot","last_synced_at":"2025-07-12T01:31:53.848Z","repository":{"id":65734124,"uuid":"596371240","full_name":"XueMeijing/dingtalk-chatgpt-bot","owner":"XueMeijing","description":"钉钉机器人回复web ChatGPT消息 支持上下文","archived":true,"fork":false,"pushed_at":"2023-05-09T02:13:52.000Z","size":32,"stargazers_count":22,"open_issues_count":0,"forks_count":7,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-11-21T18:39:01.439Z","etag":null,"topics":["chatgpt","dingtalk","dingtalkbot"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/XueMeijing.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-02-02T03:04:02.000Z","updated_at":"2024-08-29T01:36:50.000Z","dependencies_parsed_at":"2024-11-21T18:33:10.206Z","dependency_job_id":"8a1c1a0c-c78f-4367-a64f-ca6a3f80ea53","html_url":"https://github.com/XueMeijing/dingtalk-chatgpt-bot","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/XueMeijing/dingtalk-chatgpt-bot","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/XueMeijing%2Fdingtalk-chatgpt-bot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/XueMeijing%2Fdingtalk-chatgpt-bot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/XueMeijing%2Fdingtalk-chatgpt-bot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/XueMeijing%2Fdingtalk-chatgpt-bot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/XueMeijing","download_url":"https://codeload.github.com/XueMeijing/dingtalk-chatgpt-bot/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/XueMeijing%2Fdingtalk-chatgpt-bot/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264923077,"owners_count":23683716,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["chatgpt","dingtalk","dingtalkbot"],"created_at":"2024-08-04T17:03:14.938Z","updated_at":"2025-07-12T01:31:53.521Z","avatar_url":"https://github.com/XueMeijing.png","language":"Python","funding_links":[],"categories":["Python"],"sub_categories":[],"readme":"# 此版本不维护了，可以使用node版本的，支持session和key两种模式[dingtalk-chatgpt-node](https://github.com/XueMeijing/dingtalk-chatgpt-node)\n\n# ***:warning: __This repository is deprecated and no longer maintained!__***\n\nThe python proxy api repo [pygpt](https://github.com/PawanOsman/PyGPT) didn't work, you can use node version [chatgpt-io](https://github.com/PawanOsman/chatgpt-io)\n\n# Change Log\n- 2022-03-08\n    - 优化代码，修复代理服务器偶尔connect refused的问题\n- 2022-03-03\n    - 使用sqlite3增加上下文功能, @bot /reset 命令会重新打开新聊天窗口\n        ![image](https://user-images.githubusercontent.com/35559153/222692011-d4ac1d37-cd66-41ef-9d87-9baf423c3edd.png)\n\n- 2022-02-14\n    - 增加docker部署\n- 2022-02-10\n    - 机器人名字叫ChatGPT会被禁止使用, 可以换成其他的\n        ![image](https://user-images.githubusercontent.com/35559153/217995508-6916bceb-188f-4bfd-b945-8841616d2ade.png)\n\n# DingTalk ChatGPT Bot(Unofficial API)\nUses API by [PawanOsman](https://github.com/PawanOsman/PyGPT)\n\n# Disclaimer\nThis is not open source. [PawanOsman](https://github.com/PawanOsman/) can see all your requests and your session token.\n\n# Prerequisites\n- DingTalk admin role to create DingTalk bot, [how to create a DingTalk bot](https://xie.infoq.cn/article/3340770024c49b5b1a54597d5)\n- OpenAi ChatGPT session\n# Feature\n## chat conversation context\n## reset conversation\n\n# Usage\n## python\n1. install dependencies\n    ```\n    pip3 install -r requirements.txt\n    ```\n2. Update config.py variables with your own info\n3. execute script in background\n    ```\n    nohup python3 -u index.py \u003e nohup.out 2\u003e\u00261 \u0026\n    ```\n4. watch logs\n    ```\n    tail -30f nohup.out\n    ```\n## docker\n1. get docker image and run\n    ```\n    docker run -dp 8083:8083 fengcailing/dingtalk-chatgpt-bot:1.0.2\n    ```\n2. show docker list and get docker container id\n    ```\n    docker ps\n    ```\n3. cd docker\n    ```\n    docker exec -it \u003ccontainerId\u003e /bin/sh\n    ```\n4. update config.py(GPT_SESSION、APP_SECRET)\n5. exit docker\n    ```\n    exit\n    ```\n6. create new iamge\n    ```\n    docker commit -m 'update config' \u003ccontainerId\u003e dingtalk-chatgpt-bot:v1\n    ```\n7. stop pre container and run new image\n    ```\n    docker stop \u003ccontainerId\u003e\n    docker run -dp 8083:8083 dingtalk-chatgpt-bot:v1\n    ```\n8. watch logs\n    ```\n    docker logs -n 30 -f \u003cnew containerId\u003e\n    ```\n\nIf you @YourBotName in DingTalk group, it will get ChatGPT answer and reply.\n\n   E.g. \n\n   ![demo](https://user-images.githubusercontent.com/35559153/216219243-4df07e62-090a-470d-af99-e64a0c8a36a4.png)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FXueMeijing%2Fdingtalk-chatgpt-bot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FXueMeijing%2Fdingtalk-chatgpt-bot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FXueMeijing%2Fdingtalk-chatgpt-bot/lists"}