sochix / TLSharp

Telegram client library implemented in C#
1k stars 380 forks source link

Get data about Imported contacts #957

Open DavidItizk opened 4 years ago

DavidItizk commented 4 years ago

I'm importing contacts using the ImportContactsAsync funciton, for example: image

I want to get the first&last name, and username of my contacts, 'client.GetContactsAsync' function doesn't help in that case, The only endpoint that give me more information is 'client.DeleteContactAsync', When I delete the imported contact, I get TLAbsUser object as return value from the function, which contains more data about the user.

My problem is that I don't want to delete my contacts one by one, I want to use 'client.DeleteContactsAsync' to delete them all togther, and get all the data in one api call, unfortunately, the return value in that case is only boolean value,

How can I achieve my goal? maybe I can use something else and not the 'DeleteContactAsync' function?

Pst. https://github.com/LonamiWebs/Telethon has DeleteContactsAsync that works exactly like DeleteContactAsync