SCI-LINK PDF Editor Bot
A Telegram bot with 14 PDF tools and batch file renaming, built to share a small server politely.
- My role
- Solo: bot, infrastructure and tests
The problem
Students and teachers handle PDFs all day: merging notes, splitting papers, compressing scans to send on Telegram. Doing that needed a desktop app or an upload to a random website.
The bot also had to live on a VPS that already runs other services, so a heavy OCR or compression job couldn't be allowed to starve its neighbours. And the standard Bot API only allows 20 MB files.
What I built
@SCILINKPDFEDITOR_BOT offers 14 PDF tools, including merge, split, rotate, compress, OCR, watermark, password protection and form filling, plus batch file renaming.
It runs as a dedicated system user under systemd with memory and CPU limits, with a job queue so heavy work runs in order. A local Telegram Bot API server raises the file limit from 20 MB to 100 MB.
A pytest suite (56 tests, all passing) covers the tools so changes can ship without fear.
Result
Live and in daily use. It's now growing into a shared library plus a FastAPI web dashboard with storage, trash and retention, thumbnails and sign-in.
Architecture notes
- Dedicated system user + systemd MemoryMax / CPUQuota on a shared VPS.
- Job queue for heavy tools; local Bot API server for 100 MB files.
- 56 passing pytest tests.