mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-10-30 12:25:29 +08:00
* 重构文档结构:移除 docs 目录,调整文件组织结构 * Reorder "插件 SDK API" section in docs.json * Refactor and clarify various documentation sections * Refine warnings and info boxes across multiple docs * Refactor and simplify Japanese documentation content * Update package.json to include mintlify as a dependency and add pnpm-lock.yaml for dependency management * Update blog link and add description in docs.json --------- Co-authored-by: Junyan Chin <[email protected]>
32 lines
1.1 KiB
Plaintext
32 lines
1.1 KiB
Plaintext
---
|
|
title: "接入 Telegram 机器人"
|
|
---
|
|
|
|
## 创建机器人
|
|
|
|
前往 [Telegram 机器人创建页面](https://t.me/botfather),按照提示操作,创建一个机器人。
|
|
|
|

|
|
|
|

|
|
|
|
创建完成后,BotFather 会返回一个 API Token,请妥善保存。接下来关闭`Privacy Mode`,以便在群聊中使用。
|
|
|
|

|
|
|
|
## 对接 LangBot
|
|
|
|
打开 LangBot Webui 页面,创建一个新机器人
|
|
|
|

|
|
|
|
填写完成后启动 LangBot,若成功配置,日志中会出现`[02-02 16:48:15.263] manager.py (68) - [INFO] : 初始化平台适配器 1: telegram`的字样,保持 LangBot 运行。
|
|
|
|
## 使用机器人
|
|
|
|
现在在群里或者私聊机器人都可以正常使用了。
|
|
|
|

|
|
|
|

|