diff --git a/docs/.vitepress/config.mts b/docs/.vitepress/config.mts index ac37c0d96..cb2aa5d3f 100644 --- a/docs/.vitepress/config.mts +++ b/docs/.vitepress/config.mts @@ -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" }, diff --git a/docs/assets/image/telegram_01.png b/docs/assets/image/telegram_01.png new file mode 100644 index 000000000..f41d5f353 Binary files /dev/null and b/docs/assets/image/telegram_01.png differ diff --git a/docs/assets/image/telegram_02.png b/docs/assets/image/telegram_02.png new file mode 100644 index 000000000..796a0127c Binary files /dev/null and b/docs/assets/image/telegram_02.png differ diff --git a/docs/assets/image/telegram_03.png b/docs/assets/image/telegram_03.png new file mode 100644 index 000000000..04c9050cd Binary files /dev/null and b/docs/assets/image/telegram_03.png differ diff --git a/docs/assets/image/telegram_04.png b/docs/assets/image/telegram_04.png new file mode 100644 index 000000000..fbde9d791 Binary files /dev/null and b/docs/assets/image/telegram_04.png differ diff --git a/docs/assets/image/telegram_05.png b/docs/assets/image/telegram_05.png new file mode 100644 index 000000000..ebaa1df40 Binary files /dev/null and b/docs/assets/image/telegram_05.png differ diff --git a/docs/deploy/platforms/readme.md b/docs/deploy/platforms/readme.md index 775ba679c..0e1c96ffb 100644 --- a/docs/deploy/platforms/readme.md +++ b/docs/deploy/platforms/readme.md @@ -5,11 +5,12 @@ LangBot 需要连接消息平台 API 才能与用户交互,目前支持以下 | 平台 | 状态 | 备注 |教程 | | ------ | ---- | ---- | ---- | -| QQ 个人号 | ✅ | 使用普通的 QQ 号作为机器人,需要使用独立的协议端,支持 OneBot v11 和 go-cqhttp 协议 | [NapCat](/deploy/platforms/qq/aiocqhttp/napcat)
[Lagrange](/deploy/platforms/qq/aiocqhttp/lagrange)
[LiteLoaderQQNT](/deploy/platforms/qq/aiocqhttp/llonebot)
[Shamrock(不推荐)](/deploy/platforms/qq/aiocqhttp/shamrock)
[go-cqhttp(不推荐)](/deploy/platforms/qq/gocq) | +| QQ 个人号 | ✅ | 使用普通的 QQ 号作为机器人,需要使用独立的协议端,支持 OneBot v11 和 go-cqhttp 协议 | [NapCat](/deploy/platforms/qq/aiocqhttp/napcat)
[Lagrange](/deploy/platforms/qq/aiocqhttp/lagrange)
[LiteLoaderQQNT](/deploy/platforms/qq/aiocqhttp/llonebot)
[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) | \ No newline at end of file +| Discord | ✅ | | [教程](/deploy/platforms/discord) | +| Telegram | ✅ | | [教程](/deploy/platforms/telegram) | diff --git a/docs/deploy/platforms/telegram.md b/docs/deploy/platforms/telegram.md new file mode 100644 index 000000000..f12282cc6 --- /dev/null +++ b/docs/deploy/platforms/telegram.md @@ -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) \ No newline at end of file diff --git a/docs/insight/intro.md b/docs/insight/intro.md index adc2a330a..6000b3918 100644 --- a/docs/insight/intro.md +++ b/docs/insight/intro.md @@ -85,19 +85,6 @@ - -## 限制 - -- ❗OpenAI 官方关于模型生成内容的警告: - - May occasionally generate incorrect information(可能会生成不正确的信息) - - May occasionally produce harmful instructions or biased content(可能会产生有害说明或有偏见的内容) - - Limited knowledge of world and events after 2021(对2021年后的世界和事件的了解有限) -- ❗模型无思维能力,仅针对传入的上下文根据数据集生成内容,请勿过于信任其输出 -- ❗模型不了解其运行平台及其使用的模型版本,任何针对其实现原理的问题答案均视为无效,请以项目文档为准 - -以上是关于此程序的限制的最高优先级描述,其他方式(如询问机器人相关信息)获得的描述均应被视为无效 -由于模型生成的内容导致的一切损失,本项目概不负责 - ## 使用方式 对话及绘图功能均直接调用OpenAI的模型进行处理,与机器人程序无关,这意味着模型并不了解此项目的相关信息(如实现方式、技术栈、运行平台等),除非在预设值中写入相关信息。