Step 03

設定 Telegram Bot

透過 BotFather 建立 Telegram Bot 並取得 API Token。

入門 2026年4月1日

建立 Bot

  1. 開啟 Telegram,搜尋 @BotFather
  2. 傳送 /newbot 指令
  3. 輸入 Bot 名稱(例如:My OpenClaw Bot
  4. 輸入 Bot username(必須以 bot 結尾,例如:my_openclaw_bot

取得 API Token

建立成功後,BotFather 會回傳 Token,請妥善保存。

預期訊息範例:

Done! Congratulations on your new bot.
Use this token to access the HTTP API:
123456789:ABCDefGhIjKlMnOpQrStUvWxYz
Keep your token secure and store it safely.

安全提醒:不要將 Token 上傳至 GitHub 或分享給他人。