TDLibCore 1.2.1

dotnet add package TDLibCore --version 1.2.1                
NuGet\Install-Package TDLibCore -Version 1.2.1                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="TDLibCore" Version="1.2.1" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add TDLibCore --version 1.2.1                
#r "nuget: TDLibCore, 1.2.1"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// 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                

GitHub Nuget

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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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.

Version Downloads Last updated
1.2.1 1,312 12/6/2021 1.2.1 is deprecated because it is no longer maintained.
1.2.0 988 2/13/2021
1.0.0 738 1/23/2021