TDLibCore 1.2.1
dotnet add package TDLibCore --version 1.2.1
NuGet\Install-Package TDLibCore -Version 1.2.1
<PackageReference Include="TDLibCore" Version="1.2.1" />
paket add TDLibCore --version 1.2.1
#r "nuget: TDLibCore, 1.2.1"
// Install TDLibCore as a Cake Addin #addin nuget:?package=TDLibCore&version=1.2.1 // Install TDLibCore as a Cake Tool #tool nuget:?package=TDLibCore&version=1.2.1
TDLibCore
Wellmade .net extension to append functionality and async calls to Telegram Database Library (Tdlib)
Dependancies
Currently, this library is interactable with Tdlib version 1.7.0 you need following dll files to be able to work with this library :
- tdjson.dll
- Telegram.Td.dll
- libcrypto-1_1-xARC.dll
- zlib1.dll
- libssl-1_1-xARC.dll
there is compiled files in DEPENDANCIES folder you can use, or you can compile from : https://github.com/tdlib/td
Functions
Name | Description |
---|---|
initializeclient | Initializes TDLibCore instance and run new telegram client |
Authenticate | Sends input data for authentication purpos if authorization status matches |
Dispose | Object disposal |
GetMainChatList | Returns a List<Tdapi.Chat> contains authenticated PhoneNumber main chats |
GetSuperGroupUsers | Returns a List<Tdapi.User> contains supergroupid userslist |
GetSuperGroupUsers | Returns a List<Tdapi.User> contains userslist of group which has groupidentifier in title or username |
ExecuteCommandAsync | Returns a Responseobject containing asynchronously runing a Tdlib.Func |
AddChatMember | Adds a user in specified super group |
Events
Name | Description |
---|---|
OnVerificationCodeNeeded | Event will be runing whenever authorization state is equal to verification code needed |
OnVerificationPasswordNeeded | Event will be runing whenever authorization state is equal to verification password needed |
OnReady | Event will be runing when connection is successful |
you can also add custom events using mainresponsehandlers object ( check example, in example custom event added for UpdateNewMessage )
How to use ?
you can build this project or easily use following nuget command :
Install-Package TDLibCore -Version 1.2.0
Check & Build example folder
Donation : 18eHqWzdCFMs8pNXiHAwvpDMHmToxFLhMP (BTC)
support / suggestion = ph09nixom@gmail.com - t.me/ph09nix
Leave a STAR if you found this usefull 😃
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET Framework | net is compatible. net47 is compatible. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
This package has no dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.