Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Wellmade .net extension to append functionality and async calls to Telegram Database Library (Tdlib)

License

Notifications You must be signed in to change notification settings

OmarHernandez99/TDLibCore

 
 

Repository files navigation

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 = [email protected] - t.me/ph09nix

Leave a STAR if you found this usefull :)

About

Wellmade .net extension to append functionality and async calls to Telegram Database Library (Tdlib)

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C# 100.0%