{
 "schema_version": 1,
 "generated": "2026-11-09",
 "id": "hkuds-nanobot--connect-nanobot-to-telegram-with-a-background-gateway",
 "repo": "HKUDS/nanobot",
 "repo_url": "https://github.com/HKUDS/nanobot",
 "repo_slug": "hkuds-nanobot",
 "title": "Keep Nanobot running for chat apps and automations",
 "page_title": "How to keep Nanobot running for chat apps and automations with Nanobot",
 "summary": "Run the gateway in the background so Telegram, Slack or Discord channels and scheduled automations keep working.",
 "who": "A user who wants to message their agent from their phone and run cron style automations.",
 "problem": "Channels and automations stop when the interactive launcher closes.",
 "outcome": "A background gateway serving chat channels and scheduled automations, with logs you can check.",
 "steps": [
  "Configure a model first with `nanobot onboard --wizard`",
  "Ask Nanobot in the WebUI to help connect Telegram and allow only your account, as the README suggests",
  "Start the gateway with `nanobot gateway --background`",
  "Manage it with `nanobot gateway status`, `nanobot gateway logs` and `nanobot gateway stop`"
 ],
 "agent_prompt": "With HKUDS/nanobot, connect my Telegram account as a channel restricted to my user only, start `nanobot gateway --background`, and show me `nanobot gateway status`.",
 "agents": [
  "claude-code",
  "codex",
  "cursor",
  "gemini-cli"
 ],
 "difficulty": "Intermediate",
 "time": "45 minutes",
 "basis": "readme",
 "caveat": "Exact channel settings are in the README's linked chat app guide and channel reference.",
 "category": "Personal productivity",
 "tags": [
  "Personal productivity"
 ],
 "lang": "python",
 "requirements": [
  "Python with uv or pip; install with `uv tool install nanobot-ai`",
  "A model provider configured through the onboarding wizard, or a local LLM",
  "Optional chat app accounts such as Telegram or Slack for channels"
 ],
 "risk": "none",
 "seen_in_the_wild": false,
 "mentioned_publicly": false,
 "risks": [
  {
   "tag": "permissions",
   "notice": "Before connecting a bot to shared channels, check each platform's DM pairing, allowlist and group access policies; the README warns that approving a private sender does not restrict group access everywhere."
  }
 ],
 "best": false,
 "score": 0.8,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/hkuds-nanobot/connect-nanobot-to-telegram-with-a-background-gateway/",
 "md": "https://dedupedai.com/use-cases/hkuds-nanobot/connect-nanobot-to-telegram-with-a-background-gateway/index.md",
 "disclaimer": "Deduped lists open-source repositories that belong to other people. We do not own, maintain, audit, or vouch for any of them, and a repo appearing here is not an endorsement or a safety check. The use cases, steps, and prompts are written by AI and may be incomplete, outdated, or just wrong. Where a use case is marked \"Seen in the wild\", we link to public posts where someone described something similar, but we have not verified those posts and the use case itself is still our AI's own write-up. Use all of this at your own risk. Only run code, commands, or agents on systems and accounts you are authorized to use, and read the code and every command before you run it, especially anything that touches credentials, files, or the network. Nothing here is professional, security, legal, or financial advice. All trademarks and project names belong to their respective owners, and their use here does not imply affiliation. Content is provided as is, without warranties of any kind. Found a mistake, a safety problem, or something you want removed? Email hello@dedupedai.com and we will look at it promptly.",
 "api": "https://dedupedai.com/api/v1/usecases/hkuds-nanobot--connect-nanobot-to-telegram-with-a-background-gateway.json",
 "api_version": "v1"
}
