1 Star 0 Fork 0

simple-robot / simbot-component-telegram

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
README_CN.md 1.40 KB
一键复制 编辑 原始数据 按行查看 历史

Module simbot-component-telegram-type

提供 Telegram 中的绝大多数类型定义,并基于 Kotlin Serialization 实现可序列化。

支持的平台:

更多参考:

安装

[!note] 版本 (即下文的 VERSION) 前往 releases 参考.

Gradle

build.gradle.kts

plugins {
    kotlin("...") version "..."
}

dependencies {
    implementation("love.forte.simbot.component:simbot-component-telegram-type:$VERSION")
}

Maven

<dependencies>
    <dependency>
        <groupId>love.forte.simbot.component</groupId>
        <artifactId>simbot-component-telegram-type-jvm</artifactId>
        <version>${VERSION}</version>
    </dependency>
</dependencies>

注意事项

兼容性

目前此模块中的大部分类型均使用 data class 定义,并且它们被认为是用于进行序列化的。 当官方对API做出修改时(例如增加字段),那么数据类的二进制兼容性可能无法被保证(因为构造函数的字段发生了变化)。

这种变更通常会递增 minor 版本号。

Kotlin
1
https://gitee.com/simple-robot-project/simbot-component-telegram.git
git@gitee.com:simple-robot-project/simbot-component-telegram.git
simple-robot-project
simbot-component-telegram
simbot-component-telegram
dev/main

搜索帮助