A console script to download media from a Telegram chat, channel, or group.
- Download chat media: images, videos, documents, voice messages (saved in subfolders)
- Download current profile photo or all profile photos
- Download stories:
- Active stories only
- All stories (active + pinned)
- Support download self-destructing media.
- Support download view-only and restricted media.
pip install -r requirements.txtapi_id = 123456
api_hash = 'your_api_hash'
session_name = 'myaccount.session' # optional
device_model = 'iPhone X' # optionalGet api_id/api_hash from https://my.telegram.org/auth?to=apps.
python main.pyMenu options:
- 1: Download chat media
- 2: Download current profile photo
- 3: Download all profile photos
- 4: Download active stories
- 5: Download all stories (active + pinned)
- 6: Close
Downloads are saved under Downloads/<chat_name>/ with subfolders:
- images/, videos/, documents/, voice/, stories/, profile/
main.py: login + menucore/client.py: Telethon client factorycore/utils.py: helpers (paths, progress)core/media/chat.py: chat media downloadercore/media/profile.py: profile photoscore/media/story.py: stories (active, all)
MIT. See LICENSE.