{"id":26193796,"url":"https://github.com/vauth/chatlogger","last_synced_at":"2026-04-24T20:03:41.153Z","repository":{"id":281530419,"uuid":"945550216","full_name":"Vauth/chatlogger","owner":"Vauth","description":"Telegram Private Chat Logger.","archived":false,"fork":false,"pushed_at":"2025-03-09T18:23:09.000Z","size":12,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-07-02T09:10:23.877Z","etag":null,"topics":["cloudflare","cloudflare-workers","telegram","telegram-bot-api","telegram-business-bot"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/Vauth.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}},"created_at":"2025-03-09T17:28:23.000Z","updated_at":"2025-03-09T18:23:12.000Z","dependencies_parsed_at":"2025-03-09T18:42:46.070Z","dependency_job_id":null,"html_url":"https://github.com/Vauth/chatlogger","commit_stats":null,"previous_names":["vauth/chatlogger"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Vauth/chatlogger","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Vauth%2Fchatlogger","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Vauth%2Fchatlogger/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Vauth%2Fchatlogger/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Vauth%2Fchatlogger/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Vauth","download_url":"https://codeload.github.com/Vauth/chatlogger/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Vauth%2Fchatlogger/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32238748,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-24T13:21:15.438Z","status":"ssl_error","status_checked_at":"2026-04-24T13:21:15.005Z","response_time":64,"last_error":"SSL_read: 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":["cloudflare","cloudflare-workers","telegram","telegram-bot-api","telegram-business-bot"],"created_at":"2025-03-12T01:51:48.854Z","updated_at":"2026-04-24T20:03:41.133Z","avatar_url":"https://github.com/Vauth.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Chat 🔐 Logger\nTelegram private chat logger (using telegram business chatbots API) on cloudflare workers.\n\n\u003cbr\u003e\n\n### 💭 **Why?**\n- Prevent data loss when users delete the chat for both sides.\n- Maintain an organized and searchable record of all conversations.\n\n\u003cbr\u003e\n\n## 🗂 Variables\n```javascript\nconst BOT_TOKEN = \"BOT_TOKEN\"; // Insert your bot token.\nconst BOT_WEBHOOK = \"/endpoint\"; // Let it be as it is.\nconst BOT_SECRET = \"BOT_SECRET\"; // Insert a powerful secret text (only [A-Z, a-z, 0-9, _, -] are allowed).\nconst BOT_OWNER = 123456789; // Insert your telegram account id.\n```\n\n### Setup:\n- Get `BOT_TOKEN` from [@botfather](https://t.me/botfather).\n  - Enable business mode from botfather `bot settings \u003e business mode`.\n  - Add your bot as third-party chatbot in your telegram account `settings \u003e telegram business \u003e chatbots`.\n- Change `BOT_WEBHOOK` with your preferred webhook.\n- Change `BOT_SECRET` with a powerful secret text (only `[A-Z, a-z, 0-9, _, -]` are allowed).\n- Get `BOT_OWNER` from [@idbot](https://t.me/username_to_id_bot).\n\n\u003cbr\u003e\n\n## ⚙️Deploy\n- Create a [Cloudflare](https://www.cloudflare.com/) **account**.\n- Navigate to `Workers \u0026 Pages \u003e Create \u003e Create Worker`.\n- Deploy the worker by clicking **Deploy**.\n- Edit the code by clicking **Edit Code**.\n- Upload `worker.js` into **Cloudflare**.\n- Modify the [variables](#-variables).\n- Finally, **Deploy**.\n\n[![Deploy to Cloudflare Workers](https://deploy.workers.cloudflare.com/button)](https://deploy.workers.cloudflare.com/?url=https://github.com/vauth/chatlogger)\n### Setup:\n- Once you deployed the bot on Cloudflare.\n- Check `XXX.XXXX.workers.dev/getMe` to verify your bot authorization.\n- Open `XXX.XXXX.workers.dev/registerWebhook` to register your bot webhook.\n- Now your bot will log every type of private message.\n\n\u003cbr\u003e\n\n## 🔗 Contributing\nContributions are welcome! Feel free to submit a pull request or report an issue.\n\n\u003cbr\u003e\n\n## 🔎 License\n```\nMIT License\n\nCopyright (c) 2025 Vauth\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvauth%2Fchatlogger","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvauth%2Fchatlogger","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvauth%2Fchatlogger/lists"}