{"id":13461881,"url":"https://github.com/eternnoir/gotelebot","last_synced_at":"2026-02-03T21:17:29.654Z","repository":{"id":52964624,"uuid":"41355016","full_name":"eternnoir/gotelebot","owner":"eternnoir","description":null,"archived":false,"fork":false,"pushed_at":"2021-04-12T07:47:58.000Z","size":649,"stargazers_count":23,"open_issues_count":3,"forks_count":8,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-24T23:33:19.667Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://godoc.org/github.com/eternnoir/gotelebot","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/eternnoir.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}},"created_at":"2015-08-25T09:21:20.000Z","updated_at":"2024-05-02T00:46:53.000Z","dependencies_parsed_at":"2022-08-19T18:22:01.837Z","dependency_job_id":null,"html_url":"https://github.com/eternnoir/gotelebot","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/eternnoir/gotelebot","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eternnoir%2Fgotelebot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eternnoir%2Fgotelebot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eternnoir%2Fgotelebot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eternnoir%2Fgotelebot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/eternnoir","download_url":"https://codeload.github.com/eternnoir/gotelebot/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eternnoir%2Fgotelebot/sbom","scorecard":{"id":383712,"data":{"date":"2025-08-11","repo":{"name":"github.com/eternnoir/gotelebot","commit":"82299e7925d57a3c220a750ae1bcca3ad26868ac"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"checks":[{"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":"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":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"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":"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":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"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":"Dangerous-Workflow","score":-1,"reason":"no workflows found","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":"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":"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: GNU General Public License v2.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":"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"}}]},"last_synced_at":"2025-08-18T16:05:51.863Z","repository_id":52964624,"created_at":"2025-08-18T16:05:51.864Z","updated_at":"2025-08-18T16:05:51.864Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29057388,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-03T20:13:53.544Z","status":"ssl_error","status_checked_at":"2026-02-03T20:13:40.507Z","response_time":96,"last_error":"SSL_read: 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":[],"created_at":"2024-07-31T12:00:26.209Z","updated_at":"2026-02-03T21:17:29.635Z","avatar_url":"https://github.com/eternnoir.png","language":"Go","funding_links":[],"categories":["Libraries","一般机器人（bots）","Bots"],"sub_categories":["Go","机器人类库","Bot Libs"],"readme":"# gotelebot\n\n[![GoDoc](https://godoc.org/github.com/eternnoir/gotelebot?status.svg)](https://godoc.org/github.com/eternnoir/gotelebot)\n\nGolang (Go)  implementation for the Telegram Bot API.\n\nThis project provide a wrapper around the Telegram Bot API with golang. You can easy to ues telegram bot api\nin golang way by use this project. And gotelebot provided polling method let developer easy to get new messages.\n\nAlmost all method in Telegram bot api have been implement. \nWhile official telegram bot api update, this project will update as soon as possible.\n\n## Installation\n\n```\ngo get github.com/eternnoir/gotelebot\n```\n\n## Document\n\nFull godoc document [http://godoc.org/github.com/eternnoir/gotelebot](http://godoc.org/github.com/eternnoir/gotelebot)\n\n### Echo Bot Example\n\n```go\npackage main\n\nimport (\n\t\"fmt\"\n\t\"github.com/eternnoir/gotelebot\"\n)\n\nfunc main() {\n\t// Echo Bot example.\n\n\t// Create gotelebot instance\n\tbot := gotelebot.InitTeleBot(\"TOKEN\")\n\t// Start get new message whit goroutine and 60s timeout.\n\tgo bot.StartPolling(true, 60)\n\tgo processNewMessage(bot)\n\tprocessNewInlineQuery(bot)\n}\n\nfunc processNewMessage(bot *gotelebot.TeleBot) {\n\tnewMsgChan := bot.Messages\n\tfor {\n\t\tm := \u003c-newMsgChan // Get new messaage, when new message arrive.\n\t\tfmt.Printf(\"Get Message:%#v \\n\", m)\n\t\tif m.Text != \"\" { // Check message is text message.\n\t\t\tbot.SendMessage(int(m.Chat.Id), m.Text, nil)\n\t\t}\n\t}\n}\n\nfunc processNewInlineQuery(bot *gotelebot.TeleBot) {\n\tnewQuery := bot.InlineQuerys\n\tfor {\n\t\tq := \u003c-newQuery\n\t\tfmt.Printf(\"Get NewInlineQuery:%#v \\n\", q)\n\t\tif q.Query != \"\" {\t// Only return result when query string not empty.\n\t\t\tresult1 := types.NewInlineQueryResultArticl()\n\t\t\tresult1.Id = \"1\"\n\t\t\tresult1.Title = \"Example\"\n\t\t\tresult1.MessageText = \"Hi\" + q.Query\n\t\t\t_, err := bot.AnswerInlineQuery(q.Id, []interface{}{result1}, nil)\n\t\t\tif err != nil {\n\t\t\t\tfmt.Println(err)\n\t\t\t}\n\t\t}\n\t}\n}\n\n\n```\n\n## Telegram Bot API Support\n\n## Methods\n\n| Telegram Bot API Method | gotelebot Method     | Status      |\n|-------------------------|----------------------|-------------|\n| getMe                   | GetMe                | Supported   |\n| sendMessage             | SendMessage          | Supported   |\n| forwardMessage          | ForwardMessage       | Supported   |\n| sendPhoto               | SendPhoto            | Supported   |\n| sendAudio               | SendAudio            | Supported   |\n| sendDocument            | SendDocument         | Supported   |\n| sendSticker             | SendSticker          | Supported   |\n| sendVideo               | SendVideo            | Supported   |\n| sendVoice               | SendVoice            | Supported   |\n| sendLocation            | SendLocation         | Supported   |\n| sendChatAction          | SendChatAction       | Supported   |\n| getUserProfilePhotos    | GetUserProfilePhotos | Supported   |\n| getUpdates              | GetUpdates           | Supported   |\n| getFile                 | GetFile              | Supported   |\n| inline mode             | inline mode          | Supported   |\n\n\n\n# Change Log\n\n## 2015-10-12\n* New type ```Chat``` support. More information : https://core.telegram.org/bots/api#recent-changes\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feternnoir%2Fgotelebot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feternnoir%2Fgotelebot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feternnoir%2Fgotelebot/lists"}