{"id":13617506,"url":"https://github.com/kael-k/telegram-webdav-integration-bot","last_synced_at":"2026-01-17T04:03:21.020Z","repository":{"id":38380059,"uuid":"492566065","full_name":"kael-k/telegram-webdav-integration-bot","owner":"kael-k","description":"Telegram bot consumer to send photo, videos and documents to webdav directory","archived":false,"fork":false,"pushed_at":"2022-07-02T19:43:47.000Z","size":49,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-08-01T20:47:45.330Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kael-k.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-05-15T18:09:01.000Z","updated_at":"2024-04-24T13:49:31.000Z","dependencies_parsed_at":"2022-08-25T02:11:50.187Z","dependency_job_id":null,"html_url":"https://github.com/kael-k/telegram-webdav-integration-bot","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kael-k%2Ftelegram-webdav-integration-bot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kael-k%2Ftelegram-webdav-integration-bot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kael-k%2Ftelegram-webdav-integration-bot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kael-k%2Ftelegram-webdav-integration-bot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kael-k","download_url":"https://codeload.github.com/kael-k/telegram-webdav-integration-bot/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223621816,"owners_count":17174760,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-01T20:01:42.832Z","updated_at":"2026-01-17T04:03:20.997Z","avatar_url":"https://github.com/kael-k.png","language":"Python","funding_links":[],"categories":["Python"],"sub_categories":[],"readme":"# Telegram WebDAV Integration Bot\n[![Python 3.10](https://img.shields.io/badge/python-3.10-blue?style=flat-square\u0026logo=python)](LICENSE)\n[![GPLv3 License](https://img.shields.io/badge/license-GPLv3-green?style=flat-square\u0026logo=legal)](LICENSE)\n[![Code style: black](https://img.shields.io/badge/black-v22.3.0-orange?style=flat-square)](https://github.com/psf/black)\n[![Code style: mypy](https://img.shields.io/badge/mypy-v0.950-orange?style=flat-square)](https://github.com/python/mypy)\n[![Code style: flake8](https://img.shields.io/badge/flake8-3.9.0-orange?style=flat-square)](https://github.com/PyCQA/flake8)\n\n\nA Telegram bot that scrape from chats images, videos and files and send them to a WebDAV server.\n\nAn already built container image is available on [Docker Hub](https://hub.docker.com/r/kaelk/telegram-webdav-integration-bot).\n\n## Usage\nFirst, you'll need to setup a bot on telegram https://core.telegram.org/bots#3-how-do-i-create-a-bot.\n\nAfter you generated the token, you can run the software via podman/docker (or your preferred container runtime):\n```\npodman run \\\n    -e TELEGRAM_BOT_TOKEN=\"\u003cmy-sercet-token\u003e\" \\\n    -e WEBDAV_PATH_URL \"\u003cmy webdav address: ex https://webdav.local/myfolder\u003e\" \\\n    -e TELEGRAM_BOT_CHAT_IDS=\"[\u003cchatid1\u003e[;\u003cchatid2\u003e;\u003c...\u003e;\u003cchatidn\u003e]]\" \\\n    -e WEBDAV_USERNAME \"\u003cwebdav-username\u003e\" \\\n    -e WEBDAV_PASSWORD \"\u003cwebdav-password\u003e\" \\\n    -e TELEGRAM_FILE_NAMING_CONVENTION \"date+type\" \\\n    -e TELEGRAM_FILE_NAMING_INCLUDE_EXTENSION \"1\" \\\n    -e ENABLE_DEBUG \"(0|1)\" \\\n    kaelk/telegram-webdav-integration-bot\n```\n\n* `ENABLE_DEBUG` by default is \"0\", i you do not need debug you can omit the env\n* if your WebDAV service doesn't need authn, omit envs `WEBDAV_USERNAME` and `WEBDAV_PASSWORD`\n* also `TELEGRAM_BOT_CHAT_IDS` is optional, however this means that **EVERYONE** can send a message to the bot\nand they will **ALL** be processed\n* `TELEGRAM_FILE_NAMING_CONVENTION` and `TELEGRAM_FILE_NAMING_INCLUDE_EXTENSION` are for generating names\nfor attachments that doesn't have one:\n  * `TELEGRAM_FILE_NAMING_CONVENTION`: which method use to generate file name, valid values:\n    * `file-unique-id`: use telegram file unique id\n    * `random-uuid`: use a random UUID4\n    * `date`: use datetime\n    * `date+type` (default): use datetime ad append the file type (\"image\", \"video\"...)\n  * `TELEGRAM_FILE_NAMING_INCLUDE_EXTENSION` (default '1') try to automatically guess a valid extension\n\n## Build\n\n### Container\n\nTo build the bot in container:\n```\npodman build . -t telegram-webdav-integration-bot\n```\n\n### Source\nAll dependencies are listed in `requirements.txt`.\nIf you want to contribute, you'll also need to install `pre-commit` to check the code quality.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkael-k%2Ftelegram-webdav-integration-bot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkael-k%2Ftelegram-webdav-integration-bot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkael-k%2Ftelegram-webdav-integration-bot/lists"}