{"id":17912978,"url":"https://github.com/alllex/telegram-bot-kit","last_synced_at":"2025-07-07T01:36:46.800Z","repository":{"id":198029848,"uuid":"660585275","full_name":"alllex/telegram-bot-kit","owner":"alllex","description":"Idiomatic, fluent and type-safe Kotlin bindings for Telegram Bot API","archived":false,"fork":false,"pushed_at":"2024-08-18T15:00:57.000Z","size":1310,"stargazers_count":22,"open_issues_count":3,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-19T00:12:54.412Z","etag":null,"topics":["kotlin","telegram","telegram-bot-api","wrapper"],"latest_commit_sha":null,"homepage":"","language":"Kotlin","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/alllex.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":"2023-06-30T10:41:59.000Z","updated_at":"2025-01-21T06:07:46.000Z","dependencies_parsed_at":"2024-05-31T21:51:32.671Z","dependency_job_id":"e4ee131d-fbb4-43a7-b5cf-7a2803cca155","html_url":"https://github.com/alllex/telegram-bot-kit","commit_stats":null,"previous_names":["alllex/telegram-bot-kit"],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alllex%2Ftelegram-bot-kit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alllex%2Ftelegram-bot-kit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alllex%2Ftelegram-bot-kit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alllex%2Ftelegram-bot-kit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alllex","download_url":"https://codeload.github.com/alllex/telegram-bot-kit/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245180532,"owners_count":20573684,"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":["kotlin","telegram","telegram-bot-api","wrapper"],"created_at":"2024-10-28T19:49:02.592Z","updated_at":"2025-07-07T01:36:46.793Z","avatar_url":"https://github.com/alllex.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Telegram Bot API in Kotlin\n\n[![Maven Central](https://img.shields.io/maven-central/v/me.alllex.telegram.botkit/tbot-api-jvm.svg?color=success)](https://central.sonatype.com/namespace/me.alllex.telegram.botkit)\n[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://opensource.org/licenses/MIT)\n[![Gradle build](https://github.com/alllex/telegram-bot-kit/actions/workflows/check.yml/badge.svg)](https://github.com/alllex/telegram-bot-kit/actions/workflows/check.yml)\n\nIdiomatic, fluent and type-safe Kotlin bindings for [Telegram Bot API](https://core.telegram.org/bots/api).\n\n```kotlin\nval poller = TelegramBotApiPoller(TelegramBotApiClient(botApiToken))\npoller.start(\n    TelegramBotUpdateListener(\n        onMessage = { message -\u003e\n            message.reply(\n                text = \"Hello, *${message.from?.firstName ?: \"stranger\"}*!\",\n                parseMode = ParseMode.MARKDOWN,\n                replyMarkup = inlineKeyboard {\n                    buttonLink(\"Telegram\", \"https://telegram.org\")\n                    row {\n                        button(\"Bot\", \"bot\")\n                        button(\"API\", \"api\")\n                    }\n                }\n            )\n        },\n        onCallbackQuery = { callbackQuery -\u003e\n            when (callbackQuery.data) {\n                \"bot\" -\u003e callbackQuery.answer(\"🤖\")\n                \"api\" -\u003e callbackQuery.answer(\"🚀\")\n                else -\u003e callbackQuery.answer(\"🤷\")\n            }\n        }\n    )\n)\n```\n\n## Usage\n\n\u003cdetails open\u003e\n\u003csummary\u003eUsing with Gradle for JVM projects\u003c/summary\u003e\n\n```kotlin\ndependencies {\n    implementation(\"me.alllex.telegram.botkit:tbot-api-jvm:0.9.0\")\n}\n```\n\n\u003c/details\u003e\n\n\u003cdetails\u003e\n\u003csummary\u003eUsing with Maven for JVM projects\u003c/summary\u003e\n\n```xml\n\n\u003cdependency\u003e\n    \u003cgroupId\u003eme.alllex.telegram.botkit\u003c/groupId\u003e\n    \u003cartifactId\u003etbot-api-jvm\u003c/artifactId\u003e\n    \u003cversion\u003e0.9.0\u003c/version\u003e\n\u003c/dependency\u003e\n```\n\n\u003c/details\u003e\n\n## Compatibility\n\nThe bindings are generated directly from the source-of-truth [Bot API spec](https://core.telegram.org/bots/api).\n\n| Telegram Bot API | tbot-api library |\n|------------------|------------------|\n| `9.0`            | `0.9.0`          |\n| `7.9`            | `0.8.0`          |\n| `7.7`            | `0.7.0`          |\n| `7.4`            | `0.6.1`          |\n| `7.3`            | `0.5.0`          |\n| `6.9`            | `0.4.0`          |\n\n| tbot-api library | Requirement              |\n|------------------|--------------------------|\n| `0.9.0`          | Kotlin `2.0.0`, JVM `11` |\n| `0.4.0`          | Kotlin `1.9.0`, JVM `8`  |\n\n## Developing\n\n### Updating API to a new version of Telegram Bot API\n\n```\n./gradlew rollNextApi check\n```\n\n## Roadmap\n\n### Alpha\n\n- [ ] Error handling\n\n### Beta\n\n- [ ] Cleaner package structure\n- [ ] Strict library member visibility\n- [ ] Forward compatibility: published versions of the library should not break with new API versions (union types and\n  enums)\n- [ ] Support for integration tests bots\n\n## License\n\nDistributed under the MIT License. See `LICENSE` for more information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falllex%2Ftelegram-bot-kit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falllex%2Ftelegram-bot-kit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falllex%2Ftelegram-bot-kit/lists"}