doc: add telegram adapter

This commit is contained in:
Junyan Qin
2025-02-14 13:33:08 +08:00
parent 87b9f4f9ff
commit d55d925a4a
9 changed files with 40 additions and 19 deletions
+1 -4
View File
@@ -61,10 +61,6 @@ export default defineConfig({
text: "llonebot",
link: "/deploy/platforms/qq/aiocqhttp/llonebot",
},
{
text: "shamrock",
link: "/deploy/platforms/qq/aiocqhttp/shamrock",
},
{
text: "go-cqhttp",
link: "/deploy/platforms/qq/gocq",
@@ -100,6 +96,7 @@ export default defineConfig({
{ text: "飞书", link: "/deploy/platforms/lark" },
{ text:"钉钉",link:"/deploy/platforms/dingtalk.md"},
{ text: "Discord", link: "/deploy/platforms/discord" },
{ text: "Telegram", link: "/deploy/platforms/telegram" },
],
},
{ text: "填写配置信息", link: "/deploy/quick-config/config" },
Binary file not shown.

After

Width:  |  Height:  |  Size: 42 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 46 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 140 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 83 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 705 KiB

+3 -2
View File
@@ -5,11 +5,12 @@ LangBot 需要连接消息平台 API 才能与用户交互,目前支持以下
| 平台 | 状态 | 备注 |教程 |
| ------ | ---- | ---- | ---- |
| QQ 个人号 | ✅ | 使用普通的 QQ 号作为机器人,需要使用独立的协议端,支持 OneBot v11 和 go-cqhttp 协议 | [NapCat](/deploy/platforms/qq/aiocqhttp/napcat) <br> [Lagrange](/deploy/platforms/qq/aiocqhttp/lagrange) <br> [LiteLoaderQQNT](/deploy/platforms/qq/aiocqhttp/llonebot) <br> [Shamrock(不推荐)](/deploy/platforms/qq/aiocqhttp/shamrock) <br> [go-cqhttp(不推荐)](/deploy/platforms/qq/gocq) |
| QQ 个人号 | ✅ | 使用普通的 QQ 号作为机器人,需要使用独立的协议端,支持 OneBot v11 和 go-cqhttp 协议 | [NapCat](/deploy/platforms/qq/aiocqhttp/napcat) <br> [Lagrange](/deploy/platforms/qq/aiocqhttp/lagrange) <br> [LiteLoaderQQNT](/deploy/platforms/qq/aiocqhttp/llonebot) <br> [go-cqhttp(不推荐)](/deploy/platforms/qq/gocq) |
| QQ 官方机器人 | ✅ | 接入 QQ 开放平台的机器人 API | [教程](/deploy/platforms/qq/official_webhook) |
| 企业微信 | ✅ | 企业内部机器人 | [教程](/deploy/platforms/wecom/wecom) |
| 微信公众号 | ✅ | 微信公众平台机器人 | [教程](/deploy/platforms/wxoa.md) |
| 个人微信 | ✅ | 个人微信机器人 | [Gewechat](/deploy/platforms/wechat/gewechat) |
| 飞书 | ✅ | | [教程](/deploy/platforms/lark) |
| 钉钉 | ✅ | | [教程](/deploy/platforms/dingtalk) |
| Discord | ✅ | | [教程](/deploy/platforms/discord) |
| Discord | ✅ | | [教程](/deploy/platforms/discord) |
| Telegram | ✅ | | [教程](/deploy/platforms/telegram) |
+36
View File
@@ -0,0 +1,36 @@
# 接入 Telegram 机器人
## 创建机器人
前往 [Telegram 机器人创建页面](https://t.me/botfather),按照提示操作,创建一个机器人。
![Telegram 机器人创建](/assets/image/telegram_01.png)
![Telegram 机器人创建](/assets/image/telegram_02.png)
创建完成后,BotFather 会返回一个 API Token,请妥善保存。接下来关闭`Privacy Mode`,以便在群聊中使用。
![Telegram 机器人 API Token](/assets/image/telegram_03.png)
## 在 LangBot 中填写信息并启动
根据[填写配置信息](/deploy/quick-config/config)中的 Telegram 适配器配置,填写相关信息。
将上一步获取的 API Token 填写到配置中。
```json
{
"adapter": "telegram",
"enable": true,
"token": "xxxxxxx"
},
```
填写完成后启动 LangBot,若成功配置,日志中会出现`[02-02 16:48:15.263] manager.py (68) - [INFO] : 初始化平台适配器 1: telegram`的字样,保持 LangBot 运行。
## 使用机器人
现在在群里或者私聊机器人都可以正常使用了。
![Telegram 机器人使用](/assets/image/telegram_04.png)
![Telegram 机器人使用](/assets/image/telegram_05.png)
-13
View File
@@ -85,19 +85,6 @@
</details>
## 限制
- ❗OpenAI 官方关于模型生成内容的警告:
- May occasionally generate incorrect information(可能会生成不正确的信息)
- May occasionally produce harmful instructions or biased content(可能会产生有害说明或有偏见的内容)
- Limited knowledge of world and events after 2021(对2021年后的世界和事件的了解有限)
- ❗模型无思维能力,仅针对传入的上下文根据数据集生成内容,请勿过于信任其输出
- ❗模型不了解其运行平台及其使用的模型版本,任何针对其实现原理的问题答案均视为无效,请以项目文档为准
以上是关于此程序的限制的最高优先级描述,其他方式(如询问机器人相关信息)获得的描述均应被视为无效
由于模型生成的内容导致的一切损失,本项目概不负责
## 使用方式
对话及绘图功能均直接调用OpenAI的模型进行处理,与机器人程序无关,这意味着模型并不了解此项目的相关信息(如实现方式、技术栈、运行平台等),除非在预设值中写入相关信息。