一个基于wecomchan,使用python,fastapi实现的企业微信机器人API接口
- 安装依赖
pip install -r requirements.txt
# pip3 install -r requirements.txt
- 运行
python botapi.py
# python3 botapi.py
# uvicorn botapi:app --reload
- (可选)加入到systemd(Linux)
vim wecombotapi.service # 替换 /path/to/your/project 为项目文件根目录的绝对路径
sudo cp wecombotapi.service /etc/systemd/system/wecombotapi.service
sudo systemctl daemon-reload
sudo systemctl start wecombotapi
sudo systemctl enable wecombotapi # 开机自启