{"id":16848331,"url":"https://github.com/endocrimes/endobot","last_synced_at":"2025-03-18T07:23:19.634Z","repository":{"id":146869330,"uuid":"256960969","full_name":"endocrimes/endobot","owner":"endocrimes","description":null,"archived":false,"fork":false,"pushed_at":"2020-04-22T16:29:52.000Z","size":1366,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-24T14:13:06.596Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/endocrimes.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2020-04-19T09:30:10.000Z","updated_at":"2020-04-22T16:29:55.000Z","dependencies_parsed_at":"2024-03-09T00:42:19.812Z","dependency_job_id":null,"html_url":"https://github.com/endocrimes/endobot","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/endocrimes%2Fendobot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/endocrimes%2Fendobot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/endocrimes%2Fendobot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/endocrimes%2Fendobot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/endocrimes","download_url":"https://codeload.github.com/endocrimes/endobot/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244174122,"owners_count":20410441,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":"2024-10-13T13:10:55.096Z","updated_at":"2025-03-18T07:23:19.613Z","avatar_url":"https://github.com/endocrimes.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# endobot\n\nendobot is a personal telegram bot for doing random stuff. Mostly for notifying\nme when things happen.\n\n## Running\n\n```bash\nexport JWT_SECRET=\"my-secret-key\"\nexport TELEGRAM_BOT_TOKEN=\"your-telegram-api-key\"\nexport LISTEN_ADDR=\":8080\"\n./endobot\n```\n\n## The Bot\n\n### Commands\n\n#### `/token`\n\nThis command generates a new JWT that can be used to authenticate with the bots\nAPI.\n\n## API\n\n(Sorry these docs are bad. I should use some tooling around this, but this is\njust notes for myself rn)\n\n### Authentication\n\nAll APIs require authentication. Authentication tokens can be generated by\nmessaging the Telegram bot with a `/token` command.\n\nThe API will parse tokens from two places, firstly the `Authorization` header.\nIf the `Authorization` header is empty or not present, then it will fall back to\na `token` URL Param.\n\n\n### POST /notify\n\n#### Body\n\n```json\n{\n  \"message\": \"the message contents\",\n  \"disable_notification\": false\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fendocrimes%2Fendobot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fendocrimes%2Fendobot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fendocrimes%2Fendobot/lists"}