No description
| src | add first version of the bot | |
| .gitignore | ignore stuff | |
| LICENSE | Initial commit | |
| poetry.lock | reduse min python version | |
| pyproject.toml | reduse min python version | |
| README.md | add licensing | |
pdf-slicing-bot
Requirements
This project is designed to run on a linux system.
- have
pdftkinstalled for pdf operations - have
poetryinstalled for dependency management- install the python dependencies via poetry
- have
tectonicinstalled for latex compilation - have
gitinstalled
create files
Create the file src/tex_consts.sh with the content:
#!/bin/bash
TEX_FILENAME="<name of the tex file without .tex extension>" # e.g. TEX_FILENAME="main"
TEX_PATH="path/to/the/latex/repo"
Create the file src/tokens.py with the content:
from typing import Final
# my Telegram user id
ALLOWED_USER: Final[int] = -1234567890
# token of my Telegram bot
TOKEN: Final[str] = "<my bot token>"
usage
poetry shell
cd src
python bot.py
license
This project is licensed under LGPLv3.0, see also LICENSE