justpresident / telegram_printer_bot

Printer Bot for telegram

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Telegram printer bot

This is a simple bot that allows you to print on your home printer from anywhere from any device that has a telegram client. It also exposes some basic printer diagnostics and print job management. In order to print something, just upload a file without any commands. A lot of formats are supported.

Commands:

  • /start - Starts interaction and print current state
  • /auth <password> - Authenticates current session with a password against password stored in auth_password file
  • /pending - Lists all pending print jobs
  • /completed - Lists last 10 completed print jobs
  • /cancel <job_id> - Cancels a pending job with a given id

Details

  • Uses simple password authentication
  • Uses libreoffice to convert files to PDF format before printing
  • Uses lpr to send a file to your default printer
  • Uses python-telegram-bot package to interface with the Telegram API

Install

  • Python packages: pip3 install python-telegram-bot
  • Libreoffice. Install it using your package manager, like apt install libreoffice

About

Printer Bot for telegram


Languages

Language:Python 100.0%