**A simple bot that automatically saves your Telegram media files to your NextCloud instance. **
- Saves photos, videos, and documents from Telegram to your NextCloud
- Easy to set up and use
-
Get API credentials from my.telegram.org:
-
Get your bot token from @BotFather on Telegram
-
Clone this repository:
git clone https://github.com/kajatheepan/Telegram2NextCloud.git
cd Telegram-to-NextCloud-
Configure environment variables:
- Copy
.env.exampleto.env - Edit
.envwith your settings:
API_ID="your_api_id" # API ID from my.telegram.org API_HASH="your_api_hash" # API hash from my.telegram.org BOT_TOKEN="your_telegram_bot_token" # Your Telegram bot token from @BotFather UPLOAD_POINT="https://nextcloud.example.com/remote.php/webdav/" # Your NextCloud WebDAV URL
- Copy
-
Start the bot:
python main.py- Login to your NextCloud with
/logincommand - Send media files to the bot
- Reply to any media with
/uploadcommand - Bot will save them to your NextCloud
Open an issue if you run into problems!
Contributions are welcome! Feel free to open issues, submit pull requests, suggest features, or improve documentation.