{"id":21002776,"url":"https://github.com/frostwalk/telegram-bot-notifier","last_synced_at":"2026-02-07T22:35:28.431Z","repository":{"id":240353413,"uuid":"802194000","full_name":"FrostWalk/telegram-bot-notifier","owner":"FrostWalk","description":"Super simple telegram bot that take text as argument and send it to a chat using telegram api.","archived":false,"fork":false,"pushed_at":"2025-01-13T12:04:14.000Z","size":113,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-23T22:48:20.297Z","etag":null,"topics":["backrest-restic","restic","telegram"],"latest_commit_sha":null,"homepage":"","language":"Rust","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/FrostWalk.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":"2024-05-17T17:49:27.000Z","updated_at":"2024-10-28T11:15:01.000Z","dependencies_parsed_at":"2024-05-18T08:33:01.740Z","dependency_job_id":"f6146dbc-631c-469a-b965-a5a3785fffc2","html_url":"https://github.com/FrostWalk/telegram-bot-notifier","commit_stats":null,"previous_names":["frostwalk/telegram-bot-notifier"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/FrostWalk/telegram-bot-notifier","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FrostWalk%2Ftelegram-bot-notifier","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FrostWalk%2Ftelegram-bot-notifier/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FrostWalk%2Ftelegram-bot-notifier/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FrostWalk%2Ftelegram-bot-notifier/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/FrostWalk","download_url":"https://codeload.github.com/FrostWalk/telegram-bot-notifier/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FrostWalk%2Ftelegram-bot-notifier/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29211127,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-07T22:22:11.602Z","status":"ssl_error","status_checked_at":"2026-02-07T22:22:10.684Z","response_time":63,"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":["backrest-restic","restic","telegram"],"created_at":"2024-11-19T08:19:55.856Z","updated_at":"2026-02-07T22:35:28.409Z","avatar_url":"https://github.com/FrostWalk.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Telegram Bot Notifier\n\nThis is a very simple Telegram bot that sends any argument passed from the command line to a designated chat using the Telegram API. It uses the `teloxide` library.\nIt is intended to be used inside an already existing Alpine container without modifying the image, so it's statically compiled with target musl. \n\n## Overview\n\nThe bot is designed to be used for receiving notifications on Telegram for backups generated by the fantastic piece of software\n[**Restic**](https://github.com/restic/restic), as Restic does not natively support Telegram as a notification medium.\n\n## Usage\n\nTo send a message using the bot, use the following command:\n\n```sh\nTOKEN=\u003cyour-telegram-bot-token\u003e CHAT_ID=\u003cyour-chat-id\u003e ./target/release/\u003cyour-bot-executable\u003e \"Your message here\"\n```\n\nReplace `\u003cyour-telegram-bot-token\u003e` with your actual bot token and `\u003cyour-chat-id\u003e` with the ID of the chat you want to send messages to. Replace `\u003cyour-bot-executable\u003e` with the name of the executable file generated by Cargo.\n\nFor example:\n\n```sh\nTOKEN=123456:ABC-DEF1234ghIkl-zyx57W2v1u123ew11 CHAT_ID=000000000 ./target/release/telegram_bot \"Test message from Restic.\"\n```\n\n## Environment Variables\n\n- `TOKEN`: The token for your Telegram bot.\n- `CHAT_ID`: The ID of the chat where the bot will send messages.\n\n## Example Use Case\n\nThis bot is ideal for use with backup notifications from [**Restic**](https://github.com/restic/restic), personally I use\n[**Backrest**](https://github.com/garethgeorge/backrest) as web-ui for managing and configuring Restic.\nsince Backrest is deployed as a container, I needed to create a dependency-free executable that I could mount so that \nafter the backups are finished, Restic can invoke it passing the result as argument.\n\n## License\n\nThis project is licensed under the MIT License. See the [LICENSE](LICENSE) file for more details.\n\n## Acknowledgements\n- [**Restic**](https://github.com/restic/restic) for being an awesome backup program.\n- [**Backrest**](https://github.com/garethgeorge/backrest) to make it so much easier to manage and configure Restic.\n- [**Teloxide**](https://github.com/teloxide/teloxide) for providing the Rust bindings for the Telegram Bot API.\n- [**Tokio**](https://tokio.rs/) for providing an amazing library for multithreading.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffrostwalk%2Ftelegram-bot-notifier","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffrostwalk%2Ftelegram-bot-notifier","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffrostwalk%2Ftelegram-bot-notifier/lists"}