配置说明

Config Guide

config.json 配置

配置 token、listeners 与 channels,并从本地文件查询 conversationid。

1. config.json

{
  "token": "你的token",
  "listeners": ["channel conversationid"],
  "channels": ["channelA", "channelB"]
}
  • token:pingo 的 token(用于接入与鉴权)。为空时会自动生成并写回。
  • listeners:监听列表,格式为 channel conversationid
  • channels:自动加入的频道列表(接收该频道推送并转发到“自己”会话)。

手动修改 config.json 后,需要重启客户端才会生效。

2. 获取 conversationid

首次登录后会生成 groups.txt 与 friends.txt,每行格式:

conversationid name

若文件为空,请确保企微已登录并等待同步完成。