{"id":27979358,"url":"https://github.com/fumblerill/obsidian-telegram-bot","last_synced_at":"2026-04-17T01:32:07.478Z","repository":{"id":291882997,"uuid":"979097174","full_name":"fumblerill/obsidian-telegram-bot","owner":"fumblerill","description":"Telegram bot that saves messages as Markdown files and pushes them to a Git repository — for use with Obsidian.","archived":false,"fork":false,"pushed_at":"2025-06-04T04:32:40.000Z","size":24,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-04T08:55:26.917Z","etag":null,"topics":["git","inbox","markdown","notes","obsidian","productivity","python","telegram-bot"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fumblerill.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-05-07T01:55:07.000Z","updated_at":"2025-06-04T04:32:41.000Z","dependencies_parsed_at":"2025-05-07T03:19:00.065Z","dependency_job_id":"7757310e-a30a-4fda-9b73-5064085a2bdd","html_url":"https://github.com/fumblerill/obsidian-telegram-bot","commit_stats":null,"previous_names":["fumblerill/obsidian-telegram-bot"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/fumblerill/obsidian-telegram-bot","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fumblerill%2Fobsidian-telegram-bot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fumblerill%2Fobsidian-telegram-bot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fumblerill%2Fobsidian-telegram-bot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fumblerill%2Fobsidian-telegram-bot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fumblerill","download_url":"https://codeload.github.com/fumblerill/obsidian-telegram-bot/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fumblerill%2Fobsidian-telegram-bot/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31911464,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-16T18:22:33.417Z","status":"ssl_error","status_checked_at":"2026-04-16T18:21:47.142Z","response_time":69,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["git","inbox","markdown","notes","obsidian","productivity","python","telegram-bot"],"created_at":"2025-05-08T02:52:29.688Z","updated_at":"2026-04-17T01:32:07.469Z","avatar_url":"https://github.com/fumblerill.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Obsidian Inbox Bot\n\nA minimal working Python bot for Telegram that saves messages as Markdown files and pushes them to Git.\n\nBuilt with only one dependency: [`python-telegram-bot`](https://github.com/python-telegram-bot/python-telegram-bot)\n\n---\n\n## ✨ Features\n\n- Accepts messages via Telegram  \n- Saves each message as a Markdown `.md` file  \n- Filenames are based on the first 5 words  \n- Automatically commits and pushes to a Git repository (via SSH)  \n- Dockerized for easy deployment\n\n---\n\n## 🚀 Deploy Instructions\n\n1. **Clone the repository** to your server:\n   ```bash\n   git clone git@github.com:yourname/obsidian-telegram-bot.git\n   cd obsidian-telegram-bot\n   ```\n\n2. **Copy your SSH key** (with write access to the target notes repository) to your server.  \n   Example path: `/home/user/.ssh/obsidian_bot_ssh`\n\n3. **Create and edit the `.env` file**:\n   ```bash\n   cp .env.example .env\n   ```\n   Fill in the required variables:\n   ```\n   BOT_TOKEN=...\n   ALLOWED_IDS=...\n   GIT_REPO_URL=git@github.com:yourname/obsidian-inbox.git\n   GIT_SSH_KEY_PATH=/home/user/.ssh/obsidian_bot_ssh\n   ```\n\n4. **Edit the Dockerfile** if needed:\n   - To switch between bot languages:\n     ```dockerfile\n     CMD [\"python\", \"-u\", \"bot.py\"]      # English version\n     # CMD [\"python\", \"-u\", \"bot.ru.py\"] . # Russian version\n     ```\n   - Set Git commit identity:\n     ```dockerfile\n     RUN git config --global user.name \"Your Name\"\n     RUN git config --global user.email \"you@example.com\"\n     ```\n\n5. **Build and run** the container:\n   ```bash\n   docker-compose up --build -d\n   ```\n\n---\n\n## 🛠 Environment Variables\n\n| Variable            | Description                                      |\n|---------------------|--------------------------------------------------|\n| `BOT_TOKEN`         | Your Telegram bot token                          |\n| `ALLOWED_IDS`       | Comma-separated list of allowed Telegram user IDs |\n| `GIT_SSH_KEY_PATH`  | Absolute path to your private SSH key (on host)  |\n\n---\n\n## 📁 File Structure\n\nMarkdown files are stored in the `InboxIdeas/` folder (cloned from your Git repository).  \nEach message becomes a separate `.md` file named after its first 5 words (or \"idea\" if empty).\n\n\u003e 🧠 Make sure that your Obsidian vault is also connected to the same Git repository.\n\u003e Run `git pull` inside Obsidian to receive incoming idea files.\n\nTo remove processed idea files, just delete them on GitHub (via the web UI or manually) — they won't be recreated.\n\n---\n\n## 🔐 Git Setup\n\n- The Git repository is cloned at build time using SSH.\n- Your SSH key must have write access.\n- You can edit Git username/email inside the Dockerfile.\n\n---\n\n## 📜 License\n\nMIT — use it freely.\n\n---\n\n## 🤖 Example\n\n**User sends:**  \n`Try building a personal knowledge bot...`\n\nSaved as file:  \n`try_building_a_personal_knowledge.md`\n\nFile contents:\n\n\\`\\`\\`markdown\n# Try building a personal knowledge bot...\n\n*🕒 2025-05-07 13:45*\n\nTry building a personal knowledge bot...\n\\`\\`\\`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffumblerill%2Fobsidian-telegram-bot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffumblerill%2Fobsidian-telegram-bot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffumblerill%2Fobsidian-telegram-bot/lists"}