Telegram 🚧
概述
Telegram组件 是一个 Kotlin 多平台 的 Telegram Bot API SDK实现库, 也是 Simple Robot 标准API下实现的组件库,异步高效、Java友好!
前往Telegram组件的 GitHub 仓库
安装
安装组件库
安装依赖
安装simbot核心库实现
implementation("love.forte.simbot:simbot-core:5.0.0-Alpha2")如果使用 Java 而不配合使用 Gradle 的 Kotlin 插件, 那么你需要指定依赖的后缀为
-jvm。implementation("love.forte.simbot:simbot-core-jvm:5.0.0-Alpha2")implementation 'love.forte.simbot:simbot-core:5.0.0-Alpha2'如果使用 Java 而不配合使用 Gradle 的 Kotlin 插件, 那么你需要指定依赖的后缀为
-jvm。implementation 'love.forte.simbot:simbot-core-jvm:5.0.0-Alpha2'<dependency> <groupId>love.forte.simbot</groupId> <artifactId>simbot-core-jvm</artifactId> <version>5.0.0-Alpha2</version> </dependency>implementation("love.forte.simbot:simbot-core-spring-boot-starter:5.0.0-Alpha2")implementation 'love.forte.simbot:simbot-core-spring-boot-starter:5.0.0-Alpha2'<dependency> <groupId>love.forte.simbot</groupId> <artifactId>simbot-core-spring-boot-starter</artifactId> <version>5.0.0-Alpha2</version> </dependency>implementation("love.forte.simbot:simbot-core-spring-boot-starter-v2:5.0.0-Alpha2")implementation 'love.forte.simbot:simbot-core-spring-boot-starter-v2:5.0.0-Alpha2'<dependency> <groupId>love.forte.simbot</groupId> <artifactId>simbot-core-spring-boot-starter-v2</artifactId> <version>5.0.0-Alpha2</version> </dependency>安装组件库
simbot-component-telegram-core即为Telegram组件的核心库, 也就是作为simbot组件所使用的 组件库。implementation("love.forte.simbot.component:simbot-component-telegram-core:0.0.12")如果使用 Java 而不配合使用 Gradle 的
kotlin插件, 那么你需要指定依赖的后缀为-jvm。implementation("love.forte.simbot.component:simbot-component-telegram-core-jvm:0.0.12")implementation 'love.forte.simbot.component:simbot-component-telegram-core:0.0.12'如果使用 Java 而不配合使用 Gradle 的
kotlin插件, 那么你需要指定依赖的后缀为-jvm。implementation 'love.forte.simbot.component:simbot-component-telegram-core-jvm:0.0.12'<dependency> <groupId>love.forte.simbot.component</groupId> <artifactId>simbot-component-telegram-core-jvm</artifactId> <version>0.0.12</version> </dependency>安装Ktor客户端引擎
Telegram组件使用 Ktor 作为 HTTP 客户端实现, 但是默认不会依赖任何具体的引擎。
因此,你需要选择并使用一个 Ktor Client 引擎实现。
Telegram 组件
0.0.12使用 Ktor 2.3.12,请选择相同版本的引擎。 可参考 Ktor 客户端引擎文档。
07 November 2026