mirai-hello-world
mirai-hello-world copied to clipboard
请问自定义设备信息怎么做呢?
问题描述
不清楚怎么把本地的设备信息移植到服务器上 文档链接
详细描述
- 我能导出
device.json
- 在
setDeviceInfo()
的时候不知道怎么做了 - 有尝试去构造
DeviceInfo
,但是要塞进去好多变量,感觉很麻烦 - 而且对上一步的
Version version
参数有个问题,导出的device.json
文件中没有data.version.sdk
参数,但是Version
的构造函数中有,如下图示例
我尝试的代码
Bot bot = BotFactory.INSTANCE.newBot(2190915232L, "19990113+zjl", new BotConfiguration(){{
setDeviceInfo(bot1 -> {
return new DeviceInfo(/* 在这里构造吗? */)
});
}});