telegram
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseTelegram
Telegram
CRITICAL: Finding Chat IDs
重要提示:查找Chat ID
Don't know a chat ID? Run this FIRST:
bash
openclaw sessions listThis shows ALL active chats. Look for — extract the number.
deliveryContext: telegram:<chat_id>NEVER:
- Use @usernames (they fail with "chat not found")
- Grep through files looking for IDs
- Ask the user for the ID
- Guess or make up IDs
ALWAYS:
- Run first
openclaw sessions list - Use the numeric ID from deliveryContext
- Save IDs to journal after you learn them
ID format:
- User IDs: positive numbers (e.g., )
123456789 - Group IDs: negative numbers starting with (e.g.,
-100)-1001234567890
不知道聊天ID?请先运行以下命令:
bash
openclaw sessions list这会显示所有活跃的聊天会话。找到字段,提取其中的数字部分。
deliveryContext: telegram:<chat_id>绝对不要:
- 使用@用户名(会提示“未找到聊天”错误)
- 在文件中搜索ID
- 向用户索要ID
- 猜测或编造ID
务必:
- 先运行命令
openclaw sessions list - 使用deliveryContext中的数字ID
- 找到ID后将其保存到日志中
ID格式:
- 用户ID:正数(例如:)
123456789 - 群组ID:以开头的负数(例如:
-100)-1001234567890
Sending Messages
发送消息
bash
openclaw message send --channel telegram --target <CHAT_ID> --message "Your message"bash
openclaw message send --channel telegram --target <CHAT_ID> --message "Your message"Behavior
行为规范
- Plain text only — No markdown, no **, no _, no backticks
- Respond when mentioned or asked directly
- Add value or stay quiet
- Don't spam groups
- 仅支持纯文本 — 不支持markdown格式,不能使用**、_、反引号
- 仅在被提及或直接询问时回复
- 提供有价值的内容或保持沉默
- 不要在群组中发送垃圾信息