{"id":24395213,"url":"https://github.com/woozymasta/notify","last_synced_at":"2026-04-21T23:04:31.320Z","repository":{"id":272843784,"uuid":"917932622","full_name":"WoozyMasta/notify","owner":"WoozyMasta","description":"The notify package provides an easy-to-use interface for sending, editing, and deleting notifications across multiple messaging platforms, including Discord and Telegram.","archived":false,"fork":false,"pushed_at":"2025-01-16T23:19:49.000Z","size":8,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-12-31T14:58:25.296Z","etag":null,"topics":["discord","golang","telegram"],"latest_commit_sha":null,"homepage":"https://pkg.go.dev/github.com/woozymasta/notify","language":"Go","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/WoozyMasta.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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-01-16T23:10:15.000Z","updated_at":"2025-05-16T10:49:54.000Z","dependencies_parsed_at":"2025-01-17T00:33:32.710Z","dependency_job_id":null,"html_url":"https://github.com/WoozyMasta/notify","commit_stats":null,"previous_names":["woozymasta/notify"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/WoozyMasta/notify","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WoozyMasta%2Fnotify","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WoozyMasta%2Fnotify/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WoozyMasta%2Fnotify/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WoozyMasta%2Fnotify/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/WoozyMasta","download_url":"https://codeload.github.com/WoozyMasta/notify/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WoozyMasta%2Fnotify/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32113748,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-21T11:25:29.218Z","status":"ssl_error","status_checked_at":"2026-04-21T11:25:28.499Z","response_time":128,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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":["discord","golang","telegram"],"created_at":"2025-01-19T20:26:33.079Z","updated_at":"2026-04-21T23:04:31.303Z","avatar_url":"https://github.com/WoozyMasta.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Notify\n\nThe `notify` package provides an easy-to-use interface for sending, editing,\nand deleting notifications across multiple messaging platforms, including\nDiscord and Telegram. It abstracts the underlying API interactions, allowing\ndevelopers to integrate messaging functionalities seamlessly into their Go\napplications.\n\n## Features\n\n* **Discord Integration**:\n  Send, edit, and delete messages via Discord webhooks.\n* **Telegram Integration**:\n  Send, edit, and delete messages using the Telegram Bot API.\n* **Unified Interface**:\n  Consistent methods for different platforms.\n* **Markdown Support**:\n  Utilize Markdown for message formatting where supported.\n\n## Installation\n\nTo install the `notify` package, use `go get`:\n\n```bash\ngo get github.com/woozymasta/notify\n```\n\n## Usage\n\n### Discord\n\n```go\npackage main\n\nimport (\n  \"fmt\"\n  \"log\"\n\n  \"github.com/woozymasta/notify\"\n)\n\nfunc main() {\n  // Initialize Discord notifier\n  discordWebhookID := \"your_discord_webhook_id\"\n  discordWebhookToken := \"your_discord_webhook_token\"\n  discordClient := notify.NewDiscord(discordWebhookID, discordWebhookToken)\n\n  // Send a message\n  messageID, err := discordClient.Send(\"Hello, **Discord**!\")\n  if err != nil {\n    log.Fatalf(\"Failed to send Discord message: %v\", err)\n  }\n\n  // Edit the message\n   if err = discordClient.Edit(messageID, \"Bye, *Discord*!\"); err != nil {\n    log.Fatalf(\"Failed to edit Discord message: %v\", err)\n  }\n\n  // Delete the message\n  if err = discordClient.Delete(messageID); err != nil {\n    log.Fatalf(\"Failed to delete Discord message: %v\", err)\n  }\n}\n```\n\n### Telegram\n\n```go\npackage main\n\nimport (\n  \"fmt\"\n  \"log\"\n\n  \"github.com/woozymasta/notify\"\n)\n\nfunc main() {\n  // Initialize Telegram notifier\n  telegramBotToken := \"your_telegram_bot_token\"\n  telegramChatID := \"your_telegram_chat_id\"\n  telegramClient := notify.NewTelegram(telegramBotToken, telegramChatID)\n\n  // Send a message\n  messageID, err := telegramClient.Send(\"Hello, *Telegram*!\")\n  if err != nil {\n    log.Fatalf(\"Failed to send Telegram message: %v\", err)\n  }\n\n  // Edit the message\n  if err = telegramClient.Edit(messageID, \"Bye, *Telegram*!\"); err != nil {\n    log.Fatalf(\"Failed to edit Telegram message: %v\", err)\n  }\n\n  // Delete the message\n  if err = telegramClient.Delete(messageID); err != nil {\n    log.Fatalf(\"Failed to delete Telegram message: %v\", err)\n  }\n}\n```\n\n## Testing\n\nEnsure you have the necessary environment variables set before running tests:\n\n* `DISCORD_ID`: Discord webhook ID.\n* `DISCORD_TOKEN`: Discord webhook token.\n* `TELEGRAM_ID`: Telegram chat ID.\n* `TELEGRAM_TOKEN`: Telegram bot token.\n\nRun the tests using:\n\n```bash\ngo test ./...\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwoozymasta%2Fnotify","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwoozymasta%2Fnotify","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwoozymasta%2Fnotify/lists"}