{"id":13486120,"url":"https://github.com/egramtel/tdsharp","last_synced_at":"2026-04-04T12:57:54.123Z","repository":{"id":30398260,"uuid":"123927331","full_name":"egramtel/tdsharp","owner":"egramtel","description":"C#/.NET Core bindings for TDLib (Telegram MTProto API)","archived":false,"fork":false,"pushed_at":"2026-04-01T22:38:59.000Z","size":3640,"stargazers_count":257,"open_issues_count":3,"forks_count":67,"subscribers_count":9,"default_branch":"master","last_synced_at":"2026-04-02T09:46:13.648Z","etag":null,"topics":["csharp","dotnet","tdlib","telegram","telegram-api"],"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/egramtel.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2018-03-05T13:58:53.000Z","updated_at":"2026-04-01T22:38:00.000Z","dependencies_parsed_at":"2024-05-30T01:46:23.993Z","dependency_job_id":"d53f9d54-9adf-4c61-9c32-9cc0060ad16f","html_url":"https://github.com/egramtel/tdsharp","commit_stats":null,"previous_names":[],"tags_count":24,"template":false,"template_full_name":null,"purl":"pkg:github/egramtel/tdsharp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/egramtel%2Ftdsharp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/egramtel%2Ftdsharp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/egramtel%2Ftdsharp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/egramtel%2Ftdsharp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/egramtel","download_url":"https://codeload.github.com/egramtel/tdsharp/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/egramtel%2Ftdsharp/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31400460,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-04T10:20:44.708Z","status":"ssl_error","status_checked_at":"2026-04-04T10:20:06.846Z","response_time":60,"last_error":"SSL_read: 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":["csharp","dotnet","tdlib","telegram","telegram-api"],"created_at":"2024-07-31T18:00:39.962Z","updated_at":"2026-04-04T12:57:54.106Z","avatar_url":"https://github.com/egramtel.png","language":"C#","readme":"\u003c!--\nSPDX-FileCopyrightText: 2024 tdsharp contributors \u003chttps://github.com/egramtel/tdsharp\u003e\n\nSPDX-License-Identifier: MIT\n--\u003e\n\n# TDLib\n\n.NET bindings for **TDLib** (Telegram Database Library): https://github.com/tdlib/td\n* Generated API bindings\n* Supports .NET Standard 2.0 and later\n\n### Installation\n\nInstall via NuGet: ```TDLib```\n\n[![NuGet](https://img.shields.io/nuget/v/TDLib.svg)](https://www.nuget.org/packages/TDLib/)\n\n### Dependencies\n\nYou're recommended to use precompiled version of TDLib native artifacts from NuGet: **tdlib.native**.\n\n[![NuGet](https://img.shields.io/nuget/v/tdlib.native.svg)](https://www.nuget.org/packages/tdlib.native/)\n\nNote that this is the main cross-platform package, and there are per-platform packages and additional options described in [the tdlib.native documentation][tdlib-native.docs].\n\nNote that `tdlib.native` is not a dependency of `TDLib`, so you may choose to build the binaries yourself and provide them at the runtime.\n\nTo do that, [build TDLib](https://core.telegram.org/tdlib/docs/index.html#building) and put the compiled library into your project's output directory\n* tdjson.dll (Windows) (optionally accompanied by other DLL files from the build directory if you want to bundle OpenSSL and ZLib dependencies as well)\n* libtdjson.dylib (MacOS)\n* libtdjson.so (Linux)\n\n### Have a question?\n\nReport bugs to the [issue tracker][issues].\n\nAsk questions at [the discussion section on GitHub][discussions].\n\n### Using json client\n\nTdJsonClient is a wrapper around native JSON APIs. Use it to send/receive data as strings.\n\n```csharp\nusing TdLib;\n\nvar json = \"\"; // json data\ndouble timeout = 1.0; // 1 second\n\nusing (var jsonClient = new TdJsonClient())\n{\n    jsonClient.Send(json); // send request\n    var result = jsonClient.Receive(timeout); // receive response\n}\n```\n\n### Using strongly typed APIs\n\nThis library contains generated classes for objects and functions. JSON serialization and deserialization is handled automatically. Use TdClient to asynchronously execute functions.\n\n```csharp\nusing TdLib;\n\nusing (var client = new TdClient())\n{\n    try\n    {\n        // asynchronously execute function\n        TdApi.Ok ok = await client.ExecuteAsync(new TdApi.SetAuthenticationPhoneNumber\n        {\n            PhoneNumber = phoneNumber\n        });\n\n        // or use extension method\n        ok = await client.SetAuthenticationPhoneNumberAsync(phoneNumber);\n\n        // do something...\n    }\n    catch (ErrorException e)\n    {\n        TdApi.Error error = e.Error;\n\n        // handle error...\n    }\n}\n```\n\n### Overriding native bindings\n\nBy default, TdSharp will try to detect the platform and use the corresponding bindings to native td library. In case you want to override it (e.g. for Xamarin), create a custom implementation of `ITdLibBindings` (which corresponds to native library interface used by TdSharp) and pass it to `TdClient` constructor.\n\n### Documentation\n\n- [Changelog][docs.changelog]\n- [Contributor Guide][docs.contributing]\n- [Instructions for Maintainers][docs.maintainership]\n\n### License\nAll the project code is licensed under [the MIT license][docs.license].\n\nThe code generated from the upstream TDLib has the same license as TDLib, which is [the Boost Software License - Version 1.0][docs.license.bsl].\n\nThe license indication in the project's sources is compliant with the [REUSE specification v3.3][reuse.spec].\n\n[discussions]: https://github.com/egramtel/tdsharp/discussions\n[docs.changelog]: ./CHANGELOG.md\n[docs.contributing]: CONTRIBUTING.md\n[docs.license.bsl]: https://github.com/tdlib/td/blob/f35dea776cdaa8b986e2a634dfabf0dafe659be7/LICENSE_1_0.txt\n[docs.license]: ./LICENSE\n[docs.maintainership]: ./MAINTAINERSHIP.md\n[issues]: https://github.com/egramtel/tdsharp/issues\n[reuse.spec]: https://reuse.software/spec-3.3/\n[tdlib-native.docs]: https://github.com/ForNeVeR/tdlib.native\n","funding_links":[],"categories":["C#","C# #"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fegramtel%2Ftdsharp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fegramtel%2Ftdsharp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fegramtel%2Ftdsharp/lists"}