This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
Telegram Bot to print pdf and txt files. | |
Users must first authorize themselves by entering the password using the command "/auth <password>". | |
This implementation works only for UNIX and uses "lp -d <printer> <file>" to print files (see function "print_file"). | |
""" | |
import os | |
import pathlib | |
import logging |