Read the full tutorial in my medium.
Check the bot in here.
This bot will send you a random dog image when you type /bop command.
/bop
Install the library.
pip3 install python-telegram-bot
Run the program.
python3 main.py