This the simple Python bot which generate QR Code in png format
Use Python 3 to install and run the Bot.
pip3 install pyTelegramBotAPI,pyqrcode,pypng
python3 bot.py
pyTelegramBotAPI : to setting telegram bot
pyqrcode: to generate QR code
pypng : to get image in png format