https://github.com/kajatheepan/telegram2nextcloud
A Python-based Telegram bot that saves your Telegram media files to your NextCloud storage using WebDAV integration. Simple to configure and easy to use.
https://github.com/kajatheepan/telegram2nextcloud
aiohttp asyncio cloud-storage file-upload nextcloud python telegram-bot webdav
Last synced: 2 months ago
JSON representation
A Python-based Telegram bot that saves your Telegram media files to your NextCloud storage using WebDAV integration. Simple to configure and easy to use.
- Host: GitHub
- URL: https://github.com/kajatheepan/telegram2nextcloud
- Owner: kajatheepan
- Created: 2025-06-29T14:08:55.000Z (12 months ago)
- Default Branch: main
- Last Pushed: 2025-07-01T18:12:54.000Z (12 months ago)
- Last Synced: 2025-07-01T19:24:54.696Z (12 months ago)
- Topics: aiohttp, asyncio, cloud-storage, file-upload, nextcloud, python, telegram-bot, webdav
- Language: Python
- Homepage: https://t.me/Tg2Dms_bot
- Size: 31.3 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Telegram to NextCloud Bot 🤖
**A simple bot that automatically saves your Telegram media files to your NextCloud instance.
**
## What it does
- Saves photos, videos, and documents from Telegram to your NextCloud
- Easy to set up and use
## Setup
1. Get API credentials from [my.telegram.org](https://my.telegram.org):
2. Get your bot token from [@BotFather](https://t.me/BotFather) on Telegram
3. Clone this repository:
```bash
git clone https://github.com/kajatheepan/Telegram2NextCloud.git
cd Telegram-to-NextCloud
```
4. Configure environment variables:
- Copy `.env.example` to `.env`
- Edit `.env` with your settings:
```env
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
```
5. Start the bot:
```bash
python main.py
```
## Usage
1. Login to your NextCloud with `/login` command
2. Send media files to the bot
3. Reply to any media with `/upload` command
4. Bot will save them to your NextCloud
## Need Help?
Open an issue if you run into problems!
## Contributing
Contributions are welcome! Feel free to open issues, submit pull requests, suggest features, or improve documentation.