beops
all projects

tg-fetcher

telegram bot — send a link, get structured metadata and a searchable archive.
draft aipythontelegram
year
2026
role
engineer
stack
python · telegram bot api · openrouter · neon postgres · fly.io
link

personal telegram bot that captures every shared link into a neon postgres database with llm-extracted, normalized metadata. includes a small web ui on the same fly.io app for browsing and searching saved entries.

how it works

  1. send a url in telegram — github, instagram, youtube, articles, anything.
  2. bot detects source platform, fetches the page, runs an llm to produce structured fields (title, author, description, tags, language, extra json), replies with a preview plus inline buttons: save / re-parse / edit description / cancel.
  3. if the url was already saved, the bot refuses and points at the existing entry.
  4. on save the row is inserted into the neon links table.
  5. browse everything via the web ui (http basic auth).

commands

  • /help — usage
  • /list [n] — recent saved entries
  • /find <query> — search title / description / author / domain / tags
  • /delete <id> — delete an entry with confirm