BotVerifyInfo
BOT用于验证身份的信息,通过读取 *.bot
文件解析而来.
目前实际支持的解析格式可参考 StandardBotVerifyInfoDecoderFactory 下的所有实现。
构建
来构建一个 BotVerifyInfo 可以通过:
自行实现 BotVerifyInfo
val path: Path("my-bot.bot.json")
val info = path.toBotVerifyInfo(StandardBotVerifyInfoDecoderFactory.Json)
Content copied to clipboard
在 Java 中,上述的 toBotVerifyInfo
方法存在于 BotVerifyInfos
类中。
final Path path = Paths.get("my-bot.bot.json");
final BotVerifyInfo info = BotVerifyInfos.toBotVerifyInfo(path, StandardBotVerifyInfoDecoderFactory.json());
Content copied to clipboard
Types
Functions
Link copied to clipboard
StandardResource 在使用的过程中可能会产生一些需要手动进行 close 的产物, 因此在不使用 StandardResource 的时候,使用 close 对其进行关闭。
Link copied to clipboard
读取其输入流.
Link copied to clipboard
读取其输入流. 同 inputStream.