Qr code generator bot for Telegram messenger
-
Clone repository
git clone https://github.com/awitwicki/fastqr_bot
-
Insert your
TELEGRAM BOT TOKEN
inmain.py line 10
-
Execute
pip(3) install -r requirements.txt
to install all dependencies. -
Since 2020, python
PIL
library has changed and we should edit some code:You need to find file
{pythondir}\Lib\site-packages\MyQr\myqr.py
and modify 85th line. Just addresample=Image.BOX
toqr.resize(...)
function:line 85:
qr.resize((qr.size[0]*3, qr.size[1]*3), resample=Image.BOX).save(qr_name)
Run main.py
in Python
- Python >= 3.6 (using
f""
strings ) - python-telegram-bot
- MyQr
Also You can setup systemd service from qr_bot.service
template.