Skip to content

Latest commit

 

History

History
126 lines (93 loc) · 5.74 KB

README_CN.md

File metadata and controls

126 lines (93 loc) · 5.74 KB
simbot logo

~ Simple Robot ~
Telegram 组件

release release
stars forks watchers repo size lines issues last commit copying

中文 | English

Caution

WIP.

有些想法?欢迎 留言交流加入社群~

这是一个基于 Kotlin coroutinesTelegram Bot API/SDK Kotlin 多平台库,异步高效、Java友好。

它同样是一个 Simple Robot v4 (下文简称 simbot) 的组件库,是 simbot 的子项目之一。 借助 simbot 核心库提供的能力,它可以支持更多高级功能和封装,比如组件协同、Spring支持等。

它可以作为一个低级别的 API/SDK 辅助依赖库, 也可在 simbot 核心库的支持下用作为一个轻量级的快速开发框架!

序列化和网络请求相关分别基于 Kotlin serializationKtor.

文档

模块引导

⭐ Type模块

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

👉 前往模块 了解更多。

⭐ API模块

基于 Ktor 针对 Telegram API 的基本完整的KMP多平台封装实现, 是一个简单高效轻量级的API实现模块。

此模块基本不会提供什么多余的实现,其目标为在提供封装的情况下尽可能地保留原始API的使用手感,不做过多的封装。

👉 前往模块 了解更多。

⭐ 标准库模块

基于 API模块 针对 bot 的鉴权、事件订阅等功能的实现。

stdlib模块可以被看作是一个轻量级的 SDK 实现库。

同样的,其目标为在提供封装的情况下尽可能地保留原始API的使用手感,不做过多的封装。

👉 前往模块 了解更多。

⭐ 核心组件模块

基于 标准库模块simbot4核心库 的组件实现, 是一个相对高度封装的模块,并提供simbot4大部分能力,包括事件监听、多组件协同、Spring Boot starter 等。

👉 前往模块 了解更多。

贡献

前往 贡献指南 了解更多!

我们欢迎并期望着您的 反馈协助, 感谢您的贡献与支持!

License

simbot-component-telegram 使用 LGPLv3 许可证开源。

This program is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General 
Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) 
any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied 
warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more 
details.

You should have received a copy of the GNU Lesser General Public License along with this program. 
If not, see <https://www.gnu.org/licenses/>.