{"id":26608904,"url":"https://github.com/sharpvik/alertg","last_synced_at":"2026-07-17T05:34:29.747Z","repository":{"id":283986797,"uuid":"953468341","full_name":"sharpvik/alertg","owner":"sharpvik","description":"Alert library for Telegram","archived":false,"fork":false,"pushed_at":"2025-03-23T13:53:52.000Z","size":36,"stargazers_count":6,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-29T22:56:50.883Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sharpvik.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-23T12:50:10.000Z","updated_at":"2025-03-24T03:35:58.000Z","dependencies_parsed_at":"2025-03-23T14:31:03.990Z","dependency_job_id":"1682bca4-6f8d-413e-b937-f7191e1e5f22","html_url":"https://github.com/sharpvik/alertg","commit_stats":null,"previous_names":["sharpvik/alertg"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/sharpvik/alertg","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sharpvik%2Falertg","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sharpvik%2Falertg/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sharpvik%2Falertg/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sharpvik%2Falertg/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sharpvik","download_url":"https://codeload.github.com/sharpvik/alertg/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sharpvik%2Falertg/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35569649,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-17T02:00:06.162Z","response_time":116,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2025-03-24T00:57:59.044Z","updated_at":"2026-07-17T05:34:29.725Z","avatar_url":"https://github.com/sharpvik.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# alertg\n\nGo library to issue alerts through [Telegram Messenger](https://telegram.org/).\n\n## Why\n\nIn my personal projects, I found it convenient to receive system alerts through\nTelegram. I don't have to check monitoring dashboards. Instead, updates are\ndelivered to me directly.\n\n## Get\n\n```sh\ngo get github.com/sharpvik/alertg\n```\n\n## Setup\n\n### Create the bot\n\nWe assume that [you have created a Telegram bot](https://core.telegram.org/bots/tutorial).\nYou will need its token to initialise `telebot` (see next section).\n\n### Find chat ID\n\nTo find your chat ID, send any message to your bot, then open this link in your\nbrowser:\n\n```text\nhttps://api.telegram.org/bot\u003cTOKEN\u003e/getUpdates\n                            ^^^^^^^\n         REPLACE THIS WITH YOUR SPECIFIC TELEGRAM BOT TOKEN\n```\n\nThe chat ID can be found in the resulting JSON.\n\n\u003e We support broadcasting alerts to multiple chats. If you want to do that, you\n\u003e should use the aforementioned method to get chat ID of every person wanting\n\u003e to receive system alerts.\n\n## Use\n\n```go\ntoken := \"YOUR TELEGRAM BOT TOKEN\"\nchatID := telebot.ChatID(int64(42)) // YOUR CHAT ID\nsender, _ := telebot.NewBot(telebot.Settings{Token: token})\naltg := alertg.Use(sender).Notify(chatID) // ONE OR MORE CHAT ID\naltg.Info(\"all systems operational\")\n```\n\n\u003e Example above omits error handling for brevity but you shouldn't.\n\n## Interface\n\nWe support the following alert levels (inspired by [log/slog](https://pkg.go.dev/log/slog)).\n\n```go\naltg.Debug(\"message\")\naltg.Info(\"message\")\naltg.Warn(\"message\")\naltg.Error(\"message\")\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsharpvik%2Falertg","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsharpvik%2Falertg","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsharpvik%2Falertg/lists"}