{"id":13574890,"url":"https://github.com/nickname76/telegrambot","last_synced_at":"2025-04-04T18:32:43.745Z","repository":{"id":43187686,"uuid":"508142319","full_name":"nickname76/telegrambot","owner":"nickname76","description":"Telegram Bot API library in Go, but with more clean code","archived":false,"fork":false,"pushed_at":"2024-03-13T23:13:42.000Z","size":106,"stargazers_count":29,"open_issues_count":2,"forks_count":4,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-11-05T10:45:03.676Z","etag":null,"topics":["api","bot","go","go-telegram-api","go-telegram-bot-api","golang","library","telegram","telegram-bot","telegram-bot-api","wrapper"],"latest_commit_sha":null,"homepage":"https://discord.gg/golang","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/nickname76.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":".github/CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":".github/CODE_OF_CONDUCT.md","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":"2022-06-28T03:34:17.000Z","updated_at":"2024-10-08T14:41:35.000Z","dependencies_parsed_at":"2024-01-16T20:25:14.624Z","dependency_job_id":"477ece41-cc2c-4d6c-aed3-aa54da812cc5","html_url":"https://github.com/nickname76/telegrambot","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nickname76%2Ftelegrambot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nickname76%2Ftelegrambot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nickname76%2Ftelegrambot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nickname76%2Ftelegrambot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nickname76","download_url":"https://codeload.github.com/nickname76/telegrambot/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247229902,"owners_count":20905151,"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":["api","bot","go","go-telegram-api","go-telegram-bot-api","golang","library","telegram","telegram-bot","telegram-bot-api","wrapper"],"created_at":"2024-08-01T15:00:55.659Z","updated_at":"2025-04-04T18:32:43.739Z","avatar_url":"https://github.com/nickname76.png","language":"Go","funding_links":[],"categories":["Go"],"sub_categories":[],"readme":"# [\u003cimg src=\"https://user-images.githubusercontent.com/41116859/185259360-b9b44eb2-6e47-4451-8d1e-90e3e4f34eef.png\" height=\"32\" /\u003e Telegrambot](https://github.com/nickname76/telegrambot#example-usage) [\u003cimg class=\"badge\" tag=\"github.com/nickname76/telegrambot\" align=\"right\" src=\"https://goreportcard.com/badge/github.com/nickname76/telegrambot\"\u003e](https://goreportcard.com/report/github.com/nickname76/telegrambot)\n\n[\u003cimg src=\"https://external-content.duckduckgo.com/iu/?u=https%3A%2F%2Fstatic.wixstatic.com%2Fmedia%2F950c70_eb49b9b040b14b70972c9777d736f7ea~mv2_d_2112_2112_s_2.gif\u0026f=1\u0026nofb=1\" align=\"right\" height=\"240\" /\u003e](https://discord.gg/rX4EhxsW6X)\n\nThe most clean and strongly typed Telegram Bot API library in Go\n\nCompletely covers Bot API version - **6.2**\n\nTelegram Bot API documentaion: https://core.telegram.org/bots/api\n\nTelegram deep links list: https://core.telegram.org/api/links\n\nMore Telegram deep links: https://t.me/DeepLink\n\n**DISCORD**: [https://discord.gg/golang](https://discord.gg/rX4EhxsW6X) (#telegrambot channel)\n\n**Documentation on this library:**\n\n- API https://pkg.go.dev/github.com/nickname76/telegrambot\n- Tools https://pkg.go.dev/github.com/nickname76/telegrambot/tools\n\n_Please, **star** this repository, if you found this library useful!_\n\n## Example usage\n\n```Go\npackage main\n\nimport (\n\t\"fmt\"\n\t\"log\"\n\t\"os\"\n\t\"os/signal\"\n\n\t\"github.com/nickname76/telegrambot\"\n)\n\nfunc main() {\n\tapi, me, err := telegrambot.NewAPI(\"YOUR_TELEGRAM_BOT_API_TOKEN\")\n\tif err != nil {\n\t\tlog.Fatalf(\"Error: %v\", err)\n\t}\n\n\tstop := telegrambot.StartReceivingUpdates(api, func(update *telegrambot.Update, err error) {\n\t\tif err != nil {\n\t\t\tlog.Printf(\"Error: %v\", err)\n\t\t\treturn\n\t\t}\n\n\t\tmsg := update.Message\n\t\tif msg == nil {\n\t\t\treturn\n\t\t}\n\n\t\t_, err = api.SendMessage(\u0026telegrambot.SendMessageParams{\n\t\t\tChatID: msg.Chat.ID,\n\t\t\tText:   fmt.Sprintf(\"Hello %v, I am %v\", msg.From.FirstName, me.FirstName),\n\t\t\tReplyMarkup: \u0026telegrambot.ReplyKeyboardMarkup{\n\t\t\t\tKeyboard: [][]*telegrambot.KeyboardButton{{\n\t\t\t\t\t{\n\t\t\t\t\t\tText: \"Hello\",\n\t\t\t\t\t},\n\t\t\t\t}},\n\t\t\t\tResizeKeyboard:  true,\n\t\t\t\tOneTimeKeyboard: true,\n\t\t\t},\n\t\t})\n\n\t\tif err != nil {\n\t\t\tlog.Printf(\"Error: %v\", err)\n\t\t\treturn\n\t\t}\n\t})\n\n\tlog.Printf(\"Started on %v\", me.Username)\n\n\texitCh := make(chan os.Signal, 1)\n\tsignal.Notify(exitCh, os.Interrupt)\n\n\t\u003c-exitCh\n\n\t// Waits for all updates handling to complete\n\tstop()\n}\n\n```\n\n## See also\n\nIf you want to develop Telegram bot, you should also see these libraries, which might be useful for you\n\n- [Repeater](https://github.com/nickname76/repeater) - Go library for creating repeating function calls\n- [QiwiP2P](https://github.com/nickname76/qiwip2p) - Go library for Qiwi P2P API\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnickname76%2Ftelegrambot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnickname76%2Ftelegrambot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnickname76%2Ftelegrambot/lists"}