ScalaBot/scalabot-meta
dependabot[bot] 65e55c5d8c
build(deps): bump org.telegram:telegrambots-meta from 6.8.0 to 6.9.7.0
Bumps [org.telegram:telegrambots-meta](https://github.com/rubenlagus/TelegramBots) from 6.8.0 to 6.9.7.0.
- [Release notes](https://github.com/rubenlagus/TelegramBots/releases)
- [Commits](https://github.com/rubenlagus/TelegramBots/compare/v6.8.0...v6.9.7.0)

---
updated-dependencies:
- dependency-name: org.telegram:telegrambots-meta
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-01-22 07:29:06 +00:00
..
api chore(meta): 确认由 Kotlin 版本更新导致的 api 变动. 2023-09-14 13:33:04 +08:00
src test(config): 补全对 ProxyConfig 的单元测试. 2022-08-04 19:13:45 +08:00
build.gradle.kts build(deps): bump org.telegram:telegrambots-meta from 6.8.0 to 6.9.7.0 2024-01-22 07:29:06 +00:00
README.md docs(meta): 加一个 Readme. 2022-07-03 02:50:32 +08:00

scalabot-meta

本模块用于将 ScalaBot 的一些配置相关内容发布出去,以便于其他项目使用。

主要是配置类和相应的 Gson 序列化器(如果有,或者必要)。

关于序列化器

强烈建议使用序列化器!由于 Kotlin 与 Gson 之间的一些兼容性问题 (参见本提交 如果直接让 Gson 解析 Kotlin Data 类,将会出现一些潜在的问题(比如无法使用默认值)。
部分序列化器也可以帮助检查字段值是否合法,以防止因字段值不正确导致出现更多的问题 (例如 BotAccount 中,如果 token 的格式有误,那么获取 id 时将引发 NumberFormatException 异常)。