{"id":13823398,"url":"https://github.com/PaulSonOfLars/gotgbot","last_synced_at":"2025-07-08T17:33:35.048Z","repository":{"id":37431612,"uuid":"103747747","full_name":"PaulSonOfLars/gotgbot","owner":"PaulSonOfLars","description":"Autogenerated Go wrapper for the telegram API. Inspired by the python-telegram-bot library.","archived":false,"fork":false,"pushed_at":"2025-04-11T19:17:19.000Z","size":1513,"stargazers_count":587,"open_issues_count":11,"forks_count":126,"subscribers_count":23,"default_branch":"v2","last_synced_at":"2025-05-16T10:08:31.009Z","etag":null,"topics":["bot","go","golang","miniapp","telegram","telegram-api","telegram-app","telegram-bot","telegram-bot-api","telegram-bots","webapp","wrapper"],"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/PaulSonOfLars.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":".github/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":"2017-09-16T11:40:51.000Z","updated_at":"2025-05-15T15:37:59.000Z","dependencies_parsed_at":"2023-02-09T19:31:22.106Z","dependency_job_id":"4a4d5bc9-8667-4348-a247-a4a767f0f5a0","html_url":"https://github.com/PaulSonOfLars/gotgbot","commit_stats":null,"previous_names":[],"tags_count":51,"template":false,"template_full_name":null,"purl":"pkg:github/PaulSonOfLars/gotgbot","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PaulSonOfLars%2Fgotgbot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PaulSonOfLars%2Fgotgbot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PaulSonOfLars%2Fgotgbot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PaulSonOfLars%2Fgotgbot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PaulSonOfLars","download_url":"https://codeload.github.com/PaulSonOfLars/gotgbot/tar.gz/refs/heads/v2","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PaulSonOfLars%2Fgotgbot/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260924538,"owners_count":23083524,"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","go","golang","miniapp","telegram","telegram-api","telegram-app","telegram-bot","telegram-bot-api","telegram-bots","webapp","wrapper"],"created_at":"2024-08-04T09:00:33.468Z","updated_at":"2025-07-08T17:33:34.718Z","avatar_url":"https://github.com/PaulSonOfLars.png","language":"Go","funding_links":[],"categories":["Go"],"sub_categories":[],"readme":"# Golang Telegram Bot library\n\nHeavily inspired by the [python-telegram-bot library](https://github.com/python-telegram-bot/python-telegram-bot), this\npackage is a code-generated wrapper for the telegram bot api. We also provide an extensions package which defines an\nupdater/dispatcher pattern to provide update processing out of the box.\n\nAll the telegram types and methods are generated from\n[a bot api spec](https://github.com/PaulSonOfLars/telegram-bot-api-spec). These are generated in the `gen_*.go` files.\n\nIf you have any questions, come find us in our [telegram support chat](https://t.me/GotgbotChat)!\n\n## Features:\n\n- All telegram API types and methods are generated from the bot api docs, which makes this library:\n    - Guaranteed to match the docs\n    - Easy to update\n    - Self-documenting (Re-uses pre-existing telegram docs)\n- Type safe; no weird interface{} logic, all types match the bot API docs.\n- No third party library bloat; only uses standard library.\n- Updates are each processed in their own go routine, encouraging concurrent processing, and keeping your bot\n  responsive.\n- Code panics are automatically recovered from and logged, avoiding unexpected downtime.\n\n## Getting started\n\nDownload the library with the standard `go get` command:\n\n```bash\ngo get github.com/PaulSonOfLars/gotgbot/v2\n```\n\n### Example bots\n\nSample bots can be found in the [samples directory](./samples).\n\nSome recommended bots to look at:\n\n- [Command Bot](./samples/commandBot): To explore basic use of commands\n- [Webhook Bot](./samples/echoWebhookBot): To set up webhooks\n- [Stateful Client Bot](./samples/statefulClientBot): To pass around shared data without global variables\n\n## Docs\n\nDocs can be found [here](https://pkg.go.dev/github.com/PaulSonOfLars/gotgbot/v2).\n\n## Contributing\n\nContributions are welcome! More information on contributing can be found [here](.github/CONTRIBUTING.md).\n\n### Regenerating the generated code.\n\nIf you've made changes to the code generation, you will probably need to regenerate the library code.\nThis can be done simply by running `go generate` from the repo root. Running this will generate the code from the\nspecification repo at the commit pinned in the `spec_commit` file.\n\nTo upgrade the commit in `spec_commit` and regenerate your code, simply run `GOTGBOT_UPGRADE=true go generate`.\nThis will fetch the latest commit sha, and regenerate the library against that, giving you the latest version\navailable.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FPaulSonOfLars%2Fgotgbot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FPaulSonOfLars%2Fgotgbot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FPaulSonOfLars%2Fgotgbot/lists"}