Telegram ??????????????????????Bot API ?????? OpenClaw ????????????????????????OpenClaw ??? Telegram?????????????????AI ??????????????????????????????????????????????????? Bot ????????????????/p>
???????Telegram Bot
??????????? Telegram ????????Bot??/p>
- ??Telegram ?????@BotFather????????
- ????
/newbot??? - ????????? Bot ???????????
My OpenClaw Assistant??/li> - ??? Bot ????????????
bot??????my_openclaw_bot??/li> - BotFather ????????Bot Token????????
123456789:ABCdefGHIjklMNOpqrsTUVwxyz
/revoke ??????????????????Chat ID??????
????????? Bot ?????????????????Chat ID??/p>
- ?????? Bot ??????????/li>
- ???
https://api.telegram.org/bot{TOKEN}/getUpdates - ?????? JSON ?????
chat.id???
???????OpenClaw
??? OpenClaw ????????config.json??? plugins ?????Telegram ?????/p>
{
"plugins": {
"entries": {
"telegram": {
"enabled": true,
"config": {
"token": "123456789:ABCdefGHIjklMNOpqrsTUVwxyz"
}
}
}
}
}
?????????
{
"plugins": {
"entries": {
"telegram": {
"enabled": true,
"config": {
"token": "???Bot Token",
"allowedChatIds": [-1001234567890],
"whitelistMode": true,
"parseMode": "Markdown",
"maxMessageLength": 4096
}
}
}
}
}
????????/p>
- token??otFather ?????Bot Token??????
- allowedChatIds?????? Chat ID ??????????????/li>
- whitelistMode?????????????????????
- parseMode????????????
Markdown??HTML - maxMessageLength??????????????????????????/li>
???????Gateway
???????????? OpenClaw Gateway ?????????
openclaw gateway restart
????????????????????/p>
[telegram] Bot @my_openclaw_bot is now polling...
??????????/h2>
??Telegram ????????Bot?????Start ????????????Bot ???????????????????????
- ????
?????????????? - ????
/help??????????? - ??????????????a?????/li>
???????Bot ??????
??? BotFather ??? Bot ????????????????????/p>
- ??BotFather ????
/setcommands - ?????? Bot
- ???????????/li>
help - ?????????
status - ??? Gateway ????reset - ???????????model - ??? AI ???
?????????????/h2>
Bot ??????
- ????Bot Token ????g’
- ??? Gateway ?e??????code>openclaw gateway status
- ????????code>openclaw gateway logs
- ???????????a?????? Chat ID ?????/li>
???????????/h3>
- ???????????Telegram API ????????
api.telegram.org
- ??????????????????????????/li>
- ????Gateway ??????????????/li>
409 Conflict ???
- ???????????Telegram API ????????
api.telegram.org - ??????????????????????????/li>
- ????Gateway ??????????????/li>
409 Conflict ???
???????????????????????Bot Token ????????????
- ??????????Gateway ????????/li>
- ??????????????????????????????
??????????/h2>
- ????????a????????????????????Bot
- ?????Bot Token ?????Git ?????????????????/li>
- ?????BotFather ?????Bot ????????/li>
- ??? Bot ?????????????????OpenClaw ??????????????/li>
???
Telegram ??OpenClaw ?????????????????????????????????Bot Token?????????????????????????????? AI ????????OpenClaw ??????????????????Telegram Bot ????????????????????????????????/p>
?? ????????????????????OpenClaw ????????????????/p>
