{
  "id": 18371838,
  "title": "How to create a Telegram bot that only responds to you, with long polling in Python",
  "url": "https://urgent.news/2026/11/05/como-crear-un-bot-de-telegram-que-solo-te-responda-a-ti-con-long",
  "topic": "tech",
  "section": "Tech",
  "published": "2026-11-05T20:55:56.000Z",
  "source": {
    "name": "Dev.to",
    "slug": "dev-to",
    "url": "https://dev.to/bestaitools-es/como-crear-un-bot-de-telegram-que-solo-te-responda-a-ti-con-long-polling-en-python-4h00"
  },
  "original_language": "es",
  "account": "A Telegram bot can be controlled remotely using a script or AI agent on a personal machine. The bot is public and can be found by anyone, but the token only verifies the script, not the user. A Python script using the standard library was created to interact with the Telegram Bot API, allowing for long polling to receive messages without needing a public URL or server. The script uses a pairing system with a one-time code to authorize users, storing the user's ID and chat ID to handle messages. The script can send messages and handle incoming messages, with the ability to run an agent or perform other actions.",
  "summary": "A Telegram bot is a convenient remote control for a script or AI agent on your own machine. It works on any mobile phone, it doesn't require its own app and it doesn't require a public server. The drawback is that a bot is public. Anyone can find its username and write to it, and the token only proves that your script is the bot; it says nothing about who is writing. The application of…",
  "key_points": [
    "Un bot de Telegram permite acceder a scripts o agentes de IA en un dispositivo personal.",
    "Long polling ofrece una alternativa a los getUpdates sin exponer puertos o certificados.",
    "Un script en un portátil utiliza long polling para obtener mensajes de Telegram sin abrir puertos."
  ],
  "editors_take": null,
  "illustration": null,
  "coverage": {
    "outlets": 1,
    "also_reported_by": []
  },
  "ai_generated": true,
  "disclaimer": "Summaries, key points and the editor’s take are written by software from other outlets’ reporting and may contain errors — always check the linked original."
}