Urgent.News

What's breaking now, across thousands of outlets.

Tech

How to create a Telegram bot that only responds to you, with long polling in Python

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…

Translated from Spanish Read in Spanish

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.

Written by urgent.news from Dev.to's report — not a translation of it. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in Tech

Building a Tested, High-Performance Docs Site with Thally (and What It Taught Me About Modern DX)

Building a Tested, High-Performance Docs Site with Thally (and What It Taught Me About Modern DX) When I set out to build the JSON Server Field Guide —an interactive, companion guide for…

  • JSON Server Field Guide uses Thally, a Next.js 16-powered documentation framework.
  • Behavioral statements backed by recorded HTTP fixtures to eliminate assumptions.
  • Thally s CLI ensures internal links, frontmatter schema validity, and detects orphaned pages.

Dissecting morluto/rea: Agent-Driven Reverse Engineering for Binary and API Forensics

Why morluto/rea Exists Reverse engineering closed-source binaries or undocumented third-party APIs traditionally requires manual static analysis, dynamic instrumentation tooling like Frida or x64dbg…

  • morluto/rea automates reverse engineering of binaries and APIs via agent-driven system
  • Binary Analysis Pipeline translates decompiled code to TypeScript definitions
  • LLM-Augmented Pattern Matcher uses LLM for contextual reasoning on analysis artifacts

More from Thursday 5 November →