{"id":13764891,"url":"https://github.com/badoualy/kotlogram","last_synced_at":"2025-05-10T20:31:22.618Z","repository":{"id":50404086,"uuid":"48944818","full_name":"badoualy/kotlogram","owner":"badoualy","description":"Telegram API for Java/Kotlin easy to use and straightforward","archived":true,"fork":false,"pushed_at":"2018-07-24T16:37:35.000Z","size":8995,"stargazers_count":232,"open_issues_count":12,"forks_count":88,"subscribers_count":24,"default_branch":"master","last_synced_at":"2025-03-30T19:37:43.172Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://kotlogram.badoualy.com","language":"Java","has_issues":false,"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/badoualy.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":"2016-01-03T12:27:35.000Z","updated_at":"2025-03-23T03:22:19.000Z","dependencies_parsed_at":"2022-09-13T03:11:12.850Z","dependency_job_id":null,"html_url":"https://github.com/badoualy/kotlogram","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/badoualy%2Fkotlogram","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/badoualy%2Fkotlogram/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/badoualy%2Fkotlogram/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/badoualy%2Fkotlogram/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/badoualy","download_url":"https://codeload.github.com/badoualy/kotlogram/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253480431,"owners_count":21915246,"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":[],"created_at":"2024-08-03T16:00:31.126Z","updated_at":"2025-05-10T20:31:17.605Z","avatar_url":"https://github.com/badoualy.png","language":"Java","funding_links":[],"categories":["MTProto implementations","Bots","一般机器人（bots）"],"sub_categories":["Community","Bot Libs","机器人类库"],"readme":"![Kotlogram](http://s28.postimg.org/u3sc3e24t/logo.png)\u003cbr/\u003e\n[![Release](https://jitpack.io/v/badoualy/kotlogram.svg)](https://jitpack.io/#badoualy/kotlogram) [![Build Status](https://travis-ci.org/badoualy/kotlogram.svg?branch=master)](https://travis-ci.org/badoualy/kotlogram)\n\n**Easy to use** and **straightforward** Kotlin and Java binding of [Telegram API](https://core.telegram.org/api).\nThe project is coded in **Kotlin**, with some classes (mostly legacy classes) in Java\n\nCurrent layer: 66\n===========\nDocumentation@[http://kotlogram.badoualy.com](http://kotlogram.badoualy.com)\n===========\n\nKotlin, what is that, I don't know this language!\n----------------\nDon't worry, Kotlin is a JVM language just like Java and Scala, and is fully interoperable with Java! You can use this as a standard Java Library.\nKotlogram uses Kotlin to improve the usability of the lib. The TL Language used by Telegram's protocol as used requires a lot of boilerplate code when modeled in a language like Java. To be more developer-friendly, the lib includes a lot of utils in the form of Kotlin extension functions and properties.\n\nTODO list\n----------------\n- Implement [Perfect Forward Secrecy](https://core.telegram.org/api/pfs).\n- Implement CDN redirection handling when downloading files.\n\nImportant notes\n----------------\nThis documentation's only purpose is to explain how the library works, and how to use it. Telegram documentation is sadly completely outdated and not of any use. Probably at some point in the future they'll either close the public API, or release new documentation (I'm hoping for the latter).\nBut this documentation **will not explain how to use their API**, like how to get messages older than the date `X` or all the parameters of a rpc method.\nPlease, restrain from opening ticket about questions on the API, as I'll ignore them if I don't have the answer.\n\nUsage\n----------------\n#### Dependency\n\nFirst, add [JitPack](https://jitpack.io/) to your project if that's not already the case, in your `build.gradle`:\n\n```gradle\nrepositories {\n    // ...\n    maven { url \"https://jitpack.io\" }\n}\n```\n\nThen add the library dependency:\n```gradle\ncompile 'com.github.badoualy:kotlogram:1.0.0-RC3'\n```\n\nLicence\n----------------\n```\nThe MIT License (MIT)\n\nCopyright (c) 2015 Yannick Badoual\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbadoualy%2Fkotlogram","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbadoualy%2Fkotlogram","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbadoualy%2Fkotlogram/lists"}