chore: migrate to KT financial system
This commit is contained in:
@@ -13,3 +13,19 @@ $ pnpm run start
|
||||
# production mode
|
||||
$ pnpm run build
|
||||
```
|
||||
|
||||
## Telegram Webhook 集成
|
||||
|
||||
财务系统新增交易后可自动通知本地的 Telegram 机器人,默认会将交易数据通过以下 Webhook 发送:
|
||||
|
||||
- `http://192.168.9.28:8889/webhook/transaction`
|
||||
- 认证密钥:`ktapp.cc`
|
||||
|
||||
如需自定义目标地址或密钥,可在运行前设置以下环境变量:
|
||||
|
||||
```bash
|
||||
export TELEGRAM_WEBHOOK_URL="http://<bot-host>:8889/webhook/transaction"
|
||||
export TELEGRAM_WEBHOOK_SECRET="自定义密钥"
|
||||
```
|
||||
|
||||
也可以使用旧变量 `FINANCE_BOT_WEBHOOK_URL`、`FINANCE_BOT_WEBHOOK_SECRET` 进行兼容配置。
|
||||
|
||||
Reference in New Issue
Block a user