中文 | English
这是一个基于 Kotlin coroutines 的 Telegram Bot API/SDK Kotlin 多平台库,异步高效、Java友好。
它同样是一个 Simple Robot v4 (下文简称 simbot) 的组件库,是 simbot 的子项目之一。 借助 simbot 核心库提供的能力,它可以支持更多高级功能和封装,比如组件协同、Spring支持等。
它可以作为一个低级别的 API/SDK 辅助依赖库, 也可在 simbot 核心库的支持下用作为一个轻量级的快速开发框架!
序列化和网络请求相关分别基于 Kotlin serialization 和 Ktor.
- Telegram组件手册:(待建设)
- 了解simbot: Simple Robot 应用手册
- API文档: 文档引导站点 中 Telegram 的 KDoc站点
- 社群: 与我们和其他开发者愉快地交流!
提供 Telegram 中的绝大多数类型定义,并基于 Kotlin Serialization 实现可序列化。
👉 前往模块 了解更多。
基于 Ktor
针对 Telegram API
的基本完整的KMP多平台封装实现,
是一个简单高效轻量级的API实现模块。
此模块基本不会提供什么多余的实现,其目标为在提供封装的情况下尽可能地保留原始API的使用手感,不做过多的封装。
👉 前往模块 了解更多。
基于 API模块 针对 bot 的鉴权、事件订阅等功能的实现。
stdlib模块可以被看作是一个轻量级的 SDK 实现库。
同样的,其目标为在提供封装的情况下尽可能地保留原始API的使用手感,不做过多的封装。
👉 前往模块 了解更多。
基于 标准库模块 对 simbot4核心库 的组件实现, 是一个相对高度封装的模块,并提供simbot4大部分能力,包括事件监听、多组件协同、Spring Boot starter 等。
👉 前往模块 了解更多。
前往 贡献指南 了解更多!
我们欢迎并期望着您的 反馈 或 协助, 感谢您的贡献与支持!
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/>.