Bỏ qua để đến nội dung

Cấu hình Telegram

Telegram là chat channel thực tế đầu tiên của Bestie. Bot chạy local bằng long polling và mặc định chỉ trả lời owner.

Chạy helper:

Terminal window
bestie telegram setup

Hoặc cấu hình thủ công trong .bestie/config.json:

{
"channels": {
"telegram": {
"enabled": true,
"botTokenEnv": "BESTIE_TELEGRAM_BOT_TOKEN",
"ownerUserId": "123456789"
}
}
}

Thêm token vào .bestie/.env:

Terminal window
BESTIE_TELEGRAM_BOT_TOKEN=123456...here

Không commit .bestie/.env.

Terminal window
bestie telegram

Chạy một vòng poll để debug:

Terminal window
bestie telegram --once
  • /start - kiểm tra bot sẵn sàng cho owner.
  • /help - danh sách lệnh.
  • /status - trạng thái ngắn gọn, không lộ secrets.
  • /doctor - tóm tắt Doctor.
  • /memory hoặc /memory list - trạng thái/trích memory.
  • /memory pending - hàng chờ memory cần duyệt.
  • /memory pause/memory resume - tạm dừng/bật lại memory.
  • /approvals - action approvals đang chờ.
  • /approve <id>/deny <id> - ghi nhận quyết định owner.

Bestie có thể tải file Telegram vào .bestie/workspace/telegram/..., đọc metadata/caption và tạo preview có giới hạn cho file text-like. Voice, vision và transcription cần bật rõ trong config.

Terminal window
bestie doctor
bestie doctor --telegram-connect

--telegram-connect gọi Telegram getMe, nên chỉ dùng khi muốn kiểm tra network thật.