{"id":39359749,"url":"https://github.com/spyzhov/tg","last_synced_at":"2026-01-18T02:40:39.037Z","repository":{"id":57551941,"uuid":"193083370","full_name":"spyzhov/tg","owner":"spyzhov","description":"Telegram Bot API","archived":false,"fork":false,"pushed_at":"2019-09-06T08:19:41.000Z","size":294,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-06-20T17:37:52.891Z","etag":null,"topics":["golang","golang-library","golang-package","telegram","telegram-bot","telegram-bot-api"],"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/spyzhov.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":"2019-06-21T10:59:42.000Z","updated_at":"2022-08-15T15:10:53.000Z","dependencies_parsed_at":"2022-09-26T18:41:38.796Z","dependency_job_id":null,"html_url":"https://github.com/spyzhov/tg","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/spyzhov/tg","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spyzhov%2Ftg","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spyzhov%2Ftg/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spyzhov%2Ftg/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spyzhov%2Ftg/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/spyzhov","download_url":"https://codeload.github.com/spyzhov/tg/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spyzhov%2Ftg/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28526645,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-18T00:39:45.795Z","status":"online","status_checked_at":"2026-01-18T02:00:07.578Z","response_time":98,"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":["golang","golang-library","golang-package","telegram","telegram-bot","telegram-bot-api"],"created_at":"2026-01-18T02:40:38.959Z","updated_at":"2026-01-18T02:40:39.021Z","avatar_url":"https://github.com/spyzhov.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Telegram bot API on Golang\n\n[![GoDoc](https://godoc.org/github.com/spyzhov/tg?status.svg)](https://godoc.org/github.com/spyzhov/tg)\n\nImplement golang interface for [Telegram Bot API](https://core.telegram.org/bots/api).\n\nImplemented all methods up to: May 31, 2019 Bot API 4.3\n\n# API\n\nAll documentation about Bot.API you can find at [API.md](API.md)\n\n# Examples\n\nAll examples are at: [example](example/) dir.\n\n# Generator\n\nGenerates API using [`generator.py`](generator.py): [requirements](requirements.txt) listed at file, Python3.7 required.\n\n## Simple use\n\n```go\npackage main\n\nimport (\n\t\"context\"\n\t\"fmt\"\n\t. \"github.com/spyzhov/tg\"\n\t\"os\"\n\t\"strconv\"\n)\n\nfunc main() {\n\tbot := New(os.Getenv(\"TOKEN\"))\n\tchatId, err := strconv.Atoi(os.Getenv(\"CHAT_ID\"))\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\tuser, err := bot.GetMe(context.Background())\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\tresult, err := bot.SendMessage(context.Background(), \u0026SendMessageRequest{\n\t\tChatId: chatId,\n\t\tText:   \"Hello, my name is \" + user.Username,\n\t})\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\tfmt.Printf(\"%#v\\n\", result)\n\tif result.From != nil {\n\t\tfmt.Printf(\"From: %#v\\n\", result.From)\n\t}\n\tfmt.Printf(\"Chat: %#v\\n\", result.Chat)\n}\n\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspyzhov%2Ftg","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fspyzhov%2Ftg","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspyzhov%2Ftg/lists"}