{"id":15546948,"url":"https://github.com/nezorflame/example-telegram-bot","last_synced_at":"2025-06-12T03:09:31.450Z","repository":{"id":57542821,"uuid":"189444091","full_name":"nezorflame/example-telegram-bot","owner":"nezorflame","description":"Example bot template for Telegram","archived":false,"fork":false,"pushed_at":"2024-03-23T14:25:26.000Z","size":6336,"stargazers_count":5,"open_issues_count":0,"forks_count":1,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-06-06T22:36:10.017Z","etag":null,"topics":["bot","go","telegram"],"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/nezorflame.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}},"created_at":"2019-05-30T16:07:53.000Z","updated_at":"2023-08-23T18:05:04.000Z","dependencies_parsed_at":"2024-03-23T15:30:55.868Z","dependency_job_id":null,"html_url":"https://github.com/nezorflame/example-telegram-bot","commit_stats":null,"previous_names":[],"tags_count":8,"template":true,"template_full_name":null,"purl":"pkg:github/nezorflame/example-telegram-bot","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nezorflame%2Fexample-telegram-bot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nezorflame%2Fexample-telegram-bot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nezorflame%2Fexample-telegram-bot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nezorflame%2Fexample-telegram-bot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nezorflame","download_url":"https://codeload.github.com/nezorflame/example-telegram-bot/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nezorflame%2Fexample-telegram-bot/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259388089,"owners_count":22849755,"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","telegram"],"created_at":"2024-10-02T13:05:27.910Z","updated_at":"2025-06-12T03:09:31.405Z","avatar_url":"https://github.com/nezorflame.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# example-telegram-bot [![Workflow status](https://github.com/nezorflame/example-telegram-bot/actions/workflows/go.yml/badge.svg)](https://github.com/nezorflame/example-telegram-bot/actions/workflows/go.yml) [![Go Report Card](https://goreportcard.com/badge/github.com/nezorflame/example-telegram-bot)](https://goreportcard.com/report/github.com/nezorflame/example-telegram-bot) [![GolangCI](https://golangci.com/badges/github.com/nezorflame/example-telegram-bot.svg)](https://golangci.com/r/github.com/nezorflame/example-telegram-bot) [![FOSSA license check](https://app.fossa.com/api/projects/git%2Bgithub.com%2Fnezorflame%2Fexample-telegram-bot.svg?type=shield\u0026issueType=license)](https://app.fossa.com/projects/git%2Bgithub.com%2Fnezorflame%2Fexample-telegram-bot?ref=badge_shield\u0026issueType=license) [![FOSSA security check](https://app.fossa.com/api/projects/git%2Bgithub.com%2Fnezorflame%2Fexample-telegram-bot.svg?type=shield\u0026issueType=security)](https://app.fossa.com/projects/git%2Bgithub.com%2Fnezorflame%2Fexample-telegram-bot?ref=badge_shield\u0026issueType=security)\n\nExample bot template for Telegram.\n\n## Description\n\nWith this type of setup all you need to do is:\n\n- create a project from the template and `git clone` it\n- replace the module and bot name to your own\n- run `make init` to set up the project and its dependencies\n- add required code\n- set up the environment or your `.env` file for your needs\n- modify `.service` file for systemd to manage your bot\n- deploy your bot to the server of choice!\n\n## Dependencies\n\nThis bot uses:\n\n- [telebot](https://pkg.go.dev/gopkg.in/telebot.v3) package to work with Telegram API\n- [bolt](https://pkg.go.dev/go.etcd.io/bbolt) for the database\n- [envconfig](https://pkg.go.dev/github.com/kelseyhightower/envconfig) + [godotenv](https://pkg.go.dev/github.com/joho/godotenv) for the configuration\n- [slog](https://pkg.go.dev/log/slog) for the logging\n\n## Structure\n\nThis project mostly adheres to the [Project Layout](https://github.com/golang-standards/project-layout) structure, excluding `pkg` folders.\n\n`internal` package holds the private libraries:\n\n- `config` for configuration\n- `bolt` for database (using BoltDB)\n- `file` for file and network helpers\n- `telegram` package with bot implementation\n\n## Customization\n\nTo add another custom command handler, you can:\n\n- add a command to `.env` file (and also a corresponding message, if required)\n- edit `internal` packages\n\n## License\n\n[![FOSSA Status](https://app.fossa.io/api/projects/git%2Bgithub.com%2Fnezorflame%2Fexample-telegram-bot.svg?type=large)](https://app.fossa.io/projects/git%2Bgithub.com%2Fnezorflame%2Fexample-telegram-bot?ref=badge_large)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnezorflame%2Fexample-telegram-bot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnezorflame%2Fexample-telegram-bot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnezorflame%2Fexample-telegram-bot/lists"}