Wellmade .net extension to append functionality and async calls to Telegram Database Library (Tdlib)
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
| 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 |
| 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 )
you can build this project or easily use following nuget command :
Check & Build example folder