{"id":43946358,"url":"https://github.com/bots-go-framework/bots-api-telegram","last_synced_at":"2026-02-07T03:03:58.664Z","repository":{"id":57501229,"uuid":"57453594","full_name":"bots-go-framework/bots-api-telegram","owner":"bots-go-framework","description":"Go library for Telegram Messenger Bot API used by https://github.com/bots-go-framework","archived":false,"fork":false,"pushed_at":"2025-12-26T21:47:35.000Z","size":2239,"stargazers_count":7,"open_issues_count":2,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-12-28T11:57:42.548Z","etag":null,"topics":["bot","bot-api","go","golang","telegram","telegram-bot","telegram-bot-api"],"latest_commit_sha":null,"homepage":"https://debtstracker.io/","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/bots-go-framework.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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2016-04-30T17:18:32.000Z","updated_at":"2025-12-26T21:46:52.000Z","dependencies_parsed_at":"2023-11-12T13:29:32.923Z","dependency_job_id":"71c2f6c5-c8df-4812-8342-6bc632f72e5a","html_url":"https://github.com/bots-go-framework/bots-api-telegram","commit_stats":null,"previous_names":["strongo/bots-api-telegram"],"tags_count":44,"template":false,"template_full_name":null,"purl":"pkg:github/bots-go-framework/bots-api-telegram","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bots-go-framework%2Fbots-api-telegram","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bots-go-framework%2Fbots-api-telegram/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bots-go-framework%2Fbots-api-telegram/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bots-go-framework%2Fbots-api-telegram/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bots-go-framework","download_url":"https://codeload.github.com/bots-go-framework/bots-api-telegram/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bots-go-framework%2Fbots-api-telegram/sbom","scorecard":{"id":248904,"data":{"date":"2025-08-11","repo":{"name":"github.com/bots-go-framework/bots-api-telegram","commit":"d3a7ebddb25bd7da2ad78c37b034e859b38e857b"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":4.9,"checks":[{"name":"Maintained","score":7,"reason":"9 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 7","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"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":"Code-Review","score":0,"reason":"Found 0/30 approved changesets -- score normalized to 0","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":"Token-Permissions","score":9,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: jobLevel 'contents' permission set to 'write': .github/workflows/ci.yml:17","Warn: no topLevel permission defined: .github/workflows/ci.yml:1"],"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":"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":"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":"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: Apache License 2.0: 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":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: third-party GitHubAction not pinned by hash: .github/workflows/ci.yml:18: update your workflow using https://app.stepsecurity.io/secureworkflow/bots-go-framework/bots-api-telegram/ci.yml/main?enable=pin","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":"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 'main'"],"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":"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":"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 1 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-17T08:06:34.533Z","repository_id":57501229,"created_at":"2025-08-17T08:06:34.533Z","updated_at":"2025-08-17T08:06:34.533Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29185120,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-07T00:44:15.062Z","status":"online","status_checked_at":"2026-02-07T02:00:07.217Z","response_time":63,"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":["bot","bot-api","go","golang","telegram","telegram-bot","telegram-bot-api"],"created_at":"2026-02-07T03:03:58.512Z","updated_at":"2026-02-07T03:03:58.648Z","avatar_url":"https://github.com/bots-go-framework.png","language":"Go","readme":"# Golang bindings for the Telegram Bot API\n\n[![Go CI](https://github.com/bots-go-framework/bots-api-telegram/actions/workflows/ci.yml/badge.svg)](https://github.com/bots-go-framework/bots-api-telegram/actions/workflows/ci.yml)\n[![Go Report Card](https://goreportcard.com/badge/github.com/bots-go-framework/bots-api-telegram)](https://goreportcard.com/report/github.com/bots-go-framework/bots-api-telegram)\n[![GoDoc](https://godoc.org/github.com/bots-go-framework/bots-api-telegram?status.svg)](http://godoc.org/github.com/bots-go-framework/bots-api-telegram)\n\nAll methods have been added, and all features should be available.\nIf you want a feature that hasn't been added yet or something is broken,\nopen an issue and I'll see what I can do.\n\nAll methods are fairly self explanatory, and reading the godoc page should\nexplain everything. If something isn't clear, open an issue or submit\na pull request.\n\nThe scope of this project is just to provide a wrapper around the API\nwithout any additional features. There are other projects for creating\nsomething with plugins and command handlers without having to design\nall that yourself.\n\nUse `github.com/go-telegram-bot-api/telegram-bot-api` for the latest\nversion, or use `gopkg.in/telegram-bot-api.v1` for the stable build.\n\n## Example\n\nThis is a very simple bot that just displays any gotten updates,\nthen replies it to that chat.\n\n```go\npackage main\n\nimport (\n\t\"log\"\n\t\"gopkg.in/telegram-bot-api.v1\"\n)\n\nfunc main() {\n\tbot, err := tgbotapi.NewBotAPI(\"MyAwesomeBotToken\")\n\tif err != nil {\n\t\tlogus.Panic(err)\n\t}\n\n\tbot.Debug = true\n\n\tlogus.Printf(\"Authorized on account %s\", bot.Self.UserName)\n\n\tu := tgbotapi.NewUpdate(0)\n\tu.Timeout = 60\n\n\tupdates, err := bot.GetUpdatesChan(u)\n\n\tfor update := range updates {\n\t\tlogus.Printf(\"[%s] %s\", update.Message.From.UserName, update.Message.Text)\n\n\t\tmsg := tgbotapi.NewMessage(update.Message.Chat.ID, update.Message.Text)\n\t\tmsg.ReplyToMessageID = update.Message.MessageID\n\n\t\tbot.Send(msg)\n\t}\n}\n```\n\nIf you need to use webhooks (if you wish to run on Google App Engine),\nyou may use a slightly different method.\n\n```go\npackage main\n\nimport (\n\t\"gopkg.in/telegram-bot-api.v1\"\n\t\"log\"\n\t\"net/http\"\n)\n\nfunc main() {\n\tbot, err := tgbotapi.NewBotAPI(\"MyAwesomeBotToken\")\n\tif err != nil {\n\t\tlogus.Fatal(err)\n\t}\n\n\tbot.Debug = true\n\n\tlogus.Printf(\"Authorized on account %s\", bot.Self.UserName)\n\n\t_, err = bot.SetWebhook(tgbotapi.NewWebhookWithCert(\"https://www.google.com:8443/\"+bot.Token, \"cert.pem\"))\n\tif err != nil {\n\t\tlogus.Fatal(err)\n\t}\n\n\tupdates, _ := bot.ListenForWebhook(\"/\" + bot.Token)\n\tgo http.ListenAndServeTLS(\"0.0.0.0:8443\", \"cert.pem\", \"key.pem\", nil)\n\n\tfor update := range updates {\n\t\tlogus.Printf(\"%+v\\n\", update)\n\t}\n}\n```\n\nIf you need, you may generate a self signed certficate, as this requires\nHTTPS / TLS. The above example tells Telegram that this is your\ncertificate and that it should be trusted, even though it is not\nproperly signed.\n\n    openssl req -x509 -newkey rsa:2048 -keyout key.pem -out cert.pem -days 3560 -subj \"//O=Org\\CN=Test\" -nodes\n\nNow that [Let's Encrypt](https://letsencrypt.org) has entered public beta,\nyou may wish to generate your free TLS certificate there.\n\n## Used by\nThis package is used in production by:\n* https://debtstracker.io/ - an app and [Telegram bot](https://t.me/DebtsTrackerBot) to track your personal debts\n\n## Frameworks that utilise this `strongo/db` package\n* [`bots-go-framework`](https://github.com/bots-go-framework) - a framework to build chat bots in Go language.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbots-go-framework%2Fbots-api-telegram","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbots-go-framework%2Fbots-api-telegram","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbots-go-framework%2Fbots-api-telegram/lists"}