{"id":21259938,"url":"https://github.com/madebyadem/archive.today_bot","last_synced_at":"2026-04-14T23:33:29.178Z","repository":{"id":248984625,"uuid":"830377328","full_name":"MadeByAdem/Archive.today_bot","owner":"MadeByAdem","description":"This project is a simple Telegram bot that receives URLs from users and responds with the latest archived version of the page using Archive.today. If the URL has not been archived before, the bot will provide a link to archive it.","archived":false,"fork":false,"pushed_at":"2024-11-11T19:17:20.000Z","size":8,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-10T00:03:09.494Z","etag":null,"topics":["bash","linux","python","telegram"],"latest_commit_sha":null,"homepage":"https://madebyadem.dev","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/MadeByAdem.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":"2024-07-18T06:48:52.000Z","updated_at":"2024-11-11T19:17:24.000Z","dependencies_parsed_at":null,"dependency_job_id":"e2eaa15f-2e9c-4e22-a0e9-29bd5f158fda","html_url":"https://github.com/MadeByAdem/Archive.today_bot","commit_stats":null,"previous_names":["madebyadem/archive.today_bot"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/MadeByAdem/Archive.today_bot","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MadeByAdem%2FArchive.today_bot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MadeByAdem%2FArchive.today_bot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MadeByAdem%2FArchive.today_bot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MadeByAdem%2FArchive.today_bot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MadeByAdem","download_url":"https://codeload.github.com/MadeByAdem/Archive.today_bot/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MadeByAdem%2FArchive.today_bot/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31819795,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-14T18:05:02.291Z","status":"ssl_error","status_checked_at":"2026-04-14T18:05:01.765Z","response_time":153,"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":["bash","linux","python","telegram"],"created_at":"2024-11-21T04:16:01.870Z","updated_at":"2026-04-14T23:33:29.157Z","avatar_url":"https://github.com/MadeByAdem.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Archive.today Telegram Bot\n\nThis project is a simple Telegram bot that receives URLs from users and responds with the latest archived version of the page using Archive.today. If the URL has not been archived before, the bot will provide a link to archive it.\n\n## Features\n\n- Start command with a welcome message.\n- URL detection and archiving.\n- Error handling for invalid URLs and other exceptions.\n\n## Files\n\n- `archive_bot.py`: The main script for the bot.\n- `.env.example`: An example environment file to store your Telegram bot key.\n- `archive_bot.service`: A systemd service file to run the bot as a service.\n\n## Setup\n\n### Prerequisites\n\n- Python 3.x\n- `pip` package manager\n- A Telegram bot token. You can get one by creating a bot through the [BotFather](https://core.telegram.org/bots#botfather).\n\n### Installation\n\n1. **Clone the repository:**\n    ```bash\n    git clone https://github.com/MadeByAdem/Archive.today_bot\n    cd Archive.today_bot\n    ```\n\n2. **Create a virtual environment and activate it:**\n    ```bash\n    python -m venv venv\n    source venv/bin/activate  # On Windows, use `venv\\Scripts\\activate`\n    ```\n\n3. **Install the required packages:**\n    ```bash\n    pip install -r requirements.txt\n    ```\n\n4. **Set up your environment variables:**\n\n    Copy the `.env.example` file to `.env` and replace `YOURTELEGRAMBOTKEY` with your actual bot key.\n    ```bash\n    cp .env.example .env\n    ```\n\n5. **Run the bot:**\n    ```bash\n    python archive_bot.py\n    ```\n\n### Setting up as a Systemd Service\n\n1. **Modify the service file:**\n\n    Update the `archive_bot.service` file with your actual paths:\n    ```ini\n    [Unit]\n    Description=Archive.today Bot\n    After=network.target\n\n    [Service]\n    ExecStart=/your/path/to/archive_bot/venv/bin/python /your/path/to/archive_bot/archive_bot.py\n    WorkingDirectory=/your/path/to/archive_bot\n    User=root\n    Restart=always\n\n    [Install]\n    WantedBy=multi-user.target\n    ```\n\n2. **Copy the service file to systemd:**\n    ```bash\n    sudo cp archive_bot.service /etc/systemd/system/\n    ```\n\n3. **Reload systemd and start the service:**\n    ```bash\n    sudo systemctl daemon-reload\n    sudo systemctl start archive_bot.service\n    ```\n\n4. **Enable the service to start on boot:**\n    ```bash\n    sudo systemctl enable archive_bot.service\n    ```\n\n## Usage\n\n1. Start a chat with your bot on Telegram.\n2. Use the `/start` command to receive the welcome message.\n3. Send any URL to the bot, and it will reply with the latest archived version of that URL.\n\n## Example\n\n```text\nUser: /start\nBot: Welcome to Archive.today Bot. Send a URL, and you'll receive the latest archived version of that page.\n\nUser: https://example.com\nBot: https://archive.today/newest/https://example.com\n```\t\n\n## Environment Variables\n\n- `BOTKEY`: Your Telegram bot key. This should be kept secret and never shared.\n\n## Contributing\nFeel free to submit issues or pull requests if you have suggestions for improvements or new features. Please follow the existing coding style.\n\n## License\nThis project is licensed under the Custom License. See the [LICENSE](LICENSE) file for more details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmadebyadem%2Farchive.today_bot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmadebyadem%2Farchive.today_bot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmadebyadem%2Farchive.today_bot/lists"}