{
 "schema_version": 1,
 "generated": "2026-10-23",
 "id": "cline-cline--chat-with-agent-from-telegram",
 "repo": "cline/cline",
 "repo_url": "https://github.com/cline/cline",
 "repo_slug": "cline-cline",
 "title": "Chat with a coding agent from Telegram",
 "page_title": "How to chat with a coding agent from Telegram with Cline",
 "summary": "Connect a Telegram bot to Cline so you can message your agent from your phone.",
 "who": "A developer away from their desk who wants to send quick coding tasks to an agent from a messaging app.",
 "problem": "Urgent small fixes or checks often happen away from the terminal or IDE.",
 "outcome": "Each Telegram conversation maps to an agent session that keeps its context across messages.",
 "steps": [
  "Create a Telegram bot and copy its bot token.",
  "Install the CLI with `npm i -g cline`.",
  "Store the token in an environment variable named BOT_TOKEN in your shell.",
  "Run `cline connect telegram -k $BOT_TOKEN`.",
  "Set up access control so only approved people can message the agent."
 ],
 "agent_prompt": "Connect the cline/cline CLI to Telegram using the bot token in the environment variable BOT_TOKEN. Run `cline connect telegram -k $BOT_TOKEN`, send a test message from <telegram-account>, and report the agent's reply. Verify that the reply comes from a session in the expected workspace.",
 "agents": [
  "any"
 ],
 "difficulty": "Advanced",
 "time": "60 minutes",
 "basis": "readme",
 "caveat": "The README says access control can restrict who can talk to the agent, but it does not describe the setup steps, so test that only you can reach it before relying on it.",
 "category": "Software and DevOps",
 "tags": [
  "Software and DevOps"
 ],
 "lang": "typescript",
 "requirements": [
  "Node.js with npm available, since the README installs the CLI with npm",
  "Access to an AI model provider that Cline supports, such as Anthropic, OpenAI, Google, OpenRouter, or a local model through Ollama or LM Studio",
  "A git repository or project folder you want the agent to work in",
  "For the VS Code path: the VS Code editor and the VS Code Marketplace extension"
 ],
 "risk": "sensitive",
 "seen_in_the_wild": false,
 "mentioned_publicly": false,
 "risks": [
  {
   "tag": "credentials",
   "notice": "The Telegram bot token gives full control of the bot, so keep it out of shared shell history and rotate it if it leaks."
  }
 ],
 "best": false,
 "score": 0.6,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/cline-cline/chat-with-agent-from-telegram/",
 "md": "https://dedupedai.com/use-cases/cline-cline/chat-with-agent-from-telegram/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/cline-cline--chat-with-agent-from-telegram.json",
 "api_version": "v1"
}
