Urgent.News

What's breaking now, across hundreds of outlets.

AI

How I built a newsroom for my Telegram channel on DeepSeek and taught it to stop writing 'plays a pivotal role'

I run a Telegram channel about development, AI, games and tech. Doing it by hand was slow: find a story, read the original, retell it in my own words, pick images, double-check the numbers. A decent post took me 20 to 40 minutes. Just asking a model to "write a post about this news" doesn't work. You get text that screams ChatGPT ("plays a pivotal role", "marks a new era", "it's worth noting"),…

I run a Telegram channel covering development, AI, games, and tech. Creating content by hand took 20 to 40 minutes per post, but I built a "Posts" section in my site's admin panel to streamline the process. The system reads RSS and Atom feeds every 10 minutes, pulling 162 sources (85 in Russian, 77 in English) on topics like AI, games, development, tech, economy, politics, and sanctions, among others.

When selecting a story, DeepSeek generates a post from the article text, and a fact-check feature compares the claims with other sources and Google News headlines. After editing and choosing images, the bot posts the finished article to the channel, or sends it as a draft for my review. The stack consists of a Node.js server, an Astro admin panel, the Telegram Bot API, and DeepSeek's chat through its OpenAI-compatible API.

The setup includes about 2,000 lines of code, handling feed management, formatting, and the Telegram interface. Managing feeds is crucial, as RSS is inconsistent, with varying date formats and duplicate content. The system keeps the first copy of each item, normalizes titles, and identifies repeats by link. Some feeds provide no dates, which are stamped as "now" upon each refresh.

Large outlets often bundle multiple topics in one feed, so topic regex is used to filter content. Multiple titles and summaries are sent to DeepSeek in a single request for efficiency. To prevent AI-generated text, I incorporated a set of 15 rules into every prompt sent to the model. These rules discourage inflating significance, using generic phrases, providing summaries, and stacking adjectives.

A fact-check feature compares claims against the source article, other relevant sources, and Google News headlines. Each claim is categorized as confirmed, partly confirmed, contradicted, or unverified. If a claim is not in the article, it is marked as unverified. The model is limited to the material provided, and any information outside the article is disregarded.

Fact-checkers begin by identifying checkable claims and comparing them to the original sources. Finally, the model generates a response in JSON format, and any unverified claims are labeled accordingly, ensuring the final post remains accurate and reliable.

Rewritten by urgent.news; may contain errors — check the original.

Source: dev.to

Read the original at dev.to →

Report a problem with this story

More in AI

PromptDC: a desktop app that fixes your writing and AI prompts in any app

Most AI writing help lives in one place. Grammar checkers underline words in the browser. AI chats make you copy text in and paste it back. Coding assistants only help with code.

  • PromptDC fixes writing and AI prompts in any app on macOS and Windows.
  • Users select text, apply changes, and copy or replace as needed.
  • Ten pre-built profiles and customizable options for specific tasks.

More from Thursday 26 November →