mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-11-05 23:33:03 +08:00
chore: remove any WeChat related
This commit is contained in:
@@ -15,6 +15,5 @@ Bots are used to receive message events from messaging platforms and call pipeli
|
||||
| WeCom (Enterprise WeChat) | ✅ | Enterprise internal bot | [Tutorial](/en/deploy/platforms/wecom/wecom) |
|
||||
| WeCom Customer Service | ✅ | Enterprise external bot | [Tutorial](/en/deploy/platforms/wecom/wecomcs) |
|
||||
| WeChat Official Account | ✅ | WeChat public platform bot | [Tutorial](/en/deploy/platforms/wxoa) |
|
||||
| Personal WeChat | ✅ | Personal WeChat bot | [Gewechat](/en/deploy/platforms/wechat/gewechat) |
|
||||
| OneBot v11 | ✅ | Uses a personal QQ account as a bot, requires an independent protocol client, supports OneBot v11 | [NapCat](/en/deploy/platforms/qq/aiocqhttp/napcat) <br> [Lagrange](/en/deploy/platforms/qq/aiocqhttp/lagrange) <br> [LiteLoaderQQNT](/en/deploy/platforms/qq/aiocqhttp/llonebot) |
|
||||
| QQ Official Bot | ✅ | Connects to the QQ Open Platform bot API | [Tutorial](/en/deploy/platforms/qq/official_webhook) |
|
||||
|
||||
@@ -1,97 +0,0 @@
|
||||
# Connect to Personal WeChat via Gewechat
|
||||
|
||||
:::warning
|
||||
The Gewechat project has stopped maintenance, please do not use it.
|
||||
:::
|
||||
|
||||
**This tutorial requires LangBot to be deployed as a Docker container**, please deploy LangBot to Docker according to the LangBot deployment documentation.
|
||||
|
||||
:::info
|
||||
- It is recommended to deploy on Ubuntu Linux system.
|
||||
- Recommended to use [Alibaba Cloud, server prices as low as 38 yuan per year, with an additional 20% discount](https://www.aliyun.com/minisite/goods?userCode=ys4ad8gs), choose Ubuntu 22.04 or 24.04 as the system.
|
||||
:::
|
||||
|
||||
## Create Docker Network
|
||||
|
||||
We need to deploy Gewechat and LangBot to the same Docker network to facilitate their communication.
|
||||
|
||||
```bash
|
||||
docker network create langbot-network
|
||||
```
|
||||
|
||||
Add network configuration to the `docker-compose.yaml` file in the LangBot directory (add to the `services.langbot` field, and add the `langbot-network` network configuration under the `networks` field):
|
||||
|
||||
```yaml
|
||||
services:
|
||||
langbot:
|
||||
...
|
||||
networks:
|
||||
- langbot-network
|
||||
...
|
||||
|
||||
networks:
|
||||
langbot-network:
|
||||
external: true
|
||||
```
|
||||
|
||||
In the next step when deploying Gewechat, please add an additional network configuration `--network langbot-network` after `-itd` in the startup command (docker run command).
|
||||
|
||||
```bash
|
||||
# For example, the original command is
|
||||
docker run -itd -v /root/temp:/root/temp -p 2531:2531 -p 2532:2532 --privileged=true --name=gewe gewe /usr/sbin/init
|
||||
|
||||
# After adding network configuration, the command becomes
|
||||
docker run -itd --network langbot-network -v /root/temp:/root/temp -p 2531:2531 -p 2532:2532 --privileged=true --name=gewe gewe /usr/sbin/init
|
||||
```
|
||||
|
||||
## Deploy Gewechat
|
||||
|
||||
Please check the [Gewechat documentation](https://github.com/Devo919/Gewechat) and execute up to the `Start Service` step.
|
||||
|
||||
## Fill in Information in LangBot and Start
|
||||
|
||||
```json
|
||||
{
|
||||
"adapter": "gewechat",
|
||||
"enable": true,
|
||||
"gewechat_url": "http://gewe:2531",
|
||||
"gewechat_file_url": "http://gewe:2532",
|
||||
"port": 2286,
|
||||
"callback_url": "http://langbot:2286/gewechat/callback",
|
||||
"app_id": "",
|
||||
"token": ""
|
||||
}
|
||||
```
|
||||
|
||||
- `enable` Whether to enable the personal WeChat adapter, please modify to `true`
|
||||
- `gewechat_url` The Gewechat container address deployed in the previous step, the default port is 2531, no need to fill in the path
|
||||
- `gewechat_file_url` Gewechat file download address, the default port is 2532, the host is the same as `gewechat_url`, no need to fill in the path
|
||||
- `port` The port for LangBot to listen for Gewechat messages, default is 2286, do not modify unless necessary
|
||||
- `callback_url` The callback address, which is the address for the Gewechat container to push messages to the LangBot container, needs to be filled with the complete path, for example `http://langbot:2286/gewechat/callback`, the port is consistent with `port`, the path must be `/gewechat/callback`
|
||||
- `app_id` and `token` **Do not fill in**, these are used to store login information and will be automatically saved after scanning the QR code to log in for the first time
|
||||
|
||||
:::info
|
||||
Here we set the hostname of `gewechat_url` to `gewe`, which is the name of the Gewechat container deployed in the previous step.
|
||||
Set the hostname of `callback_url` to `langbot`, which is the name of the LangBot container deployed in the previous step.
|
||||
|
||||
- If you deploy according to the requirements of this tutorial, you can use the above defaults.
|
||||
- If you used other container names, or other situations, please change accordingly.
|
||||
:::
|
||||
|
||||
## Start LangBot
|
||||
|
||||
Start LangBot according to the startup command in the LangBot deployment documentation.
|
||||
|
||||
After LangBot starts, a QR code will be displayed, please scan this QR code with your personal WeChat to log in.
|
||||
|
||||

|
||||
|
||||
After successful login, login information will be displayed, and it will start listening for personal WeChat messages.
|
||||
|
||||

|
||||
|
||||
:::info
|
||||
After logging in, `app_id` and `token` will be saved to the configuration file, and you won't need to scan the QR code to log in again the next time you start.
|
||||
:::
|
||||
|
||||
Now you can chat with LangBot in private messages or group chats.
|
||||
Reference in New Issue
Block a user