This script automatically saves timed (self-destructing) photos and other media from Telegram chats before they disappear. It uses the Telethon library to interact with the Telegram API and download media files, saving them locally and forwarding them to your Saved Messages as original files without compression.
- Downloads timed/self-destructing media from Telegram chats.
- Saves downloaded media to the
downloads/folder. - Forwards downloaded media to your Saved Messages as original files (no compression).
- Supports documents, photos, and videos.
Before running the script, make sure you have:
- Python 3.9+
- Python package
telethon
pip install telethon- Clone the repository:
git clone https://github.com/DevURANIUM/Saveit.git
cd Saveit- Run the
run.shscript (Linux/macOS) orrun.bat(Windows):
chmod +x run.sh
./run.shor on Windows:
run.batThe script will:
- Create a
.envfile if it does not exist. - Ask for your Telegram API credentials.
- Pull the latest updates from Git.
- Install or update Telethon.
- Run
Saveit.py.
- Manually configure API credentials (optional):
Open the .env file and add:
API_ID=YOUR_API_ID
API_HASH=YOUR_API_HASH
HANDLER=.saveit # Or change to another prefix
- Run the script:
python3 Saveit.py- Save media:
- Reply to any media in Telegram with
.saveit(or your chosen handler). - The media will be saved to the
downloads/folder and forwarded to your Saved Messages as original files.
- Run the script:
python3 Saveit.py- In a Telegram chat, reply to a media message with
.saveitto save it locally and forward it without compression.
- Client Setup: Initializes the Telegram client using the provided API credentials.
- Command Listener: Listens for
.saveitcommands in chats. - Media Handling: Downloads media and forwards it to Saved Messages as original files.
- Telethon - A Python library for interacting with the Telegram API.
This project is licensed under the MIT License.
For any issues or suggestions, contact:
Support the project:
- BTC:
bc1qcclcp574hnznm0nmdzzf0ta7366svjskttqks3 - LTC:
ltc1qcrkelw38gjrmg0ptjy2nshqej622kp76het7q0 - XRP:
rPoK5SBChFPqEiQv1W97LW6FKoJZLipDVQ - XLM:
GDMUQREEZNBSTQOT5BV7MYEMXJFV3CYRZXUVOYCTIUZTHUWPHLVASFVD - TON:
UQAJH2N0pqpvC9YN841w5NH1dCN9Lakwkpjvoy7vXf-vfqgv - TRON:
TXJqhhwvkrTdnf5HReZf55hEzZuxjto3R4 - USDT(BEP20):
0x1591036c4bD05b046532B65Df939fcd7824E18c7