This Telegram bot shows how easy it is to decode barcodes.
Install ZBar library, it is used for detecting and decoding barcodes of different types.
macOS
brew install zbar
Ubuntu
sudo apt-get install libzbar-dev libzbar0
Next install bot dependencies
- aiogram - asynchronous framework for Telegram Bot API
- PIL - package to work with images
- pyzbar - package to work with ZBar library
pip install -r requirements.txt