Skip to main content

paperless-telegram-bot banner

Your Paperless-ngx archive, run from Telegram.

Release Tests License Docker pulls GitHub stars


paperless-telegram-bot is a Telegram bot for Paperless-ngx, run in Docker. Send a photo or a file from your phone and it lands in your archive; then tag it, file it, search it and get it back, all from the chat. The bot polls Telegram and talks to Paperless over its API, so it needs no public URL, no open port and no VPN on the phone, and Paperless can stay on your LAN.

Features

  • Send a photo or any file up to 20 MB (Telegram's limit for bots) and it is uploaded to Paperless; the reply changes to the document's title once Paperless has finished processing it.
  • Tag it, pick the correspondent and the document type from inline keyboards right after the upload, or create a new tag, correspondent or type without leaving the chat.
  • A file Paperless already has is not stored twice: the bot names the existing document and offers it for download.
  • Type any text to search the archive; results come in pages, each with a Download button. /search does the same.
  • /inbox lists what still carries the inbox tag; Reviewed clears it with one tap, and so does Done after an upload.
  • Get the original file back in the chat, up to 50 MB.
  • /recent shows the latest documents and /stats the archive's counts.
  • Only the Telegram user ids you list can use the bot; everyone else is refused. It refuses to start with an empty list unless you set ALLOW_OPEN_ACCESS=true, which opens it to every Telegram user.
  • Works with Paperless-ngx 2.x and 3.x.

Quick start

docker run -d --name paperless-telegram-bot --restart unless-stopped \
  -e TELEGRAM_BOT_TOKEN=your_bot_token \
  -e PAPERLESS_URL=http://paperless.home:8000 \
  -e PAPERLESS_TOKEN=your_paperless_api_token \
  -e TELEGRAM_ALLOWED_USERS=123456789 \
  drumsergio/paperless-telegram-bot:v0.7.2

The image runs on amd64 and arm64. Without Docker, pip install paperless-telegram-bot (Python 3.11 or newer) gives you the same paperless-bot run; Getting started has the steps.

Get the three values first: the bot token from @BotFather (/newbot), the Paperless API token from your Paperless profile (click your user name, then My Profile, API Auth Token), and your own Telegram user id from @userinfobot. PAPERLESS_URL is the address the bot can reach, which is not always the one in your browser. Use the host's LAN address, or the Paperless container's name when both share a Docker network. When it works the log ends with Bot commands registered with Telegram, and sending /start to your bot in Telegram gets the command list back; Docker Compose, a run from source and what a working start looks like are in Getting started.

Documentation

Everything below is on the site, https://geiserx.github.io/paperless-telegram-bot/.

License

GPL-3.0-or-later

Metadata

Release files for paperless-telegram-bot 0.7.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for paperless-telegram-bot 0.7.2
File Size Uploaded Provenance Actions
paperless_telegram_bot-0.7.2.tar.gz 54.9 kB Without provenance Details for paperless_telegram_bot-0.7.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for paperless-telegram-bot 0.7.2
File Interpreter ABI Platform Actions
paperless_telegram_bot-0.7.2-py3-none-any.whl Python 3 none any Details for paperless_telegram_bot-0.7.2-py3-none-any.whl

Total release size: 93.1 kB

Release files / paperless_telegram_bot-0.7.2.tar.gz

Download URL paperless_telegram_bot-0.7.2.tar.gz
Size 54.9 kB
Tags Source
SHA-256 checksum
How to use checksums
b2e2cf5cb796fa39985a78e478d2eb64ab470957d1b0f6cbef3957137614897a
BLAKE2b-256 checksum
How to use checksums
30266ae1106ce6f1db93b2663da239215684228db5737bdd605c12baad8af4c4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.17

Release files / paperless_telegram_bot-0.7.2-py3-none-any.whl

Download URL paperless_telegram_bot-0.7.2-py3-none-any.whl
Size 38.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1b69707ab08f02e3c6e3fb900e71973a55af76b403b9c2e264d445dda0d8c4f4
BLAKE2b-256 checksum
How to use checksums
9141065f67fa379841afcdf77a5ec1b355ddbffeedd316d407cbd341c3627a31
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.17

Security for paperless-telegram-bot 0.7.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page