用 BotFather 創建 Bot Token,無需服務器,5 分鐘搞定。
📋 開始前確認
BotFather 是 Telegram 官方的 Bot 管理工具,完全免費
在 Telegram 裡找到 BotFather
打開 Telegram,搜索 @BotFather(注意一定要有藍色認證標志 ✅)
BotFather
@BotFather · ✅ 官方認證
對照截圖,只選有藍色 ✅ 認證標志的那個
⚠️ 注意認證標志!只有帶藍色 ✅ 的才是官方 BotFather,有假冒賬號會騙取 Token。
發送 /newbot 命令
給 BotFather 發送這條消息:
BotFather 會依次問你兩個問題:
BotFather 問:
Alright, a new bot. How are we going to call it? Please choose a name for your bot.
(請給你的 Bot 起個顯示名稱)
你回復(示例):
我的AI助手
BotFather 又問:
Good. Now let's choose a username for your bot. It must end in `bot`. Like this, for example: TetrisBot or tetris_bot.
(Bot 的用戶名,必須以 bot 結尾)
你回復(示例):
MyAIAssistant_bot
複製 Bot Token
創建成功後,BotFather 會給你一段 Token,立刻複製保存!
BotFather 回復:
Done! Congratulations on your new bot. You will find it at t.me/MyAIAssistant_bot. You can now add a description, about section and profile picture for your bot, see /help for a list of commands. By the way, when you've finished creating your cool bot, ping our Bot Support if you want a better username for it. Just make sure the bot is fully operational before you do this.
Use this token to access the HTTP API:
1234567890:AAHxxxxxxxxxxxxxxxxxxxxxxxx-xxxxxxx
Token 格式
數字:字母數字組合
示例
123456789:AAHx...xxx
⚠️ Token 很重要!不要洩露,不要截圖發群裡,丟了可以在 BotFather 用 /revoke 重新生成。
不需要打開終端,直接把 Token 發給 AI,它幫你配好
把 Bot Token 發給 AI 助手
直接在對話框裡發送 Token,AI 會自動配置並啟動網關
Token 格式示例:
⚠️ Token 很重要:不要截圖發群裡,丟了可以在 BotFather 用 /revoke 重新生成。
等待 AI 自動配置完成
大約 5 秒,AI 會自動寫入 Token 並啟動網關
# AI 助手會回復:
✅ Token 已配置,網關已啟動!繼續下一步 👇
✅ 看到這條消息就說明配置成功了!
在 Telegram 找到你的 Bot,發第一條消息
在 Telegram 裡找到你的 Bot
搜索你剛才創建的 Bot 用戶名(@xxx_bot)
@MyAIAssistant_bot)
批准配對(首次)
第一次發消息,Bot 會回復配對碼,在終端裡批准
Bot 回復示例:
openclaw pairing approve telegram XYZ789
💡 配對只需要做一次。
🎉 開始使用!
Telegram AI 助手已就緒
💡
問問題
「解釋一下區塊鏈是什麼」
🌍
翻譯
「幫我把這段中文翻譯成英文」
📊
分析
「幫我分析這份數據的趨勢」
🚀 進階:加到群組使用
@BotFather → /setprivacy → Disable,讓 Bot 看到所有消息openclaw gateway statusopenclaw logs --followopenclaw channels add)去 BotFather 立刻吊銷舊 Token:
然後重新運行 openclaw channels add 填入新 Token。
重啟網關即可:
設置開機自啟:
OpenClaw 需要訪問 api.telegram.org,國內需要通過代理才能連接。
如果你在香港、台灣、海外等地區則沒有限制,直接使用即可。