{"id":44300129,"url":"https://github.com/mail-ru-im/bot-golang","last_synced_at":"2026-02-11T01:50:21.407Z","repository":{"id":42450394,"uuid":"201185887","full_name":"mail-ru-im/bot-golang","owner":"mail-ru-im","description":"Golang library for Bot API","archived":false,"fork":false,"pushed_at":"2025-09-04T14:53:37.000Z","size":796,"stargazers_count":64,"open_issues_count":8,"forks_count":32,"subscribers_count":11,"default_branch":"master","last_synced_at":"2025-09-04T16:37:00.182Z","etag":null,"topics":["agent","bot","bot-api","go","golang","icq","icqnew","myteam"],"latest_commit_sha":null,"homepage":"","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/mail-ru-im.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","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":"2019-08-08T05:40:45.000Z","updated_at":"2025-09-04T14:53:41.000Z","dependencies_parsed_at":"2024-06-18T15:26:52.096Z","dependency_job_id":"f6895489-cff3-450a-8ee1-11a4a91fde5c","html_url":"https://github.com/mail-ru-im/bot-golang","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"purl":"pkg:github/mail-ru-im/bot-golang","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mail-ru-im%2Fbot-golang","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mail-ru-im%2Fbot-golang/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mail-ru-im%2Fbot-golang/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mail-ru-im%2Fbot-golang/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mail-ru-im","download_url":"https://codeload.github.com/mail-ru-im/bot-golang/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mail-ru-im%2Fbot-golang/sbom","scorecard":{"id":612805,"data":{"date":"2025-08-11","repo":{"name":"github.com/mail-ru-im/bot-golang","commit":"4d4de6bc690e6ba1c5b6e8c0557d0be590d1289f"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":4.1,"checks":[{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Code-Review","score":7,"reason":"Found 8/11 approved changesets -- score normalized to 7","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/go.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/go.yml:18: update your workflow using https://app.stepsecurity.io/secureworkflow/mail-ru-im/bot-golang/go.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/go.yml:21: update your workflow using https://app.stepsecurity.io/secureworkflow/mail-ru-im/bot-golang/go.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/go.yml:32: update your workflow using https://app.stepsecurity.io/secureworkflow/mail-ru-im/bot-golang/go.yml/master?enable=pin","Info:   0 out of   2 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   1 third-party GitHubAction dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 29 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-21T03:04:08.063Z","repository_id":42450394,"created_at":"2025-08-21T03:04:08.063Z","updated_at":"2025-08-21T03:04:08.063Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29325050,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-11T00:34:26.354Z","status":"ssl_error","status_checked_at":"2026-02-11T00:34:09.494Z","response_time":65,"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":["agent","bot","bot-api","go","golang","icq","icqnew","myteam"],"created_at":"2026-02-11T01:50:20.719Z","updated_at":"2026-02-11T01:50:21.391Z","avatar_url":"https://github.com/mail-ru-im.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cimg src=\"logo_bot.png\" width=\"100\" height=\"100\"\u003e\n\n# VK Teams Bot API for Golang\n[![Go](https://github.com/mail-ru-im/bot-golang/actions/workflows/go.yml/badge.svg)](https://github.com/mail-ru-im/bot-golang/actions/workflows/go.yml)\n[![codecov](https://codecov.io/github/mail-ru-im/bot-golang/graph/badge.svg?token=0HX8DY24SR)](https://codecov.io/github/mail-ru-im/bot-golang)\n[![go.dev reference](https://img.shields.io/badge/go.dev-reference-007d9c?logo=go\u0026logoColor=white\u0026style=flat)](https://pkg.go.dev/github.com/mail-ru-im/bot-golang)\n![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)\n\n### [\u003cimg src=\"logo_msg.png\" width=\"16\"\u003e VK Teams API Specification](https://teams.vk.com/botapi/)\n\n## Getting started\n\n* Create your own bot by sending the _/newbot_ command to _Metabot_ and follow the instructions.\n    \u003eNote: a bot can only reply after the user has added it to his contact list, or if the user was the first to start a dialogue.\n* You can configure the domain that hosts your VK Teams server. When instantiating the Bot class, add the address of your domain.\n* An example of how to use the framework can be seen in _example/main.go_\n\n## Install\n```bash\ngo get github.com/mail-ru-im/bot-golang\n```\n\n## Usage\n\nCreate your own bot by sending the /newbot command to _Metabot_ and follow the instructions.\nNote a bot can only reply after the user has added it to his contacts list, or if the user was the first to start a dialogue.\n\n### Create your bot\n\n```go\npackage main\n\nimport \"github.com/mail-ru-im/bot-golang\"\n\nfunc main() {\n    bot, err := botgolang.NewBot(BOT_TOKEN)\n    if err != nil {\n        log.Println(\"wrong token\")\n    }\n\n    message := bot.NewTextMessage(\"some@mail.com\", \"text\")\n    message.Send()\n}\n```\n\n### Send and edit messages\n\nYou can create, edit and reply to messages like a piece of cake.\n\n```go\nmessage := bot.NewTextMessage(\"some@mail.com\", \"text\")\nmessage.Send()\n\nmessage.Text = \"new text\"\n\nmessage.Edit()\nmessage.Reply(\"I changed my text\")\n```\n\n### Subscribe events\n\nGet all updates from the channel. Use context for cancellation.\n\n```go\nctx, finish := context.WithCancel(context.Background())\nupdates := bot.GetUpdatesChannel(ctx)\nfor update := range updates {\n\t// your logic here\n}\n```\n\n### Passing options\n\nYou don't need this.\nBut if you do, you can override bot's API URL:\n\n```go\nbot := botgolang.NewBot(BOT_TOKEN, botgolang.BotApiURL(\"https://vkteams.com/bot/v1\"))\n```\nAnd debug all api requests and responses:\n\n```go\nbot := botgolang.NewBot(BOT_TOKEN, botgolang.BotDebug(true))\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmail-ru-im%2Fbot-golang","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmail-ru-im%2Fbot-golang","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmail-ru-im%2Fbot-golang/lists"}