https://github.com/bigbuildbench/egramtel_tdsharp
Science Score: 13.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
✓codemeta.json file
Found codemeta.json file -
○.zenodo.json file
-
○DOI references
-
○Academic publication links
-
○Academic email domains
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (13.7%) to scientific vocabulary
Repository
Basic Info
- Host: GitHub
- Owner: BigBuildBench
- License: mit
- Language: C#
- Default Branch: master
- Size: 2.47 MB
Statistics
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 2
- Releases: 0
Metadata Files
README.md
TDLib
.NET bindings for TDLib (Telegram Database Library): https://github.com/tdlib/td * Generated API bindings * Supports .NET Standard 2.0 and later
Installation
Install via NuGet: TDLib
Dependencies
You're recommended to use precompiled version of TDLib native artifacts from NuGet: tdlib.native.
Note that this is the main cross-platform package, and there are per-platform packages and additional options described in the tdlib.native documentation.
Note that tdlib.native is not a dependency of TDLib, so you may choose to build the binaries yourself and provide them at the runtime.
To do that, build TDLib and put the compiled library into your project's output directory * tdjson.dll (Windows) (optionally accompanied by other DLL files from the build directory if you want to bundle OpenSSL and ZLib dependencies as well) * libtdjson.dylib (MacOS) * libtdjson.so (Linux)
Have a question?
Report bugs to the issue tracker.
Ask questions at the discussion section on GitHub.
Using json client
TdJsonClient is a wrapper around native JSON APIs. Use it to send/receive data as strings.
```csharp using TdLib;
var json = ""; // json data double timeout = 1.0; // 1 second
using (var jsonClient = new TdJsonClient()) { jsonClient.Send(json); // send request var result = jsonClient.Receive(timeout); // receive response } ```
Using strongly typed APIs
This library contains generated classes for objects and functions. JSON serialization and deserialization is handled automatically. Use TdClient to asynchronously execute functions.
```csharp using TdLib;
using (var client = new TdClient()) { try { // asynchronously execute function TdApi.Ok ok = await client.ExecuteAsync(new TdApi.SetAuthenticationPhoneNumber { PhoneNumber = phoneNumber });
// or use extension method
ok = await client.SetAuthenticationPhoneNumberAsync(phoneNumber);
// do something...
}
catch (ErrorException e)
{
TdApi.Error error = e.Error;
// handle error...
}
} ```
Overriding native bindings
By 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.
Documentation
License
All the project code is licensed under the MIT license.
The code generated from the upstream TDLib has the same license as TDLib, which is the Boost Software License - Version 1.0.
The license indication in the project's sources is compliant with the [REUSE specification v3.0][reuse.spec].
Owner
- Name: BigBuildBench
- Login: BigBuildBench
- Kind: organization
- Repositories: 1
- Profile: https://github.com/BigBuildBench
abbr. B3, benchmarking the repo-level understanding capability of your LLMs by reconstructing project build-file.
GitHub Events
Total
- Delete event: 3
- Issue comment event: 3
- Pull request event: 15
- Create event: 16
Last Year
- Delete event: 3
- Issue comment event: 3
- Pull request event: 15
- Create event: 16
Issues and Pull Requests
Last synced: 10 months ago
All Time
- Total issues: 0
- Total pull requests: 7
- Average time to close issues: N/A
- Average time to close pull requests: about 2 months
- Total issue authors: 0
- Total pull request authors: 1
- Average comments per issue: 0
- Average comments per pull request: 0.43
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 7
Past Year
- Issues: 0
- Pull requests: 7
- Average time to close issues: N/A
- Average time to close pull requests: about 2 months
- Issue authors: 0
- Pull request authors: 1
- Average comments per issue: 0
- Average comments per pull request: 0.43
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 7
Top Authors
Issue Authors
- dependabot[bot] (1)
Pull Request Authors
- dependabot[bot] (9)
Top Labels
Issue Labels
Pull Request Labels
Dependencies
- actions/cache v4 composite
- actions/checkout v4 composite
- actions/setup-dotnet v4 composite
- fsfe/reuse-action v4 composite
- ForNeVeR/ChangelogAutomation.action v1 composite
- actions/cache v4 composite
- actions/checkout v4 composite
- actions/create-release v1 composite
- actions/setup-dotnet v4 composite
- actions/upload-release-asset v1 composite