Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

请问自定义设备信息怎么做呢? #7

Open
404-error-404 opened this issue Oct 18, 2022 · 0 comments
Open

请问自定义设备信息怎么做呢? #7

404-error-404 opened this issue Oct 18, 2022 · 0 comments

Comments

@404-error-404
Copy link

问题描述

不清楚怎么把本地的设备信息移植到服务器上
文档链接

详细描述

  1. 我能导出device.json
  2. setDeviceInfo()的时候不知道怎么做了
  3. 有尝试去构造DeviceInfo,但是要塞进去好多变量,感觉很麻烦
  4. 而且对上一步的Version version参数有个问题,导出的device.json文件中没有data.version.sdk参数,但是Version的构造函数中有,如下图示例
    Version构造方法

我尝试的代码

Bot bot = BotFactory.INSTANCE.newBot(2190915232L, "19990113+zjl", new BotConfiguration(){{
    setDeviceInfo(bot1 -> {
        return new DeviceInfo(/* 在这里构造吗? */)
    });
}});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant