{"id":13409468,"url":"https://github.com/yanzay/tbot","last_synced_at":"2026-03-17T22:36:08.803Z","repository":{"id":49475825,"uuid":"42319347","full_name":"yanzay/tbot","owner":"yanzay","description":"Go library for Telegram Bot API","archived":false,"fork":false,"pushed_at":"2023-12-19T22:57:51.000Z","size":2812,"stargazers_count":355,"open_issues_count":4,"forks_count":55,"subscribers_count":12,"default_branch":"master","last_synced_at":"2024-09-30T23:37:52.659Z","etag":null,"topics":["bot","golang","telegram"],"latest_commit_sha":null,"homepage":"https://yanzay.github.io/tbot-doc/","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/yanzay.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}},"created_at":"2015-09-11T16:19:25.000Z","updated_at":"2024-09-24T07:53:28.000Z","dependencies_parsed_at":"2024-01-08T14:30:51.952Z","dependency_job_id":"656ed9a7-b53f-4523-a7bb-ad6a151fa08b","html_url":"https://github.com/yanzay/tbot","commit_stats":null,"previous_names":[],"tags_count":21,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yanzay%2Ftbot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yanzay%2Ftbot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yanzay%2Ftbot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yanzay%2Ftbot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yanzay","download_url":"https://codeload.github.com/yanzay/tbot/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243593402,"owners_count":20316177,"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":["bot","golang","telegram"],"created_at":"2024-07-30T20:01:01.117Z","updated_at":"2025-12-15T09:52:01.471Z","avatar_url":"https://github.com/yanzay.png","language":"Go","funding_links":[],"categories":["Bot Building","Bot建设","Go","Third-party APIs","机器人相关","Servers","机器人相关` 构建和使用机器人的库`","第三方API","Uncategorized","\u003cspan id=\"第三方api-third-party-apis\"\u003e第三方API Third-party APIs\u003c/span\u003e","第三方 APIs"],"sub_categories":["Contents","HTTP Clients","Free e-books","Advanced Console UIs","\u003cspan id=\"高级控制台用户界面-advanced-console-uis\"\u003e高级控制台用户界面 Advanced Console UIs\u003c/span\u003e","交流","高級控制台界面","高级控制台界面"],"readme":"# tbot - Telegram Bot Server [![GoDoc](https://godoc.org/github.com/yanzay/tbot?status.svg)](https://godoc.org/github.com/yanzay/tbot) [![Go Report Card](https://goreportcard.com/badge/github.com/yanzay/tbot)](https://goreportcard.com/report/github.com/yanzay/tbot) [![GitHub Actions](https://github.com/yanzay/tbot/workflows/Test/badge.svg)](https://github.com/yanzay/tbot/actions)\n\n![logo](https://raw.githubusercontent.com/yanzay/tbot/master/logo.png)\n\n## Features\n\n- Full Telegram Bot API **4.7** support\n- **Zero** dependency\n- Type-safe API client with functional options\n- Capture messages by regexp\n- Middlewares support\n- Can be used with go modules\n- Support for external logger\n- MIT licensed\n\n## Installation\n\nWith go modules:\n\n```bash\ngo get github.com/yanzay/tbot/v2\n```\n\nWithout go modules:\n\n```bash\ngo get github.com/yanzay/tbot\n```\n\n## Support\n\nJoin [telegram group](https://t.me/tbotgo) to get support or just to say thank you.\n\n## Documentation\n\nDocumentation: [https://yanzay.github.io/tbot-doc/](https://yanzay.github.io/tbot-doc/).\n\nFull specification: [godoc](https://godoc.org/github.com/yanzay/tbot).\n\n## Usage\n\nSimple usage example:\n\n[embedmd]:# (examples/basic/main.go)\n```go\npackage main\n\nimport (\n\t\"log\"\n\t\"os\"\n\t\"time\"\n\n\t\"github.com/yanzay/tbot/v2\"\n)\n\nfunc main() {\n\tbot := tbot.New(os.Getenv(\"TELEGRAM_TOKEN\"))\n\tc := bot.Client()\n\tbot.HandleMessage(\".*yo.*\", func(m *tbot.Message) {\n\t\tc.SendChatAction(m.Chat.ID, tbot.ActionTyping)\n\t\ttime.Sleep(1 * time.Second)\n\t\tc.SendMessage(m.Chat.ID, \"hello!\")\n\t})\n\terr := bot.Start()\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n}\n```\n\n## Examples\n\nPlease take a look inside [examples](https://github.com/yanzay/tbot/tree/master/examples) folder.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyanzay%2Ftbot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyanzay%2Ftbot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyanzay%2Ftbot/lists"}