This tool allows you to extract and download all images from a public or private Telegram channel using Python and the Telethon library.
- Extracts photos/images from any Telegram channel or group you have access to.
- Automatically saves images in a local folder.
- Works with public and private channels (if you're a member).
- Simple and lightweight script.
- Python 3.6+
- Telegram API credentials (Get from my.telegram.org)
- Telethon Python package
pip install telethon- Go to https://my.telegram.org
- Log in with your Telegram number
- Click on API Development Tools
- Note down your:
- API ID
- API Hash
python image_extractor.py- All images are saved to a local folder named
downloaded_images/ - Files are named using the message ID for uniqueness