{"id":17970272,"url":"https://github.com/hellokaton/telegram-bot-api","last_synced_at":"2025-08-01T09:10:40.835Z","repository":{"id":57732615,"uuid":"105433519","full_name":"hellokaton/telegram-bot-api","owner":"hellokaton","description":"🤖 telegram bot api by java, help you quickly create a little robot.","archived":false,"fork":false,"pushed_at":"2018-01-17T02:37:07.000Z","size":63,"stargazers_count":87,"open_issues_count":3,"forks_count":34,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-20T01:41:34.573Z","etag":null,"topics":["java","telegram","telegram-bot","telegram-bot-api"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hellokaton.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":"2017-10-01T10:06:17.000Z","updated_at":"2025-02-28T03:27:35.000Z","dependencies_parsed_at":"2022-08-24T01:51:19.626Z","dependency_job_id":null,"html_url":"https://github.com/hellokaton/telegram-bot-api","commit_stats":null,"previous_names":["biezhi/telegram-bot-api"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hellokaton%2Ftelegram-bot-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hellokaton%2Ftelegram-bot-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hellokaton%2Ftelegram-bot-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hellokaton%2Ftelegram-bot-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hellokaton","download_url":"https://codeload.github.com/hellokaton/telegram-bot-api/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245453880,"owners_count":20617934,"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":["java","telegram","telegram-bot","telegram-bot-api"],"created_at":"2024-10-29T15:02:43.693Z","updated_at":"2025-03-25T11:31:18.562Z","avatar_url":"https://github.com/hellokaton.png","language":"Java","readme":"# telegram-bot-api\n\n这是一个 Telegram 的机器人库，能够帮你快速搭建一个机器人程序运行。\n\n[![CI](https://img.shields.io/travis/biezhi/telegram-bot-api.svg)](https://travis-ci.org/biezhi/telegram-bot-api)\n[![Maven](https://img.shields.io/maven-central/v/io.github.biezhi/telegram-bot-api.svg)](http://search.maven.org/#search%7Cga%7C1%7C/telegram-bot-api)\n[![](https://img.shields.io/badge/license-Apache2-FF0080.svg)](https://github.com/biezhi/telegram-bot-api/blob/master/LICENSE)\n[![@biezhi on zhihu](https://img.shields.io/badge/zhihu-%40biezhi-red.svg)](https://www.zhihu.com/people/biezhi)\n[![](https://img.shields.io/github/followers/biezhi.svg?style=social\u0026label=Follow%20Me)](https://github.com/biezhi)\n\n## 特性\n\n- 快速接入API\n- 内置多种实现\n- 支持代理，不怕被墙\n- 依赖更少，简单最好\n- 异步调用，效率更高\n- 灵活配置，满足自定义需求\n\n## 快速接入\n\n**下面是Maven坐标**\n\n```java\n\u003cdependency\u003e\n    \u003cgroupId\u003eio.github.biezhi\u003c/groupId\u003e\n    \u003cartifactId\u003etelegram-bot-api\u003c/artifactId\u003e\n    \u003cversion\u003e最新版本\u003c/version\u003e\n\u003c/dependency\u003e\n```\n\n## 示例代码\n\n### GetMe\n\n```java\nTelegramBot bot = new TelegramBot(TOKEN);\nSystem.out.println(bot.getMe());\n```\n\n### 监听文本指令\n\n```java\nTelegramBot bot = new TelegramBot(TOKEN);\nbot.onCmd(\"/help\", message -\u003e {\n    log.info(\"收到消息: {}\", message);\n    bot.text(message, \"/echo\\r\\n/me\\r\\n/hi\");\n}).await();\n```\n\n### 监听贴纸消息\n\n```java\nTelegramBot bot = new TelegramBot(TOKEN);\nbot.onSticker(message -\u003e {\n    log.info(\"收到贴图: {}\", message);\n}).await();\n```\n\n### 监听其他消息\n\n```java\nTelegramBot bot = new TelegramBot(TOKEN);\nbot.onOther(message -\u003e {\n    log.info(\"收到消息: {}\", message);\n}).await();\n```\n\n## 开源协议\n\n[Apache2](https://github.com/biezhi/telegram-bot-api/blob/master/LICENSE)\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhellokaton%2Ftelegram-bot-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhellokaton%2Ftelegram-bot-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhellokaton%2Ftelegram-bot-api/lists"}