SShortSingh.
Back to feed

Telegram Returns HTTP 200 for Deleted Bots, Making Standard Link Checks Unreliable

0
·1 views

Telegram serves an HTTP 200 status code for bot URLs even when the bot has been deleted or never existed, meaning standard link checkers falsely report dead bots as live. A developer discovered this issue while building a catalog of Telegram Mini Apps, where every entry appeared valid despite some being defunct. The reliable workaround is to inspect the Open Graph title tag in the page's HTML: a live bot displays its own name, while a deleted or non-existent one shows a generic Telegram placeholder string. Using this method, a simple script can accurately distinguish live bots from dead ones without relying on the HTTP status code. The developer notes this approach depends on Telegram's current page markup rather than an official API, so the placeholder strings should be monitored periodically for changes.

Read the full story at DEV Community

This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)

Log in to join the discussion and vote.

Log in

Related stories

0
ProgrammingDEV Community ·

ByteDance Seedance Video Generator Can Now Be Used Inside Claude.ai via MCP

Developers can now generate short AI videos directly within Claude.ai by connecting a Seedance MCP connector from Ace Data Cloud using a single remote URL. Seedance is ByteDance's Doubao-based video generation platform, and the integration uses OAuth authorization rather than manual API token entry. Once connected, Claude gains access to several tools that let it list available models and resolutions, submit video generation tasks, and poll for results without the user leaving the conversation. The workflow supports both text-to-video and image-to-video generation, with Claude autonomously selecting valid model parameters before submitting a task. The connector is added via Claude.ai's custom connector settings using the URL https://seedance.mcp.acedata.cloud/mcp.

0
ProgrammingDEV Community ·

Angular Library Maintainer Explains Why npm Package Testing Beats Source Code Checks

A developer maintaining an open-source Angular library discovered that validating compatibility against local workspace files and dist/ folders does not reflect what users actually install from npm. This insight prompted a redesign of the CI pipeline to test the published package artifact across multiple Angular versions, from version 17 through 22. The author highlights that testing dist/ alone is insufficient due to Angular's partial compilation and linker behavior, and that type-checking can miss real compatibility issues. The recommended approach involves using npm pack to validate the packaged artifact before release. The developer shared these findings in a detailed article and is inviting other library maintainers to discuss their own compatibility testing strategies.

0
ProgrammingDEV Community ·

Developer Shares Single-Script Solution to Automate Ubuntu Server Security Hardening

A developer has published an open-source bash script on GitHub that automates the full security hardening process for fresh Ubuntu 22.04 cloud servers. The script addresses common default vulnerabilities such as open root login, password-based SSH authentication, and the absence of a firewall. Running as a single command, it creates a non-root user, reconfigures SSH to a custom port, enables UFW firewall rules, installs Nginx, and obtains a free Let's Encrypt SSL certificate. The script is built to be idempotent, meaning it can be safely re-run after interruptions without causing errors or duplicate configurations. The author noted the project was motivated by discovering hundreds of failed login attempts on a newly launched server within just a few hours.

0
ProgrammingDEV Community ·

PIVOT technique cuts long-context AI inference latency without retraining models

Researchers have developed PIVOT, a training-free method that addresses a core inefficiency in Dynamic Sparse Attention (DSA) used by large language models during long-context inference. Although DSA reduces attention computation, its indexer still performs a full token scan per query, keeping overall complexity at O(L²) and dominating latency at sequence lengths like 100K tokens. PIVOT exploits the observation that adjacent queries share roughly 90% of their top-k token selections, allowing a single proxy scan per group of queries instead of one scan per query. This reduces indexer cost from O(L²) to O(L²/g), delivering a reported 4× indexer speedup and 1.6× end-to-end latency reduction on models including DeepSeek-V3.2 and GLM-5.1. The method offers two modes — PIVOT-Reuse for maximum speed and PIVOT-Refine for accuracy closer to a dense indexer — and can be plugged into existing DSA models at inference time.

Telegram Returns HTTP 200 for Deleted Bots, Making Standard Link Checks Unreliable · ShortSingh