{"id":25269935,"url":"https://github.com/aymenjd/tdjson","last_synced_at":"2025-04-06T06:15:17.696Z","repository":{"id":276706271,"uuid":"930004550","full_name":"AYMENJD/tdjson","owner":"AYMENJD","description":"High-performance Python binding for TDLib JSON interface","archived":false,"fork":false,"pushed_at":"2025-03-07T13:53:01.000Z","size":26,"stargazers_count":5,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-24T09:36:32.292Z","etag":null,"topics":["nanobind","python","tdlib","telegram"],"latest_commit_sha":null,"homepage":"","language":"C++","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/AYMENJD.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":"2025-02-09T22:05:17.000Z","updated_at":"2025-03-07T13:53:04.000Z","dependencies_parsed_at":null,"dependency_job_id":"7d12f33c-9518-4af3-ade3-83fb9596a946","html_url":"https://github.com/AYMENJD/tdjson","commit_stats":null,"previous_names":["aymenjd/tdjson"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AYMENJD%2Ftdjson","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AYMENJD%2Ftdjson/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AYMENJD%2Ftdjson/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AYMENJD%2Ftdjson/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AYMENJD","download_url":"https://codeload.github.com/AYMENJD/tdjson/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247441060,"owners_count":20939239,"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":["nanobind","python","tdlib","telegram"],"created_at":"2025-02-12T11:28:01.682Z","updated_at":"2025-04-06T06:15:17.683Z","avatar_url":"https://github.com/AYMENJD.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# tdjson [![Version](https://img.shields.io/pypi/v/Tdjson?style=flat\u0026logo=pypi)](https://pypi.org/project/Tdjson) [![TDLib version](https://img.shields.io/badge/TDLib-v1.8.46-blue?logo=telegram)](https://github.com/tdlib/td) [![Downloads](https://static.pepy.tech/personalized-badge/tdjson?period=month\u0026units=none\u0026left_color=grey\u0026right_color=brightgreen\u0026left_text=Downloads)](https://pepy.tech/project/tdjson)\n\n`tdjson` is a high-performance Python binding for [TDLib](https://github.com/tdlib/td)'s JSON interface. Outperforms `ctypes`, and **includes** `TDLib` for easy setup and use. Mainly created for [Pytdbot](https://github.com/pytdbot/client)\n\n## Compatibility\n\n`tdjson` is compatible with almost all Linux `x86_64` distributions that use `glibc 2.17+`. This includes most modern Linux distributions:\n\n- Debian 8+\n- Ubuntu 13.10+\n- Fedora 19+\n- RHEL 7+\n\n## Installation\n\nYou can install `tdjson` directly from PyPI:\n\n```bash\npip install tdjson\n```\n\n## Usage\n\nHere’s a quick example to get you started:\n\n```python\nimport json\nimport tdjson\n\n# Create a new TDLib client\nclient_id = tdjson.td_create_client_id()\n\n# Send a request to TDLib\nrequest = {\"@type\": \"getOption\", \"name\": \"version\"}\ntdjson.td_send(client_id, json.dumps(request))\n\n# Receive updates or responses\nresponse = tdjson.td_receive(10.0)\nprint(response)\n\n# Synchronously execute a TDLib request\nresult = tdjson.td_execute(json.dumps({\"@type\": \"getTextEntities\", \"text\": \"@telegram /test_command https://telegram.org telegram.me\", \"@extra\": [\"5\", 7.0, \"a\"]}))\nprint(result)\n```\n\nFor more detailed examples, check out the [examples](https://github.com/AYMENJD/tdjson/blob/main/examples) folder.\n\n## License\n\nMIT [LICENSE](https://github.com/AYMENJD/tdjson/blob/main/LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faymenjd%2Ftdjson","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faymenjd%2Ftdjson","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faymenjd%2Ftdjson/lists"}