{"id":19163060,"url":"https://github.com/federicobruzzone/tdlib-rs","last_synced_at":"2026-04-12T12:09:02.882Z","repository":{"id":240500400,"uuid":"802802654","full_name":"FedericoBruzzone/tdlib-rs","owner":"FedericoBruzzone","description":"Rust wrapper around the Telegram Database Library 🦀","archived":false,"fork":false,"pushed_at":"2025-08-07T08:31:43.000Z","size":301,"stargazers_count":67,"open_issues_count":10,"forks_count":21,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-11-16T21:02:30.082Z","etag":null,"topics":["rust","tdlib","tdlib-rs","telegram","telegram-api"],"latest_commit_sha":null,"homepage":"https://crates.io/crates/tdlib-rs","language":"Rust","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/FedericoBruzzone.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE-APACHE","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-05-19T10:08:03.000Z","updated_at":"2025-11-08T23:00:57.000Z","dependencies_parsed_at":"2024-05-19T11:26:16.617Z","dependency_job_id":"fc73c43f-44f8-4f99-bc09-fe76c560a4e5","html_url":"https://github.com/FedericoBruzzone/tdlib-rs","commit_stats":null,"previous_names":["federicobruzzone/tdlib-rs"],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/FedericoBruzzone/tdlib-rs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FedericoBruzzone%2Ftdlib-rs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FedericoBruzzone%2Ftdlib-rs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FedericoBruzzone%2Ftdlib-rs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FedericoBruzzone%2Ftdlib-rs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/FedericoBruzzone","download_url":"https://codeload.github.com/FedericoBruzzone/tdlib-rs/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FedericoBruzzone%2Ftdlib-rs/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28946043,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-31T14:26:55.697Z","status":"ssl_error","status_checked_at":"2026-01-31T14:26:52.545Z","response_time":128,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["rust","tdlib","tdlib-rs","telegram","telegram-api"],"created_at":"2024-11-09T09:14:06.912Z","updated_at":"2026-04-12T12:09:02.877Z","avatar_url":"https://github.com/FedericoBruzzone.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"[github-license-mit]: https://github.com/FedericoBruzzone/tdlib-rs/blob/main/LICENSE-MIT\n[github-license-apache]: https://github.com/FedericoBruzzone/tdlib-rs/blob/main/LICENSE-APACHE\n\n# tdlib-rs\n\n[![Latest version](https://img.shields.io/crates/v/tdlib_rs.svg)](https://crates.io/crates/tdlib_rs)\n[![Documentation](https://docs.rs/tdlib-rs/badge.svg)](https://docs.rs/tdlib-rs/latest/tdlib_rs/)\n[![CI Linux](https://github.com/FedericoBruzzone/tdlib-rs/actions/workflows/ci-linux.yml/badge.svg)](https://github.com/FedericoBruzzone/tdlib-rs/actions/workflows/ci-linux.yml)\n[![CI Windows](https://github.com/FedericoBruzzone/tdlib-rs/actions/workflows/ci-windows.yml/badge.svg)](https://github.com/FedericoBruzzone/tdlib-rs/actions/workflows/ci-windows.yml)\n[![CI macOS](https://github.com/FedericoBruzzone/tdlib-rs/actions/workflows/ci-macos.yml/badge.svg)](https://github.com/FedericoBruzzone/tdlib-rs/actions/workflows/ci-macos.yml)\n\u003c!-- [![CD](https://github.com/FedericoBruzzone/tdlib-rs/actions/workflows/cd.yml/badge.svg)](https://github.com/FedericoBruzzone/tdlib-rs/actions/workflows/cd.yml) --\u003e\n[![downloads](https://img.shields.io/crates/d/tdlib_rs)](https://crates.io/crates/tdlib_rs)\n![license](https://img.shields.io/crates/l/tdlib_rs)\n\nA Rust wrapper around the Telegram Database library. It includes a generator to automatically generate the types and functions from the TDLib's [Type Language](https://core.telegram.org/mtproto/TL) file.\n\n## Why this fork?\n\nThis is an improved version of the [tdlib-rs](https://github.com/paper-plane-developers/tdlib-rs) library, with the following additional features:\n\n1. It is cross-platform, it works on Windows, Linux and MacOS.\n2. Not required `tdlib` to be compiled and installed on the system.\n3. Not required `pkg-config` to build the library and associated exported variables.\n4. Four different ways to build the library:\n    - `download-tdlib`: download the precompiled library from the GitHub releases.\n    - `local-tdlib`: use the `tdlib` installed on the system.\n    - `pkg-config`: use the `pkg-config` to build the library.\n    - `static`: statically link `tdjson` (to be used with `download-tdlib` or `local-tdlib`).\n5. It is possible to download the `tdlib` library from the GitHub releases.\n\n## Information\n\nWe provide a precompiled version of the library for the supported platforms:\n\n- Linux (x86_64)\n- Linux (arm64)\n- macOS Intel (x86_64)\n- macOS Apple Silicon (arm64)\n- Windows (x86_64)\n- Windows (arm64)\n\nWe compile it in the CI and we upload the artifacts to the GitHub releases, so we can download it and use to build this library.\n\nIt's mainly created for using it in the [tgt](https://github.com/FedericoBruzzone/tgt) client, but it should work also for any other Rust project.\n\nCurrent supported TDLib version: [1.8.61](https://github.com/tdlib/td/commit/11e254af695060d8890024dd7faa1cc2d6685ef8).\n\n## Cargo features\n\nPlease see the documentation of the module `build` for more information about the features [here](https://docs.rs/tdlib-rs/latest/tdlib_rs/build/index.html).\nIt functions that you can use to build the library in different ways.\n\n### download-tdlib\n\nIf you don't want to compile and intall the `tdlib` on your system manually, you should enable the `download-tdlib` feature in the `Cargo.toml` file:\n\n```toml\n[dependencies]\ntdlib = { version = \"...\", features = [ \"download-tdlib\" ] }\n\n[build-dependencies]\ntdlib = { version = \"...\", features = [ \"download-tdlib\" ] }\n```\n\n```rust\n// build.rs\nfn main() {\n    tdlib_rs::build::build(None);\n}\n```\n\n### local-tdlib\n\n`local-tdlib` require you to have the `tdlib` (version 1.8.61) compiled and installed on your system, and the following variables exported, for example in the `.bashrc` file:\n\n```sh\n# The path to the tdlib folder\nexport LOCAL_TDLIB_PATH=$HOME/lib/tdlib\n```\n\nThen you can enable the `local-tdlib` feature in the `Cargo.toml` file:\n\n```toml\n[dependencies]\ntdlib = { version = \"...\", features = [ \"local-tdlib\" ] }\n\n[build-dependencies]\ntdlib = { version = \"...\", features = [ \"local-tdlib\" ] }\n```\n\n```rust\n// build.rs\nfn main() {\n    tdlib_rs::build::build(None);\n}\n```\n\n### pkg-config\n\nIf you want to use the `pkg-config` to build this library, you should enable the `pkg-config` feature in the `Cargo.toml` file:\n\n```toml\n[dependencies]\ntdlib = { version = \"...\", features = [ \"pkg-config\" ] }\n\n[build-dependencies]\ntdlib = { version = \"...\", features = [ \"pkg-config\" ] }\n```\n\n```rust\n// build.rs\nfn main() {\n    tdlib_rs::build::build(None);\n}\n```\n\nremember to have the `tdlib` (version 1.8.61) compiled on your system, and the following variables exported, for example in the `.bashrc` file:\n\n```sh\n# pkg-config configuration\nexport PKG_CONFIG_PATH=$HOME/lib/tdlib/lib/pkgconfig/:$PKG_CONFIG_PATH\n\n# dynmic linker configuration\nexport LD_LIBRARY_PATH=$HOME/lib/tdlib/lib/:$LD_LIBRARY_PATH\n```\n\n### docs\n\nThis feature skip the linking of the library and only generate the code of `generated.rs`.\nIs used only for testing.\n\n### static\n\nThis feature enables static linking for `tdjson`, so the final binary does not require `tdjson` to be installed in the target system runtime.\n\nUse it together with `download-tdlib` or `local-tdlib`:\n\n```toml\n[dependencies]\ntdlib-rs = { version = \"...\", features = [\"download-tdlib\", \"static\"] }\n```\n\n### bots-only-api\n\nThis feature enable the generation of the functions only used by Telegram bots.\n\n## License\n\nThis repository are licensed under either of\n\n- Apache License, Version 2.0 ([LICENSE-APACHE][github-license-apache] or \u003chttp://www.apache.org/licenses/LICENSE-2.0\u003e)\n- MIT license ([LICENSE-MIT][github-license-mit] or \u003chttp://opensource.org/licenses/MIT\u003e)\n\nat your option.\n\nPlease review the license file provided in the repository for more information regarding the terms and conditions of the license.\n\n## Contact\n\nIf you have any questions, suggestions, or feedback, do not hesitate to [contact me](https://federicobruzzone.github.io/).\n\nMantainers:\n\n- [FedericoBruzzone](https://github.com/FedericoBruzzone)\n- [Andreal2000](https://github.com/Andreal2000)\n\n## Credits\n\n- [grammers](https://github.com/Lonami/grammers): the `tdlib-tl-gen` and `tdlib-tl-parser` projects are forks of the `grammers-tl-gen` and `grammers-tl-parser` projects.\n- [rust-tdlib](https://github.com/aCLr/rust-tdlib): for inspiration about some client code.\n- [tdlib-rs](https://github.com/paper-plane-developers/tdlib-rs): for inspiration about the generator code.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffedericobruzzone%2Ftdlib-rs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffedericobruzzone%2Ftdlib-rs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffedericobruzzone%2Ftdlib-rs/lists"}